f2e599e51af7273cc5ab557b8637d1dcb95c7890
[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 /**
233  * An error when accessing the chain via [`Access`].
234  */
235 export enum AccessError {
236         /**
237          * The requested chain is unknown.
238          */
239         LDKAccessError_UnknownChain,
240         /**
241          * The requested transaction doesn't exist or hasn't confirmed.
242          */
243         LDKAccessError_UnknownTx,
244         
245 }
246
247 /**
248  * An enum which can either contain a  or not
249  */
250 export enum COption_NoneZ {
251         /**
252          * When we're in this state, this COption_NoneZ contains a
253          */
254         LDKCOption_NoneZ_Some,
255         /**
256          * When we're in this state, this COption_NoneZ contains nothing
257          */
258         LDKCOption_NoneZ_None,
259         
260 }
261
262 /**
263  * An error enum representing a failure to persist a channel monitor update.
264  */
265 export enum ChannelMonitorUpdateErr {
266         /**
267          * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
268         our state failed, but is expected to succeed at some point in the future).
269         
270         Such a failure will \"freeze\" a channel, preventing us from revoking old states or
271         submitting new commitment transactions to the counterparty. Once the update(s) that failed
272         have been successfully applied, a [`MonitorEvent::UpdateCompleted`] event should be returned
273         via [`Watch::release_pending_monitor_events`] which will then restore the channel to an
274         operational state.
275         
276         Note that a given ChannelManager will *never* re-generate a given ChannelMonitorUpdate. If
277         you return a TemporaryFailure you must ensure that it is written to disk safely before
278         writing out the latest ChannelManager state.
279         
280         Even when a channel has been \"frozen\" updates to the ChannelMonitor can continue to occur
281         (eg if an inbound HTLC which we forwarded was claimed upstream resulting in us attempting
282         to claim it on this channel) and those updates must be applied wherever they can be. At
283         least one such updated ChannelMonitor must be persisted otherwise PermanentFailure should
284         be returned to get things on-chain ASAP using only the in-memory copy. Obviously updates to
285         the channel which would invalidate previous ChannelMonitors are not made when a channel has
286         been \"frozen\".
287         
288         Note that even if updates made after TemporaryFailure succeed you must still provide a
289         [`MonitorEvent::UpdateCompleted`] to ensure you have the latest monitor and re-enable
290         normal channel operation. Note that this is normally generated through a call to
291         [`ChainMonitor::channel_monitor_updated`].
292         
293         Note that the update being processed here will not be replayed for you when you return a
294         [`MonitorEvent::UpdateCompleted`] event via [`Watch::release_pending_monitor_events`], so
295         you must store the update itself on your own local disk prior to returning a
296         TemporaryFailure. You may, of course, employ a journaling approach, storing only the
297         ChannelMonitorUpdate on disk without updating the monitor itself, replaying the journal at
298         reload-time.
299         
300         For deployments where a copy of ChannelMonitors and other local state are backed up in a
301         remote location (with local copies persisted immediately), it is anticipated that all
302         updates will return TemporaryFailure until the remote copies could be updated.
303         
304         [`ChainMonitor::channel_monitor_updated`]: chainmonitor::ChainMonitor::channel_monitor_updated
305          */
306         LDKChannelMonitorUpdateErr_TemporaryFailure,
307         /**
308          * Used to indicate no further channel monitor updates will be allowed (eg we've moved on to a
309         different watchtower and cannot update with all watchtowers that were previously informed
310         of this channel).
311         
312         At reception of this error, ChannelManager will force-close the channel and return at
313         least a final ChannelMonitorUpdate::ChannelForceClosed which must be delivered to at
314         least one ChannelMonitor copy. Revocation secret MUST NOT be released and offchain channel
315         update must be rejected.
316         
317         This failure may also signal a failure to update the local persisted copy of one of
318         the channel monitor instance.
319         
320         Note that even when you fail a holder commitment transaction update, you must store the
321         update to ensure you can claim from it in case of a duplicate copy of this ChannelMonitor
322         broadcasts it (e.g distributed channel-monitor deployment)
323         
324         In case of distributed watchtowers deployment, the new version must be written to disk, as
325         state may have been stored but rejected due to a block forcing a commitment broadcast. This
326         storage is used to claim outputs of rejected state confirmed onchain by another watchtower,
327         lagging behind on block processing.
328          */
329         LDKChannelMonitorUpdateErr_PermanentFailure,
330         
331 }
332
333 /**
334  * An enum that represents the speed at which we want a transaction to confirm used for feerate
335  * estimation.
336  */
337 export enum ConfirmationTarget {
338         /**
339          * We are happy with this transaction confirming slowly when feerate drops some.
340          */
341         LDKConfirmationTarget_Background,
342         /**
343          * We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
344          */
345         LDKConfirmationTarget_Normal,
346         /**
347          * We'd like this transaction to confirm in the next few blocks.
348          */
349         LDKConfirmationTarget_HighPriority,
350         
351 }
352
353 /**
354  * Errors that may occur when constructing a new `RawInvoice` or `Invoice`
355  */
356 export enum CreationError {
357         /**
358          * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
359          */
360         LDKCreationError_DescriptionTooLong,
361         /**
362          * The specified route has too many hops and can't be encoded
363          */
364         LDKCreationError_RouteTooLong,
365         /**
366          * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
367          */
368         LDKCreationError_TimestampOutOfBounds,
369         /**
370          * The supplied millisatoshi amount was greater than the total bitcoin supply.
371          */
372         LDKCreationError_InvalidAmount,
373         /**
374          * Route hints were required for this invoice and were missing. Applies to
375         [phantom invoices].
376         
377         [phantom invoices]: crate::utils::create_phantom_invoice
378          */
379         LDKCreationError_MissingRouteHints,
380         
381 }
382
383 /**
384  * Enum representing the crypto currencies (or networks) supported by this library
385  */
386 export enum Currency {
387         /**
388          * Bitcoin mainnet
389          */
390         LDKCurrency_Bitcoin,
391         /**
392          * Bitcoin testnet
393          */
394         LDKCurrency_BitcoinTestnet,
395         /**
396          * Bitcoin regtest
397          */
398         LDKCurrency_Regtest,
399         /**
400          * Bitcoin simnet
401          */
402         LDKCurrency_Simnet,
403         /**
404          * Bitcoin signet
405          */
406         LDKCurrency_Signet,
407         
408 }
409
410 /**
411  * Represents an IO Error. Note that some information is lost in the conversion from Rust.
412  */
413 export enum IOError {
414                 LDKIOError_NotFound,
415                 LDKIOError_PermissionDenied,
416                 LDKIOError_ConnectionRefused,
417                 LDKIOError_ConnectionReset,
418                 LDKIOError_ConnectionAborted,
419                 LDKIOError_NotConnected,
420                 LDKIOError_AddrInUse,
421                 LDKIOError_AddrNotAvailable,
422                 LDKIOError_BrokenPipe,
423                 LDKIOError_AlreadyExists,
424                 LDKIOError_WouldBlock,
425                 LDKIOError_InvalidInput,
426                 LDKIOError_InvalidData,
427                 LDKIOError_TimedOut,
428                 LDKIOError_WriteZero,
429                 LDKIOError_Interrupted,
430                 LDKIOError_Other,
431                 LDKIOError_UnexpectedEof,
432         
433 }
434
435 /**
436  * An enum representing the available verbosity levels of the logger.
437  */
438 export enum Level {
439         /**
440          * Designates extremely verbose information, including gossip-induced messages
441          */
442         LDKLevel_Gossip,
443         /**
444          * Designates very low priority, often extremely verbose, information
445          */
446         LDKLevel_Trace,
447         /**
448          * Designates lower priority information
449          */
450         LDKLevel_Debug,
451         /**
452          * Designates useful information
453          */
454         LDKLevel_Info,
455         /**
456          * Designates hazardous situations
457          */
458         LDKLevel_Warn,
459         /**
460          * Designates very serious errors
461          */
462         LDKLevel_Error,
463         
464 }
465
466 /**
467  * An enum representing the possible Bitcoin or test networks which we can run on
468  */
469 export enum Network {
470         /**
471          * The main Bitcoin blockchain.
472          */
473         LDKNetwork_Bitcoin,
474         /**
475          * The testnet3 blockchain.
476          */
477         LDKNetwork_Testnet,
478         /**
479          * A local test blockchain.
480          */
481         LDKNetwork_Regtest,
482         /**
483          * A blockchain on which blocks are signed instead of mined.
484          */
485         LDKNetwork_Signet,
486         
487 }
488
489 /**
490  * Specifies the recipient of an invoice, to indicate to [`KeysInterface::sign_invoice`] what node
491  * secret key should be used to sign the invoice.
492  */
493 export enum Recipient {
494         /**
495          * The invoice should be signed with the local node secret key.
496          */
497         LDKRecipient_Node,
498         /**
499          * The invoice should be signed with the phantom node secret key. This secret key must be the
500         same for all nodes participating in the [phantom node payment].
501         
502         [phantom node payment]: PhantomKeysManager
503          */
504         LDKRecipient_PhantomNode,
505         
506 }
507
508 /**
509  * Represents an error returned from libsecp256k1 during validation of some secp256k1 data
510  */
511 export enum Secp256k1Error {
512         /**
513          * Signature failed verification
514          */
515         LDKSecp256k1Error_IncorrectSignature,
516         /**
517          * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
518          */
519         LDKSecp256k1Error_InvalidMessage,
520         /**
521          * Bad public key
522          */
523         LDKSecp256k1Error_InvalidPublicKey,
524         /**
525          * Bad signature
526          */
527         LDKSecp256k1Error_InvalidSignature,
528         /**
529          * Bad secret key
530          */
531         LDKSecp256k1Error_InvalidSecretKey,
532         /**
533          * Bad shared secret.
534          */
535         LDKSecp256k1Error_InvalidSharedSecret,
536         /**
537          * Bad recovery id
538          */
539         LDKSecp256k1Error_InvalidRecoveryId,
540         /**
541          * Invalid tweak for add_assign or mul_assign
542          */
543         LDKSecp256k1Error_InvalidTweak,
544         /**
545          * Didn't pass enough memory to context creation with preallocated memory
546          */
547         LDKSecp256k1Error_NotEnoughMemory,
548         /**
549          * Bad set of public keys.
550          */
551         LDKSecp256k1Error_InvalidPublicKeySum,
552         /**
553          * The only valid parity values are 0 or 1.
554          */
555         LDKSecp256k1Error_InvalidParityValue,
556         
557 }
558
559 /**
560  * Errors that may occur when converting a `RawInvoice` to an `Invoice`. They relate to the
561  * requirements sections in BOLT #11
562  */
563 export enum SemanticError {
564         /**
565          * The invoice is missing the mandatory payment hash
566          */
567         LDKSemanticError_NoPaymentHash,
568         /**
569          * The invoice has multiple payment hashes which isn't allowed
570          */
571         LDKSemanticError_MultiplePaymentHashes,
572         /**
573          * No description or description hash are part of the invoice
574          */
575         LDKSemanticError_NoDescription,
576         /**
577          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
578          */
579         LDKSemanticError_MultipleDescriptions,
580         /**
581          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
582         should provide.
583          */
584         LDKSemanticError_NoPaymentSecret,
585         /**
586          * The invoice contains multiple payment secrets
587          */
588         LDKSemanticError_MultiplePaymentSecrets,
589         /**
590          * The invoice's features are invalid
591          */
592         LDKSemanticError_InvalidFeatures,
593         /**
594          * The recovery id doesn't fit the signature/pub key
595          */
596         LDKSemanticError_InvalidRecoveryId,
597         /**
598          * The invoice's signature is invalid
599          */
600         LDKSemanticError_InvalidSignature,
601         /**
602          * The invoice's amount was not a whole number of millisatoshis
603          */
604         LDKSemanticError_ImpreciseAmount,
605         
606 }
607
608 /**
609  * SI prefixes for the human readable part
610  */
611 export enum SiPrefix {
612         /**
613          * 10^-3
614          */
615         LDKSiPrefix_Milli,
616         /**
617          * 10^-6
618          */
619         LDKSiPrefix_Micro,
620         /**
621          * 10^-9
622          */
623         LDKSiPrefix_Nano,
624         /**
625          * 10^-12
626          */
627         LDKSiPrefix_Pico,
628         
629 }
630 /* @internal */
631 export class LDKBech32Error {
632         protected constructor() {}
633 }
634 /* @internal */
635 export function LDKBech32Error_ty_from_ptr(ptr: number): number {
636         if(!isWasmInitialized) {
637                 throw new Error("initializeWasm() must be awaited first!");
638         }
639         const nativeResponseValue = wasm.TS_LDKBech32Error_ty_from_ptr(ptr);
640         return nativeResponseValue;
641 }
642 /* @internal */
643 export function LDKBech32Error_InvalidChar_get_invalid_char(ptr: number): number {
644         if(!isWasmInitialized) {
645                 throw new Error("initializeWasm() must be awaited first!");
646         }
647         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidChar_get_invalid_char(ptr);
648         return nativeResponseValue;
649 }
650 /* @internal */
651 export function LDKBech32Error_InvalidData_get_invalid_data(ptr: number): number {
652         if(!isWasmInitialized) {
653                 throw new Error("initializeWasm() must be awaited first!");
654         }
655         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr);
656         return nativeResponseValue;
657 }
658         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
659 /* @internal */
660 export function TxOut_get_script_pubkey(thing: number): number {
661         if(!isWasmInitialized) {
662                 throw new Error("initializeWasm() must be awaited first!");
663         }
664         const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
665         return nativeResponseValue;
666 }
667         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
668 /* @internal */
669 export function TxOut_get_value(thing: number): bigint {
670         if(!isWasmInitialized) {
671                 throw new Error("initializeWasm() must be awaited first!");
672         }
673         const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
674         return nativeResponseValue;
675 }
676         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
677 /* @internal */
678 export function CResult_NoneNoneZ_get_ok(owner: number): void {
679         if(!isWasmInitialized) {
680                 throw new Error("initializeWasm() must be awaited first!");
681         }
682         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
683         // debug statements here
684 }
685         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
686 /* @internal */
687 export function CResult_NoneNoneZ_get_err(owner: number): void {
688         if(!isWasmInitialized) {
689                 throw new Error("initializeWasm() must be awaited first!");
690         }
691         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
692         // debug statements here
693 }
694         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
695 /* @internal */
696 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: number): number {
697         if(!isWasmInitialized) {
698                 throw new Error("initializeWasm() must be awaited first!");
699         }
700         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
701         return nativeResponseValue;
702 }
703         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
704 /* @internal */
705 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: number): number {
706         if(!isWasmInitialized) {
707                 throw new Error("initializeWasm() must be awaited first!");
708         }
709         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
710         return nativeResponseValue;
711 }
712         // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
713 /* @internal */
714 export function CResult_SecretKeyErrorZ_get_ok(owner: number): number {
715         if(!isWasmInitialized) {
716                 throw new Error("initializeWasm() must be awaited first!");
717         }
718         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_ok(owner);
719         return nativeResponseValue;
720 }
721         // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
722 /* @internal */
723 export function CResult_SecretKeyErrorZ_get_err(owner: number): Secp256k1Error {
724         if(!isWasmInitialized) {
725                 throw new Error("initializeWasm() must be awaited first!");
726         }
727         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_err(owner);
728         return nativeResponseValue;
729 }
730         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
731 /* @internal */
732 export function CResult_PublicKeyErrorZ_get_ok(owner: number): number {
733         if(!isWasmInitialized) {
734                 throw new Error("initializeWasm() must be awaited first!");
735         }
736         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
737         return nativeResponseValue;
738 }
739         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
740 /* @internal */
741 export function CResult_PublicKeyErrorZ_get_err(owner: number): Secp256k1Error {
742         if(!isWasmInitialized) {
743                 throw new Error("initializeWasm() must be awaited first!");
744         }
745         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
746         return nativeResponseValue;
747 }
748         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
749 /* @internal */
750 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: number): number {
751         if(!isWasmInitialized) {
752                 throw new Error("initializeWasm() must be awaited first!");
753         }
754         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
755         return nativeResponseValue;
756 }
757         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
758 /* @internal */
759 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: number): number {
760         if(!isWasmInitialized) {
761                 throw new Error("initializeWasm() must be awaited first!");
762         }
763         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
764         return nativeResponseValue;
765 }
766         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
767 /* @internal */
768 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: number): number {
769         if(!isWasmInitialized) {
770                 throw new Error("initializeWasm() must be awaited first!");
771         }
772         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
773         return nativeResponseValue;
774 }
775         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
776 /* @internal */
777 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: number): number {
778         if(!isWasmInitialized) {
779                 throw new Error("initializeWasm() must be awaited first!");
780         }
781         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
782         return nativeResponseValue;
783 }
784         // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
785 /* @internal */
786 export function CResult_TxCreationKeysErrorZ_get_ok(owner: number): number {
787         if(!isWasmInitialized) {
788                 throw new Error("initializeWasm() must be awaited first!");
789         }
790         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_ok(owner);
791         return nativeResponseValue;
792 }
793         // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
794 /* @internal */
795 export function CResult_TxCreationKeysErrorZ_get_err(owner: number): Secp256k1Error {
796         if(!isWasmInitialized) {
797                 throw new Error("initializeWasm() must be awaited first!");
798         }
799         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_err(owner);
800         return nativeResponseValue;
801 }
802 /* @internal */
803 export class LDKCOption_u32Z {
804         protected constructor() {}
805 }
806 /* @internal */
807 export function LDKCOption_u32Z_ty_from_ptr(ptr: number): number {
808         if(!isWasmInitialized) {
809                 throw new Error("initializeWasm() must be awaited first!");
810         }
811         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
812         return nativeResponseValue;
813 }
814 /* @internal */
815 export function LDKCOption_u32Z_Some_get_some(ptr: number): number {
816         if(!isWasmInitialized) {
817                 throw new Error("initializeWasm() must be awaited first!");
818         }
819         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
820         return nativeResponseValue;
821 }
822         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
823 /* @internal */
824 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: number): number {
825         if(!isWasmInitialized) {
826                 throw new Error("initializeWasm() must be awaited first!");
827         }
828         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
829         return nativeResponseValue;
830 }
831         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
832 /* @internal */
833 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: number): number {
834         if(!isWasmInitialized) {
835                 throw new Error("initializeWasm() must be awaited first!");
836         }
837         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
838         return nativeResponseValue;
839 }
840         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
841 /* @internal */
842 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
843         if(!isWasmInitialized) {
844                 throw new Error("initializeWasm() must be awaited first!");
845         }
846         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
847         return nativeResponseValue;
848 }
849         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
850 /* @internal */
851 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
852         if(!isWasmInitialized) {
853                 throw new Error("initializeWasm() must be awaited first!");
854         }
855         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
856         return nativeResponseValue;
857 }
858         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
859 /* @internal */
860 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
861         if(!isWasmInitialized) {
862                 throw new Error("initializeWasm() must be awaited first!");
863         }
864         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
865         return nativeResponseValue;
866 }
867         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
868 /* @internal */
869 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
870         if(!isWasmInitialized) {
871                 throw new Error("initializeWasm() must be awaited first!");
872         }
873         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
874         return nativeResponseValue;
875 }
876         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
877 /* @internal */
878 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
879         if(!isWasmInitialized) {
880                 throw new Error("initializeWasm() must be awaited first!");
881         }
882         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
883         return nativeResponseValue;
884 }
885         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
886 /* @internal */
887 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
888         if(!isWasmInitialized) {
889                 throw new Error("initializeWasm() must be awaited first!");
890         }
891         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
892         return nativeResponseValue;
893 }
894         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
895 /* @internal */
896 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
897         if(!isWasmInitialized) {
898                 throw new Error("initializeWasm() must be awaited first!");
899         }
900         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
901         return nativeResponseValue;
902 }
903         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
904 /* @internal */
905 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
906         if(!isWasmInitialized) {
907                 throw new Error("initializeWasm() must be awaited first!");
908         }
909         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
910         return nativeResponseValue;
911 }
912         // struct LDKTrustedClosingTransaction *CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
913 /* @internal */
914 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: number): number {
915         if(!isWasmInitialized) {
916                 throw new Error("initializeWasm() must be awaited first!");
917         }
918         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
919         return nativeResponseValue;
920 }
921         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
922 /* @internal */
923 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: number): void {
924         if(!isWasmInitialized) {
925                 throw new Error("initializeWasm() must be awaited first!");
926         }
927         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
928         // debug statements here
929 }
930         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
931 /* @internal */
932 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
933         if(!isWasmInitialized) {
934                 throw new Error("initializeWasm() must be awaited first!");
935         }
936         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
937         return nativeResponseValue;
938 }
939         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
940 /* @internal */
941 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
942         if(!isWasmInitialized) {
943                 throw new Error("initializeWasm() must be awaited first!");
944         }
945         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
946         return nativeResponseValue;
947 }
948         // struct LDKTrustedCommitmentTransaction *CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
949 /* @internal */
950 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: number): number {
951         if(!isWasmInitialized) {
952                 throw new Error("initializeWasm() must be awaited first!");
953         }
954         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
955         return nativeResponseValue;
956 }
957         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
958 /* @internal */
959 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: number): void {
960         if(!isWasmInitialized) {
961                 throw new Error("initializeWasm() must be awaited first!");
962         }
963         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
964         // debug statements here
965 }
966         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
967 /* @internal */
968 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: number): number {
969         if(!isWasmInitialized) {
970                 throw new Error("initializeWasm() must be awaited first!");
971         }
972         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
973         return nativeResponseValue;
974 }
975         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
976 /* @internal */
977 export function CResult_CVec_SignatureZNoneZ_get_err(owner: number): void {
978         if(!isWasmInitialized) {
979                 throw new Error("initializeWasm() must be awaited first!");
980         }
981         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
982         // debug statements here
983 }
984         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
985 /* @internal */
986 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: number): number {
987         if(!isWasmInitialized) {
988                 throw new Error("initializeWasm() must be awaited first!");
989         }
990         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
991         return nativeResponseValue;
992 }
993         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
994 /* @internal */
995 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: number): number {
996         if(!isWasmInitialized) {
997                 throw new Error("initializeWasm() must be awaited first!");
998         }
999         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
1000         return nativeResponseValue;
1001 }
1002         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1003 /* @internal */
1004 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: number): number {
1005         if(!isWasmInitialized) {
1006                 throw new Error("initializeWasm() must be awaited first!");
1007         }
1008         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
1009         return nativeResponseValue;
1010 }
1011         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1012 /* @internal */
1013 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: number): number {
1014         if(!isWasmInitialized) {
1015                 throw new Error("initializeWasm() must be awaited first!");
1016         }
1017         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
1018         return nativeResponseValue;
1019 }
1020         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1021 /* @internal */
1022 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: number): number {
1023         if(!isWasmInitialized) {
1024                 throw new Error("initializeWasm() must be awaited first!");
1025         }
1026         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
1027         return nativeResponseValue;
1028 }
1029         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1030 /* @internal */
1031 export function CResult_RouteHopDecodeErrorZ_get_err(owner: number): number {
1032         if(!isWasmInitialized) {
1033                 throw new Error("initializeWasm() must be awaited first!");
1034         }
1035         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
1036         return nativeResponseValue;
1037 }
1038         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1039 /* @internal */
1040 export function CResult_RouteDecodeErrorZ_get_ok(owner: number): number {
1041         if(!isWasmInitialized) {
1042                 throw new Error("initializeWasm() must be awaited first!");
1043         }
1044         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
1045         return nativeResponseValue;
1046 }
1047         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1048 /* @internal */
1049 export function CResult_RouteDecodeErrorZ_get_err(owner: number): number {
1050         if(!isWasmInitialized) {
1051                 throw new Error("initializeWasm() must be awaited first!");
1052         }
1053         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
1054         return nativeResponseValue;
1055 }
1056         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1057 /* @internal */
1058 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: number): number {
1059         if(!isWasmInitialized) {
1060                 throw new Error("initializeWasm() must be awaited first!");
1061         }
1062         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
1063         return nativeResponseValue;
1064 }
1065         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1066 /* @internal */
1067 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: number): number {
1068         if(!isWasmInitialized) {
1069                 throw new Error("initializeWasm() must be awaited first!");
1070         }
1071         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
1072         return nativeResponseValue;
1073 }
1074 /* @internal */
1075 export class LDKCOption_u64Z {
1076         protected constructor() {}
1077 }
1078 /* @internal */
1079 export function LDKCOption_u64Z_ty_from_ptr(ptr: number): number {
1080         if(!isWasmInitialized) {
1081                 throw new Error("initializeWasm() must be awaited first!");
1082         }
1083         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
1084         return nativeResponseValue;
1085 }
1086 /* @internal */
1087 export function LDKCOption_u64Z_Some_get_some(ptr: number): bigint {
1088         if(!isWasmInitialized) {
1089                 throw new Error("initializeWasm() must be awaited first!");
1090         }
1091         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
1092         return nativeResponseValue;
1093 }
1094         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1095 /* @internal */
1096 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: number): number {
1097         if(!isWasmInitialized) {
1098                 throw new Error("initializeWasm() must be awaited first!");
1099         }
1100         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1101         return nativeResponseValue;
1102 }
1103         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1104 /* @internal */
1105 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: number): number {
1106         if(!isWasmInitialized) {
1107                 throw new Error("initializeWasm() must be awaited first!");
1108         }
1109         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1110         return nativeResponseValue;
1111 }
1112         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1113 /* @internal */
1114 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: number): number {
1115         if(!isWasmInitialized) {
1116                 throw new Error("initializeWasm() must be awaited first!");
1117         }
1118         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1119         return nativeResponseValue;
1120 }
1121         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1122 /* @internal */
1123 export function CResult_RouteHintDecodeErrorZ_get_err(owner: number): number {
1124         if(!isWasmInitialized) {
1125                 throw new Error("initializeWasm() must be awaited first!");
1126         }
1127         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1128         return nativeResponseValue;
1129 }
1130         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1131 /* @internal */
1132 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: number): number {
1133         if(!isWasmInitialized) {
1134                 throw new Error("initializeWasm() must be awaited first!");
1135         }
1136         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1137         return nativeResponseValue;
1138 }
1139         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1140 /* @internal */
1141 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: number): number {
1142         if(!isWasmInitialized) {
1143                 throw new Error("initializeWasm() must be awaited first!");
1144         }
1145         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1146         return nativeResponseValue;
1147 }
1148         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1149 /* @internal */
1150 export function CResult_RouteLightningErrorZ_get_ok(owner: number): number {
1151         if(!isWasmInitialized) {
1152                 throw new Error("initializeWasm() must be awaited first!");
1153         }
1154         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1155         return nativeResponseValue;
1156 }
1157         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1158 /* @internal */
1159 export function CResult_RouteLightningErrorZ_get_err(owner: number): number {
1160         if(!isWasmInitialized) {
1161                 throw new Error("initializeWasm() must be awaited first!");
1162         }
1163         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1164         return nativeResponseValue;
1165 }
1166 /* @internal */
1167 export class LDKPaymentPurpose {
1168         protected constructor() {}
1169 }
1170 /* @internal */
1171 export function LDKPaymentPurpose_ty_from_ptr(ptr: number): number {
1172         if(!isWasmInitialized) {
1173                 throw new Error("initializeWasm() must be awaited first!");
1174         }
1175         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1176         return nativeResponseValue;
1177 }
1178 /* @internal */
1179 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: number): number {
1180         if(!isWasmInitialized) {
1181                 throw new Error("initializeWasm() must be awaited first!");
1182         }
1183         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1184         return nativeResponseValue;
1185 }
1186 /* @internal */
1187 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: number): number {
1188         if(!isWasmInitialized) {
1189                 throw new Error("initializeWasm() must be awaited first!");
1190         }
1191         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1192         return nativeResponseValue;
1193 }
1194 /* @internal */
1195 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: number): number {
1196         if(!isWasmInitialized) {
1197                 throw new Error("initializeWasm() must be awaited first!");
1198         }
1199         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
1200         return nativeResponseValue;
1201 }
1202         // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1203 /* @internal */
1204 export function CResult_PaymentPurposeDecodeErrorZ_get_ok(owner: number): number {
1205         if(!isWasmInitialized) {
1206                 throw new Error("initializeWasm() must be awaited first!");
1207         }
1208         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_ok(owner);
1209         return nativeResponseValue;
1210 }
1211         // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1212 /* @internal */
1213 export function CResult_PaymentPurposeDecodeErrorZ_get_err(owner: number): number {
1214         if(!isWasmInitialized) {
1215                 throw new Error("initializeWasm() must be awaited first!");
1216         }
1217         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_err(owner);
1218         return nativeResponseValue;
1219 }
1220 /* @internal */
1221 export class LDKClosureReason {
1222         protected constructor() {}
1223 }
1224 /* @internal */
1225 export function LDKClosureReason_ty_from_ptr(ptr: number): number {
1226         if(!isWasmInitialized) {
1227                 throw new Error("initializeWasm() must be awaited first!");
1228         }
1229         const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
1230         return nativeResponseValue;
1231 }
1232 /* @internal */
1233 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: number): number {
1234         if(!isWasmInitialized) {
1235                 throw new Error("initializeWasm() must be awaited first!");
1236         }
1237         const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
1238         return nativeResponseValue;
1239 }
1240 /* @internal */
1241 export function LDKClosureReason_ProcessingError_get_err(ptr: number): number {
1242         if(!isWasmInitialized) {
1243                 throw new Error("initializeWasm() must be awaited first!");
1244         }
1245         const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
1246         return nativeResponseValue;
1247 }
1248 /* @internal */
1249 export class LDKCOption_ClosureReasonZ {
1250         protected constructor() {}
1251 }
1252 /* @internal */
1253 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: number): number {
1254         if(!isWasmInitialized) {
1255                 throw new Error("initializeWasm() must be awaited first!");
1256         }
1257         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
1258         return nativeResponseValue;
1259 }
1260 /* @internal */
1261 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: number): number {
1262         if(!isWasmInitialized) {
1263                 throw new Error("initializeWasm() must be awaited first!");
1264         }
1265         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
1266         return nativeResponseValue;
1267 }
1268         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1269 /* @internal */
1270 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: number): number {
1271         if(!isWasmInitialized) {
1272                 throw new Error("initializeWasm() must be awaited first!");
1273         }
1274         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
1275         return nativeResponseValue;
1276 }
1277         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1278 /* @internal */
1279 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: number): number {
1280         if(!isWasmInitialized) {
1281                 throw new Error("initializeWasm() must be awaited first!");
1282         }
1283         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
1284         return nativeResponseValue;
1285 }
1286 /* @internal */
1287 export class LDKNetworkUpdate {
1288         protected constructor() {}
1289 }
1290 /* @internal */
1291 export function LDKNetworkUpdate_ty_from_ptr(ptr: number): number {
1292         if(!isWasmInitialized) {
1293                 throw new Error("initializeWasm() must be awaited first!");
1294         }
1295         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
1296         return nativeResponseValue;
1297 }
1298 /* @internal */
1299 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: number): number {
1300         if(!isWasmInitialized) {
1301                 throw new Error("initializeWasm() must be awaited first!");
1302         }
1303         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
1304         return nativeResponseValue;
1305 }
1306 /* @internal */
1307 export function LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr: number): bigint {
1308         if(!isWasmInitialized) {
1309                 throw new Error("initializeWasm() must be awaited first!");
1310         }
1311         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr);
1312         return nativeResponseValue;
1313 }
1314 /* @internal */
1315 export function LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr: number): boolean {
1316         if(!isWasmInitialized) {
1317                 throw new Error("initializeWasm() must be awaited first!");
1318         }
1319         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr);
1320         return nativeResponseValue;
1321 }
1322 /* @internal */
1323 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: number): number {
1324         if(!isWasmInitialized) {
1325                 throw new Error("initializeWasm() must be awaited first!");
1326         }
1327         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
1328         return nativeResponseValue;
1329 }
1330 /* @internal */
1331 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: number): boolean {
1332         if(!isWasmInitialized) {
1333                 throw new Error("initializeWasm() must be awaited first!");
1334         }
1335         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
1336         return nativeResponseValue;
1337 }
1338 /* @internal */
1339 export class LDKCOption_NetworkUpdateZ {
1340         protected constructor() {}
1341 }
1342 /* @internal */
1343 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: number): number {
1344         if(!isWasmInitialized) {
1345                 throw new Error("initializeWasm() must be awaited first!");
1346         }
1347         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
1348         return nativeResponseValue;
1349 }
1350 /* @internal */
1351 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: number): number {
1352         if(!isWasmInitialized) {
1353                 throw new Error("initializeWasm() must be awaited first!");
1354         }
1355         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
1356         return nativeResponseValue;
1357 }
1358 /* @internal */
1359 export class LDKSpendableOutputDescriptor {
1360         protected constructor() {}
1361 }
1362 /* @internal */
1363 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: number): number {
1364         if(!isWasmInitialized) {
1365                 throw new Error("initializeWasm() must be awaited first!");
1366         }
1367         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
1368         return nativeResponseValue;
1369 }
1370 /* @internal */
1371 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: number): number {
1372         if(!isWasmInitialized) {
1373                 throw new Error("initializeWasm() must be awaited first!");
1374         }
1375         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
1376         return nativeResponseValue;
1377 }
1378 /* @internal */
1379 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: number): number {
1380         if(!isWasmInitialized) {
1381                 throw new Error("initializeWasm() must be awaited first!");
1382         }
1383         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
1384         return nativeResponseValue;
1385 }
1386 /* @internal */
1387 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: number): number {
1388         if(!isWasmInitialized) {
1389                 throw new Error("initializeWasm() must be awaited first!");
1390         }
1391         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
1392         return nativeResponseValue;
1393 }
1394 /* @internal */
1395 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: number): number {
1396         if(!isWasmInitialized) {
1397                 throw new Error("initializeWasm() must be awaited first!");
1398         }
1399         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
1400         return nativeResponseValue;
1401 }
1402 /* @internal */
1403 export class LDKEvent {
1404         protected constructor() {}
1405 }
1406 /* @internal */
1407 export function LDKEvent_ty_from_ptr(ptr: number): number {
1408         if(!isWasmInitialized) {
1409                 throw new Error("initializeWasm() must be awaited first!");
1410         }
1411         const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
1412         return nativeResponseValue;
1413 }
1414 /* @internal */
1415 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: number): number {
1416         if(!isWasmInitialized) {
1417                 throw new Error("initializeWasm() must be awaited first!");
1418         }
1419         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
1420         return nativeResponseValue;
1421 }
1422 /* @internal */
1423 export function LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr: number): number {
1424         if(!isWasmInitialized) {
1425                 throw new Error("initializeWasm() must be awaited first!");
1426         }
1427         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr);
1428         return nativeResponseValue;
1429 }
1430 /* @internal */
1431 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: number): bigint {
1432         if(!isWasmInitialized) {
1433                 throw new Error("initializeWasm() must be awaited first!");
1434         }
1435         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
1436         return nativeResponseValue;
1437 }
1438 /* @internal */
1439 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: number): number {
1440         if(!isWasmInitialized) {
1441                 throw new Error("initializeWasm() must be awaited first!");
1442         }
1443         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
1444         return nativeResponseValue;
1445 }
1446 /* @internal */
1447 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: number): bigint {
1448         if(!isWasmInitialized) {
1449                 throw new Error("initializeWasm() must be awaited first!");
1450         }
1451         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
1452         return nativeResponseValue;
1453 }
1454 /* @internal */
1455 export function LDKEvent_PaymentReceived_get_payment_hash(ptr: number): number {
1456         if(!isWasmInitialized) {
1457                 throw new Error("initializeWasm() must be awaited first!");
1458         }
1459         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_payment_hash(ptr);
1460         return nativeResponseValue;
1461 }
1462 /* @internal */
1463 export function LDKEvent_PaymentReceived_get_amount_msat(ptr: number): bigint {
1464         if(!isWasmInitialized) {
1465                 throw new Error("initializeWasm() must be awaited first!");
1466         }
1467         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_amount_msat(ptr);
1468         return nativeResponseValue;
1469 }
1470 /* @internal */
1471 export function LDKEvent_PaymentReceived_get_purpose(ptr: number): number {
1472         if(!isWasmInitialized) {
1473                 throw new Error("initializeWasm() must be awaited first!");
1474         }
1475         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_purpose(ptr);
1476         return nativeResponseValue;
1477 }
1478 /* @internal */
1479 export function LDKEvent_PaymentClaimed_get_payment_hash(ptr: number): number {
1480         if(!isWasmInitialized) {
1481                 throw new Error("initializeWasm() must be awaited first!");
1482         }
1483         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_payment_hash(ptr);
1484         return nativeResponseValue;
1485 }
1486 /* @internal */
1487 export function LDKEvent_PaymentClaimed_get_amount_msat(ptr: number): bigint {
1488         if(!isWasmInitialized) {
1489                 throw new Error("initializeWasm() must be awaited first!");
1490         }
1491         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_amount_msat(ptr);
1492         return nativeResponseValue;
1493 }
1494 /* @internal */
1495 export function LDKEvent_PaymentClaimed_get_purpose(ptr: number): number {
1496         if(!isWasmInitialized) {
1497                 throw new Error("initializeWasm() must be awaited first!");
1498         }
1499         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_purpose(ptr);
1500         return nativeResponseValue;
1501 }
1502 /* @internal */
1503 export function LDKEvent_PaymentSent_get_payment_id(ptr: number): number {
1504         if(!isWasmInitialized) {
1505                 throw new Error("initializeWasm() must be awaited first!");
1506         }
1507         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
1508         return nativeResponseValue;
1509 }
1510 /* @internal */
1511 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: number): number {
1512         if(!isWasmInitialized) {
1513                 throw new Error("initializeWasm() must be awaited first!");
1514         }
1515         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
1516         return nativeResponseValue;
1517 }
1518 /* @internal */
1519 export function LDKEvent_PaymentSent_get_payment_hash(ptr: number): number {
1520         if(!isWasmInitialized) {
1521                 throw new Error("initializeWasm() must be awaited first!");
1522         }
1523         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
1524         return nativeResponseValue;
1525 }
1526 /* @internal */
1527 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: number): number {
1528         if(!isWasmInitialized) {
1529                 throw new Error("initializeWasm() must be awaited first!");
1530         }
1531         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
1532         return nativeResponseValue;
1533 }
1534 /* @internal */
1535 export function LDKEvent_PaymentFailed_get_payment_id(ptr: number): number {
1536         if(!isWasmInitialized) {
1537                 throw new Error("initializeWasm() must be awaited first!");
1538         }
1539         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_id(ptr);
1540         return nativeResponseValue;
1541 }
1542 /* @internal */
1543 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: number): number {
1544         if(!isWasmInitialized) {
1545                 throw new Error("initializeWasm() must be awaited first!");
1546         }
1547         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
1548         return nativeResponseValue;
1549 }
1550 /* @internal */
1551 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: number): number {
1552         if(!isWasmInitialized) {
1553                 throw new Error("initializeWasm() must be awaited first!");
1554         }
1555         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
1556         return nativeResponseValue;
1557 }
1558 /* @internal */
1559 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: number): number {
1560         if(!isWasmInitialized) {
1561                 throw new Error("initializeWasm() must be awaited first!");
1562         }
1563         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
1564         return nativeResponseValue;
1565 }
1566 /* @internal */
1567 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: number): number {
1568         if(!isWasmInitialized) {
1569                 throw new Error("initializeWasm() must be awaited first!");
1570         }
1571         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
1572         return nativeResponseValue;
1573 }
1574 /* @internal */
1575 export function LDKEvent_PaymentPathFailed_get_payment_id(ptr: number): number {
1576         if(!isWasmInitialized) {
1577                 throw new Error("initializeWasm() must be awaited first!");
1578         }
1579         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_id(ptr);
1580         return nativeResponseValue;
1581 }
1582 /* @internal */
1583 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: number): number {
1584         if(!isWasmInitialized) {
1585                 throw new Error("initializeWasm() must be awaited first!");
1586         }
1587         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
1588         return nativeResponseValue;
1589 }
1590 /* @internal */
1591 export function LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr: number): boolean {
1592         if(!isWasmInitialized) {
1593                 throw new Error("initializeWasm() must be awaited first!");
1594         }
1595         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr);
1596         return nativeResponseValue;
1597 }
1598 /* @internal */
1599 export function LDKEvent_PaymentPathFailed_get_network_update(ptr: number): number {
1600         if(!isWasmInitialized) {
1601                 throw new Error("initializeWasm() must be awaited first!");
1602         }
1603         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_network_update(ptr);
1604         return nativeResponseValue;
1605 }
1606 /* @internal */
1607 export function LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr: number): boolean {
1608         if(!isWasmInitialized) {
1609                 throw new Error("initializeWasm() must be awaited first!");
1610         }
1611         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr);
1612         return nativeResponseValue;
1613 }
1614 /* @internal */
1615 export function LDKEvent_PaymentPathFailed_get_path(ptr: number): number {
1616         if(!isWasmInitialized) {
1617                 throw new Error("initializeWasm() must be awaited first!");
1618         }
1619         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
1620         return nativeResponseValue;
1621 }
1622 /* @internal */
1623 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: number): number {
1624         if(!isWasmInitialized) {
1625                 throw new Error("initializeWasm() must be awaited first!");
1626         }
1627         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
1628         return nativeResponseValue;
1629 }
1630 /* @internal */
1631 export function LDKEvent_PaymentPathFailed_get_retry(ptr: number): number {
1632         if(!isWasmInitialized) {
1633                 throw new Error("initializeWasm() must be awaited first!");
1634         }
1635         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_retry(ptr);
1636         return nativeResponseValue;
1637 }
1638 /* @internal */
1639 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: number): bigint {
1640         if(!isWasmInitialized) {
1641                 throw new Error("initializeWasm() must be awaited first!");
1642         }
1643         const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
1644         return nativeResponseValue;
1645 }
1646 /* @internal */
1647 export function LDKEvent_SpendableOutputs_get_outputs(ptr: number): number {
1648         if(!isWasmInitialized) {
1649                 throw new Error("initializeWasm() must be awaited first!");
1650         }
1651         const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
1652         return nativeResponseValue;
1653 }
1654 /* @internal */
1655 export function LDKEvent_PaymentForwarded_get_prev_channel_id(ptr: number): number {
1656         if(!isWasmInitialized) {
1657                 throw new Error("initializeWasm() must be awaited first!");
1658         }
1659         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_prev_channel_id(ptr);
1660         return nativeResponseValue;
1661 }
1662 /* @internal */
1663 export function LDKEvent_PaymentForwarded_get_next_channel_id(ptr: number): number {
1664         if(!isWasmInitialized) {
1665                 throw new Error("initializeWasm() must be awaited first!");
1666         }
1667         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_next_channel_id(ptr);
1668         return nativeResponseValue;
1669 }
1670 /* @internal */
1671 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: number): number {
1672         if(!isWasmInitialized) {
1673                 throw new Error("initializeWasm() must be awaited first!");
1674         }
1675         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
1676         return nativeResponseValue;
1677 }
1678 /* @internal */
1679 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: number): boolean {
1680         if(!isWasmInitialized) {
1681                 throw new Error("initializeWasm() must be awaited first!");
1682         }
1683         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
1684         return nativeResponseValue;
1685 }
1686 /* @internal */
1687 export function LDKEvent_ChannelClosed_get_channel_id(ptr: number): number {
1688         if(!isWasmInitialized) {
1689                 throw new Error("initializeWasm() must be awaited first!");
1690         }
1691         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
1692         return nativeResponseValue;
1693 }
1694 /* @internal */
1695 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: number): bigint {
1696         if(!isWasmInitialized) {
1697                 throw new Error("initializeWasm() must be awaited first!");
1698         }
1699         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
1700         return nativeResponseValue;
1701 }
1702 /* @internal */
1703 export function LDKEvent_ChannelClosed_get_reason(ptr: number): number {
1704         if(!isWasmInitialized) {
1705                 throw new Error("initializeWasm() must be awaited first!");
1706         }
1707         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
1708         return nativeResponseValue;
1709 }
1710 /* @internal */
1711 export function LDKEvent_DiscardFunding_get_channel_id(ptr: number): number {
1712         if(!isWasmInitialized) {
1713                 throw new Error("initializeWasm() must be awaited first!");
1714         }
1715         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
1716         return nativeResponseValue;
1717 }
1718 /* @internal */
1719 export function LDKEvent_DiscardFunding_get_transaction(ptr: number): number {
1720         if(!isWasmInitialized) {
1721                 throw new Error("initializeWasm() must be awaited first!");
1722         }
1723         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
1724         return nativeResponseValue;
1725 }
1726 /* @internal */
1727 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: number): number {
1728         if(!isWasmInitialized) {
1729                 throw new Error("initializeWasm() must be awaited first!");
1730         }
1731         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
1732         return nativeResponseValue;
1733 }
1734 /* @internal */
1735 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: number): number {
1736         if(!isWasmInitialized) {
1737                 throw new Error("initializeWasm() must be awaited first!");
1738         }
1739         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
1740         return nativeResponseValue;
1741 }
1742 /* @internal */
1743 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: number): bigint {
1744         if(!isWasmInitialized) {
1745                 throw new Error("initializeWasm() must be awaited first!");
1746         }
1747         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
1748         return nativeResponseValue;
1749 }
1750 /* @internal */
1751 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: number): bigint {
1752         if(!isWasmInitialized) {
1753                 throw new Error("initializeWasm() must be awaited first!");
1754         }
1755         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
1756         return nativeResponseValue;
1757 }
1758 /* @internal */
1759 export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: number): number {
1760         if(!isWasmInitialized) {
1761                 throw new Error("initializeWasm() must be awaited first!");
1762         }
1763         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_channel_type(ptr);
1764         return nativeResponseValue;
1765 }
1766 /* @internal */
1767 export class LDKCOption_EventZ {
1768         protected constructor() {}
1769 }
1770 /* @internal */
1771 export function LDKCOption_EventZ_ty_from_ptr(ptr: number): number {
1772         if(!isWasmInitialized) {
1773                 throw new Error("initializeWasm() must be awaited first!");
1774         }
1775         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
1776         return nativeResponseValue;
1777 }
1778 /* @internal */
1779 export function LDKCOption_EventZ_Some_get_some(ptr: number): number {
1780         if(!isWasmInitialized) {
1781                 throw new Error("initializeWasm() must be awaited first!");
1782         }
1783         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
1784         return nativeResponseValue;
1785 }
1786         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1787 /* @internal */
1788 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: number): number {
1789         if(!isWasmInitialized) {
1790                 throw new Error("initializeWasm() must be awaited first!");
1791         }
1792         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
1793         return nativeResponseValue;
1794 }
1795         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1796 /* @internal */
1797 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: number): number {
1798         if(!isWasmInitialized) {
1799                 throw new Error("initializeWasm() must be awaited first!");
1800         }
1801         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
1802         return nativeResponseValue;
1803 }
1804 /* @internal */
1805 export class LDKErrorAction {
1806         protected constructor() {}
1807 }
1808 /* @internal */
1809 export function LDKErrorAction_ty_from_ptr(ptr: number): number {
1810         if(!isWasmInitialized) {
1811                 throw new Error("initializeWasm() must be awaited first!");
1812         }
1813         const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
1814         return nativeResponseValue;
1815 }
1816 /* @internal */
1817 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: number): number {
1818         if(!isWasmInitialized) {
1819                 throw new Error("initializeWasm() must be awaited first!");
1820         }
1821         const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
1822         return nativeResponseValue;
1823 }
1824 /* @internal */
1825 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: number): Level {
1826         if(!isWasmInitialized) {
1827                 throw new Error("initializeWasm() must be awaited first!");
1828         }
1829         const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
1830         return nativeResponseValue;
1831 }
1832 /* @internal */
1833 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: number): number {
1834         if(!isWasmInitialized) {
1835                 throw new Error("initializeWasm() must be awaited first!");
1836         }
1837         const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
1838         return nativeResponseValue;
1839 }
1840 /* @internal */
1841 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: number): number {
1842         if(!isWasmInitialized) {
1843                 throw new Error("initializeWasm() must be awaited first!");
1844         }
1845         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
1846         return nativeResponseValue;
1847 }
1848 /* @internal */
1849 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: number): Level {
1850         if(!isWasmInitialized) {
1851                 throw new Error("initializeWasm() must be awaited first!");
1852         }
1853         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
1854         return nativeResponseValue;
1855 }
1856 /* @internal */
1857 export class LDKMessageSendEvent {
1858         protected constructor() {}
1859 }
1860 /* @internal */
1861 export function LDKMessageSendEvent_ty_from_ptr(ptr: number): number {
1862         if(!isWasmInitialized) {
1863                 throw new Error("initializeWasm() must be awaited first!");
1864         }
1865         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
1866         return nativeResponseValue;
1867 }
1868 /* @internal */
1869 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: number): number {
1870         if(!isWasmInitialized) {
1871                 throw new Error("initializeWasm() must be awaited first!");
1872         }
1873         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1874         return nativeResponseValue;
1875 }
1876 /* @internal */
1877 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: number): number {
1878         if(!isWasmInitialized) {
1879                 throw new Error("initializeWasm() must be awaited first!");
1880         }
1881         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1882         return nativeResponseValue;
1883 }
1884 /* @internal */
1885 export function LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr: number): number {
1886         if(!isWasmInitialized) {
1887                 throw new Error("initializeWasm() must be awaited first!");
1888         }
1889         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
1890         return nativeResponseValue;
1891 }
1892 /* @internal */
1893 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: number): number {
1894         if(!isWasmInitialized) {
1895                 throw new Error("initializeWasm() must be awaited first!");
1896         }
1897         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1898         return nativeResponseValue;
1899 }
1900 /* @internal */
1901 export function LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr: number): number {
1902         if(!isWasmInitialized) {
1903                 throw new Error("initializeWasm() must be awaited first!");
1904         }
1905         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
1906         return nativeResponseValue;
1907 }
1908 /* @internal */
1909 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: number): number {
1910         if(!isWasmInitialized) {
1911                 throw new Error("initializeWasm() must be awaited first!");
1912         }
1913         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1914         return nativeResponseValue;
1915 }
1916 /* @internal */
1917 export function LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr: number): number {
1918         if(!isWasmInitialized) {
1919                 throw new Error("initializeWasm() must be awaited first!");
1920         }
1921         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
1922         return nativeResponseValue;
1923 }
1924 /* @internal */
1925 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: number): number {
1926         if(!isWasmInitialized) {
1927                 throw new Error("initializeWasm() must be awaited first!");
1928         }
1929         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1930         return nativeResponseValue;
1931 }
1932 /* @internal */
1933 export function LDKMessageSendEvent_SendChannelReady_get_node_id(ptr: number): number {
1934         if(!isWasmInitialized) {
1935                 throw new Error("initializeWasm() must be awaited first!");
1936         }
1937         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_node_id(ptr);
1938         return nativeResponseValue;
1939 }
1940 /* @internal */
1941 export function LDKMessageSendEvent_SendChannelReady_get_msg(ptr: number): number {
1942         if(!isWasmInitialized) {
1943                 throw new Error("initializeWasm() must be awaited first!");
1944         }
1945         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
1946         return nativeResponseValue;
1947 }
1948 /* @internal */
1949 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr: number): number {
1950         if(!isWasmInitialized) {
1951                 throw new Error("initializeWasm() must be awaited first!");
1952         }
1953         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
1954         return nativeResponseValue;
1955 }
1956 /* @internal */
1957 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: number): number {
1958         if(!isWasmInitialized) {
1959                 throw new Error("initializeWasm() must be awaited first!");
1960         }
1961         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1962         return nativeResponseValue;
1963 }
1964 /* @internal */
1965 export function LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr: number): number {
1966         if(!isWasmInitialized) {
1967                 throw new Error("initializeWasm() must be awaited first!");
1968         }
1969         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
1970         return nativeResponseValue;
1971 }
1972 /* @internal */
1973 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: number): number {
1974         if(!isWasmInitialized) {
1975                 throw new Error("initializeWasm() must be awaited first!");
1976         }
1977         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1978         return nativeResponseValue;
1979 }
1980 /* @internal */
1981 export function LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr: number): number {
1982         if(!isWasmInitialized) {
1983                 throw new Error("initializeWasm() must be awaited first!");
1984         }
1985         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
1986         return nativeResponseValue;
1987 }
1988 /* @internal */
1989 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: number): number {
1990         if(!isWasmInitialized) {
1991                 throw new Error("initializeWasm() must be awaited first!");
1992         }
1993         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1994         return nativeResponseValue;
1995 }
1996 /* @internal */
1997 export function LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr: number): number {
1998         if(!isWasmInitialized) {
1999                 throw new Error("initializeWasm() must be awaited first!");
2000         }
2001         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
2002         return nativeResponseValue;
2003 }
2004 /* @internal */
2005 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: number): number {
2006         if(!isWasmInitialized) {
2007                 throw new Error("initializeWasm() must be awaited first!");
2008         }
2009         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
2010         return nativeResponseValue;
2011 }
2012 /* @internal */
2013 export function LDKMessageSendEvent_SendShutdown_get_node_id(ptr: number): number {
2014         if(!isWasmInitialized) {
2015                 throw new Error("initializeWasm() must be awaited first!");
2016         }
2017         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
2018         return nativeResponseValue;
2019 }
2020 /* @internal */
2021 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: number): number {
2022         if(!isWasmInitialized) {
2023                 throw new Error("initializeWasm() must be awaited first!");
2024         }
2025         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
2026         return nativeResponseValue;
2027 }
2028 /* @internal */
2029 export function LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr: number): number {
2030         if(!isWasmInitialized) {
2031                 throw new Error("initializeWasm() must be awaited first!");
2032         }
2033         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
2034         return nativeResponseValue;
2035 }
2036 /* @internal */
2037 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: number): number {
2038         if(!isWasmInitialized) {
2039                 throw new Error("initializeWasm() must be awaited first!");
2040         }
2041         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
2042         return nativeResponseValue;
2043 }
2044 /* @internal */
2045 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: number): number {
2046         if(!isWasmInitialized) {
2047                 throw new Error("initializeWasm() must be awaited first!");
2048         }
2049         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
2050         return nativeResponseValue;
2051 }
2052 /* @internal */
2053 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: number): number {
2054         if(!isWasmInitialized) {
2055                 throw new Error("initializeWasm() must be awaited first!");
2056         }
2057         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
2058         return nativeResponseValue;
2059 }
2060 /* @internal */
2061 export function LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr: number): number {
2062         if(!isWasmInitialized) {
2063                 throw new Error("initializeWasm() must be awaited first!");
2064         }
2065         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
2066         return nativeResponseValue;
2067 }
2068 /* @internal */
2069 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: number): number {
2070         if(!isWasmInitialized) {
2071                 throw new Error("initializeWasm() must be awaited first!");
2072         }
2073         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
2074         return nativeResponseValue;
2075 }
2076 /* @internal */
2077 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: number): number {
2078         if(!isWasmInitialized) {
2079                 throw new Error("initializeWasm() must be awaited first!");
2080         }
2081         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
2082         return nativeResponseValue;
2083 }
2084 /* @internal */
2085 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: number): number {
2086         if(!isWasmInitialized) {
2087                 throw new Error("initializeWasm() must be awaited first!");
2088         }
2089         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
2090         return nativeResponseValue;
2091 }
2092 /* @internal */
2093 export function LDKMessageSendEvent_HandleError_get_node_id(ptr: number): number {
2094         if(!isWasmInitialized) {
2095                 throw new Error("initializeWasm() must be awaited first!");
2096         }
2097         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_node_id(ptr);
2098         return nativeResponseValue;
2099 }
2100 /* @internal */
2101 export function LDKMessageSendEvent_HandleError_get_action(ptr: number): number {
2102         if(!isWasmInitialized) {
2103                 throw new Error("initializeWasm() must be awaited first!");
2104         }
2105         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
2106         return nativeResponseValue;
2107 }
2108 /* @internal */
2109 export function LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr: number): number {
2110         if(!isWasmInitialized) {
2111                 throw new Error("initializeWasm() must be awaited first!");
2112         }
2113         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
2114         return nativeResponseValue;
2115 }
2116 /* @internal */
2117 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: number): number {
2118         if(!isWasmInitialized) {
2119                 throw new Error("initializeWasm() must be awaited first!");
2120         }
2121         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
2122         return nativeResponseValue;
2123 }
2124 /* @internal */
2125 export function LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr: number): number {
2126         if(!isWasmInitialized) {
2127                 throw new Error("initializeWasm() must be awaited first!");
2128         }
2129         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
2130         return nativeResponseValue;
2131 }
2132 /* @internal */
2133 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: number): number {
2134         if(!isWasmInitialized) {
2135                 throw new Error("initializeWasm() must be awaited first!");
2136         }
2137         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
2138         return nativeResponseValue;
2139 }
2140 /* @internal */
2141 export function LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr: number): number {
2142         if(!isWasmInitialized) {
2143                 throw new Error("initializeWasm() must be awaited first!");
2144         }
2145         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
2146         return nativeResponseValue;
2147 }
2148 /* @internal */
2149 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: number): number {
2150         if(!isWasmInitialized) {
2151                 throw new Error("initializeWasm() must be awaited first!");
2152         }
2153         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
2154         return nativeResponseValue;
2155 }
2156 /* @internal */
2157 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr: number): number {
2158         if(!isWasmInitialized) {
2159                 throw new Error("initializeWasm() must be awaited first!");
2160         }
2161         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
2162         return nativeResponseValue;
2163 }
2164 /* @internal */
2165 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr: number): number {
2166         if(!isWasmInitialized) {
2167                 throw new Error("initializeWasm() must be awaited first!");
2168         }
2169         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
2170         return nativeResponseValue;
2171 }
2172         // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2173 /* @internal */
2174 export function CResult_TxOutAccessErrorZ_get_ok(owner: number): number {
2175         if(!isWasmInitialized) {
2176                 throw new Error("initializeWasm() must be awaited first!");
2177         }
2178         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_ok(owner);
2179         return nativeResponseValue;
2180 }
2181         // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2182 /* @internal */
2183 export function CResult_TxOutAccessErrorZ_get_err(owner: number): AccessError {
2184         if(!isWasmInitialized) {
2185                 throw new Error("initializeWasm() must be awaited first!");
2186         }
2187         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_err(owner);
2188         return nativeResponseValue;
2189 }
2190         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2191 /* @internal */
2192 export function C2Tuple_usizeTransactionZ_get_a(owner: number): number {
2193         if(!isWasmInitialized) {
2194                 throw new Error("initializeWasm() must be awaited first!");
2195         }
2196         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
2197         return nativeResponseValue;
2198 }
2199         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2200 /* @internal */
2201 export function C2Tuple_usizeTransactionZ_get_b(owner: number): number {
2202         if(!isWasmInitialized) {
2203                 throw new Error("initializeWasm() must be awaited first!");
2204         }
2205         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
2206         return nativeResponseValue;
2207 }
2208         // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2209 /* @internal */
2210 export function CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner: number): void {
2211         if(!isWasmInitialized) {
2212                 throw new Error("initializeWasm() must be awaited first!");
2213         }
2214         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner);
2215         // debug statements here
2216 }
2217         // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2218 /* @internal */
2219 export function CResult_NoneChannelMonitorUpdateErrZ_get_err(owner: number): ChannelMonitorUpdateErr {
2220         if(!isWasmInitialized) {
2221                 throw new Error("initializeWasm() must be awaited first!");
2222         }
2223         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_err(owner);
2224         return nativeResponseValue;
2225 }
2226 /* @internal */
2227 export class LDKMonitorEvent {
2228         protected constructor() {}
2229 }
2230 /* @internal */
2231 export function LDKMonitorEvent_ty_from_ptr(ptr: number): number {
2232         if(!isWasmInitialized) {
2233                 throw new Error("initializeWasm() must be awaited first!");
2234         }
2235         const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
2236         return nativeResponseValue;
2237 }
2238 /* @internal */
2239 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: number): number {
2240         if(!isWasmInitialized) {
2241                 throw new Error("initializeWasm() must be awaited first!");
2242         }
2243         const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
2244         return nativeResponseValue;
2245 }
2246 /* @internal */
2247 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: number): number {
2248         if(!isWasmInitialized) {
2249                 throw new Error("initializeWasm() must be awaited first!");
2250         }
2251         const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
2252         return nativeResponseValue;
2253 }
2254 /* @internal */
2255 export function LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr: number): number {
2256         if(!isWasmInitialized) {
2257                 throw new Error("initializeWasm() must be awaited first!");
2258         }
2259         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr);
2260         return nativeResponseValue;
2261 }
2262 /* @internal */
2263 export function LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr: number): bigint {
2264         if(!isWasmInitialized) {
2265                 throw new Error("initializeWasm() must be awaited first!");
2266         }
2267         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr);
2268         return nativeResponseValue;
2269 }
2270 /* @internal */
2271 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: number): number {
2272         if(!isWasmInitialized) {
2273                 throw new Error("initializeWasm() must be awaited first!");
2274         }
2275         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
2276         return nativeResponseValue;
2277 }
2278         // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorEventZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
2279 /* @internal */
2280 export function C2Tuple_OutPointCVec_MonitorEventZZ_get_a(owner: number): number {
2281         if(!isWasmInitialized) {
2282                 throw new Error("initializeWasm() must be awaited first!");
2283         }
2284         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_get_a(owner);
2285         return nativeResponseValue;
2286 }
2287         // struct LDKCVec_MonitorEventZ C2Tuple_OutPointCVec_MonitorEventZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
2288 /* @internal */
2289 export function C2Tuple_OutPointCVec_MonitorEventZZ_get_b(owner: number): number {
2290         if(!isWasmInitialized) {
2291                 throw new Error("initializeWasm() must be awaited first!");
2292         }
2293         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_get_b(owner);
2294         return nativeResponseValue;
2295 }
2296 /* @internal */
2297 export class LDKCOption_C2Tuple_usizeTransactionZZ {
2298         protected constructor() {}
2299 }
2300 /* @internal */
2301 export function LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr: number): number {
2302         if(!isWasmInitialized) {
2303                 throw new Error("initializeWasm() must be awaited first!");
2304         }
2305         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr);
2306         return nativeResponseValue;
2307 }
2308 /* @internal */
2309 export function LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr: number): number {
2310         if(!isWasmInitialized) {
2311                 throw new Error("initializeWasm() must be awaited first!");
2312         }
2313         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr);
2314         return nativeResponseValue;
2315 }
2316         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2317 /* @internal */
2318 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: number): number {
2319         if(!isWasmInitialized) {
2320                 throw new Error("initializeWasm() must be awaited first!");
2321         }
2322         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
2323         return nativeResponseValue;
2324 }
2325         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2326 /* @internal */
2327 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: number): number {
2328         if(!isWasmInitialized) {
2329                 throw new Error("initializeWasm() must be awaited first!");
2330         }
2331         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
2332         return nativeResponseValue;
2333 }
2334         // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
2335 /* @internal */
2336 export function C2Tuple_u64u64Z_get_a(owner: number): bigint {
2337         if(!isWasmInitialized) {
2338                 throw new Error("initializeWasm() must be awaited first!");
2339         }
2340         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_a(owner);
2341         return nativeResponseValue;
2342 }
2343         // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
2344 /* @internal */
2345 export function C2Tuple_u64u64Z_get_b(owner: number): bigint {
2346         if(!isWasmInitialized) {
2347                 throw new Error("initializeWasm() must be awaited first!");
2348         }
2349         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_b(owner);
2350         return nativeResponseValue;
2351 }
2352 /* @internal */
2353 export class LDKCOption_C2Tuple_u64u64ZZ {
2354         protected constructor() {}
2355 }
2356 /* @internal */
2357 export function LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr: number): number {
2358         if(!isWasmInitialized) {
2359                 throw new Error("initializeWasm() must be awaited first!");
2360         }
2361         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr);
2362         return nativeResponseValue;
2363 }
2364 /* @internal */
2365 export function LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr: number): number {
2366         if(!isWasmInitialized) {
2367                 throw new Error("initializeWasm() must be awaited first!");
2368         }
2369         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr);
2370         return nativeResponseValue;
2371 }
2372 /* @internal */
2373 export interface LDKLogger {
2374         log (record: number): void;
2375 }
2376
2377 /* @internal */
2378 export function LDKLogger_new(impl: LDKLogger): number {
2379         if(!isWasmInitialized) {
2380                 throw new Error("initializeWasm() must be awaited first!");
2381         }
2382         var new_obj_idx = js_objs.length;
2383         for (var i = 0; i < js_objs.length; i++) {
2384                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2385         }
2386         js_objs[i] = new WeakRef(impl);
2387         return wasm.TS_LDKLogger_new(i);
2388 }
2389         // struct LDKProbabilisticScorer *CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2390 /* @internal */
2391 export function CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner: number): number {
2392         if(!isWasmInitialized) {
2393                 throw new Error("initializeWasm() must be awaited first!");
2394         }
2395         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner);
2396         return nativeResponseValue;
2397 }
2398         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2399 /* @internal */
2400 export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: number): number {
2401         if(!isWasmInitialized) {
2402                 throw new Error("initializeWasm() must be awaited first!");
2403         }
2404         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner);
2405         return nativeResponseValue;
2406 }
2407         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2408 /* @internal */
2409 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: number): number {
2410         if(!isWasmInitialized) {
2411                 throw new Error("initializeWasm() must be awaited first!");
2412         }
2413         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
2414         return nativeResponseValue;
2415 }
2416         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2417 /* @internal */
2418 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: number): number {
2419         if(!isWasmInitialized) {
2420                 throw new Error("initializeWasm() must be awaited first!");
2421         }
2422         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
2423         return nativeResponseValue;
2424 }
2425         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2426 /* @internal */
2427 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: number): number {
2428         if(!isWasmInitialized) {
2429                 throw new Error("initializeWasm() must be awaited first!");
2430         }
2431         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
2432         return nativeResponseValue;
2433 }
2434         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2435 /* @internal */
2436 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: number): number {
2437         if(!isWasmInitialized) {
2438                 throw new Error("initializeWasm() must be awaited first!");
2439         }
2440         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
2441         return nativeResponseValue;
2442 }
2443         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2444 /* @internal */
2445 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2446         if(!isWasmInitialized) {
2447                 throw new Error("initializeWasm() must be awaited first!");
2448         }
2449         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
2450         return nativeResponseValue;
2451 }
2452         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2453 /* @internal */
2454 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: number): number {
2455         if(!isWasmInitialized) {
2456                 throw new Error("initializeWasm() must be awaited first!");
2457         }
2458         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
2459         return nativeResponseValue;
2460 }
2461         // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2462 /* @internal */
2463 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: number): number {
2464         if(!isWasmInitialized) {
2465                 throw new Error("initializeWasm() must be awaited first!");
2466         }
2467         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
2468         return nativeResponseValue;
2469 }
2470         // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2471 /* @internal */
2472 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: number): number {
2473         if(!isWasmInitialized) {
2474                 throw new Error("initializeWasm() must be awaited first!");
2475         }
2476         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
2477         return nativeResponseValue;
2478 }
2479         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2480 /* @internal */
2481 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2482         if(!isWasmInitialized) {
2483                 throw new Error("initializeWasm() must be awaited first!");
2484         }
2485         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
2486         return nativeResponseValue;
2487 }
2488         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2489 /* @internal */
2490 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: number): number {
2491         if(!isWasmInitialized) {
2492                 throw new Error("initializeWasm() must be awaited first!");
2493         }
2494         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
2495         return nativeResponseValue;
2496 }
2497         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2498 /* @internal */
2499 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: number): number {
2500         if(!isWasmInitialized) {
2501                 throw new Error("initializeWasm() must be awaited first!");
2502         }
2503         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
2504         return nativeResponseValue;
2505 }
2506         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2507 /* @internal */
2508 export function CResult_NodeIdDecodeErrorZ_get_err(owner: number): number {
2509         if(!isWasmInitialized) {
2510                 throw new Error("initializeWasm() must be awaited first!");
2511         }
2512         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
2513         return nativeResponseValue;
2514 }
2515         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2516 /* @internal */
2517 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: number): number {
2518         if(!isWasmInitialized) {
2519                 throw new Error("initializeWasm() must be awaited first!");
2520         }
2521         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
2522         return nativeResponseValue;
2523 }
2524         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2525 /* @internal */
2526 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: number): number {
2527         if(!isWasmInitialized) {
2528                 throw new Error("initializeWasm() must be awaited first!");
2529         }
2530         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
2531         return nativeResponseValue;
2532 }
2533 /* @internal */
2534 export interface LDKAccess {
2535         get_utxo (genesis_hash: number, short_channel_id: bigint): number;
2536 }
2537
2538 /* @internal */
2539 export function LDKAccess_new(impl: LDKAccess): number {
2540         if(!isWasmInitialized) {
2541                 throw new Error("initializeWasm() must be awaited first!");
2542         }
2543         var new_obj_idx = js_objs.length;
2544         for (var i = 0; i < js_objs.length; i++) {
2545                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2546         }
2547         js_objs[i] = new WeakRef(impl);
2548         return wasm.TS_LDKAccess_new(i);
2549 }
2550         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
2551 /* @internal */
2552 export function Access_get_utxo(this_arg: number, genesis_hash: number, short_channel_id: bigint): number {
2553         if(!isWasmInitialized) {
2554                 throw new Error("initializeWasm() must be awaited first!");
2555         }
2556         const nativeResponseValue = wasm.TS_Access_get_utxo(this_arg, genesis_hash, short_channel_id);
2557         return nativeResponseValue;
2558 }
2559 /* @internal */
2560 export class LDKCOption_AccessZ {
2561         protected constructor() {}
2562 }
2563 /* @internal */
2564 export function LDKCOption_AccessZ_ty_from_ptr(ptr: number): number {
2565         if(!isWasmInitialized) {
2566                 throw new Error("initializeWasm() must be awaited first!");
2567         }
2568         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_ty_from_ptr(ptr);
2569         return nativeResponseValue;
2570 }
2571 /* @internal */
2572 export function LDKCOption_AccessZ_Some_get_some(ptr: number): number {
2573         if(!isWasmInitialized) {
2574                 throw new Error("initializeWasm() must be awaited first!");
2575         }
2576         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_Some_get_some(ptr);
2577         return nativeResponseValue;
2578 }
2579         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2580 /* @internal */
2581 export function CResult_boolLightningErrorZ_get_ok(owner: number): boolean {
2582         if(!isWasmInitialized) {
2583                 throw new Error("initializeWasm() must be awaited first!");
2584         }
2585         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
2586         return nativeResponseValue;
2587 }
2588         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2589 /* @internal */
2590 export function CResult_boolLightningErrorZ_get_err(owner: number): number {
2591         if(!isWasmInitialized) {
2592                 throw new Error("initializeWasm() must be awaited first!");
2593         }
2594         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
2595         return nativeResponseValue;
2596 }
2597         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2598 /* @internal */
2599 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: number): number {
2600         if(!isWasmInitialized) {
2601                 throw new Error("initializeWasm() must be awaited first!");
2602         }
2603         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
2604         return nativeResponseValue;
2605 }
2606         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2607 /* @internal */
2608 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: number): number {
2609         if(!isWasmInitialized) {
2610                 throw new Error("initializeWasm() must be awaited first!");
2611         }
2612         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
2613         return nativeResponseValue;
2614 }
2615         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2616 /* @internal */
2617 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: number): number {
2618         if(!isWasmInitialized) {
2619                 throw new Error("initializeWasm() must be awaited first!");
2620         }
2621         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
2622         return nativeResponseValue;
2623 }
2624         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2625 /* @internal */
2626 export function CResult_NoneLightningErrorZ_get_ok(owner: number): void {
2627         if(!isWasmInitialized) {
2628                 throw new Error("initializeWasm() must be awaited first!");
2629         }
2630         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
2631         // debug statements here
2632 }
2633         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2634 /* @internal */
2635 export function CResult_NoneLightningErrorZ_get_err(owner: number): number {
2636         if(!isWasmInitialized) {
2637                 throw new Error("initializeWasm() must be awaited first!");
2638         }
2639         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
2640         return nativeResponseValue;
2641 }
2642         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2643 /* @internal */
2644 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: number): number {
2645         if(!isWasmInitialized) {
2646                 throw new Error("initializeWasm() must be awaited first!");
2647         }
2648         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
2649         return nativeResponseValue;
2650 }
2651         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2652 /* @internal */
2653 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: number): number {
2654         if(!isWasmInitialized) {
2655                 throw new Error("initializeWasm() must be awaited first!");
2656         }
2657         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
2658         return nativeResponseValue;
2659 }
2660         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2661 /* @internal */
2662 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: number): number {
2663         if(!isWasmInitialized) {
2664                 throw new Error("initializeWasm() must be awaited first!");
2665         }
2666         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
2667         return nativeResponseValue;
2668 }
2669         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2670 /* @internal */
2671 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: number): number {
2672         if(!isWasmInitialized) {
2673                 throw new Error("initializeWasm() must be awaited first!");
2674         }
2675         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
2676         return nativeResponseValue;
2677 }
2678         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2679 /* @internal */
2680 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: number): number {
2681         if(!isWasmInitialized) {
2682                 throw new Error("initializeWasm() must be awaited first!");
2683         }
2684         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
2685         return nativeResponseValue;
2686 }
2687         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2688 /* @internal */
2689 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: number): number {
2690         if(!isWasmInitialized) {
2691                 throw new Error("initializeWasm() must be awaited first!");
2692         }
2693         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
2694         return nativeResponseValue;
2695 }
2696 /* @internal */
2697 export class LDKNetAddress {
2698         protected constructor() {}
2699 }
2700 /* @internal */
2701 export function LDKNetAddress_ty_from_ptr(ptr: number): number {
2702         if(!isWasmInitialized) {
2703                 throw new Error("initializeWasm() must be awaited first!");
2704         }
2705         const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
2706         return nativeResponseValue;
2707 }
2708 /* @internal */
2709 export function LDKNetAddress_IPv4_get_addr(ptr: number): number {
2710         if(!isWasmInitialized) {
2711                 throw new Error("initializeWasm() must be awaited first!");
2712         }
2713         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
2714         return nativeResponseValue;
2715 }
2716 /* @internal */
2717 export function LDKNetAddress_IPv4_get_port(ptr: number): number {
2718         if(!isWasmInitialized) {
2719                 throw new Error("initializeWasm() must be awaited first!");
2720         }
2721         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
2722         return nativeResponseValue;
2723 }
2724 /* @internal */
2725 export function LDKNetAddress_IPv6_get_addr(ptr: number): number {
2726         if(!isWasmInitialized) {
2727                 throw new Error("initializeWasm() must be awaited first!");
2728         }
2729         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
2730         return nativeResponseValue;
2731 }
2732 /* @internal */
2733 export function LDKNetAddress_IPv6_get_port(ptr: number): number {
2734         if(!isWasmInitialized) {
2735                 throw new Error("initializeWasm() must be awaited first!");
2736         }
2737         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
2738         return nativeResponseValue;
2739 }
2740 /* @internal */
2741 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: number): number {
2742         if(!isWasmInitialized) {
2743                 throw new Error("initializeWasm() must be awaited first!");
2744         }
2745         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
2746         return nativeResponseValue;
2747 }
2748 /* @internal */
2749 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: number): number {
2750         if(!isWasmInitialized) {
2751                 throw new Error("initializeWasm() must be awaited first!");
2752         }
2753         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
2754         return nativeResponseValue;
2755 }
2756 /* @internal */
2757 export function LDKNetAddress_OnionV3_get_checksum(ptr: number): number {
2758         if(!isWasmInitialized) {
2759                 throw new Error("initializeWasm() must be awaited first!");
2760         }
2761         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
2762         return nativeResponseValue;
2763 }
2764 /* @internal */
2765 export function LDKNetAddress_OnionV3_get_version(ptr: number): number {
2766         if(!isWasmInitialized) {
2767                 throw new Error("initializeWasm() must be awaited first!");
2768         }
2769         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
2770         return nativeResponseValue;
2771 }
2772 /* @internal */
2773 export function LDKNetAddress_OnionV3_get_port(ptr: number): number {
2774         if(!isWasmInitialized) {
2775                 throw new Error("initializeWasm() must be awaited first!");
2776         }
2777         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
2778         return nativeResponseValue;
2779 }
2780         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
2781 /* @internal */
2782 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: number): number {
2783         if(!isWasmInitialized) {
2784                 throw new Error("initializeWasm() must be awaited first!");
2785         }
2786         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
2787         return nativeResponseValue;
2788 }
2789         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
2790 /* @internal */
2791 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: number): number {
2792         if(!isWasmInitialized) {
2793                 throw new Error("initializeWasm() must be awaited first!");
2794         }
2795         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
2796         return nativeResponseValue;
2797 }
2798         // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
2799 /* @internal */
2800 export function CResult_NodeAliasDecodeErrorZ_get_ok(owner: number): number {
2801         if(!isWasmInitialized) {
2802                 throw new Error("initializeWasm() must be awaited first!");
2803         }
2804         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_ok(owner);
2805         return nativeResponseValue;
2806 }
2807         // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
2808 /* @internal */
2809 export function CResult_NodeAliasDecodeErrorZ_get_err(owner: number): number {
2810         if(!isWasmInitialized) {
2811                 throw new Error("initializeWasm() must be awaited first!");
2812         }
2813         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_err(owner);
2814         return nativeResponseValue;
2815 }
2816         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
2817 /* @internal */
2818 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: number): number {
2819         if(!isWasmInitialized) {
2820                 throw new Error("initializeWasm() must be awaited first!");
2821         }
2822         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
2823         return nativeResponseValue;
2824 }
2825         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
2826 /* @internal */
2827 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: number): number {
2828         if(!isWasmInitialized) {
2829                 throw new Error("initializeWasm() must be awaited first!");
2830         }
2831         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
2832         return nativeResponseValue;
2833 }
2834         // struct LDKNetworkGraph *CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
2835 /* @internal */
2836 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: number): number {
2837         if(!isWasmInitialized) {
2838                 throw new Error("initializeWasm() must be awaited first!");
2839         }
2840         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
2841         return nativeResponseValue;
2842 }
2843         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
2844 /* @internal */
2845 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: number): number {
2846         if(!isWasmInitialized) {
2847                 throw new Error("initializeWasm() must be awaited first!");
2848         }
2849         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
2850         return nativeResponseValue;
2851 }
2852 /* @internal */
2853 export class LDKCOption_CVec_NetAddressZZ {
2854         protected constructor() {}
2855 }
2856 /* @internal */
2857 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: number): number {
2858         if(!isWasmInitialized) {
2859                 throw new Error("initializeWasm() must be awaited first!");
2860         }
2861         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
2862         return nativeResponseValue;
2863 }
2864 /* @internal */
2865 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: number): number {
2866         if(!isWasmInitialized) {
2867                 throw new Error("initializeWasm() must be awaited first!");
2868         }
2869         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
2870         return nativeResponseValue;
2871 }
2872         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2873 /* @internal */
2874 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2875         if(!isWasmInitialized) {
2876                 throw new Error("initializeWasm() must be awaited first!");
2877         }
2878         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2879         return nativeResponseValue;
2880 }
2881         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2882 /* @internal */
2883 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2884         if(!isWasmInitialized) {
2885                 throw new Error("initializeWasm() must be awaited first!");
2886         }
2887         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2888         return nativeResponseValue;
2889 }
2890         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2891 /* @internal */
2892 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2893         if(!isWasmInitialized) {
2894                 throw new Error("initializeWasm() must be awaited first!");
2895         }
2896         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2897         return nativeResponseValue;
2898 }
2899         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2900 /* @internal */
2901 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2902         if(!isWasmInitialized) {
2903                 throw new Error("initializeWasm() must be awaited first!");
2904         }
2905         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2906         return nativeResponseValue;
2907 }
2908         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2909 /* @internal */
2910 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2911         if(!isWasmInitialized) {
2912                 throw new Error("initializeWasm() must be awaited first!");
2913         }
2914         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
2915         return nativeResponseValue;
2916 }
2917         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2918 /* @internal */
2919 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2920         if(!isWasmInitialized) {
2921                 throw new Error("initializeWasm() must be awaited first!");
2922         }
2923         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
2924         return nativeResponseValue;
2925 }
2926         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2927 /* @internal */
2928 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: number): number {
2929         if(!isWasmInitialized) {
2930                 throw new Error("initializeWasm() must be awaited first!");
2931         }
2932         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
2933         return nativeResponseValue;
2934 }
2935         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2936 /* @internal */
2937 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: number): number {
2938         if(!isWasmInitialized) {
2939                 throw new Error("initializeWasm() must be awaited first!");
2940         }
2941         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
2942         return nativeResponseValue;
2943 }
2944         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2945 /* @internal */
2946 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: number): number {
2947         if(!isWasmInitialized) {
2948                 throw new Error("initializeWasm() must be awaited first!");
2949         }
2950         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
2951         return nativeResponseValue;
2952 }
2953         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2954 /* @internal */
2955 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: number): void {
2956         if(!isWasmInitialized) {
2957                 throw new Error("initializeWasm() must be awaited first!");
2958         }
2959         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
2960         // debug statements here
2961 }
2962         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2963 /* @internal */
2964 export function CResult_SignatureNoneZ_get_ok(owner: number): number {
2965         if(!isWasmInitialized) {
2966                 throw new Error("initializeWasm() must be awaited first!");
2967         }
2968         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
2969         return nativeResponseValue;
2970 }
2971         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2972 /* @internal */
2973 export function CResult_SignatureNoneZ_get_err(owner: number): void {
2974         if(!isWasmInitialized) {
2975                 throw new Error("initializeWasm() must be awaited first!");
2976         }
2977         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
2978         // debug statements here
2979 }
2980         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2981 /* @internal */
2982 export function C2Tuple_SignatureSignatureZ_get_a(owner: number): number {
2983         if(!isWasmInitialized) {
2984                 throw new Error("initializeWasm() must be awaited first!");
2985         }
2986         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_a(owner);
2987         return nativeResponseValue;
2988 }
2989         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2990 /* @internal */
2991 export function C2Tuple_SignatureSignatureZ_get_b(owner: number): number {
2992         if(!isWasmInitialized) {
2993                 throw new Error("initializeWasm() must be awaited first!");
2994         }
2995         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_b(owner);
2996         return nativeResponseValue;
2997 }
2998         // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2999 /* @internal */
3000 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner: number): number {
3001         if(!isWasmInitialized) {
3002                 throw new Error("initializeWasm() must be awaited first!");
3003         }
3004         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner);
3005         return nativeResponseValue;
3006 }
3007         // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
3008 /* @internal */
3009 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner: number): void {
3010         if(!isWasmInitialized) {
3011                 throw new Error("initializeWasm() must be awaited first!");
3012         }
3013         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner);
3014         // debug statements here
3015 }
3016         // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
3017 /* @internal */
3018 export function CResult_SecretKeyNoneZ_get_ok(owner: number): number {
3019         if(!isWasmInitialized) {
3020                 throw new Error("initializeWasm() must be awaited first!");
3021         }
3022         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_ok(owner);
3023         return nativeResponseValue;
3024 }
3025         // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
3026 /* @internal */
3027 export function CResult_SecretKeyNoneZ_get_err(owner: number): void {
3028         if(!isWasmInitialized) {
3029                 throw new Error("initializeWasm() must be awaited first!");
3030         }
3031         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_err(owner);
3032         // debug statements here
3033 }
3034 /* @internal */
3035 export interface LDKBaseSign {
3036         get_per_commitment_point (idx: bigint): number;
3037         release_commitment_secret (idx: bigint): number;
3038         validate_holder_commitment (holder_tx: number, preimages: number): number;
3039         channel_keys_id (): number;
3040         sign_counterparty_commitment (commitment_tx: number, preimages: number): number;
3041         validate_counterparty_revocation (idx: bigint, secret: number): number;
3042         sign_holder_commitment_and_htlcs (commitment_tx: number): number;
3043         sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number;
3044         sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number;
3045         sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number;
3046         sign_closing_transaction (closing_tx: number): number;
3047         sign_channel_announcement (msg: number): number;
3048         ready_channel (channel_parameters: number): void;
3049 }
3050
3051 /* @internal */
3052 export function LDKBaseSign_new(impl: LDKBaseSign, pubkeys: number): number {
3053         if(!isWasmInitialized) {
3054                 throw new Error("initializeWasm() must be awaited first!");
3055         }
3056         var new_obj_idx = js_objs.length;
3057         for (var i = 0; i < js_objs.length; i++) {
3058                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3059         }
3060         js_objs[i] = new WeakRef(impl);
3061         return wasm.TS_LDKBaseSign_new(i);
3062 }
3063         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
3064 /* @internal */
3065 export function BaseSign_get_per_commitment_point(this_arg: number, idx: bigint): number {
3066         if(!isWasmInitialized) {
3067                 throw new Error("initializeWasm() must be awaited first!");
3068         }
3069         const nativeResponseValue = wasm.TS_BaseSign_get_per_commitment_point(this_arg, idx);
3070         return nativeResponseValue;
3071 }
3072         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
3073 /* @internal */
3074 export function BaseSign_release_commitment_secret(this_arg: number, idx: bigint): number {
3075         if(!isWasmInitialized) {
3076                 throw new Error("initializeWasm() must be awaited first!");
3077         }
3078         const nativeResponseValue = wasm.TS_BaseSign_release_commitment_secret(this_arg, idx);
3079         return nativeResponseValue;
3080 }
3081         // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
3082 /* @internal */
3083 export function BaseSign_validate_holder_commitment(this_arg: number, holder_tx: number, preimages: number): number {
3084         if(!isWasmInitialized) {
3085                 throw new Error("initializeWasm() must be awaited first!");
3086         }
3087         const nativeResponseValue = wasm.TS_BaseSign_validate_holder_commitment(this_arg, holder_tx, preimages);
3088         return nativeResponseValue;
3089 }
3090         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
3091 /* @internal */
3092 export function BaseSign_channel_keys_id(this_arg: number): number {
3093         if(!isWasmInitialized) {
3094                 throw new Error("initializeWasm() must be awaited first!");
3095         }
3096         const nativeResponseValue = wasm.TS_BaseSign_channel_keys_id(this_arg);
3097         return nativeResponseValue;
3098 }
3099         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
3100 /* @internal */
3101 export function BaseSign_sign_counterparty_commitment(this_arg: number, commitment_tx: number, preimages: number): number {
3102         if(!isWasmInitialized) {
3103                 throw new Error("initializeWasm() must be awaited first!");
3104         }
3105         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
3106         return nativeResponseValue;
3107 }
3108         // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
3109 /* @internal */
3110 export function BaseSign_validate_counterparty_revocation(this_arg: number, idx: bigint, secret: number): number {
3111         if(!isWasmInitialized) {
3112                 throw new Error("initializeWasm() must be awaited first!");
3113         }
3114         const nativeResponseValue = wasm.TS_BaseSign_validate_counterparty_revocation(this_arg, idx, secret);
3115         return nativeResponseValue;
3116 }
3117         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
3118 /* @internal */
3119 export function BaseSign_sign_holder_commitment_and_htlcs(this_arg: number, commitment_tx: number): number {
3120         if(!isWasmInitialized) {
3121                 throw new Error("initializeWasm() must be awaited first!");
3122         }
3123         const nativeResponseValue = wasm.TS_BaseSign_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
3124         return nativeResponseValue;
3125 }
3126         // 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]
3127 /* @internal */
3128 export function BaseSign_sign_justice_revoked_output(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number {
3129         if(!isWasmInitialized) {
3130                 throw new Error("initializeWasm() must be awaited first!");
3131         }
3132         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
3133         return nativeResponseValue;
3134 }
3135         // 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
3136 /* @internal */
3137 export function BaseSign_sign_justice_revoked_htlc(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number {
3138         if(!isWasmInitialized) {
3139                 throw new Error("initializeWasm() must be awaited first!");
3140         }
3141         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
3142         return nativeResponseValue;
3143 }
3144         // 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
3145 /* @internal */
3146 export function BaseSign_sign_counterparty_htlc_transaction(this_arg: number, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number {
3147         if(!isWasmInitialized) {
3148                 throw new Error("initializeWasm() must be awaited first!");
3149         }
3150         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
3151         return nativeResponseValue;
3152 }
3153         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
3154 /* @internal */
3155 export function BaseSign_sign_closing_transaction(this_arg: number, closing_tx: number): number {
3156         if(!isWasmInitialized) {
3157                 throw new Error("initializeWasm() must be awaited first!");
3158         }
3159         const nativeResponseValue = wasm.TS_BaseSign_sign_closing_transaction(this_arg, closing_tx);
3160         return nativeResponseValue;
3161 }
3162         // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
3163 /* @internal */
3164 export function BaseSign_sign_channel_announcement(this_arg: number, msg: number): number {
3165         if(!isWasmInitialized) {
3166                 throw new Error("initializeWasm() must be awaited first!");
3167         }
3168         const nativeResponseValue = wasm.TS_BaseSign_sign_channel_announcement(this_arg, msg);
3169         return nativeResponseValue;
3170 }
3171         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
3172 /* @internal */
3173 export function BaseSign_ready_channel(this_arg: number, channel_parameters: number): void {
3174         if(!isWasmInitialized) {
3175                 throw new Error("initializeWasm() must be awaited first!");
3176         }
3177         const nativeResponseValue = wasm.TS_BaseSign_ready_channel(this_arg, channel_parameters);
3178         // debug statements here
3179 }
3180         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
3181 /* @internal */
3182 export function BaseSign_get_pubkeys(this_arg: number): number {
3183         if(!isWasmInitialized) {
3184                 throw new Error("initializeWasm() must be awaited first!");
3185         }
3186         const nativeResponseValue = wasm.TS_BaseSign_get_pubkeys(this_arg);
3187         return nativeResponseValue;
3188 }
3189 /* @internal */
3190 export interface LDKSign {
3191         write (): number;
3192 }
3193
3194 /* @internal */
3195 export function LDKSign_new(impl: LDKSign, BaseSign: LDKBaseSign, pubkeys: number): number {
3196         if(!isWasmInitialized) {
3197                 throw new Error("initializeWasm() must be awaited first!");
3198         }
3199         var new_obj_idx = js_objs.length;
3200         for (var i = 0; i < js_objs.length; i++) {
3201                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3202         }
3203         js_objs[i] = new WeakRef(impl);
3204         return wasm.TS_LDKSign_new(i);
3205 }
3206         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
3207 /* @internal */
3208 export function Sign_write(this_arg: number): number {
3209         if(!isWasmInitialized) {
3210                 throw new Error("initializeWasm() must be awaited first!");
3211         }
3212         const nativeResponseValue = wasm.TS_Sign_write(this_arg);
3213         return nativeResponseValue;
3214 }
3215         // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3216 /* @internal */
3217 export function CResult_SignDecodeErrorZ_get_ok(owner: number): number {
3218         if(!isWasmInitialized) {
3219                 throw new Error("initializeWasm() must be awaited first!");
3220         }
3221         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_ok(owner);
3222         return nativeResponseValue;
3223 }
3224         // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3225 /* @internal */
3226 export function CResult_SignDecodeErrorZ_get_err(owner: number): number {
3227         if(!isWasmInitialized) {
3228                 throw new Error("initializeWasm() must be awaited first!");
3229         }
3230         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_err(owner);
3231         return nativeResponseValue;
3232 }
3233         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3234 /* @internal */
3235 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: number): number {
3236         if(!isWasmInitialized) {
3237                 throw new Error("initializeWasm() must be awaited first!");
3238         }
3239         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
3240         return nativeResponseValue;
3241 }
3242         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3243 /* @internal */
3244 export function CResult_RecoverableSignatureNoneZ_get_err(owner: number): void {
3245         if(!isWasmInitialized) {
3246                 throw new Error("initializeWasm() must be awaited first!");
3247         }
3248         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
3249         // debug statements here
3250 }
3251         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3252 /* @internal */
3253 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: number): number {
3254         if(!isWasmInitialized) {
3255                 throw new Error("initializeWasm() must be awaited first!");
3256         }
3257         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
3258         return nativeResponseValue;
3259 }
3260         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3261 /* @internal */
3262 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: number): void {
3263         if(!isWasmInitialized) {
3264                 throw new Error("initializeWasm() must be awaited first!");
3265         }
3266         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
3267         // debug statements here
3268 }
3269         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3270 /* @internal */
3271 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: number): number {
3272         if(!isWasmInitialized) {
3273                 throw new Error("initializeWasm() must be awaited first!");
3274         }
3275         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
3276         return nativeResponseValue;
3277 }
3278         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3279 /* @internal */
3280 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: number): number {
3281         if(!isWasmInitialized) {
3282                 throw new Error("initializeWasm() must be awaited first!");
3283         }
3284         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
3285         return nativeResponseValue;
3286 }
3287         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3288 /* @internal */
3289 export function CResult_TransactionNoneZ_get_ok(owner: number): number {
3290         if(!isWasmInitialized) {
3291                 throw new Error("initializeWasm() must be awaited first!");
3292         }
3293         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
3294         return nativeResponseValue;
3295 }
3296         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3297 /* @internal */
3298 export function CResult_TransactionNoneZ_get_err(owner: number): void {
3299         if(!isWasmInitialized) {
3300                 throw new Error("initializeWasm() must be awaited first!");
3301         }
3302         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
3303         // debug statements here
3304 }
3305 /* @internal */
3306 export class LDKCOption_u16Z {
3307         protected constructor() {}
3308 }
3309 /* @internal */
3310 export function LDKCOption_u16Z_ty_from_ptr(ptr: number): number {
3311         if(!isWasmInitialized) {
3312                 throw new Error("initializeWasm() must be awaited first!");
3313         }
3314         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
3315         return nativeResponseValue;
3316 }
3317 /* @internal */
3318 export function LDKCOption_u16Z_Some_get_some(ptr: number): number {
3319         if(!isWasmInitialized) {
3320                 throw new Error("initializeWasm() must be awaited first!");
3321         }
3322         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
3323         return nativeResponseValue;
3324 }
3325 /* @internal */
3326 export class LDKAPIError {
3327         protected constructor() {}
3328 }
3329 /* @internal */
3330 export function LDKAPIError_ty_from_ptr(ptr: number): number {
3331         if(!isWasmInitialized) {
3332                 throw new Error("initializeWasm() must be awaited first!");
3333         }
3334         const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
3335         return nativeResponseValue;
3336 }
3337 /* @internal */
3338 export function LDKAPIError_APIMisuseError_get_err(ptr: number): number {
3339         if(!isWasmInitialized) {
3340                 throw new Error("initializeWasm() must be awaited first!");
3341         }
3342         const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
3343         return nativeResponseValue;
3344 }
3345 /* @internal */
3346 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: number): number {
3347         if(!isWasmInitialized) {
3348                 throw new Error("initializeWasm() must be awaited first!");
3349         }
3350         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
3351         return nativeResponseValue;
3352 }
3353 /* @internal */
3354 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: number): number {
3355         if(!isWasmInitialized) {
3356                 throw new Error("initializeWasm() must be awaited first!");
3357         }
3358         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
3359         return nativeResponseValue;
3360 }
3361 /* @internal */
3362 export function LDKAPIError_RouteError_get_err(ptr: number): number {
3363         if(!isWasmInitialized) {
3364                 throw new Error("initializeWasm() must be awaited first!");
3365         }
3366         const nativeResponseValue = wasm.TS_LDKAPIError_RouteError_get_err(ptr);
3367         return nativeResponseValue;
3368 }
3369 /* @internal */
3370 export function LDKAPIError_ChannelUnavailable_get_err(ptr: number): number {
3371         if(!isWasmInitialized) {
3372                 throw new Error("initializeWasm() must be awaited first!");
3373         }
3374         const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
3375         return nativeResponseValue;
3376 }
3377 /* @internal */
3378 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: number): number {
3379         if(!isWasmInitialized) {
3380                 throw new Error("initializeWasm() must be awaited first!");
3381         }
3382         const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
3383         return nativeResponseValue;
3384 }
3385         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3386 /* @internal */
3387 export function CResult_NoneAPIErrorZ_get_ok(owner: number): void {
3388         if(!isWasmInitialized) {
3389                 throw new Error("initializeWasm() must be awaited first!");
3390         }
3391         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
3392         // debug statements here
3393 }
3394         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3395 /* @internal */
3396 export function CResult_NoneAPIErrorZ_get_err(owner: number): number {
3397         if(!isWasmInitialized) {
3398                 throw new Error("initializeWasm() must be awaited first!");
3399         }
3400         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
3401         return nativeResponseValue;
3402 }
3403         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3404 /* @internal */
3405 export function CResult__u832APIErrorZ_get_ok(owner: number): number {
3406         if(!isWasmInitialized) {
3407                 throw new Error("initializeWasm() must be awaited first!");
3408         }
3409         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
3410         return nativeResponseValue;
3411 }
3412         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3413 /* @internal */
3414 export function CResult__u832APIErrorZ_get_err(owner: number): number {
3415         if(!isWasmInitialized) {
3416                 throw new Error("initializeWasm() must be awaited first!");
3417         }
3418         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
3419         return nativeResponseValue;
3420 }
3421 /* @internal */
3422 export class LDKPaymentSendFailure {
3423         protected constructor() {}
3424 }
3425 /* @internal */
3426 export function LDKPaymentSendFailure_ty_from_ptr(ptr: number): number {
3427         if(!isWasmInitialized) {
3428                 throw new Error("initializeWasm() must be awaited first!");
3429         }
3430         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
3431         return nativeResponseValue;
3432 }
3433 /* @internal */
3434 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: number): number {
3435         if(!isWasmInitialized) {
3436                 throw new Error("initializeWasm() must be awaited first!");
3437         }
3438         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
3439         return nativeResponseValue;
3440 }
3441 /* @internal */
3442 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: number): number {
3443         if(!isWasmInitialized) {
3444                 throw new Error("initializeWasm() must be awaited first!");
3445         }
3446         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
3447         return nativeResponseValue;
3448 }
3449 /* @internal */
3450 export function LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr: number): number {
3451         if(!isWasmInitialized) {
3452                 throw new Error("initializeWasm() must be awaited first!");
3453         }
3454         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr);
3455         return nativeResponseValue;
3456 }
3457 /* @internal */
3458 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: number): number {
3459         if(!isWasmInitialized) {
3460                 throw new Error("initializeWasm() must be awaited first!");
3461         }
3462         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
3463         return nativeResponseValue;
3464 }
3465 /* @internal */
3466 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: number): number {
3467         if(!isWasmInitialized) {
3468                 throw new Error("initializeWasm() must be awaited first!");
3469         }
3470         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
3471         return nativeResponseValue;
3472 }
3473 /* @internal */
3474 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: number): number {
3475         if(!isWasmInitialized) {
3476                 throw new Error("initializeWasm() must be awaited first!");
3477         }
3478         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
3479         return nativeResponseValue;
3480 }
3481         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3482 /* @internal */
3483 export function CResult_PaymentIdPaymentSendFailureZ_get_ok(owner: number): number {
3484         if(!isWasmInitialized) {
3485                 throw new Error("initializeWasm() must be awaited first!");
3486         }
3487         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_ok(owner);
3488         return nativeResponseValue;
3489 }
3490         // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3491 /* @internal */
3492 export function CResult_PaymentIdPaymentSendFailureZ_get_err(owner: number): number {
3493         if(!isWasmInitialized) {
3494                 throw new Error("initializeWasm() must be awaited first!");
3495         }
3496         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_err(owner);
3497         return nativeResponseValue;
3498 }
3499         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3500 /* @internal */
3501 export function CResult_NonePaymentSendFailureZ_get_ok(owner: number): void {
3502         if(!isWasmInitialized) {
3503                 throw new Error("initializeWasm() must be awaited first!");
3504         }
3505         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
3506         // debug statements here
3507 }
3508         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3509 /* @internal */
3510 export function CResult_NonePaymentSendFailureZ_get_err(owner: number): number {
3511         if(!isWasmInitialized) {
3512                 throw new Error("initializeWasm() must be awaited first!");
3513         }
3514         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
3515         return nativeResponseValue;
3516 }
3517         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3518 /* @internal */
3519 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: number): number {
3520         if(!isWasmInitialized) {
3521                 throw new Error("initializeWasm() must be awaited first!");
3522         }
3523         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
3524         return nativeResponseValue;
3525 }
3526         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3527 /* @internal */
3528 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: number): number {
3529         if(!isWasmInitialized) {
3530                 throw new Error("initializeWasm() must be awaited first!");
3531         }
3532         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
3533         return nativeResponseValue;
3534 }
3535         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3536 /* @internal */
3537 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: number): number {
3538         if(!isWasmInitialized) {
3539                 throw new Error("initializeWasm() must be awaited first!");
3540         }
3541         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
3542         return nativeResponseValue;
3543 }
3544         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3545 /* @internal */
3546 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: number): number {
3547         if(!isWasmInitialized) {
3548                 throw new Error("initializeWasm() must be awaited first!");
3549         }
3550         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
3551         return nativeResponseValue;
3552 }
3553         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3554 /* @internal */
3555 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: number): number {
3556         if(!isWasmInitialized) {
3557                 throw new Error("initializeWasm() must be awaited first!");
3558         }
3559         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
3560         return nativeResponseValue;
3561 }
3562         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3563 /* @internal */
3564 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: number): number {
3565         if(!isWasmInitialized) {
3566                 throw new Error("initializeWasm() must be awaited first!");
3567         }
3568         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
3569         return nativeResponseValue;
3570 }
3571         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3572 /* @internal */
3573 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: number): number {
3574         if(!isWasmInitialized) {
3575                 throw new Error("initializeWasm() must be awaited first!");
3576         }
3577         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
3578         return nativeResponseValue;
3579 }
3580         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3581 /* @internal */
3582 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: number): void {
3583         if(!isWasmInitialized) {
3584                 throw new Error("initializeWasm() must be awaited first!");
3585         }
3586         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
3587         // debug statements here
3588 }
3589         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3590 /* @internal */
3591 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: number): number {
3592         if(!isWasmInitialized) {
3593                 throw new Error("initializeWasm() must be awaited first!");
3594         }
3595         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
3596         return nativeResponseValue;
3597 }
3598         // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3599 /* @internal */
3600 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: number): number {
3601         if(!isWasmInitialized) {
3602                 throw new Error("initializeWasm() must be awaited first!");
3603         }
3604         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
3605         return nativeResponseValue;
3606 }
3607         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3608 /* @internal */
3609 export function CResult_PaymentSecretNoneZ_get_ok(owner: number): number {
3610         if(!isWasmInitialized) {
3611                 throw new Error("initializeWasm() must be awaited first!");
3612         }
3613         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
3614         return nativeResponseValue;
3615 }
3616         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3617 /* @internal */
3618 export function CResult_PaymentSecretNoneZ_get_err(owner: number): void {
3619         if(!isWasmInitialized) {
3620                 throw new Error("initializeWasm() must be awaited first!");
3621         }
3622         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
3623         // debug statements here
3624 }
3625         // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3626 /* @internal */
3627 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: number): number {
3628         if(!isWasmInitialized) {
3629                 throw new Error("initializeWasm() must be awaited first!");
3630         }
3631         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
3632         return nativeResponseValue;
3633 }
3634         // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3635 /* @internal */
3636 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: number): number {
3637         if(!isWasmInitialized) {
3638                 throw new Error("initializeWasm() must be awaited first!");
3639         }
3640         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
3641         return nativeResponseValue;
3642 }
3643         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3644 /* @internal */
3645 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: number): number {
3646         if(!isWasmInitialized) {
3647                 throw new Error("initializeWasm() must be awaited first!");
3648         }
3649         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
3650         return nativeResponseValue;
3651 }
3652         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3653 /* @internal */
3654 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: number): number {
3655         if(!isWasmInitialized) {
3656                 throw new Error("initializeWasm() must be awaited first!");
3657         }
3658         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
3659         return nativeResponseValue;
3660 }
3661         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3662 /* @internal */
3663 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: number): number {
3664         if(!isWasmInitialized) {
3665                 throw new Error("initializeWasm() must be awaited first!");
3666         }
3667         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
3668         return nativeResponseValue;
3669 }
3670         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3671 /* @internal */
3672 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: number): number {
3673         if(!isWasmInitialized) {
3674                 throw new Error("initializeWasm() must be awaited first!");
3675         }
3676         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
3677         return nativeResponseValue;
3678 }
3679         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3680 /* @internal */
3681 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: number): number {
3682         if(!isWasmInitialized) {
3683                 throw new Error("initializeWasm() must be awaited first!");
3684         }
3685         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
3686         return nativeResponseValue;
3687 }
3688         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3689 /* @internal */
3690 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: number): number {
3691         if(!isWasmInitialized) {
3692                 throw new Error("initializeWasm() must be awaited first!");
3693         }
3694         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
3695         return nativeResponseValue;
3696 }
3697         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3698 /* @internal */
3699 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: number): number {
3700         if(!isWasmInitialized) {
3701                 throw new Error("initializeWasm() must be awaited first!");
3702         }
3703         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
3704         return nativeResponseValue;
3705 }
3706         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3707 /* @internal */
3708 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: number): number {
3709         if(!isWasmInitialized) {
3710                 throw new Error("initializeWasm() must be awaited first!");
3711         }
3712         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
3713         return nativeResponseValue;
3714 }
3715         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3716 /* @internal */
3717 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: number): number {
3718         if(!isWasmInitialized) {
3719                 throw new Error("initializeWasm() must be awaited first!");
3720         }
3721         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
3722         return nativeResponseValue;
3723 }
3724         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3725 /* @internal */
3726 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: number): number {
3727         if(!isWasmInitialized) {
3728                 throw new Error("initializeWasm() must be awaited first!");
3729         }
3730         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
3731         return nativeResponseValue;
3732 }
3733 /* @internal */
3734 export interface LDKWatch {
3735         watch_channel (funding_txo: number, monitor: number): number;
3736         update_channel (funding_txo: number, update: number): number;
3737         release_pending_monitor_events (): number;
3738 }
3739
3740 /* @internal */
3741 export function LDKWatch_new(impl: LDKWatch): number {
3742         if(!isWasmInitialized) {
3743                 throw new Error("initializeWasm() must be awaited first!");
3744         }
3745         var new_obj_idx = js_objs.length;
3746         for (var i = 0; i < js_objs.length; i++) {
3747                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3748         }
3749         js_objs[i] = new WeakRef(impl);
3750         return wasm.TS_LDKWatch_new(i);
3751 }
3752         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
3753 /* @internal */
3754 export function Watch_watch_channel(this_arg: number, funding_txo: number, monitor: number): number {
3755         if(!isWasmInitialized) {
3756                 throw new Error("initializeWasm() must be awaited first!");
3757         }
3758         const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
3759         return nativeResponseValue;
3760 }
3761         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
3762 /* @internal */
3763 export function Watch_update_channel(this_arg: number, funding_txo: number, update: number): number {
3764         if(!isWasmInitialized) {
3765                 throw new Error("initializeWasm() must be awaited first!");
3766         }
3767         const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
3768         return nativeResponseValue;
3769 }
3770         // LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
3771 /* @internal */
3772 export function Watch_release_pending_monitor_events(this_arg: number): number {
3773         if(!isWasmInitialized) {
3774                 throw new Error("initializeWasm() must be awaited first!");
3775         }
3776         const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
3777         return nativeResponseValue;
3778 }
3779 /* @internal */
3780 export interface LDKBroadcasterInterface {
3781         broadcast_transaction (tx: number): void;
3782 }
3783
3784 /* @internal */
3785 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): number {
3786         if(!isWasmInitialized) {
3787                 throw new Error("initializeWasm() must be awaited first!");
3788         }
3789         var new_obj_idx = js_objs.length;
3790         for (var i = 0; i < js_objs.length; i++) {
3791                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3792         }
3793         js_objs[i] = new WeakRef(impl);
3794         return wasm.TS_LDKBroadcasterInterface_new(i);
3795 }
3796         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
3797 /* @internal */
3798 export function BroadcasterInterface_broadcast_transaction(this_arg: number, tx: number): void {
3799         if(!isWasmInitialized) {
3800                 throw new Error("initializeWasm() must be awaited first!");
3801         }
3802         const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
3803         // debug statements here
3804 }
3805 /* @internal */
3806 export interface LDKKeysInterface {
3807         get_node_secret (recipient: Recipient): number;
3808         get_destination_script (): number;
3809         get_shutdown_scriptpubkey (): number;
3810         get_channel_signer (inbound: boolean, channel_value_satoshis: bigint): number;
3811         get_secure_random_bytes (): number;
3812         read_chan_signer (reader: number): number;
3813         sign_invoice (hrp_bytes: number, invoice_data: number, receipient: Recipient): number;
3814         get_inbound_payment_key_material (): number;
3815 }
3816
3817 /* @internal */
3818 export function LDKKeysInterface_new(impl: LDKKeysInterface): number {
3819         if(!isWasmInitialized) {
3820                 throw new Error("initializeWasm() must be awaited first!");
3821         }
3822         var new_obj_idx = js_objs.length;
3823         for (var i = 0; i < js_objs.length; i++) {
3824                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3825         }
3826         js_objs[i] = new WeakRef(impl);
3827         return wasm.TS_LDKKeysInterface_new(i);
3828 }
3829         // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
3830 /* @internal */
3831 export function KeysInterface_get_node_secret(this_arg: number, recipient: Recipient): number {
3832         if(!isWasmInitialized) {
3833                 throw new Error("initializeWasm() must be awaited first!");
3834         }
3835         const nativeResponseValue = wasm.TS_KeysInterface_get_node_secret(this_arg, recipient);
3836         return nativeResponseValue;
3837 }
3838         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
3839 /* @internal */
3840 export function KeysInterface_get_destination_script(this_arg: number): number {
3841         if(!isWasmInitialized) {
3842                 throw new Error("initializeWasm() must be awaited first!");
3843         }
3844         const nativeResponseValue = wasm.TS_KeysInterface_get_destination_script(this_arg);
3845         return nativeResponseValue;
3846 }
3847         // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
3848 /* @internal */
3849 export function KeysInterface_get_shutdown_scriptpubkey(this_arg: number): number {
3850         if(!isWasmInitialized) {
3851                 throw new Error("initializeWasm() must be awaited first!");
3852         }
3853         const nativeResponseValue = wasm.TS_KeysInterface_get_shutdown_scriptpubkey(this_arg);
3854         return nativeResponseValue;
3855 }
3856         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
3857 /* @internal */
3858 export function KeysInterface_get_channel_signer(this_arg: number, inbound: boolean, channel_value_satoshis: bigint): number {
3859         if(!isWasmInitialized) {
3860                 throw new Error("initializeWasm() must be awaited first!");
3861         }
3862         const nativeResponseValue = wasm.TS_KeysInterface_get_channel_signer(this_arg, inbound, channel_value_satoshis);
3863         return nativeResponseValue;
3864 }
3865         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
3866 /* @internal */
3867 export function KeysInterface_get_secure_random_bytes(this_arg: number): number {
3868         if(!isWasmInitialized) {
3869                 throw new Error("initializeWasm() must be awaited first!");
3870         }
3871         const nativeResponseValue = wasm.TS_KeysInterface_get_secure_random_bytes(this_arg);
3872         return nativeResponseValue;
3873 }
3874         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
3875 /* @internal */
3876 export function KeysInterface_read_chan_signer(this_arg: number, reader: number): number {
3877         if(!isWasmInitialized) {
3878                 throw new Error("initializeWasm() must be awaited first!");
3879         }
3880         const nativeResponseValue = wasm.TS_KeysInterface_read_chan_signer(this_arg, reader);
3881         return nativeResponseValue;
3882 }
3883         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
3884 /* @internal */
3885 export function KeysInterface_sign_invoice(this_arg: number, hrp_bytes: number, invoice_data: number, receipient: Recipient): number {
3886         if(!isWasmInitialized) {
3887                 throw new Error("initializeWasm() must be awaited first!");
3888         }
3889         const nativeResponseValue = wasm.TS_KeysInterface_sign_invoice(this_arg, hrp_bytes, invoice_data, receipient);
3890         return nativeResponseValue;
3891 }
3892         // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
3893 /* @internal */
3894 export function KeysInterface_get_inbound_payment_key_material(this_arg: number): number {
3895         if(!isWasmInitialized) {
3896                 throw new Error("initializeWasm() must be awaited first!");
3897         }
3898         const nativeResponseValue = wasm.TS_KeysInterface_get_inbound_payment_key_material(this_arg);
3899         return nativeResponseValue;
3900 }
3901 /* @internal */
3902 export interface LDKFeeEstimator {
3903         get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
3904 }
3905
3906 /* @internal */
3907 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): number {
3908         if(!isWasmInitialized) {
3909                 throw new Error("initializeWasm() must be awaited first!");
3910         }
3911         var new_obj_idx = js_objs.length;
3912         for (var i = 0; i < js_objs.length; i++) {
3913                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3914         }
3915         js_objs[i] = new WeakRef(impl);
3916         return wasm.TS_LDKFeeEstimator_new(i);
3917 }
3918         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
3919 /* @internal */
3920 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: number, confirmation_target: ConfirmationTarget): number {
3921         if(!isWasmInitialized) {
3922                 throw new Error("initializeWasm() must be awaited first!");
3923         }
3924         const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
3925         return nativeResponseValue;
3926 }
3927         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3928 /* @internal */
3929 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: number): number {
3930         if(!isWasmInitialized) {
3931                 throw new Error("initializeWasm() must be awaited first!");
3932         }
3933         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
3934         return nativeResponseValue;
3935 }
3936         // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3937 /* @internal */
3938 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: number): number {
3939         if(!isWasmInitialized) {
3940                 throw new Error("initializeWasm() must be awaited first!");
3941         }
3942         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
3943         return nativeResponseValue;
3944 }
3945         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3946 /* @internal */
3947 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: number): number {
3948         if(!isWasmInitialized) {
3949                 throw new Error("initializeWasm() must be awaited first!");
3950         }
3951         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
3952         return nativeResponseValue;
3953 }
3954         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3955 /* @internal */
3956 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: number): number {
3957         if(!isWasmInitialized) {
3958                 throw new Error("initializeWasm() must be awaited first!");
3959         }
3960         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
3961         return nativeResponseValue;
3962 }
3963         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3964 /* @internal */
3965 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: number): number {
3966         if(!isWasmInitialized) {
3967                 throw new Error("initializeWasm() must be awaited first!");
3968         }
3969         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
3970         return nativeResponseValue;
3971 }
3972         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3973 /* @internal */
3974 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: number): number {
3975         if(!isWasmInitialized) {
3976                 throw new Error("initializeWasm() must be awaited first!");
3977         }
3978         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
3979         return nativeResponseValue;
3980 }
3981         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3982 /* @internal */
3983 export function CResult_OutPointDecodeErrorZ_get_ok(owner: number): number {
3984         if(!isWasmInitialized) {
3985                 throw new Error("initializeWasm() must be awaited first!");
3986         }
3987         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
3988         return nativeResponseValue;
3989 }
3990         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3991 /* @internal */
3992 export function CResult_OutPointDecodeErrorZ_get_err(owner: number): number {
3993         if(!isWasmInitialized) {
3994                 throw new Error("initializeWasm() must be awaited first!");
3995         }
3996         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
3997         return nativeResponseValue;
3998 }
3999 /* @internal */
4000 export interface LDKType {
4001         type_id (): number;
4002         debug_str (): number;
4003         write (): number;
4004 }
4005
4006 /* @internal */
4007 export function LDKType_new(impl: LDKType): number {
4008         if(!isWasmInitialized) {
4009                 throw new Error("initializeWasm() must be awaited first!");
4010         }
4011         var new_obj_idx = js_objs.length;
4012         for (var i = 0; i < js_objs.length; i++) {
4013                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4014         }
4015         js_objs[i] = new WeakRef(impl);
4016         return wasm.TS_LDKType_new(i);
4017 }
4018         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
4019 /* @internal */
4020 export function Type_type_id(this_arg: number): number {
4021         if(!isWasmInitialized) {
4022                 throw new Error("initializeWasm() must be awaited first!");
4023         }
4024         const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
4025         return nativeResponseValue;
4026 }
4027         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
4028 /* @internal */
4029 export function Type_debug_str(this_arg: number): number {
4030         if(!isWasmInitialized) {
4031                 throw new Error("initializeWasm() must be awaited first!");
4032         }
4033         const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
4034         return nativeResponseValue;
4035 }
4036         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
4037 /* @internal */
4038 export function Type_write(this_arg: number): number {
4039         if(!isWasmInitialized) {
4040                 throw new Error("initializeWasm() must be awaited first!");
4041         }
4042         const nativeResponseValue = wasm.TS_Type_write(this_arg);
4043         return nativeResponseValue;
4044 }
4045 /* @internal */
4046 export class LDKCOption_TypeZ {
4047         protected constructor() {}
4048 }
4049 /* @internal */
4050 export function LDKCOption_TypeZ_ty_from_ptr(ptr: number): number {
4051         if(!isWasmInitialized) {
4052                 throw new Error("initializeWasm() must be awaited first!");
4053         }
4054         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
4055         return nativeResponseValue;
4056 }
4057 /* @internal */
4058 export function LDKCOption_TypeZ_Some_get_some(ptr: number): number {
4059         if(!isWasmInitialized) {
4060                 throw new Error("initializeWasm() must be awaited first!");
4061         }
4062         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
4063         return nativeResponseValue;
4064 }
4065         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
4066 /* @internal */
4067 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: number): number {
4068         if(!isWasmInitialized) {
4069                 throw new Error("initializeWasm() must be awaited first!");
4070         }
4071         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
4072         return nativeResponseValue;
4073 }
4074         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
4075 /* @internal */
4076 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: number): number {
4077         if(!isWasmInitialized) {
4078                 throw new Error("initializeWasm() must be awaited first!");
4079         }
4080         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
4081         return nativeResponseValue;
4082 }
4083 /* @internal */
4084 export class LDKPaymentError {
4085         protected constructor() {}
4086 }
4087 /* @internal */
4088 export function LDKPaymentError_ty_from_ptr(ptr: number): number {
4089         if(!isWasmInitialized) {
4090                 throw new Error("initializeWasm() must be awaited first!");
4091         }
4092         const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
4093         return nativeResponseValue;
4094 }
4095 /* @internal */
4096 export function LDKPaymentError_Invoice_get_invoice(ptr: number): number {
4097         if(!isWasmInitialized) {
4098                 throw new Error("initializeWasm() must be awaited first!");
4099         }
4100         const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
4101         return nativeResponseValue;
4102 }
4103 /* @internal */
4104 export function LDKPaymentError_Routing_get_routing(ptr: number): number {
4105         if(!isWasmInitialized) {
4106                 throw new Error("initializeWasm() must be awaited first!");
4107         }
4108         const nativeResponseValue = wasm.TS_LDKPaymentError_Routing_get_routing(ptr);
4109         return nativeResponseValue;
4110 }
4111 /* @internal */
4112 export function LDKPaymentError_Sending_get_sending(ptr: number): number {
4113         if(!isWasmInitialized) {
4114                 throw new Error("initializeWasm() must be awaited first!");
4115         }
4116         const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
4117         return nativeResponseValue;
4118 }
4119         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4120 /* @internal */
4121 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: number): number {
4122         if(!isWasmInitialized) {
4123                 throw new Error("initializeWasm() must be awaited first!");
4124         }
4125         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
4126         return nativeResponseValue;
4127 }
4128         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4129 /* @internal */
4130 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: number): number {
4131         if(!isWasmInitialized) {
4132                 throw new Error("initializeWasm() must be awaited first!");
4133         }
4134         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
4135         return nativeResponseValue;
4136 }
4137 /* @internal */
4138 export class LDKParseError {
4139         protected constructor() {}
4140 }
4141 /* @internal */
4142 export function LDKParseError_ty_from_ptr(ptr: number): number {
4143         if(!isWasmInitialized) {
4144                 throw new Error("initializeWasm() must be awaited first!");
4145         }
4146         const nativeResponseValue = wasm.TS_LDKParseError_ty_from_ptr(ptr);
4147         return nativeResponseValue;
4148 }
4149 /* @internal */
4150 export function LDKParseError_Bech32Error_get_bech32_error(ptr: number): number {
4151         if(!isWasmInitialized) {
4152                 throw new Error("initializeWasm() must be awaited first!");
4153         }
4154         const nativeResponseValue = wasm.TS_LDKParseError_Bech32Error_get_bech32_error(ptr);
4155         return nativeResponseValue;
4156 }
4157 /* @internal */
4158 export function LDKParseError_ParseAmountError_get_parse_amount_error(ptr: number): number {
4159         if(!isWasmInitialized) {
4160                 throw new Error("initializeWasm() must be awaited first!");
4161         }
4162         const nativeResponseValue = wasm.TS_LDKParseError_ParseAmountError_get_parse_amount_error(ptr);
4163         return nativeResponseValue;
4164 }
4165 /* @internal */
4166 export function LDKParseError_MalformedSignature_get_malformed_signature(ptr: number): Secp256k1Error {
4167         if(!isWasmInitialized) {
4168                 throw new Error("initializeWasm() must be awaited first!");
4169         }
4170         const nativeResponseValue = wasm.TS_LDKParseError_MalformedSignature_get_malformed_signature(ptr);
4171         return nativeResponseValue;
4172 }
4173 /* @internal */
4174 export function LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr: number): number {
4175         if(!isWasmInitialized) {
4176                 throw new Error("initializeWasm() must be awaited first!");
4177         }
4178         const nativeResponseValue = wasm.TS_LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr);
4179         return nativeResponseValue;
4180 }
4181 /* @internal */
4182 export function LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr: number): number {
4183         if(!isWasmInitialized) {
4184                 throw new Error("initializeWasm() must be awaited first!");
4185         }
4186         const nativeResponseValue = wasm.TS_LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr);
4187         return nativeResponseValue;
4188 }
4189         // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4190 /* @internal */
4191 export function CResult_SiPrefixParseErrorZ_get_ok(owner: number): SiPrefix {
4192         if(!isWasmInitialized) {
4193                 throw new Error("initializeWasm() must be awaited first!");
4194         }
4195         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_ok(owner);
4196         return nativeResponseValue;
4197 }
4198         // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4199 /* @internal */
4200 export function CResult_SiPrefixParseErrorZ_get_err(owner: number): number {
4201         if(!isWasmInitialized) {
4202                 throw new Error("initializeWasm() must be awaited first!");
4203         }
4204         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_err(owner);
4205         return nativeResponseValue;
4206 }
4207 /* @internal */
4208 export class LDKParseOrSemanticError {
4209         protected constructor() {}
4210 }
4211 /* @internal */
4212 export function LDKParseOrSemanticError_ty_from_ptr(ptr: number): number {
4213         if(!isWasmInitialized) {
4214                 throw new Error("initializeWasm() must be awaited first!");
4215         }
4216         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ty_from_ptr(ptr);
4217         return nativeResponseValue;
4218 }
4219 /* @internal */
4220 export function LDKParseOrSemanticError_ParseError_get_parse_error(ptr: number): number {
4221         if(!isWasmInitialized) {
4222                 throw new Error("initializeWasm() must be awaited first!");
4223         }
4224         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ParseError_get_parse_error(ptr);
4225         return nativeResponseValue;
4226 }
4227 /* @internal */
4228 export function LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr: number): SemanticError {
4229         if(!isWasmInitialized) {
4230                 throw new Error("initializeWasm() must be awaited first!");
4231         }
4232         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr);
4233         return nativeResponseValue;
4234 }
4235         // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4236 /* @internal */
4237 export function CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner: number): number {
4238         if(!isWasmInitialized) {
4239                 throw new Error("initializeWasm() must be awaited first!");
4240         }
4241         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner);
4242         return nativeResponseValue;
4243 }
4244         // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4245 /* @internal */
4246 export function CResult_InvoiceParseOrSemanticErrorZ_get_err(owner: number): number {
4247         if(!isWasmInitialized) {
4248                 throw new Error("initializeWasm() must be awaited first!");
4249         }
4250         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_err(owner);
4251         return nativeResponseValue;
4252 }
4253         // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4254 /* @internal */
4255 export function CResult_SignedRawInvoiceParseErrorZ_get_ok(owner: number): number {
4256         if(!isWasmInitialized) {
4257                 throw new Error("initializeWasm() must be awaited first!");
4258         }
4259         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_ok(owner);
4260         return nativeResponseValue;
4261 }
4262         // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4263 /* @internal */
4264 export function CResult_SignedRawInvoiceParseErrorZ_get_err(owner: number): number {
4265         if(!isWasmInitialized) {
4266                 throw new Error("initializeWasm() must be awaited first!");
4267         }
4268         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_err(owner);
4269         return nativeResponseValue;
4270 }
4271         // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4272 /* @internal */
4273 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: number): number {
4274         if(!isWasmInitialized) {
4275                 throw new Error("initializeWasm() must be awaited first!");
4276         }
4277         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
4278         return nativeResponseValue;
4279 }
4280         // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4281 /* @internal */
4282 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: number): number {
4283         if(!isWasmInitialized) {
4284                 throw new Error("initializeWasm() must be awaited first!");
4285         }
4286         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
4287         return nativeResponseValue;
4288 }
4289         // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4290 /* @internal */
4291 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: number): number {
4292         if(!isWasmInitialized) {
4293                 throw new Error("initializeWasm() must be awaited first!");
4294         }
4295         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
4296         return nativeResponseValue;
4297 }
4298         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4299 /* @internal */
4300 export function CResult_PayeePubKeyErrorZ_get_ok(owner: number): number {
4301         if(!isWasmInitialized) {
4302                 throw new Error("initializeWasm() must be awaited first!");
4303         }
4304         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
4305         return nativeResponseValue;
4306 }
4307         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4308 /* @internal */
4309 export function CResult_PayeePubKeyErrorZ_get_err(owner: number): Secp256k1Error {
4310         if(!isWasmInitialized) {
4311                 throw new Error("initializeWasm() must be awaited first!");
4312         }
4313         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
4314         return nativeResponseValue;
4315 }
4316         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4317 /* @internal */
4318 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: number): number {
4319         if(!isWasmInitialized) {
4320                 throw new Error("initializeWasm() must be awaited first!");
4321         }
4322         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
4323         return nativeResponseValue;
4324 }
4325         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4326 /* @internal */
4327 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: number): CreationError {
4328         if(!isWasmInitialized) {
4329                 throw new Error("initializeWasm() must be awaited first!");
4330         }
4331         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
4332         return nativeResponseValue;
4333 }
4334         // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4335 /* @internal */
4336 export function CResult_NoneSemanticErrorZ_get_ok(owner: number): void {
4337         if(!isWasmInitialized) {
4338                 throw new Error("initializeWasm() must be awaited first!");
4339         }
4340         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
4341         // debug statements here
4342 }
4343         // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4344 /* @internal */
4345 export function CResult_NoneSemanticErrorZ_get_err(owner: number): SemanticError {
4346         if(!isWasmInitialized) {
4347                 throw new Error("initializeWasm() must be awaited first!");
4348         }
4349         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
4350         return nativeResponseValue;
4351 }
4352         // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4353 /* @internal */
4354 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: number): number {
4355         if(!isWasmInitialized) {
4356                 throw new Error("initializeWasm() must be awaited first!");
4357         }
4358         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
4359         return nativeResponseValue;
4360 }
4361         // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4362 /* @internal */
4363 export function CResult_InvoiceSemanticErrorZ_get_err(owner: number): SemanticError {
4364         if(!isWasmInitialized) {
4365                 throw new Error("initializeWasm() must be awaited first!");
4366         }
4367         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
4368         return nativeResponseValue;
4369 }
4370         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4371 /* @internal */
4372 export function CResult_DescriptionCreationErrorZ_get_ok(owner: number): number {
4373         if(!isWasmInitialized) {
4374                 throw new Error("initializeWasm() must be awaited first!");
4375         }
4376         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
4377         return nativeResponseValue;
4378 }
4379         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4380 /* @internal */
4381 export function CResult_DescriptionCreationErrorZ_get_err(owner: number): CreationError {
4382         if(!isWasmInitialized) {
4383                 throw new Error("initializeWasm() must be awaited first!");
4384         }
4385         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
4386         return nativeResponseValue;
4387 }
4388         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4389 /* @internal */
4390 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: number): number {
4391         if(!isWasmInitialized) {
4392                 throw new Error("initializeWasm() must be awaited first!");
4393         }
4394         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
4395         return nativeResponseValue;
4396 }
4397         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4398 /* @internal */
4399 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: number): CreationError {
4400         if(!isWasmInitialized) {
4401                 throw new Error("initializeWasm() must be awaited first!");
4402         }
4403         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
4404         return nativeResponseValue;
4405 }
4406         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4407 /* @internal */
4408 export function CResult_StringErrorZ_get_ok(owner: number): number {
4409         if(!isWasmInitialized) {
4410                 throw new Error("initializeWasm() must be awaited first!");
4411         }
4412         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
4413         return nativeResponseValue;
4414 }
4415         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4416 /* @internal */
4417 export function CResult_StringErrorZ_get_err(owner: number): Secp256k1Error {
4418         if(!isWasmInitialized) {
4419                 throw new Error("initializeWasm() must be awaited first!");
4420         }
4421         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
4422         return nativeResponseValue;
4423 }
4424         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4425 /* @internal */
4426 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: number): number {
4427         if(!isWasmInitialized) {
4428                 throw new Error("initializeWasm() must be awaited first!");
4429         }
4430         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
4431         return nativeResponseValue;
4432 }
4433         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4434 /* @internal */
4435 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: number): number {
4436         if(!isWasmInitialized) {
4437                 throw new Error("initializeWasm() must be awaited first!");
4438         }
4439         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
4440         return nativeResponseValue;
4441 }
4442 /* @internal */
4443 export class LDKCOption_MonitorEventZ {
4444         protected constructor() {}
4445 }
4446 /* @internal */
4447 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: number): number {
4448         if(!isWasmInitialized) {
4449                 throw new Error("initializeWasm() must be awaited first!");
4450         }
4451         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
4452         return nativeResponseValue;
4453 }
4454 /* @internal */
4455 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: number): number {
4456         if(!isWasmInitialized) {
4457                 throw new Error("initializeWasm() must be awaited first!");
4458         }
4459         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
4460         return nativeResponseValue;
4461 }
4462         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4463 /* @internal */
4464 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: number): number {
4465         if(!isWasmInitialized) {
4466                 throw new Error("initializeWasm() must be awaited first!");
4467         }
4468         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
4469         return nativeResponseValue;
4470 }
4471         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4472 /* @internal */
4473 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: number): number {
4474         if(!isWasmInitialized) {
4475                 throw new Error("initializeWasm() must be awaited first!");
4476         }
4477         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
4478         return nativeResponseValue;
4479 }
4480         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4481 /* @internal */
4482 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: number): number {
4483         if(!isWasmInitialized) {
4484                 throw new Error("initializeWasm() must be awaited first!");
4485         }
4486         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
4487         return nativeResponseValue;
4488 }
4489         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4490 /* @internal */
4491 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: number): number {
4492         if(!isWasmInitialized) {
4493                 throw new Error("initializeWasm() must be awaited first!");
4494         }
4495         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
4496         return nativeResponseValue;
4497 }
4498         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4499 /* @internal */
4500 export function C2Tuple_OutPointScriptZ_get_a(owner: number): number {
4501         if(!isWasmInitialized) {
4502                 throw new Error("initializeWasm() must be awaited first!");
4503         }
4504         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
4505         return nativeResponseValue;
4506 }
4507         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4508 /* @internal */
4509 export function C2Tuple_OutPointScriptZ_get_b(owner: number): number {
4510         if(!isWasmInitialized) {
4511                 throw new Error("initializeWasm() must be awaited first!");
4512         }
4513         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
4514         return nativeResponseValue;
4515 }
4516         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4517 /* @internal */
4518 export function C2Tuple_u32ScriptZ_get_a(owner: number): number {
4519         if(!isWasmInitialized) {
4520                 throw new Error("initializeWasm() must be awaited first!");
4521         }
4522         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
4523         return nativeResponseValue;
4524 }
4525         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4526 /* @internal */
4527 export function C2Tuple_u32ScriptZ_get_b(owner: number): number {
4528         if(!isWasmInitialized) {
4529                 throw new Error("initializeWasm() must be awaited first!");
4530         }
4531         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
4532         return nativeResponseValue;
4533 }
4534         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4535 /* @internal */
4536 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: number): number {
4537         if(!isWasmInitialized) {
4538                 throw new Error("initializeWasm() must be awaited first!");
4539         }
4540         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
4541         return nativeResponseValue;
4542 }
4543         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4544 /* @internal */
4545 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: number): number {
4546         if(!isWasmInitialized) {
4547                 throw new Error("initializeWasm() must be awaited first!");
4548         }
4549         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
4550         return nativeResponseValue;
4551 }
4552         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4553 /* @internal */
4554 export function C2Tuple_u32TxOutZ_get_a(owner: number): number {
4555         if(!isWasmInitialized) {
4556                 throw new Error("initializeWasm() must be awaited first!");
4557         }
4558         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
4559         return nativeResponseValue;
4560 }
4561         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4562 /* @internal */
4563 export function C2Tuple_u32TxOutZ_get_b(owner: number): number {
4564         if(!isWasmInitialized) {
4565                 throw new Error("initializeWasm() must be awaited first!");
4566         }
4567         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
4568         return nativeResponseValue;
4569 }
4570         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4571 /* @internal */
4572 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: number): number {
4573         if(!isWasmInitialized) {
4574                 throw new Error("initializeWasm() must be awaited first!");
4575         }
4576         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
4577         return nativeResponseValue;
4578 }
4579         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4580 /* @internal */
4581 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: number): number {
4582         if(!isWasmInitialized) {
4583                 throw new Error("initializeWasm() must be awaited first!");
4584         }
4585         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
4586         return nativeResponseValue;
4587 }
4588 /* @internal */
4589 export class LDKBalance {
4590         protected constructor() {}
4591 }
4592 /* @internal */
4593 export function LDKBalance_ty_from_ptr(ptr: number): number {
4594         if(!isWasmInitialized) {
4595                 throw new Error("initializeWasm() must be awaited first!");
4596         }
4597         const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
4598         return nativeResponseValue;
4599 }
4600 /* @internal */
4601 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: number): bigint {
4602         if(!isWasmInitialized) {
4603                 throw new Error("initializeWasm() must be awaited first!");
4604         }
4605         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
4606         return nativeResponseValue;
4607 }
4608 /* @internal */
4609 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: number): bigint {
4610         if(!isWasmInitialized) {
4611                 throw new Error("initializeWasm() must be awaited first!");
4612         }
4613         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
4614         return nativeResponseValue;
4615 }
4616 /* @internal */
4617 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: number): number {
4618         if(!isWasmInitialized) {
4619                 throw new Error("initializeWasm() must be awaited first!");
4620         }
4621         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
4622         return nativeResponseValue;
4623 }
4624 /* @internal */
4625 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: number): bigint {
4626         if(!isWasmInitialized) {
4627                 throw new Error("initializeWasm() must be awaited first!");
4628         }
4629         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
4630         return nativeResponseValue;
4631 }
4632 /* @internal */
4633 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: number): number {
4634         if(!isWasmInitialized) {
4635                 throw new Error("initializeWasm() must be awaited first!");
4636         }
4637         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
4638         return nativeResponseValue;
4639 }
4640 /* @internal */
4641 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr: number): bigint {
4642         if(!isWasmInitialized) {
4643                 throw new Error("initializeWasm() must be awaited first!");
4644         }
4645         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr);
4646         return nativeResponseValue;
4647 }
4648 /* @internal */
4649 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr: number): number {
4650         if(!isWasmInitialized) {
4651                 throw new Error("initializeWasm() must be awaited first!");
4652         }
4653         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr);
4654         return nativeResponseValue;
4655 }
4656         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4657 /* @internal */
4658 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: number): number {
4659         if(!isWasmInitialized) {
4660                 throw new Error("initializeWasm() must be awaited first!");
4661         }
4662         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
4663         return nativeResponseValue;
4664 }
4665         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4666 /* @internal */
4667 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: number): number {
4668         if(!isWasmInitialized) {
4669                 throw new Error("initializeWasm() must be awaited first!");
4670         }
4671         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
4672         return nativeResponseValue;
4673 }
4674         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4675 /* @internal */
4676 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: number): number {
4677         if(!isWasmInitialized) {
4678                 throw new Error("initializeWasm() must be awaited first!");
4679         }
4680         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
4681         return nativeResponseValue;
4682 }
4683         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4684 /* @internal */
4685 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: number): number {
4686         if(!isWasmInitialized) {
4687                 throw new Error("initializeWasm() must be awaited first!");
4688         }
4689         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
4690         return nativeResponseValue;
4691 }
4692         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4693 /* @internal */
4694 export function C2Tuple_PublicKeyTypeZ_get_a(owner: number): number {
4695         if(!isWasmInitialized) {
4696                 throw new Error("initializeWasm() must be awaited first!");
4697         }
4698         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
4699         return nativeResponseValue;
4700 }
4701         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4702 /* @internal */
4703 export function C2Tuple_PublicKeyTypeZ_get_b(owner: number): number {
4704         if(!isWasmInitialized) {
4705                 throw new Error("initializeWasm() must be awaited first!");
4706         }
4707         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
4708         return nativeResponseValue;
4709 }
4710 /* @internal */
4711 export class LDKCOption_NetAddressZ {
4712         protected constructor() {}
4713 }
4714 /* @internal */
4715 export function LDKCOption_NetAddressZ_ty_from_ptr(ptr: number): number {
4716         if(!isWasmInitialized) {
4717                 throw new Error("initializeWasm() must be awaited first!");
4718         }
4719         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_ty_from_ptr(ptr);
4720         return nativeResponseValue;
4721 }
4722 /* @internal */
4723 export function LDKCOption_NetAddressZ_Some_get_some(ptr: number): number {
4724         if(!isWasmInitialized) {
4725                 throw new Error("initializeWasm() must be awaited first!");
4726         }
4727         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_Some_get_some(ptr);
4728         return nativeResponseValue;
4729 }
4730         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4731 /* @internal */
4732 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: number): number {
4733         if(!isWasmInitialized) {
4734                 throw new Error("initializeWasm() must be awaited first!");
4735         }
4736         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
4737         return nativeResponseValue;
4738 }
4739         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4740 /* @internal */
4741 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: number): number {
4742         if(!isWasmInitialized) {
4743                 throw new Error("initializeWasm() must be awaited first!");
4744         }
4745         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
4746         return nativeResponseValue;
4747 }
4748         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4749 /* @internal */
4750 export function CResult_NonePeerHandleErrorZ_get_ok(owner: number): void {
4751         if(!isWasmInitialized) {
4752                 throw new Error("initializeWasm() must be awaited first!");
4753         }
4754         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
4755         // debug statements here
4756 }
4757         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4758 /* @internal */
4759 export function CResult_NonePeerHandleErrorZ_get_err(owner: number): number {
4760         if(!isWasmInitialized) {
4761                 throw new Error("initializeWasm() must be awaited first!");
4762         }
4763         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
4764         return nativeResponseValue;
4765 }
4766         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4767 /* @internal */
4768 export function CResult_boolPeerHandleErrorZ_get_ok(owner: number): boolean {
4769         if(!isWasmInitialized) {
4770                 throw new Error("initializeWasm() must be awaited first!");
4771         }
4772         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
4773         return nativeResponseValue;
4774 }
4775         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4776 /* @internal */
4777 export function CResult_boolPeerHandleErrorZ_get_err(owner: number): number {
4778         if(!isWasmInitialized) {
4779                 throw new Error("initializeWasm() must be awaited first!");
4780         }
4781         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
4782         return nativeResponseValue;
4783 }
4784         // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
4785 /* @internal */
4786 export function CResult_NoneErrorZ_get_ok(owner: number): void {
4787         if(!isWasmInitialized) {
4788                 throw new Error("initializeWasm() must be awaited first!");
4789         }
4790         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_ok(owner);
4791         // debug statements here
4792 }
4793         // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
4794 /* @internal */
4795 export function CResult_NoneErrorZ_get_err(owner: number): IOError {
4796         if(!isWasmInitialized) {
4797                 throw new Error("initializeWasm() must be awaited first!");
4798         }
4799         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_err(owner);
4800         return nativeResponseValue;
4801 }
4802         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4803 /* @internal */
4804 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: number): number {
4805         if(!isWasmInitialized) {
4806                 throw new Error("initializeWasm() must be awaited first!");
4807         }
4808         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
4809         return nativeResponseValue;
4810 }
4811         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4812 /* @internal */
4813 export function CResult_NetAddressDecodeErrorZ_get_err(owner: number): number {
4814         if(!isWasmInitialized) {
4815                 throw new Error("initializeWasm() must be awaited first!");
4816         }
4817         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
4818         return nativeResponseValue;
4819 }
4820         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4821 /* @internal */
4822 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: number): number {
4823         if(!isWasmInitialized) {
4824                 throw new Error("initializeWasm() must be awaited first!");
4825         }
4826         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
4827         return nativeResponseValue;
4828 }
4829         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4830 /* @internal */
4831 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: number): number {
4832         if(!isWasmInitialized) {
4833                 throw new Error("initializeWasm() must be awaited first!");
4834         }
4835         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
4836         return nativeResponseValue;
4837 }
4838         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4839 /* @internal */
4840 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: number): number {
4841         if(!isWasmInitialized) {
4842                 throw new Error("initializeWasm() must be awaited first!");
4843         }
4844         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
4845         return nativeResponseValue;
4846 }
4847         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4848 /* @internal */
4849 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: number): number {
4850         if(!isWasmInitialized) {
4851                 throw new Error("initializeWasm() must be awaited first!");
4852         }
4853         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
4854         return nativeResponseValue;
4855 }
4856         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4857 /* @internal */
4858 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: number): number {
4859         if(!isWasmInitialized) {
4860                 throw new Error("initializeWasm() must be awaited first!");
4861         }
4862         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
4863         return nativeResponseValue;
4864 }
4865         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4866 /* @internal */
4867 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: number): number {
4868         if(!isWasmInitialized) {
4869                 throw new Error("initializeWasm() must be awaited first!");
4870         }
4871         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
4872         return nativeResponseValue;
4873 }
4874         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4875 /* @internal */
4876 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: number): number {
4877         if(!isWasmInitialized) {
4878                 throw new Error("initializeWasm() must be awaited first!");
4879         }
4880         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
4881         return nativeResponseValue;
4882 }
4883         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4884 /* @internal */
4885 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: number): number {
4886         if(!isWasmInitialized) {
4887                 throw new Error("initializeWasm() must be awaited first!");
4888         }
4889         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
4890         return nativeResponseValue;
4891 }
4892         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4893 /* @internal */
4894 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: number): number {
4895         if(!isWasmInitialized) {
4896                 throw new Error("initializeWasm() must be awaited first!");
4897         }
4898         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
4899         return nativeResponseValue;
4900 }
4901         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4902 /* @internal */
4903 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: number): number {
4904         if(!isWasmInitialized) {
4905                 throw new Error("initializeWasm() must be awaited first!");
4906         }
4907         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
4908         return nativeResponseValue;
4909 }
4910         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4911 /* @internal */
4912 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: number): number {
4913         if(!isWasmInitialized) {
4914                 throw new Error("initializeWasm() must be awaited first!");
4915         }
4916         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
4917         return nativeResponseValue;
4918 }
4919         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4920 /* @internal */
4921 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: number): number {
4922         if(!isWasmInitialized) {
4923                 throw new Error("initializeWasm() must be awaited first!");
4924         }
4925         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
4926         return nativeResponseValue;
4927 }
4928         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4929 /* @internal */
4930 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: number): number {
4931         if(!isWasmInitialized) {
4932                 throw new Error("initializeWasm() must be awaited first!");
4933         }
4934         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
4935         return nativeResponseValue;
4936 }
4937         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4938 /* @internal */
4939 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: number): number {
4940         if(!isWasmInitialized) {
4941                 throw new Error("initializeWasm() must be awaited first!");
4942         }
4943         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
4944         return nativeResponseValue;
4945 }
4946         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4947 /* @internal */
4948 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: number): number {
4949         if(!isWasmInitialized) {
4950                 throw new Error("initializeWasm() must be awaited first!");
4951         }
4952         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
4953         return nativeResponseValue;
4954 }
4955         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4956 /* @internal */
4957 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: number): number {
4958         if(!isWasmInitialized) {
4959                 throw new Error("initializeWasm() must be awaited first!");
4960         }
4961         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
4962         return nativeResponseValue;
4963 }
4964         // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
4965 /* @internal */
4966 export function CResult_ChannelReadyDecodeErrorZ_get_ok(owner: number): number {
4967         if(!isWasmInitialized) {
4968                 throw new Error("initializeWasm() must be awaited first!");
4969         }
4970         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_ok(owner);
4971         return nativeResponseValue;
4972 }
4973         // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
4974 /* @internal */
4975 export function CResult_ChannelReadyDecodeErrorZ_get_err(owner: number): number {
4976         if(!isWasmInitialized) {
4977                 throw new Error("initializeWasm() must be awaited first!");
4978         }
4979         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_err(owner);
4980         return nativeResponseValue;
4981 }
4982         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4983 /* @internal */
4984 export function CResult_InitDecodeErrorZ_get_ok(owner: number): number {
4985         if(!isWasmInitialized) {
4986                 throw new Error("initializeWasm() must be awaited first!");
4987         }
4988         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
4989         return nativeResponseValue;
4990 }
4991         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4992 /* @internal */
4993 export function CResult_InitDecodeErrorZ_get_err(owner: number): number {
4994         if(!isWasmInitialized) {
4995                 throw new Error("initializeWasm() must be awaited first!");
4996         }
4997         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
4998         return nativeResponseValue;
4999 }
5000         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
5001 /* @internal */
5002 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: number): number {
5003         if(!isWasmInitialized) {
5004                 throw new Error("initializeWasm() must be awaited first!");
5005         }
5006         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
5007         return nativeResponseValue;
5008 }
5009         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
5010 /* @internal */
5011 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: number): number {
5012         if(!isWasmInitialized) {
5013                 throw new Error("initializeWasm() must be awaited first!");
5014         }
5015         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
5016         return nativeResponseValue;
5017 }
5018         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
5019 /* @internal */
5020 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: number): number {
5021         if(!isWasmInitialized) {
5022                 throw new Error("initializeWasm() must be awaited first!");
5023         }
5024         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
5025         return nativeResponseValue;
5026 }
5027         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
5028 /* @internal */
5029 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: number): number {
5030         if(!isWasmInitialized) {
5031                 throw new Error("initializeWasm() must be awaited first!");
5032         }
5033         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
5034         return nativeResponseValue;
5035 }
5036         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
5037 /* @internal */
5038 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: number): number {
5039         if(!isWasmInitialized) {
5040                 throw new Error("initializeWasm() must be awaited first!");
5041         }
5042         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
5043         return nativeResponseValue;
5044 }
5045         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
5046 /* @internal */
5047 export function CResult_ShutdownDecodeErrorZ_get_err(owner: number): number {
5048         if(!isWasmInitialized) {
5049                 throw new Error("initializeWasm() must be awaited first!");
5050         }
5051         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
5052         return nativeResponseValue;
5053 }
5054         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
5055 /* @internal */
5056 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: number): number {
5057         if(!isWasmInitialized) {
5058                 throw new Error("initializeWasm() must be awaited first!");
5059         }
5060         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
5061         return nativeResponseValue;
5062 }
5063         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
5064 /* @internal */
5065 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: number): number {
5066         if(!isWasmInitialized) {
5067                 throw new Error("initializeWasm() must be awaited first!");
5068         }
5069         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
5070         return nativeResponseValue;
5071 }
5072         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
5073 /* @internal */
5074 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: number): number {
5075         if(!isWasmInitialized) {
5076                 throw new Error("initializeWasm() must be awaited first!");
5077         }
5078         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
5079         return nativeResponseValue;
5080 }
5081         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
5082 /* @internal */
5083 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: number): number {
5084         if(!isWasmInitialized) {
5085                 throw new Error("initializeWasm() must be awaited first!");
5086         }
5087         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
5088         return nativeResponseValue;
5089 }
5090         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5091 /* @internal */
5092 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: number): number {
5093         if(!isWasmInitialized) {
5094                 throw new Error("initializeWasm() must be awaited first!");
5095         }
5096         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
5097         return nativeResponseValue;
5098 }
5099         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5100 /* @internal */
5101 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: number): number {
5102         if(!isWasmInitialized) {
5103                 throw new Error("initializeWasm() must be awaited first!");
5104         }
5105         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
5106         return nativeResponseValue;
5107 }
5108         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5109 /* @internal */
5110 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: number): number {
5111         if(!isWasmInitialized) {
5112                 throw new Error("initializeWasm() must be awaited first!");
5113         }
5114         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
5115         return nativeResponseValue;
5116 }
5117         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5118 /* @internal */
5119 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: number): number {
5120         if(!isWasmInitialized) {
5121                 throw new Error("initializeWasm() must be awaited first!");
5122         }
5123         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
5124         return nativeResponseValue;
5125 }
5126         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5127 /* @internal */
5128 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: number): number {
5129         if(!isWasmInitialized) {
5130                 throw new Error("initializeWasm() must be awaited first!");
5131         }
5132         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
5133         return nativeResponseValue;
5134 }
5135         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5136 /* @internal */
5137 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: number): number {
5138         if(!isWasmInitialized) {
5139                 throw new Error("initializeWasm() must be awaited first!");
5140         }
5141         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
5142         return nativeResponseValue;
5143 }
5144         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5145 /* @internal */
5146 export function CResult_PingDecodeErrorZ_get_ok(owner: number): number {
5147         if(!isWasmInitialized) {
5148                 throw new Error("initializeWasm() must be awaited first!");
5149         }
5150         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
5151         return nativeResponseValue;
5152 }
5153         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5154 /* @internal */
5155 export function CResult_PingDecodeErrorZ_get_err(owner: number): number {
5156         if(!isWasmInitialized) {
5157                 throw new Error("initializeWasm() must be awaited first!");
5158         }
5159         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
5160         return nativeResponseValue;
5161 }
5162         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5163 /* @internal */
5164 export function CResult_PongDecodeErrorZ_get_ok(owner: number): number {
5165         if(!isWasmInitialized) {
5166                 throw new Error("initializeWasm() must be awaited first!");
5167         }
5168         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
5169         return nativeResponseValue;
5170 }
5171         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5172 /* @internal */
5173 export function CResult_PongDecodeErrorZ_get_err(owner: number): number {
5174         if(!isWasmInitialized) {
5175                 throw new Error("initializeWasm() must be awaited first!");
5176         }
5177         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
5178         return nativeResponseValue;
5179 }
5180         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5181 /* @internal */
5182 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5183         if(!isWasmInitialized) {
5184                 throw new Error("initializeWasm() must be awaited first!");
5185         }
5186         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
5187         return nativeResponseValue;
5188 }
5189         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5190 /* @internal */
5191 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5192         if(!isWasmInitialized) {
5193                 throw new Error("initializeWasm() must be awaited first!");
5194         }
5195         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
5196         return nativeResponseValue;
5197 }
5198         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5199 /* @internal */
5200 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5201         if(!isWasmInitialized) {
5202                 throw new Error("initializeWasm() must be awaited first!");
5203         }
5204         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
5205         return nativeResponseValue;
5206 }
5207         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5208 /* @internal */
5209 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5210         if(!isWasmInitialized) {
5211                 throw new Error("initializeWasm() must be awaited first!");
5212         }
5213         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
5214         return nativeResponseValue;
5215 }
5216         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5217 /* @internal */
5218 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5219         if(!isWasmInitialized) {
5220                 throw new Error("initializeWasm() must be awaited first!");
5221         }
5222         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
5223         return nativeResponseValue;
5224 }
5225         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5226 /* @internal */
5227 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5228         if(!isWasmInitialized) {
5229                 throw new Error("initializeWasm() must be awaited first!");
5230         }
5231         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
5232         return nativeResponseValue;
5233 }
5234         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5235 /* @internal */
5236 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5237         if(!isWasmInitialized) {
5238                 throw new Error("initializeWasm() must be awaited first!");
5239         }
5240         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
5241         return nativeResponseValue;
5242 }
5243         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5244 /* @internal */
5245 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5246         if(!isWasmInitialized) {
5247                 throw new Error("initializeWasm() must be awaited first!");
5248         }
5249         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
5250         return nativeResponseValue;
5251 }
5252         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5253 /* @internal */
5254 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: number): number {
5255         if(!isWasmInitialized) {
5256                 throw new Error("initializeWasm() must be awaited first!");
5257         }
5258         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
5259         return nativeResponseValue;
5260 }
5261         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5262 /* @internal */
5263 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: number): number {
5264         if(!isWasmInitialized) {
5265                 throw new Error("initializeWasm() must be awaited first!");
5266         }
5267         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
5268         return nativeResponseValue;
5269 }
5270         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5271 /* @internal */
5272 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: number): number {
5273         if(!isWasmInitialized) {
5274                 throw new Error("initializeWasm() must be awaited first!");
5275         }
5276         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
5277         return nativeResponseValue;
5278 }
5279         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5280 /* @internal */
5281 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: number): number {
5282         if(!isWasmInitialized) {
5283                 throw new Error("initializeWasm() must be awaited first!");
5284         }
5285         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
5286         return nativeResponseValue;
5287 }
5288         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5289 /* @internal */
5290 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5291         if(!isWasmInitialized) {
5292                 throw new Error("initializeWasm() must be awaited first!");
5293         }
5294         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
5295         return nativeResponseValue;
5296 }
5297         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5298 /* @internal */
5299 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5300         if(!isWasmInitialized) {
5301                 throw new Error("initializeWasm() must be awaited first!");
5302         }
5303         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
5304         return nativeResponseValue;
5305 }
5306         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5307 /* @internal */
5308 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5309         if(!isWasmInitialized) {
5310                 throw new Error("initializeWasm() must be awaited first!");
5311         }
5312         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
5313         return nativeResponseValue;
5314 }
5315         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5316 /* @internal */
5317 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5318         if(!isWasmInitialized) {
5319                 throw new Error("initializeWasm() must be awaited first!");
5320         }
5321         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
5322         return nativeResponseValue;
5323 }
5324         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5325 /* @internal */
5326 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: number): number {
5327         if(!isWasmInitialized) {
5328                 throw new Error("initializeWasm() must be awaited first!");
5329         }
5330         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
5331         return nativeResponseValue;
5332 }
5333         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5334 /* @internal */
5335 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: number): number {
5336         if(!isWasmInitialized) {
5337                 throw new Error("initializeWasm() must be awaited first!");
5338         }
5339         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
5340         return nativeResponseValue;
5341 }
5342         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5343 /* @internal */
5344 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: number): number {
5345         if(!isWasmInitialized) {
5346                 throw new Error("initializeWasm() must be awaited first!");
5347         }
5348         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
5349         return nativeResponseValue;
5350 }
5351         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5352 /* @internal */
5353 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: number): number {
5354         if(!isWasmInitialized) {
5355                 throw new Error("initializeWasm() must be awaited first!");
5356         }
5357         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
5358         return nativeResponseValue;
5359 }
5360         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5361 /* @internal */
5362 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5363         if(!isWasmInitialized) {
5364                 throw new Error("initializeWasm() must be awaited first!");
5365         }
5366         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
5367         return nativeResponseValue;
5368 }
5369         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5370 /* @internal */
5371 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: number): number {
5372         if(!isWasmInitialized) {
5373                 throw new Error("initializeWasm() must be awaited first!");
5374         }
5375         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
5376         return nativeResponseValue;
5377 }
5378         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5379 /* @internal */
5380 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5381         if(!isWasmInitialized) {
5382                 throw new Error("initializeWasm() must be awaited first!");
5383         }
5384         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
5385         return nativeResponseValue;
5386 }
5387         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5388 /* @internal */
5389 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: number): number {
5390         if(!isWasmInitialized) {
5391                 throw new Error("initializeWasm() must be awaited first!");
5392         }
5393         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
5394         return nativeResponseValue;
5395 }
5396         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5397 /* @internal */
5398 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: number): number {
5399         if(!isWasmInitialized) {
5400                 throw new Error("initializeWasm() must be awaited first!");
5401         }
5402         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
5403         return nativeResponseValue;
5404 }
5405         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5406 /* @internal */
5407 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: number): number {
5408         if(!isWasmInitialized) {
5409                 throw new Error("initializeWasm() must be awaited first!");
5410         }
5411         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
5412         return nativeResponseValue;
5413 }
5414 /* @internal */
5415 export class LDKSignOrCreationError {
5416         protected constructor() {}
5417 }
5418 /* @internal */
5419 export function LDKSignOrCreationError_ty_from_ptr(ptr: number): number {
5420         if(!isWasmInitialized) {
5421                 throw new Error("initializeWasm() must be awaited first!");
5422         }
5423         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
5424         return nativeResponseValue;
5425 }
5426 /* @internal */
5427 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: number): CreationError {
5428         if(!isWasmInitialized) {
5429                 throw new Error("initializeWasm() must be awaited first!");
5430         }
5431         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
5432         return nativeResponseValue;
5433 }
5434         // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5435 /* @internal */
5436 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: number): number {
5437         if(!isWasmInitialized) {
5438                 throw new Error("initializeWasm() must be awaited first!");
5439         }
5440         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
5441         return nativeResponseValue;
5442 }
5443         // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5444 /* @internal */
5445 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: number): number {
5446         if(!isWasmInitialized) {
5447                 throw new Error("initializeWasm() must be awaited first!");
5448         }
5449         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
5450         return nativeResponseValue;
5451 }
5452 /* @internal */
5453 export interface LDKFilter {
5454         register_tx (txid: number, script_pubkey: number): void;
5455         register_output (output: number): number;
5456 }
5457
5458 /* @internal */
5459 export function LDKFilter_new(impl: LDKFilter): number {
5460         if(!isWasmInitialized) {
5461                 throw new Error("initializeWasm() must be awaited first!");
5462         }
5463         var new_obj_idx = js_objs.length;
5464         for (var i = 0; i < js_objs.length; i++) {
5465                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5466         }
5467         js_objs[i] = new WeakRef(impl);
5468         return wasm.TS_LDKFilter_new(i);
5469 }
5470         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
5471 /* @internal */
5472 export function Filter_register_tx(this_arg: number, txid: number, script_pubkey: number): void {
5473         if(!isWasmInitialized) {
5474                 throw new Error("initializeWasm() must be awaited first!");
5475         }
5476         const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
5477         // debug statements here
5478 }
5479         // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
5480 /* @internal */
5481 export function Filter_register_output(this_arg: number, output: number): number {
5482         if(!isWasmInitialized) {
5483                 throw new Error("initializeWasm() must be awaited first!");
5484         }
5485         const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
5486         return nativeResponseValue;
5487 }
5488 /* @internal */
5489 export class LDKCOption_FilterZ {
5490         protected constructor() {}
5491 }
5492 /* @internal */
5493 export function LDKCOption_FilterZ_ty_from_ptr(ptr: number): number {
5494         if(!isWasmInitialized) {
5495                 throw new Error("initializeWasm() must be awaited first!");
5496         }
5497         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
5498         return nativeResponseValue;
5499 }
5500 /* @internal */
5501 export function LDKCOption_FilterZ_Some_get_some(ptr: number): number {
5502         if(!isWasmInitialized) {
5503                 throw new Error("initializeWasm() must be awaited first!");
5504         }
5505         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
5506         return nativeResponseValue;
5507 }
5508         // struct LDKLockedChannelMonitor *CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5509 /* @internal */
5510 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: number): number {
5511         if(!isWasmInitialized) {
5512                 throw new Error("initializeWasm() must be awaited first!");
5513         }
5514         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
5515         return nativeResponseValue;
5516 }
5517         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5518 /* @internal */
5519 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: number): void {
5520         if(!isWasmInitialized) {
5521                 throw new Error("initializeWasm() must be awaited first!");
5522         }
5523         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
5524         // debug statements here
5525 }
5526 /* @internal */
5527 export interface LDKMessageSendEventsProvider {
5528         get_and_clear_pending_msg_events (): number;
5529 }
5530
5531 /* @internal */
5532 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): number {
5533         if(!isWasmInitialized) {
5534                 throw new Error("initializeWasm() must be awaited first!");
5535         }
5536         var new_obj_idx = js_objs.length;
5537         for (var i = 0; i < js_objs.length; i++) {
5538                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5539         }
5540         js_objs[i] = new WeakRef(impl);
5541         return wasm.TS_LDKMessageSendEventsProvider_new(i);
5542 }
5543         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
5544 /* @internal */
5545 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: number): number {
5546         if(!isWasmInitialized) {
5547                 throw new Error("initializeWasm() must be awaited first!");
5548         }
5549         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
5550         return nativeResponseValue;
5551 }
5552 /* @internal */
5553 export interface LDKEventHandler {
5554         handle_event (event: number): void;
5555 }
5556
5557 /* @internal */
5558 export function LDKEventHandler_new(impl: LDKEventHandler): number {
5559         if(!isWasmInitialized) {
5560                 throw new Error("initializeWasm() must be awaited first!");
5561         }
5562         var new_obj_idx = js_objs.length;
5563         for (var i = 0; i < js_objs.length; i++) {
5564                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5565         }
5566         js_objs[i] = new WeakRef(impl);
5567         return wasm.TS_LDKEventHandler_new(i);
5568 }
5569         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
5570 /* @internal */
5571 export function EventHandler_handle_event(this_arg: number, event: number): void {
5572         if(!isWasmInitialized) {
5573                 throw new Error("initializeWasm() must be awaited first!");
5574         }
5575         const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
5576         // debug statements here
5577 }
5578 /* @internal */
5579 export interface LDKEventsProvider {
5580         process_pending_events (handler: number): void;
5581 }
5582
5583 /* @internal */
5584 export function LDKEventsProvider_new(impl: LDKEventsProvider): 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_LDKEventsProvider_new(i);
5594 }
5595         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
5596 /* @internal */
5597 export function EventsProvider_process_pending_events(this_arg: number, handler: number): void {
5598         if(!isWasmInitialized) {
5599                 throw new Error("initializeWasm() must be awaited first!");
5600         }
5601         const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
5602         // debug statements here
5603 }
5604 /* @internal */
5605 export interface LDKScore {
5606         channel_penalty_msat (short_channel_id: bigint, source: number, target: number, usage: number): bigint;
5607         payment_path_failed (path: number, short_channel_id: bigint): void;
5608         payment_path_successful (path: number): void;
5609         write (): number;
5610 }
5611
5612 /* @internal */
5613 export function LDKScore_new(impl: LDKScore): number {
5614         if(!isWasmInitialized) {
5615                 throw new Error("initializeWasm() must be awaited first!");
5616         }
5617         var new_obj_idx = js_objs.length;
5618         for (var i = 0; i < js_objs.length; i++) {
5619                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5620         }
5621         js_objs[i] = new WeakRef(impl);
5622         return wasm.TS_LDKScore_new(i);
5623 }
5624         // 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
5625 /* @internal */
5626 export function Score_channel_penalty_msat(this_arg: number, short_channel_id: bigint, source: number, target: number, usage: number): bigint {
5627         if(!isWasmInitialized) {
5628                 throw new Error("initializeWasm() must be awaited first!");
5629         }
5630         const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, source, target, usage);
5631         return nativeResponseValue;
5632 }
5633         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
5634 /* @internal */
5635 export function Score_payment_path_failed(this_arg: number, path: number, short_channel_id: bigint): void {
5636         if(!isWasmInitialized) {
5637                 throw new Error("initializeWasm() must be awaited first!");
5638         }
5639         const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
5640         // debug statements here
5641 }
5642         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
5643 /* @internal */
5644 export function Score_payment_path_successful(this_arg: number, path: number): void {
5645         if(!isWasmInitialized) {
5646                 throw new Error("initializeWasm() must be awaited first!");
5647         }
5648         const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
5649         // debug statements here
5650 }
5651         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
5652 /* @internal */
5653 export function Score_write(this_arg: number): number {
5654         if(!isWasmInitialized) {
5655                 throw new Error("initializeWasm() must be awaited first!");
5656         }
5657         const nativeResponseValue = wasm.TS_Score_write(this_arg);
5658         return nativeResponseValue;
5659 }
5660 /* @internal */
5661 export interface LDKPersister {
5662         persist_manager (channel_manager: number): number;
5663         persist_graph (network_graph: number): number;
5664         persist_scorer (scorer: number): number;
5665 }
5666
5667 /* @internal */
5668 export function LDKPersister_new(impl: LDKPersister): number {
5669         if(!isWasmInitialized) {
5670                 throw new Error("initializeWasm() must be awaited first!");
5671         }
5672         var new_obj_idx = js_objs.length;
5673         for (var i = 0; i < js_objs.length; i++) {
5674                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5675         }
5676         js_objs[i] = new WeakRef(impl);
5677         return wasm.TS_LDKPersister_new(i);
5678 }
5679         // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
5680 /* @internal */
5681 export function Persister_persist_manager(this_arg: number, channel_manager: number): number {
5682         if(!isWasmInitialized) {
5683                 throw new Error("initializeWasm() must be awaited first!");
5684         }
5685         const nativeResponseValue = wasm.TS_Persister_persist_manager(this_arg, channel_manager);
5686         return nativeResponseValue;
5687 }
5688         // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
5689 /* @internal */
5690 export function Persister_persist_graph(this_arg: number, network_graph: number): number {
5691         if(!isWasmInitialized) {
5692                 throw new Error("initializeWasm() must be awaited first!");
5693         }
5694         const nativeResponseValue = wasm.TS_Persister_persist_graph(this_arg, network_graph);
5695         return nativeResponseValue;
5696 }
5697         // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer
5698 /* @internal */
5699 export function Persister_persist_scorer(this_arg: number, scorer: number): number {
5700         if(!isWasmInitialized) {
5701                 throw new Error("initializeWasm() must be awaited first!");
5702         }
5703         const nativeResponseValue = wasm.TS_Persister_persist_scorer(this_arg, scorer);
5704         return nativeResponseValue;
5705 }
5706 /* @internal */
5707 export interface LDKListen {
5708         filtered_block_connected (header: number, txdata: number, height: number): void;
5709         block_connected (block: number, height: number): void;
5710         block_disconnected (header: number, height: number): void;
5711 }
5712
5713 /* @internal */
5714 export function LDKListen_new(impl: LDKListen): number {
5715         if(!isWasmInitialized) {
5716                 throw new Error("initializeWasm() must be awaited first!");
5717         }
5718         var new_obj_idx = js_objs.length;
5719         for (var i = 0; i < js_objs.length; i++) {
5720                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5721         }
5722         js_objs[i] = new WeakRef(impl);
5723         return wasm.TS_LDKListen_new(i);
5724 }
5725         // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5726 /* @internal */
5727 export function Listen_filtered_block_connected(this_arg: number, header: number, txdata: number, height: number): void {
5728         if(!isWasmInitialized) {
5729                 throw new Error("initializeWasm() must be awaited first!");
5730         }
5731         const nativeResponseValue = wasm.TS_Listen_filtered_block_connected(this_arg, header, txdata, height);
5732         // debug statements here
5733 }
5734         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
5735 /* @internal */
5736 export function Listen_block_connected(this_arg: number, block: number, height: number): void {
5737         if(!isWasmInitialized) {
5738                 throw new Error("initializeWasm() must be awaited first!");
5739         }
5740         const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
5741         // debug statements here
5742 }
5743         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5744 /* @internal */
5745 export function Listen_block_disconnected(this_arg: number, header: number, height: number): void {
5746         if(!isWasmInitialized) {
5747                 throw new Error("initializeWasm() must be awaited first!");
5748         }
5749         const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
5750         // debug statements here
5751 }
5752 /* @internal */
5753 export interface LDKConfirm {
5754         transactions_confirmed (header: number, txdata: number, height: number): void;
5755         transaction_unconfirmed (txid: number): void;
5756         best_block_updated (header: number, height: number): void;
5757         get_relevant_txids (): number;
5758 }
5759
5760 /* @internal */
5761 export function LDKConfirm_new(impl: LDKConfirm): number {
5762         if(!isWasmInitialized) {
5763                 throw new Error("initializeWasm() must be awaited first!");
5764         }
5765         var new_obj_idx = js_objs.length;
5766         for (var i = 0; i < js_objs.length; i++) {
5767                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5768         }
5769         js_objs[i] = new WeakRef(impl);
5770         return wasm.TS_LDKConfirm_new(i);
5771 }
5772         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5773 /* @internal */
5774 export function Confirm_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number): void {
5775         if(!isWasmInitialized) {
5776                 throw new Error("initializeWasm() must be awaited first!");
5777         }
5778         const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
5779         // debug statements here
5780 }
5781         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
5782 /* @internal */
5783 export function Confirm_transaction_unconfirmed(this_arg: number, txid: number): void {
5784         if(!isWasmInitialized) {
5785                 throw new Error("initializeWasm() must be awaited first!");
5786         }
5787         const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
5788         // debug statements here
5789 }
5790         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5791 /* @internal */
5792 export function Confirm_best_block_updated(this_arg: number, header: number, height: number): void {
5793         if(!isWasmInitialized) {
5794                 throw new Error("initializeWasm() must be awaited first!");
5795         }
5796         const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
5797         // debug statements here
5798 }
5799         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
5800 /* @internal */
5801 export function Confirm_get_relevant_txids(this_arg: number): number {
5802         if(!isWasmInitialized) {
5803                 throw new Error("initializeWasm() must be awaited first!");
5804         }
5805         const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
5806         return nativeResponseValue;
5807 }
5808 /* @internal */
5809 export interface LDKPersist {
5810         persist_new_channel (channel_id: number, data: number, update_id: number): number;
5811         update_persisted_channel (channel_id: number, update: number, data: number, update_id: number): number;
5812 }
5813
5814 /* @internal */
5815 export function LDKPersist_new(impl: LDKPersist): number {
5816         if(!isWasmInitialized) {
5817                 throw new Error("initializeWasm() must be awaited first!");
5818         }
5819         var new_obj_idx = js_objs.length;
5820         for (var i = 0; i < js_objs.length; i++) {
5821                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5822         }
5823         js_objs[i] = new WeakRef(impl);
5824         return wasm.TS_LDKPersist_new(i);
5825 }
5826         // 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
5827 /* @internal */
5828 export function Persist_persist_new_channel(this_arg: number, channel_id: number, data: number, update_id: number): number {
5829         if(!isWasmInitialized) {
5830                 throw new Error("initializeWasm() must be awaited first!");
5831         }
5832         const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
5833         return nativeResponseValue;
5834 }
5835         // 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
5836 /* @internal */
5837 export function Persist_update_persisted_channel(this_arg: number, channel_id: number, update: number, data: number, update_id: number): number {
5838         if(!isWasmInitialized) {
5839                 throw new Error("initializeWasm() must be awaited first!");
5840         }
5841         const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
5842         return nativeResponseValue;
5843 }
5844 /* @internal */
5845 export interface LDKChannelMessageHandler {
5846         handle_open_channel (their_node_id: number, their_features: number, msg: number): void;
5847         handle_accept_channel (their_node_id: number, their_features: number, msg: number): void;
5848         handle_funding_created (their_node_id: number, msg: number): void;
5849         handle_funding_signed (their_node_id: number, msg: number): void;
5850         handle_channel_ready (their_node_id: number, msg: number): void;
5851         handle_shutdown (their_node_id: number, their_features: number, msg: number): void;
5852         handle_closing_signed (their_node_id: number, msg: number): void;
5853         handle_update_add_htlc (their_node_id: number, msg: number): void;
5854         handle_update_fulfill_htlc (their_node_id: number, msg: number): void;
5855         handle_update_fail_htlc (their_node_id: number, msg: number): void;
5856         handle_update_fail_malformed_htlc (their_node_id: number, msg: number): void;
5857         handle_commitment_signed (their_node_id: number, msg: number): void;
5858         handle_revoke_and_ack (their_node_id: number, msg: number): void;
5859         handle_update_fee (their_node_id: number, msg: number): void;
5860         handle_announcement_signatures (their_node_id: number, msg: number): void;
5861         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
5862         peer_connected (their_node_id: number, msg: number): void;
5863         handle_channel_reestablish (their_node_id: number, msg: number): void;
5864         handle_channel_update (their_node_id: number, msg: number): void;
5865         handle_error (their_node_id: number, msg: number): void;
5866 }
5867
5868 /* @internal */
5869 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5870         if(!isWasmInitialized) {
5871                 throw new Error("initializeWasm() must be awaited first!");
5872         }
5873         var new_obj_idx = js_objs.length;
5874         for (var i = 0; i < js_objs.length; i++) {
5875                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5876         }
5877         js_objs[i] = new WeakRef(impl);
5878         return wasm.TS_LDKChannelMessageHandler_new(i);
5879 }
5880         // 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
5881 /* @internal */
5882 export function ChannelMessageHandler_handle_open_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5883         if(!isWasmInitialized) {
5884                 throw new Error("initializeWasm() must be awaited first!");
5885         }
5886         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, their_features, msg);
5887         // debug statements here
5888 }
5889         // 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
5890 /* @internal */
5891 export function ChannelMessageHandler_handle_accept_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5892         if(!isWasmInitialized) {
5893                 throw new Error("initializeWasm() must be awaited first!");
5894         }
5895         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, their_features, msg);
5896         // debug statements here
5897 }
5898         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
5899 /* @internal */
5900 export function ChannelMessageHandler_handle_funding_created(this_arg: number, their_node_id: number, msg: number): void {
5901         if(!isWasmInitialized) {
5902                 throw new Error("initializeWasm() must be awaited first!");
5903         }
5904         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
5905         // debug statements here
5906 }
5907         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
5908 /* @internal */
5909 export function ChannelMessageHandler_handle_funding_signed(this_arg: number, their_node_id: number, msg: number): void {
5910         if(!isWasmInitialized) {
5911                 throw new Error("initializeWasm() must be awaited first!");
5912         }
5913         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
5914         // debug statements here
5915 }
5916         // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
5917 /* @internal */
5918 export function ChannelMessageHandler_handle_channel_ready(this_arg: number, their_node_id: number, msg: number): void {
5919         if(!isWasmInitialized) {
5920                 throw new Error("initializeWasm() must be awaited first!");
5921         }
5922         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_ready(this_arg, their_node_id, msg);
5923         // debug statements here
5924 }
5925         // 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
5926 /* @internal */
5927 export function ChannelMessageHandler_handle_shutdown(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5928         if(!isWasmInitialized) {
5929                 throw new Error("initializeWasm() must be awaited first!");
5930         }
5931         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, their_features, msg);
5932         // debug statements here
5933 }
5934         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
5935 /* @internal */
5936 export function ChannelMessageHandler_handle_closing_signed(this_arg: number, their_node_id: number, msg: number): void {
5937         if(!isWasmInitialized) {
5938                 throw new Error("initializeWasm() must be awaited first!");
5939         }
5940         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
5941         // debug statements here
5942 }
5943         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
5944 /* @internal */
5945 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: number, their_node_id: number, msg: number): void {
5946         if(!isWasmInitialized) {
5947                 throw new Error("initializeWasm() must be awaited first!");
5948         }
5949         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
5950         // debug statements here
5951 }
5952         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
5953 /* @internal */
5954 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: number, their_node_id: number, msg: number): void {
5955         if(!isWasmInitialized) {
5956                 throw new Error("initializeWasm() must be awaited first!");
5957         }
5958         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
5959         // debug statements here
5960 }
5961         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
5962 /* @internal */
5963 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: number, their_node_id: number, msg: number): void {
5964         if(!isWasmInitialized) {
5965                 throw new Error("initializeWasm() must be awaited first!");
5966         }
5967         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
5968         // debug statements here
5969 }
5970         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
5971 /* @internal */
5972 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: number, their_node_id: number, msg: number): void {
5973         if(!isWasmInitialized) {
5974                 throw new Error("initializeWasm() must be awaited first!");
5975         }
5976         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
5977         // debug statements here
5978 }
5979         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
5980 /* @internal */
5981 export function ChannelMessageHandler_handle_commitment_signed(this_arg: number, their_node_id: number, msg: number): void {
5982         if(!isWasmInitialized) {
5983                 throw new Error("initializeWasm() must be awaited first!");
5984         }
5985         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
5986         // debug statements here
5987 }
5988         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
5989 /* @internal */
5990 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: number, their_node_id: number, msg: number): void {
5991         if(!isWasmInitialized) {
5992                 throw new Error("initializeWasm() must be awaited first!");
5993         }
5994         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
5995         // debug statements here
5996 }
5997         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
5998 /* @internal */
5999 export function ChannelMessageHandler_handle_update_fee(this_arg: number, their_node_id: number, msg: number): void {
6000         if(!isWasmInitialized) {
6001                 throw new Error("initializeWasm() must be awaited first!");
6002         }
6003         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
6004         // debug statements here
6005 }
6006         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
6007 /* @internal */
6008 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: number, their_node_id: number, msg: number): void {
6009         if(!isWasmInitialized) {
6010                 throw new Error("initializeWasm() must be awaited first!");
6011         }
6012         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
6013         // debug statements here
6014 }
6015         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
6016 /* @internal */
6017 export function ChannelMessageHandler_peer_disconnected(this_arg: number, their_node_id: number, no_connection_possible: boolean): void {
6018         if(!isWasmInitialized) {
6019                 throw new Error("initializeWasm() must be awaited first!");
6020         }
6021         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
6022         // debug statements here
6023 }
6024         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
6025 /* @internal */
6026 export function ChannelMessageHandler_peer_connected(this_arg: number, their_node_id: number, msg: number): void {
6027         if(!isWasmInitialized) {
6028                 throw new Error("initializeWasm() must be awaited first!");
6029         }
6030         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg);
6031         // debug statements here
6032 }
6033         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
6034 /* @internal */
6035 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: number, their_node_id: number, msg: number): void {
6036         if(!isWasmInitialized) {
6037                 throw new Error("initializeWasm() must be awaited first!");
6038         }
6039         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
6040         // debug statements here
6041 }
6042         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
6043 /* @internal */
6044 export function ChannelMessageHandler_handle_channel_update(this_arg: number, their_node_id: number, msg: number): void {
6045         if(!isWasmInitialized) {
6046                 throw new Error("initializeWasm() must be awaited first!");
6047         }
6048         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
6049         // debug statements here
6050 }
6051         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
6052 /* @internal */
6053 export function ChannelMessageHandler_handle_error(this_arg: number, their_node_id: number, msg: number): void {
6054         if(!isWasmInitialized) {
6055                 throw new Error("initializeWasm() must be awaited first!");
6056         }
6057         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
6058         // debug statements here
6059 }
6060 /* @internal */
6061 export interface LDKRoutingMessageHandler {
6062         handle_node_announcement (msg: number): number;
6063         handle_channel_announcement (msg: number): number;
6064         handle_channel_update (msg: number): number;
6065         get_next_channel_announcements (starting_point: bigint, batch_amount: number): number;
6066         get_next_node_announcements (starting_point: number, batch_amount: number): number;
6067         peer_connected (their_node_id: number, init: number): void;
6068         handle_reply_channel_range (their_node_id: number, msg: number): number;
6069         handle_reply_short_channel_ids_end (their_node_id: number, msg: number): number;
6070         handle_query_channel_range (their_node_id: number, msg: number): number;
6071         handle_query_short_channel_ids (their_node_id: number, msg: number): number;
6072 }
6073
6074 /* @internal */
6075 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
6076         if(!isWasmInitialized) {
6077                 throw new Error("initializeWasm() must be awaited first!");
6078         }
6079         var new_obj_idx = js_objs.length;
6080         for (var i = 0; i < js_objs.length; i++) {
6081                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6082         }
6083         js_objs[i] = new WeakRef(impl);
6084         return wasm.TS_LDKRoutingMessageHandler_new(i);
6085 }
6086         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
6087 /* @internal */
6088 export function RoutingMessageHandler_handle_node_announcement(this_arg: number, msg: number): number {
6089         if(!isWasmInitialized) {
6090                 throw new Error("initializeWasm() must be awaited first!");
6091         }
6092         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
6093         return nativeResponseValue;
6094 }
6095         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
6096 /* @internal */
6097 export function RoutingMessageHandler_handle_channel_announcement(this_arg: number, msg: number): number {
6098         if(!isWasmInitialized) {
6099                 throw new Error("initializeWasm() must be awaited first!");
6100         }
6101         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
6102         return nativeResponseValue;
6103 }
6104         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
6105 /* @internal */
6106 export function RoutingMessageHandler_handle_channel_update(this_arg: number, msg: number): number {
6107         if(!isWasmInitialized) {
6108                 throw new Error("initializeWasm() must be awaited first!");
6109         }
6110         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
6111         return nativeResponseValue;
6112 }
6113         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
6114 /* @internal */
6115 export function RoutingMessageHandler_get_next_channel_announcements(this_arg: number, starting_point: bigint, batch_amount: number): number {
6116         if(!isWasmInitialized) {
6117                 throw new Error("initializeWasm() must be awaited first!");
6118         }
6119         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcements(this_arg, starting_point, batch_amount);
6120         return nativeResponseValue;
6121 }
6122         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
6123 /* @internal */
6124 export function RoutingMessageHandler_get_next_node_announcements(this_arg: number, starting_point: number, batch_amount: number): number {
6125         if(!isWasmInitialized) {
6126                 throw new Error("initializeWasm() must be awaited first!");
6127         }
6128         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcements(this_arg, starting_point, batch_amount);
6129         return nativeResponseValue;
6130 }
6131         // void RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
6132 /* @internal */
6133 export function RoutingMessageHandler_peer_connected(this_arg: number, their_node_id: number, init: number): void {
6134         if(!isWasmInitialized) {
6135                 throw new Error("initializeWasm() must be awaited first!");
6136         }
6137         const nativeResponseValue = wasm.TS_RoutingMessageHandler_peer_connected(this_arg, their_node_id, init);
6138         // debug statements here
6139 }
6140         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
6141 /* @internal */
6142 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: number, their_node_id: number, msg: number): number {
6143         if(!isWasmInitialized) {
6144                 throw new Error("initializeWasm() must be awaited first!");
6145         }
6146         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
6147         return nativeResponseValue;
6148 }
6149         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
6150 /* @internal */
6151 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: number, their_node_id: number, msg: number): number {
6152         if(!isWasmInitialized) {
6153                 throw new Error("initializeWasm() must be awaited first!");
6154         }
6155         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
6156         return nativeResponseValue;
6157 }
6158         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
6159 /* @internal */
6160 export function RoutingMessageHandler_handle_query_channel_range(this_arg: number, their_node_id: number, msg: number): number {
6161         if(!isWasmInitialized) {
6162                 throw new Error("initializeWasm() must be awaited first!");
6163         }
6164         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
6165         return nativeResponseValue;
6166 }
6167         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
6168 /* @internal */
6169 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: number, their_node_id: number, msg: number): number {
6170         if(!isWasmInitialized) {
6171                 throw new Error("initializeWasm() must be awaited first!");
6172         }
6173         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
6174         return nativeResponseValue;
6175 }
6176 /* @internal */
6177 export interface LDKCustomMessageReader {
6178         read (message_type: number, buffer: number): number;
6179 }
6180
6181 /* @internal */
6182 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): number {
6183         if(!isWasmInitialized) {
6184                 throw new Error("initializeWasm() must be awaited first!");
6185         }
6186         var new_obj_idx = js_objs.length;
6187         for (var i = 0; i < js_objs.length; i++) {
6188                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6189         }
6190         js_objs[i] = new WeakRef(impl);
6191         return wasm.TS_LDKCustomMessageReader_new(i);
6192 }
6193         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
6194 /* @internal */
6195 export function CustomMessageReader_read(this_arg: number, message_type: number, buffer: number): number {
6196         if(!isWasmInitialized) {
6197                 throw new Error("initializeWasm() must be awaited first!");
6198         }
6199         const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
6200         return nativeResponseValue;
6201 }
6202 /* @internal */
6203 export interface LDKCustomMessageHandler {
6204         handle_custom_message (msg: number, sender_node_id: number): number;
6205         get_and_clear_pending_msg (): number;
6206 }
6207
6208 /* @internal */
6209 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: LDKCustomMessageReader): number {
6210         if(!isWasmInitialized) {
6211                 throw new Error("initializeWasm() must be awaited first!");
6212         }
6213         var new_obj_idx = js_objs.length;
6214         for (var i = 0; i < js_objs.length; i++) {
6215                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6216         }
6217         js_objs[i] = new WeakRef(impl);
6218         return wasm.TS_LDKCustomMessageHandler_new(i);
6219 }
6220         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
6221 /* @internal */
6222 export function CustomMessageHandler_handle_custom_message(this_arg: number, msg: number, sender_node_id: number): number {
6223         if(!isWasmInitialized) {
6224                 throw new Error("initializeWasm() must be awaited first!");
6225         }
6226         const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
6227         return nativeResponseValue;
6228 }
6229         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
6230 /* @internal */
6231 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: number): number {
6232         if(!isWasmInitialized) {
6233                 throw new Error("initializeWasm() must be awaited first!");
6234         }
6235         const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
6236         return nativeResponseValue;
6237 }
6238 /* @internal */
6239 export interface LDKSocketDescriptor {
6240         send_data (data: number, resume_read: boolean): number;
6241         disconnect_socket (): void;
6242         eq (other_arg: number): boolean;
6243         hash (): bigint;
6244 }
6245
6246 /* @internal */
6247 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): number {
6248         if(!isWasmInitialized) {
6249                 throw new Error("initializeWasm() must be awaited first!");
6250         }
6251         var new_obj_idx = js_objs.length;
6252         for (var i = 0; i < js_objs.length; i++) {
6253                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6254         }
6255         js_objs[i] = new WeakRef(impl);
6256         return wasm.TS_LDKSocketDescriptor_new(i);
6257 }
6258         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
6259 /* @internal */
6260 export function SocketDescriptor_send_data(this_arg: number, data: number, resume_read: boolean): number {
6261         if(!isWasmInitialized) {
6262                 throw new Error("initializeWasm() must be awaited first!");
6263         }
6264         const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
6265         return nativeResponseValue;
6266 }
6267         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
6268 /* @internal */
6269 export function SocketDescriptor_disconnect_socket(this_arg: number): void {
6270         if(!isWasmInitialized) {
6271                 throw new Error("initializeWasm() must be awaited first!");
6272         }
6273         const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
6274         // debug statements here
6275 }
6276         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
6277 /* @internal */
6278 export function SocketDescriptor_hash(this_arg: number): bigint {
6279         if(!isWasmInitialized) {
6280                 throw new Error("initializeWasm() must be awaited first!");
6281         }
6282         const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
6283         return nativeResponseValue;
6284 }
6285 /* @internal */
6286 export class LDKEffectiveCapacity {
6287         protected constructor() {}
6288 }
6289 /* @internal */
6290 export function LDKEffectiveCapacity_ty_from_ptr(ptr: number): number {
6291         if(!isWasmInitialized) {
6292                 throw new Error("initializeWasm() must be awaited first!");
6293         }
6294         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
6295         return nativeResponseValue;
6296 }
6297 /* @internal */
6298 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: number): bigint {
6299         if(!isWasmInitialized) {
6300                 throw new Error("initializeWasm() must be awaited first!");
6301         }
6302         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
6303         return nativeResponseValue;
6304 }
6305 /* @internal */
6306 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: number): bigint {
6307         if(!isWasmInitialized) {
6308                 throw new Error("initializeWasm() must be awaited first!");
6309         }
6310         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
6311         return nativeResponseValue;
6312 }
6313 /* @internal */
6314 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: number): bigint {
6315         if(!isWasmInitialized) {
6316                 throw new Error("initializeWasm() must be awaited first!");
6317         }
6318         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
6319         return nativeResponseValue;
6320 }
6321 /* @internal */
6322 export function LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr: number): number {
6323         if(!isWasmInitialized) {
6324                 throw new Error("initializeWasm() must be awaited first!");
6325         }
6326         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr);
6327         return nativeResponseValue;
6328 }
6329 /* @internal */
6330 export interface LDKLockableScore {
6331         lock (): number;
6332 }
6333
6334 /* @internal */
6335 export function LDKLockableScore_new(impl: LDKLockableScore): number {
6336         if(!isWasmInitialized) {
6337                 throw new Error("initializeWasm() must be awaited first!");
6338         }
6339         var new_obj_idx = js_objs.length;
6340         for (var i = 0; i < js_objs.length; i++) {
6341                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6342         }
6343         js_objs[i] = new WeakRef(impl);
6344         return wasm.TS_LDKLockableScore_new(i);
6345 }
6346         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
6347 /* @internal */
6348 export function LockableScore_lock(this_arg: number): number {
6349         if(!isWasmInitialized) {
6350                 throw new Error("initializeWasm() must be awaited first!");
6351         }
6352         const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
6353         return nativeResponseValue;
6354 }
6355 /* @internal */
6356 export class LDKFallback {
6357         protected constructor() {}
6358 }
6359 /* @internal */
6360 export function LDKFallback_ty_from_ptr(ptr: number): number {
6361         if(!isWasmInitialized) {
6362                 throw new Error("initializeWasm() must be awaited first!");
6363         }
6364         const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
6365         return nativeResponseValue;
6366 }
6367 /* @internal */
6368 export function LDKFallback_SegWitProgram_get_version(ptr: number): number {
6369         if(!isWasmInitialized) {
6370                 throw new Error("initializeWasm() must be awaited first!");
6371         }
6372         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
6373         return nativeResponseValue;
6374 }
6375 /* @internal */
6376 export function LDKFallback_SegWitProgram_get_program(ptr: number): number {
6377         if(!isWasmInitialized) {
6378                 throw new Error("initializeWasm() must be awaited first!");
6379         }
6380         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
6381         return nativeResponseValue;
6382 }
6383 /* @internal */
6384 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: number): number {
6385         if(!isWasmInitialized) {
6386                 throw new Error("initializeWasm() must be awaited first!");
6387         }
6388         const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
6389         return nativeResponseValue;
6390 }
6391 /* @internal */
6392 export function LDKFallback_ScriptHash_get_script_hash(ptr: number): number {
6393         if(!isWasmInitialized) {
6394                 throw new Error("initializeWasm() must be awaited first!");
6395         }
6396         const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
6397         return nativeResponseValue;
6398 }
6399 /* @internal */
6400 export interface LDKPayer {
6401         node_id (): number;
6402         first_hops (): number;
6403         send_payment (route: number, payment_hash: number, payment_secret: number): number;
6404         send_spontaneous_payment (route: number, payment_preimage: number): number;
6405         retry_payment (route: number, payment_id: number): number;
6406         abandon_payment (payment_id: number): void;
6407 }
6408
6409 /* @internal */
6410 export function LDKPayer_new(impl: LDKPayer): number {
6411         if(!isWasmInitialized) {
6412                 throw new Error("initializeWasm() must be awaited first!");
6413         }
6414         var new_obj_idx = js_objs.length;
6415         for (var i = 0; i < js_objs.length; i++) {
6416                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6417         }
6418         js_objs[i] = new WeakRef(impl);
6419         return wasm.TS_LDKPayer_new(i);
6420 }
6421         // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
6422 /* @internal */
6423 export function Payer_node_id(this_arg: number): number {
6424         if(!isWasmInitialized) {
6425                 throw new Error("initializeWasm() must be awaited first!");
6426         }
6427         const nativeResponseValue = wasm.TS_Payer_node_id(this_arg);
6428         return nativeResponseValue;
6429 }
6430         // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
6431 /* @internal */
6432 export function Payer_first_hops(this_arg: number): number {
6433         if(!isWasmInitialized) {
6434                 throw new Error("initializeWasm() must be awaited first!");
6435         }
6436         const nativeResponseValue = wasm.TS_Payer_first_hops(this_arg);
6437         return nativeResponseValue;
6438 }
6439         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
6440 /* @internal */
6441 export function Payer_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
6442         if(!isWasmInitialized) {
6443                 throw new Error("initializeWasm() must be awaited first!");
6444         }
6445         const nativeResponseValue = wasm.TS_Payer_send_payment(this_arg, route, payment_hash, payment_secret);
6446         return nativeResponseValue;
6447 }
6448         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
6449 /* @internal */
6450 export function Payer_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
6451         if(!isWasmInitialized) {
6452                 throw new Error("initializeWasm() must be awaited first!");
6453         }
6454         const nativeResponseValue = wasm.TS_Payer_send_spontaneous_payment(this_arg, route, payment_preimage);
6455         return nativeResponseValue;
6456 }
6457         // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
6458 /* @internal */
6459 export function Payer_retry_payment(this_arg: number, route: number, payment_id: number): number {
6460         if(!isWasmInitialized) {
6461                 throw new Error("initializeWasm() must be awaited first!");
6462         }
6463         const nativeResponseValue = wasm.TS_Payer_retry_payment(this_arg, route, payment_id);
6464         return nativeResponseValue;
6465 }
6466         // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
6467 /* @internal */
6468 export function Payer_abandon_payment(this_arg: number, payment_id: number): void {
6469         if(!isWasmInitialized) {
6470                 throw new Error("initializeWasm() must be awaited first!");
6471         }
6472         const nativeResponseValue = wasm.TS_Payer_abandon_payment(this_arg, payment_id);
6473         // debug statements here
6474 }
6475 /* @internal */
6476 export interface LDKRouter {
6477         find_route (payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number;
6478 }
6479
6480 /* @internal */
6481 export function LDKRouter_new(impl: LDKRouter): number {
6482         if(!isWasmInitialized) {
6483                 throw new Error("initializeWasm() must be awaited first!");
6484         }
6485         var new_obj_idx = js_objs.length;
6486         for (var i = 0; i < js_objs.length; i++) {
6487                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6488         }
6489         js_objs[i] = new WeakRef(impl);
6490         return wasm.TS_LDKRouter_new(i);
6491 }
6492         // 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
6493 /* @internal */
6494 export function Router_find_route(this_arg: number, payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number {
6495         if(!isWasmInitialized) {
6496                 throw new Error("initializeWasm() must be awaited first!");
6497         }
6498         const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, payment_hash, first_hops, scorer);
6499         return nativeResponseValue;
6500 }
6501 /* @internal */
6502 export class LDKRetry {
6503         protected constructor() {}
6504 }
6505 /* @internal */
6506 export function LDKRetry_ty_from_ptr(ptr: number): number {
6507         if(!isWasmInitialized) {
6508                 throw new Error("initializeWasm() must be awaited first!");
6509         }
6510         const nativeResponseValue = wasm.TS_LDKRetry_ty_from_ptr(ptr);
6511         return nativeResponseValue;
6512 }
6513 /* @internal */
6514 export function LDKRetry_Attempts_get_attempts(ptr: number): number {
6515         if(!isWasmInitialized) {
6516                 throw new Error("initializeWasm() must be awaited first!");
6517         }
6518         const nativeResponseValue = wasm.TS_LDKRetry_Attempts_get_attempts(ptr);
6519         return nativeResponseValue;
6520 }
6521         // struct LDKStr _ldk_get_compiled_version(void);
6522 /* @internal */
6523 export function _ldk_get_compiled_version(): number {
6524         if(!isWasmInitialized) {
6525                 throw new Error("initializeWasm() must be awaited first!");
6526         }
6527         const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
6528         return nativeResponseValue;
6529 }
6530         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
6531 /* @internal */
6532 export function _ldk_c_bindings_get_compiled_version(): number {
6533         if(!isWasmInitialized) {
6534                 throw new Error("initializeWasm() must be awaited first!");
6535         }
6536         const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
6537         return nativeResponseValue;
6538 }
6539         // uintptr_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
6540 /* @internal */
6541 export function Bech32Error_clone_ptr(arg: number): number {
6542         if(!isWasmInitialized) {
6543                 throw new Error("initializeWasm() must be awaited first!");
6544         }
6545         const nativeResponseValue = wasm.TS_Bech32Error_clone_ptr(arg);
6546         return nativeResponseValue;
6547 }
6548         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
6549 /* @internal */
6550 export function Bech32Error_clone(orig: number): number {
6551         if(!isWasmInitialized) {
6552                 throw new Error("initializeWasm() must be awaited first!");
6553         }
6554         const nativeResponseValue = wasm.TS_Bech32Error_clone(orig);
6555         return nativeResponseValue;
6556 }
6557         // void Bech32Error_free(struct LDKBech32Error o);
6558 /* @internal */
6559 export function Bech32Error_free(o: number): void {
6560         if(!isWasmInitialized) {
6561                 throw new Error("initializeWasm() must be awaited first!");
6562         }
6563         const nativeResponseValue = wasm.TS_Bech32Error_free(o);
6564         // debug statements here
6565 }
6566         // void Transaction_free(struct LDKTransaction _res);
6567 /* @internal */
6568 export function Transaction_free(_res: number): void {
6569         if(!isWasmInitialized) {
6570                 throw new Error("initializeWasm() must be awaited first!");
6571         }
6572         const nativeResponseValue = wasm.TS_Transaction_free(_res);
6573         // debug statements here
6574 }
6575         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
6576 /* @internal */
6577 export function TxOut_new(script_pubkey: number, value: bigint): number {
6578         if(!isWasmInitialized) {
6579                 throw new Error("initializeWasm() must be awaited first!");
6580         }
6581         const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
6582         return nativeResponseValue;
6583 }
6584         // void TxOut_free(struct LDKTxOut _res);
6585 /* @internal */
6586 export function TxOut_free(_res: number): void {
6587         if(!isWasmInitialized) {
6588                 throw new Error("initializeWasm() must be awaited first!");
6589         }
6590         const nativeResponseValue = wasm.TS_TxOut_free(_res);
6591         // debug statements here
6592 }
6593         // uintptr_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
6594 /* @internal */
6595 export function TxOut_clone_ptr(arg: number): number {
6596         if(!isWasmInitialized) {
6597                 throw new Error("initializeWasm() must be awaited first!");
6598         }
6599         const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
6600         return nativeResponseValue;
6601 }
6602         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
6603 /* @internal */
6604 export function TxOut_clone(orig: number): number {
6605         if(!isWasmInitialized) {
6606                 throw new Error("initializeWasm() must be awaited first!");
6607         }
6608         const nativeResponseValue = wasm.TS_TxOut_clone(orig);
6609         return nativeResponseValue;
6610 }
6611         // void Str_free(struct LDKStr _res);
6612 /* @internal */
6613 export function Str_free(_res: number): void {
6614         if(!isWasmInitialized) {
6615                 throw new Error("initializeWasm() must be awaited first!");
6616         }
6617         const nativeResponseValue = wasm.TS_Str_free(_res);
6618         // debug statements here
6619 }
6620         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
6621 /* @internal */
6622 export function CResult_NoneNoneZ_ok(): number {
6623         if(!isWasmInitialized) {
6624                 throw new Error("initializeWasm() must be awaited first!");
6625         }
6626         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
6627         return nativeResponseValue;
6628 }
6629         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
6630 /* @internal */
6631 export function CResult_NoneNoneZ_err(): number {
6632         if(!isWasmInitialized) {
6633                 throw new Error("initializeWasm() must be awaited first!");
6634         }
6635         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
6636         return nativeResponseValue;
6637 }
6638         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
6639 /* @internal */
6640 export function CResult_NoneNoneZ_is_ok(o: number): boolean {
6641         if(!isWasmInitialized) {
6642                 throw new Error("initializeWasm() must be awaited first!");
6643         }
6644         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
6645         return nativeResponseValue;
6646 }
6647         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
6648 /* @internal */
6649 export function CResult_NoneNoneZ_free(_res: number): void {
6650         if(!isWasmInitialized) {
6651                 throw new Error("initializeWasm() must be awaited first!");
6652         }
6653         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
6654         // debug statements here
6655 }
6656         // uintptr_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
6657 /* @internal */
6658 export function CResult_NoneNoneZ_clone_ptr(arg: number): number {
6659         if(!isWasmInitialized) {
6660                 throw new Error("initializeWasm() must be awaited first!");
6661         }
6662         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
6663         return nativeResponseValue;
6664 }
6665         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
6666 /* @internal */
6667 export function CResult_NoneNoneZ_clone(orig: number): number {
6668         if(!isWasmInitialized) {
6669                 throw new Error("initializeWasm() must be awaited first!");
6670         }
6671         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
6672         return nativeResponseValue;
6673 }
6674         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
6675 /* @internal */
6676 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: number): number {
6677         if(!isWasmInitialized) {
6678                 throw new Error("initializeWasm() must be awaited first!");
6679         }
6680         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
6681         return nativeResponseValue;
6682 }
6683         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
6684 /* @internal */
6685 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: number): number {
6686         if(!isWasmInitialized) {
6687                 throw new Error("initializeWasm() must be awaited first!");
6688         }
6689         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
6690         return nativeResponseValue;
6691 }
6692         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
6693 /* @internal */
6694 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: number): boolean {
6695         if(!isWasmInitialized) {
6696                 throw new Error("initializeWasm() must be awaited first!");
6697         }
6698         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
6699         return nativeResponseValue;
6700 }
6701         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
6702 /* @internal */
6703 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: number): void {
6704         if(!isWasmInitialized) {
6705                 throw new Error("initializeWasm() must be awaited first!");
6706         }
6707         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
6708         // debug statements here
6709 }
6710         // uintptr_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
6711 /* @internal */
6712 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: number): number {
6713         if(!isWasmInitialized) {
6714                 throw new Error("initializeWasm() must be awaited first!");
6715         }
6716         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
6717         return nativeResponseValue;
6718 }
6719         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
6720 /* @internal */
6721 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: number): number {
6722         if(!isWasmInitialized) {
6723                 throw new Error("initializeWasm() must be awaited first!");
6724         }
6725         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
6726         return nativeResponseValue;
6727 }
6728         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
6729 /* @internal */
6730 export function CResult_SecretKeyErrorZ_ok(o: number): number {
6731         if(!isWasmInitialized) {
6732                 throw new Error("initializeWasm() must be awaited first!");
6733         }
6734         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_ok(o);
6735         return nativeResponseValue;
6736 }
6737         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
6738 /* @internal */
6739 export function CResult_SecretKeyErrorZ_err(e: Secp256k1Error): number {
6740         if(!isWasmInitialized) {
6741                 throw new Error("initializeWasm() must be awaited first!");
6742         }
6743         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_err(e);
6744         return nativeResponseValue;
6745 }
6746         // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
6747 /* @internal */
6748 export function CResult_SecretKeyErrorZ_is_ok(o: number): boolean {
6749         if(!isWasmInitialized) {
6750                 throw new Error("initializeWasm() must be awaited first!");
6751         }
6752         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_is_ok(o);
6753         return nativeResponseValue;
6754 }
6755         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
6756 /* @internal */
6757 export function CResult_SecretKeyErrorZ_free(_res: number): void {
6758         if(!isWasmInitialized) {
6759                 throw new Error("initializeWasm() must be awaited first!");
6760         }
6761         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_free(_res);
6762         // debug statements here
6763 }
6764         // uintptr_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
6765 /* @internal */
6766 export function CResult_SecretKeyErrorZ_clone_ptr(arg: number): number {
6767         if(!isWasmInitialized) {
6768                 throw new Error("initializeWasm() must be awaited first!");
6769         }
6770         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone_ptr(arg);
6771         return nativeResponseValue;
6772 }
6773         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
6774 /* @internal */
6775 export function CResult_SecretKeyErrorZ_clone(orig: number): number {
6776         if(!isWasmInitialized) {
6777                 throw new Error("initializeWasm() must be awaited first!");
6778         }
6779         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone(orig);
6780         return nativeResponseValue;
6781 }
6782         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
6783 /* @internal */
6784 export function CResult_PublicKeyErrorZ_ok(o: number): number {
6785         if(!isWasmInitialized) {
6786                 throw new Error("initializeWasm() must be awaited first!");
6787         }
6788         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
6789         return nativeResponseValue;
6790 }
6791         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
6792 /* @internal */
6793 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): number {
6794         if(!isWasmInitialized) {
6795                 throw new Error("initializeWasm() must be awaited first!");
6796         }
6797         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
6798         return nativeResponseValue;
6799 }
6800         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
6801 /* @internal */
6802 export function CResult_PublicKeyErrorZ_is_ok(o: number): boolean {
6803         if(!isWasmInitialized) {
6804                 throw new Error("initializeWasm() must be awaited first!");
6805         }
6806         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
6807         return nativeResponseValue;
6808 }
6809         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
6810 /* @internal */
6811 export function CResult_PublicKeyErrorZ_free(_res: number): void {
6812         if(!isWasmInitialized) {
6813                 throw new Error("initializeWasm() must be awaited first!");
6814         }
6815         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
6816         // debug statements here
6817 }
6818         // uintptr_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
6819 /* @internal */
6820 export function CResult_PublicKeyErrorZ_clone_ptr(arg: number): number {
6821         if(!isWasmInitialized) {
6822                 throw new Error("initializeWasm() must be awaited first!");
6823         }
6824         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
6825         return nativeResponseValue;
6826 }
6827         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
6828 /* @internal */
6829 export function CResult_PublicKeyErrorZ_clone(orig: number): number {
6830         if(!isWasmInitialized) {
6831                 throw new Error("initializeWasm() must be awaited first!");
6832         }
6833         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
6834         return nativeResponseValue;
6835 }
6836         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
6837 /* @internal */
6838 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: number): number {
6839         if(!isWasmInitialized) {
6840                 throw new Error("initializeWasm() must be awaited first!");
6841         }
6842         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
6843         return nativeResponseValue;
6844 }
6845         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
6846 /* @internal */
6847 export function CResult_TxCreationKeysDecodeErrorZ_err(e: number): number {
6848         if(!isWasmInitialized) {
6849                 throw new Error("initializeWasm() must be awaited first!");
6850         }
6851         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
6852         return nativeResponseValue;
6853 }
6854         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
6855 /* @internal */
6856 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: number): boolean {
6857         if(!isWasmInitialized) {
6858                 throw new Error("initializeWasm() must be awaited first!");
6859         }
6860         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
6861         return nativeResponseValue;
6862 }
6863         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
6864 /* @internal */
6865 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: number): void {
6866         if(!isWasmInitialized) {
6867                 throw new Error("initializeWasm() must be awaited first!");
6868         }
6869         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
6870         // debug statements here
6871 }
6872         // uintptr_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
6873 /* @internal */
6874 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: number): number {
6875         if(!isWasmInitialized) {
6876                 throw new Error("initializeWasm() must be awaited first!");
6877         }
6878         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
6879         return nativeResponseValue;
6880 }
6881         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
6882 /* @internal */
6883 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: number): number {
6884         if(!isWasmInitialized) {
6885                 throw new Error("initializeWasm() must be awaited first!");
6886         }
6887         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
6888         return nativeResponseValue;
6889 }
6890         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
6891 /* @internal */
6892 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: number): number {
6893         if(!isWasmInitialized) {
6894                 throw new Error("initializeWasm() must be awaited first!");
6895         }
6896         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
6897         return nativeResponseValue;
6898 }
6899         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
6900 /* @internal */
6901 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: number): number {
6902         if(!isWasmInitialized) {
6903                 throw new Error("initializeWasm() must be awaited first!");
6904         }
6905         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
6906         return nativeResponseValue;
6907 }
6908         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
6909 /* @internal */
6910 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: number): boolean {
6911         if(!isWasmInitialized) {
6912                 throw new Error("initializeWasm() must be awaited first!");
6913         }
6914         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
6915         return nativeResponseValue;
6916 }
6917         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
6918 /* @internal */
6919 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: number): void {
6920         if(!isWasmInitialized) {
6921                 throw new Error("initializeWasm() must be awaited first!");
6922         }
6923         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
6924         // debug statements here
6925 }
6926         // uintptr_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
6927 /* @internal */
6928 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: number): number {
6929         if(!isWasmInitialized) {
6930                 throw new Error("initializeWasm() must be awaited first!");
6931         }
6932         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
6933         return nativeResponseValue;
6934 }
6935         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
6936 /* @internal */
6937 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: number): number {
6938         if(!isWasmInitialized) {
6939                 throw new Error("initializeWasm() must be awaited first!");
6940         }
6941         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
6942         return nativeResponseValue;
6943 }
6944         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
6945 /* @internal */
6946 export function CResult_TxCreationKeysErrorZ_ok(o: number): number {
6947         if(!isWasmInitialized) {
6948                 throw new Error("initializeWasm() must be awaited first!");
6949         }
6950         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_ok(o);
6951         return nativeResponseValue;
6952 }
6953         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
6954 /* @internal */
6955 export function CResult_TxCreationKeysErrorZ_err(e: Secp256k1Error): number {
6956         if(!isWasmInitialized) {
6957                 throw new Error("initializeWasm() must be awaited first!");
6958         }
6959         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_err(e);
6960         return nativeResponseValue;
6961 }
6962         // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
6963 /* @internal */
6964 export function CResult_TxCreationKeysErrorZ_is_ok(o: number): boolean {
6965         if(!isWasmInitialized) {
6966                 throw new Error("initializeWasm() must be awaited first!");
6967         }
6968         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_is_ok(o);
6969         return nativeResponseValue;
6970 }
6971         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
6972 /* @internal */
6973 export function CResult_TxCreationKeysErrorZ_free(_res: number): void {
6974         if(!isWasmInitialized) {
6975                 throw new Error("initializeWasm() must be awaited first!");
6976         }
6977         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_free(_res);
6978         // debug statements here
6979 }
6980         // uintptr_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
6981 /* @internal */
6982 export function CResult_TxCreationKeysErrorZ_clone_ptr(arg: number): number {
6983         if(!isWasmInitialized) {
6984                 throw new Error("initializeWasm() must be awaited first!");
6985         }
6986         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone_ptr(arg);
6987         return nativeResponseValue;
6988 }
6989         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
6990 /* @internal */
6991 export function CResult_TxCreationKeysErrorZ_clone(orig: number): number {
6992         if(!isWasmInitialized) {
6993                 throw new Error("initializeWasm() must be awaited first!");
6994         }
6995         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone(orig);
6996         return nativeResponseValue;
6997 }
6998         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
6999 /* @internal */
7000 export function COption_u32Z_some(o: number): number {
7001         if(!isWasmInitialized) {
7002                 throw new Error("initializeWasm() must be awaited first!");
7003         }
7004         const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
7005         return nativeResponseValue;
7006 }
7007         // struct LDKCOption_u32Z COption_u32Z_none(void);
7008 /* @internal */
7009 export function COption_u32Z_none(): number {
7010         if(!isWasmInitialized) {
7011                 throw new Error("initializeWasm() must be awaited first!");
7012         }
7013         const nativeResponseValue = wasm.TS_COption_u32Z_none();
7014         return nativeResponseValue;
7015 }
7016         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
7017 /* @internal */
7018 export function COption_u32Z_free(_res: number): void {
7019         if(!isWasmInitialized) {
7020                 throw new Error("initializeWasm() must be awaited first!");
7021         }
7022         const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
7023         // debug statements here
7024 }
7025         // uintptr_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
7026 /* @internal */
7027 export function COption_u32Z_clone_ptr(arg: number): number {
7028         if(!isWasmInitialized) {
7029                 throw new Error("initializeWasm() must be awaited first!");
7030         }
7031         const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
7032         return nativeResponseValue;
7033 }
7034         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
7035 /* @internal */
7036 export function COption_u32Z_clone(orig: number): number {
7037         if(!isWasmInitialized) {
7038                 throw new Error("initializeWasm() must be awaited first!");
7039         }
7040         const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
7041         return nativeResponseValue;
7042 }
7043         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
7044 /* @internal */
7045 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: number): number {
7046         if(!isWasmInitialized) {
7047                 throw new Error("initializeWasm() must be awaited first!");
7048         }
7049         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
7050         return nativeResponseValue;
7051 }
7052         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
7053 /* @internal */
7054 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: number): number {
7055         if(!isWasmInitialized) {
7056                 throw new Error("initializeWasm() must be awaited first!");
7057         }
7058         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
7059         return nativeResponseValue;
7060 }
7061         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
7062 /* @internal */
7063 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: number): boolean {
7064         if(!isWasmInitialized) {
7065                 throw new Error("initializeWasm() must be awaited first!");
7066         }
7067         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
7068         return nativeResponseValue;
7069 }
7070         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
7071 /* @internal */
7072 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: number): void {
7073         if(!isWasmInitialized) {
7074                 throw new Error("initializeWasm() must be awaited first!");
7075         }
7076         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
7077         // debug statements here
7078 }
7079         // uintptr_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
7080 /* @internal */
7081 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: number): number {
7082         if(!isWasmInitialized) {
7083                 throw new Error("initializeWasm() must be awaited first!");
7084         }
7085         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
7086         return nativeResponseValue;
7087 }
7088         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
7089 /* @internal */
7090 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: number): number {
7091         if(!isWasmInitialized) {
7092                 throw new Error("initializeWasm() must be awaited first!");
7093         }
7094         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
7095         return nativeResponseValue;
7096 }
7097         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
7098 /* @internal */
7099 export function COption_NoneZ_some(): COption_NoneZ {
7100         if(!isWasmInitialized) {
7101                 throw new Error("initializeWasm() must be awaited first!");
7102         }
7103         const nativeResponseValue = wasm.TS_COption_NoneZ_some();
7104         return nativeResponseValue;
7105 }
7106         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
7107 /* @internal */
7108 export function COption_NoneZ_none(): COption_NoneZ {
7109         if(!isWasmInitialized) {
7110                 throw new Error("initializeWasm() must be awaited first!");
7111         }
7112         const nativeResponseValue = wasm.TS_COption_NoneZ_none();
7113         return nativeResponseValue;
7114 }
7115         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
7116 /* @internal */
7117 export function COption_NoneZ_free(_res: COption_NoneZ): void {
7118         if(!isWasmInitialized) {
7119                 throw new Error("initializeWasm() must be awaited first!");
7120         }
7121         const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
7122         // debug statements here
7123 }
7124         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
7125 /* @internal */
7126 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
7127         if(!isWasmInitialized) {
7128                 throw new Error("initializeWasm() must be awaited first!");
7129         }
7130         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
7131         return nativeResponseValue;
7132 }
7133         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
7134 /* @internal */
7135 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: number): number {
7136         if(!isWasmInitialized) {
7137                 throw new Error("initializeWasm() must be awaited first!");
7138         }
7139         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
7140         return nativeResponseValue;
7141 }
7142         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
7143 /* @internal */
7144 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
7145         if(!isWasmInitialized) {
7146                 throw new Error("initializeWasm() must be awaited first!");
7147         }
7148         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
7149         return nativeResponseValue;
7150 }
7151         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
7152 /* @internal */
7153 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
7154         if(!isWasmInitialized) {
7155                 throw new Error("initializeWasm() must be awaited first!");
7156         }
7157         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
7158         // debug statements here
7159 }
7160         // uintptr_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
7161 /* @internal */
7162 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
7163         if(!isWasmInitialized) {
7164                 throw new Error("initializeWasm() must be awaited first!");
7165         }
7166         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
7167         return nativeResponseValue;
7168 }
7169         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
7170 /* @internal */
7171 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
7172         if(!isWasmInitialized) {
7173                 throw new Error("initializeWasm() must be awaited first!");
7174         }
7175         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
7176         return nativeResponseValue;
7177 }
7178         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
7179 /* @internal */
7180 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
7181         if(!isWasmInitialized) {
7182                 throw new Error("initializeWasm() must be awaited first!");
7183         }
7184         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
7185         return nativeResponseValue;
7186 }
7187         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
7188 /* @internal */
7189 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: number): number {
7190         if(!isWasmInitialized) {
7191                 throw new Error("initializeWasm() must be awaited first!");
7192         }
7193         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
7194         return nativeResponseValue;
7195 }
7196         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
7197 /* @internal */
7198 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
7199         if(!isWasmInitialized) {
7200                 throw new Error("initializeWasm() must be awaited first!");
7201         }
7202         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
7203         return nativeResponseValue;
7204 }
7205         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
7206 /* @internal */
7207 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
7208         if(!isWasmInitialized) {
7209                 throw new Error("initializeWasm() must be awaited first!");
7210         }
7211         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
7212         // debug statements here
7213 }
7214         // uintptr_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
7215 /* @internal */
7216 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
7217         if(!isWasmInitialized) {
7218                 throw new Error("initializeWasm() must be awaited first!");
7219         }
7220         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
7221         return nativeResponseValue;
7222 }
7223         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
7224 /* @internal */
7225 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
7226         if(!isWasmInitialized) {
7227                 throw new Error("initializeWasm() must be awaited first!");
7228         }
7229         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
7230         return nativeResponseValue;
7231 }
7232         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
7233 /* @internal */
7234 export function CVec_SignatureZ_free(_res: number): void {
7235         if(!isWasmInitialized) {
7236                 throw new Error("initializeWasm() must be awaited first!");
7237         }
7238         const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
7239         // debug statements here
7240 }
7241         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
7242 /* @internal */
7243 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7244         if(!isWasmInitialized) {
7245                 throw new Error("initializeWasm() must be awaited first!");
7246         }
7247         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
7248         return nativeResponseValue;
7249 }
7250         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7251 /* @internal */
7252 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: number): number {
7253         if(!isWasmInitialized) {
7254                 throw new Error("initializeWasm() must be awaited first!");
7255         }
7256         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
7257         return nativeResponseValue;
7258 }
7259         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7260 /* @internal */
7261 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7262         if(!isWasmInitialized) {
7263                 throw new Error("initializeWasm() must be awaited first!");
7264         }
7265         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
7266         return nativeResponseValue;
7267 }
7268         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
7269 /* @internal */
7270 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7271         if(!isWasmInitialized) {
7272                 throw new Error("initializeWasm() must be awaited first!");
7273         }
7274         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
7275         // debug statements here
7276 }
7277         // uintptr_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7278 /* @internal */
7279 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7280         if(!isWasmInitialized) {
7281                 throw new Error("initializeWasm() must be awaited first!");
7282         }
7283         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7284         return nativeResponseValue;
7285 }
7286         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7287 /* @internal */
7288 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7289         if(!isWasmInitialized) {
7290                 throw new Error("initializeWasm() must be awaited first!");
7291         }
7292         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
7293         return nativeResponseValue;
7294 }
7295         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
7296 /* @internal */
7297 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7298         if(!isWasmInitialized) {
7299                 throw new Error("initializeWasm() must be awaited first!");
7300         }
7301         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
7302         return nativeResponseValue;
7303 }
7304         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7305 /* @internal */
7306 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: number): number {
7307         if(!isWasmInitialized) {
7308                 throw new Error("initializeWasm() must be awaited first!");
7309         }
7310         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
7311         return nativeResponseValue;
7312 }
7313         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7314 /* @internal */
7315 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7316         if(!isWasmInitialized) {
7317                 throw new Error("initializeWasm() must be awaited first!");
7318         }
7319         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
7320         return nativeResponseValue;
7321 }
7322         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
7323 /* @internal */
7324 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7325         if(!isWasmInitialized) {
7326                 throw new Error("initializeWasm() must be awaited first!");
7327         }
7328         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
7329         // debug statements here
7330 }
7331         // uintptr_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7332 /* @internal */
7333 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7334         if(!isWasmInitialized) {
7335                 throw new Error("initializeWasm() must be awaited first!");
7336         }
7337         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7338         return nativeResponseValue;
7339 }
7340         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7341 /* @internal */
7342 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7343         if(!isWasmInitialized) {
7344                 throw new Error("initializeWasm() must be awaited first!");
7345         }
7346         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
7347         return nativeResponseValue;
7348 }
7349         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
7350 /* @internal */
7351 export function CResult_TrustedClosingTransactionNoneZ_ok(o: number): number {
7352         if(!isWasmInitialized) {
7353                 throw new Error("initializeWasm() must be awaited first!");
7354         }
7355         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
7356         return nativeResponseValue;
7357 }
7358         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
7359 /* @internal */
7360 export function CResult_TrustedClosingTransactionNoneZ_err(): number {
7361         if(!isWasmInitialized) {
7362                 throw new Error("initializeWasm() must be awaited first!");
7363         }
7364         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
7365         return nativeResponseValue;
7366 }
7367         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
7368 /* @internal */
7369 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: number): boolean {
7370         if(!isWasmInitialized) {
7371                 throw new Error("initializeWasm() must be awaited first!");
7372         }
7373         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
7374         return nativeResponseValue;
7375 }
7376         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
7377 /* @internal */
7378 export function CResult_TrustedClosingTransactionNoneZ_free(_res: number): void {
7379         if(!isWasmInitialized) {
7380                 throw new Error("initializeWasm() must be awaited first!");
7381         }
7382         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
7383         // debug statements here
7384 }
7385         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
7386 /* @internal */
7387 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: number): number {
7388         if(!isWasmInitialized) {
7389                 throw new Error("initializeWasm() must be awaited first!");
7390         }
7391         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
7392         return nativeResponseValue;
7393 }
7394         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7395 /* @internal */
7396 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: number): number {
7397         if(!isWasmInitialized) {
7398                 throw new Error("initializeWasm() must be awaited first!");
7399         }
7400         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
7401         return nativeResponseValue;
7402 }
7403         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7404 /* @internal */
7405 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7406         if(!isWasmInitialized) {
7407                 throw new Error("initializeWasm() must be awaited first!");
7408         }
7409         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
7410         return nativeResponseValue;
7411 }
7412         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
7413 /* @internal */
7414 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: number): void {
7415         if(!isWasmInitialized) {
7416                 throw new Error("initializeWasm() must be awaited first!");
7417         }
7418         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
7419         // debug statements here
7420 }
7421         // uintptr_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7422 /* @internal */
7423 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7424         if(!isWasmInitialized) {
7425                 throw new Error("initializeWasm() must be awaited first!");
7426         }
7427         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7428         return nativeResponseValue;
7429 }
7430         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7431 /* @internal */
7432 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7433         if(!isWasmInitialized) {
7434                 throw new Error("initializeWasm() must be awaited first!");
7435         }
7436         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
7437         return nativeResponseValue;
7438 }
7439         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
7440 /* @internal */
7441 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: number): number {
7442         if(!isWasmInitialized) {
7443                 throw new Error("initializeWasm() must be awaited first!");
7444         }
7445         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
7446         return nativeResponseValue;
7447 }
7448         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
7449 /* @internal */
7450 export function CResult_TrustedCommitmentTransactionNoneZ_err(): number {
7451         if(!isWasmInitialized) {
7452                 throw new Error("initializeWasm() must be awaited first!");
7453         }
7454         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
7455         return nativeResponseValue;
7456 }
7457         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
7458 /* @internal */
7459 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: number): boolean {
7460         if(!isWasmInitialized) {
7461                 throw new Error("initializeWasm() must be awaited first!");
7462         }
7463         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
7464         return nativeResponseValue;
7465 }
7466         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
7467 /* @internal */
7468 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: number): void {
7469         if(!isWasmInitialized) {
7470                 throw new Error("initializeWasm() must be awaited first!");
7471         }
7472         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
7473         // debug statements here
7474 }
7475         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
7476 /* @internal */
7477 export function CResult_CVec_SignatureZNoneZ_ok(o: number): number {
7478         if(!isWasmInitialized) {
7479                 throw new Error("initializeWasm() must be awaited first!");
7480         }
7481         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
7482         return nativeResponseValue;
7483 }
7484         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
7485 /* @internal */
7486 export function CResult_CVec_SignatureZNoneZ_err(): number {
7487         if(!isWasmInitialized) {
7488                 throw new Error("initializeWasm() must be awaited first!");
7489         }
7490         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
7491         return nativeResponseValue;
7492 }
7493         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
7494 /* @internal */
7495 export function CResult_CVec_SignatureZNoneZ_is_ok(o: number): boolean {
7496         if(!isWasmInitialized) {
7497                 throw new Error("initializeWasm() must be awaited first!");
7498         }
7499         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
7500         return nativeResponseValue;
7501 }
7502         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
7503 /* @internal */
7504 export function CResult_CVec_SignatureZNoneZ_free(_res: number): void {
7505         if(!isWasmInitialized) {
7506                 throw new Error("initializeWasm() must be awaited first!");
7507         }
7508         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
7509         // debug statements here
7510 }
7511         // uintptr_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
7512 /* @internal */
7513 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: number): number {
7514         if(!isWasmInitialized) {
7515                 throw new Error("initializeWasm() must be awaited first!");
7516         }
7517         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
7518         return nativeResponseValue;
7519 }
7520         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
7521 /* @internal */
7522 export function CResult_CVec_SignatureZNoneZ_clone(orig: number): number {
7523         if(!isWasmInitialized) {
7524                 throw new Error("initializeWasm() must be awaited first!");
7525         }
7526         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
7527         return nativeResponseValue;
7528 }
7529         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
7530 /* @internal */
7531 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: number): number {
7532         if(!isWasmInitialized) {
7533                 throw new Error("initializeWasm() must be awaited first!");
7534         }
7535         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
7536         return nativeResponseValue;
7537 }
7538         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
7539 /* @internal */
7540 export function CResult_ShutdownScriptDecodeErrorZ_err(e: number): number {
7541         if(!isWasmInitialized) {
7542                 throw new Error("initializeWasm() must be awaited first!");
7543         }
7544         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
7545         return nativeResponseValue;
7546 }
7547         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
7548 /* @internal */
7549 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: number): boolean {
7550         if(!isWasmInitialized) {
7551                 throw new Error("initializeWasm() must be awaited first!");
7552         }
7553         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
7554         return nativeResponseValue;
7555 }
7556         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
7557 /* @internal */
7558 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: number): void {
7559         if(!isWasmInitialized) {
7560                 throw new Error("initializeWasm() must be awaited first!");
7561         }
7562         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
7563         // debug statements here
7564 }
7565         // uintptr_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
7566 /* @internal */
7567 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: number): number {
7568         if(!isWasmInitialized) {
7569                 throw new Error("initializeWasm() must be awaited first!");
7570         }
7571         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
7572         return nativeResponseValue;
7573 }
7574         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
7575 /* @internal */
7576 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: number): number {
7577         if(!isWasmInitialized) {
7578                 throw new Error("initializeWasm() must be awaited first!");
7579         }
7580         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
7581         return nativeResponseValue;
7582 }
7583         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
7584 /* @internal */
7585 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: number): number {
7586         if(!isWasmInitialized) {
7587                 throw new Error("initializeWasm() must be awaited first!");
7588         }
7589         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
7590         return nativeResponseValue;
7591 }
7592         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
7593 /* @internal */
7594 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: number): number {
7595         if(!isWasmInitialized) {
7596                 throw new Error("initializeWasm() must be awaited first!");
7597         }
7598         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
7599         return nativeResponseValue;
7600 }
7601         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
7602 /* @internal */
7603 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: number): boolean {
7604         if(!isWasmInitialized) {
7605                 throw new Error("initializeWasm() must be awaited first!");
7606         }
7607         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
7608         return nativeResponseValue;
7609 }
7610         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
7611 /* @internal */
7612 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: number): void {
7613         if(!isWasmInitialized) {
7614                 throw new Error("initializeWasm() must be awaited first!");
7615         }
7616         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
7617         // debug statements here
7618 }
7619         // uintptr_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
7620 /* @internal */
7621 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: number): number {
7622         if(!isWasmInitialized) {
7623                 throw new Error("initializeWasm() must be awaited first!");
7624         }
7625         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
7626         return nativeResponseValue;
7627 }
7628         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
7629 /* @internal */
7630 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: number): number {
7631         if(!isWasmInitialized) {
7632                 throw new Error("initializeWasm() must be awaited first!");
7633         }
7634         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
7635         return nativeResponseValue;
7636 }
7637         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
7638 /* @internal */
7639 export function CResult_RouteHopDecodeErrorZ_ok(o: number): number {
7640         if(!isWasmInitialized) {
7641                 throw new Error("initializeWasm() must be awaited first!");
7642         }
7643         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
7644         return nativeResponseValue;
7645 }
7646         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
7647 /* @internal */
7648 export function CResult_RouteHopDecodeErrorZ_err(e: number): number {
7649         if(!isWasmInitialized) {
7650                 throw new Error("initializeWasm() must be awaited first!");
7651         }
7652         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
7653         return nativeResponseValue;
7654 }
7655         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
7656 /* @internal */
7657 export function CResult_RouteHopDecodeErrorZ_is_ok(o: number): boolean {
7658         if(!isWasmInitialized) {
7659                 throw new Error("initializeWasm() must be awaited first!");
7660         }
7661         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
7662         return nativeResponseValue;
7663 }
7664         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
7665 /* @internal */
7666 export function CResult_RouteHopDecodeErrorZ_free(_res: number): void {
7667         if(!isWasmInitialized) {
7668                 throw new Error("initializeWasm() must be awaited first!");
7669         }
7670         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
7671         // debug statements here
7672 }
7673         // uintptr_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
7674 /* @internal */
7675 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: number): number {
7676         if(!isWasmInitialized) {
7677                 throw new Error("initializeWasm() must be awaited first!");
7678         }
7679         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
7680         return nativeResponseValue;
7681 }
7682         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
7683 /* @internal */
7684 export function CResult_RouteHopDecodeErrorZ_clone(orig: number): number {
7685         if(!isWasmInitialized) {
7686                 throw new Error("initializeWasm() must be awaited first!");
7687         }
7688         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
7689         return nativeResponseValue;
7690 }
7691         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
7692 /* @internal */
7693 export function CVec_RouteHopZ_free(_res: number): void {
7694         if(!isWasmInitialized) {
7695                 throw new Error("initializeWasm() must be awaited first!");
7696         }
7697         const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
7698         // debug statements here
7699 }
7700         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
7701 /* @internal */
7702 export function CVec_CVec_RouteHopZZ_free(_res: number): void {
7703         if(!isWasmInitialized) {
7704                 throw new Error("initializeWasm() must be awaited first!");
7705         }
7706         const nativeResponseValue = wasm.TS_CVec_CVec_RouteHopZZ_free(_res);
7707         // debug statements here
7708 }
7709         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
7710 /* @internal */
7711 export function CResult_RouteDecodeErrorZ_ok(o: number): number {
7712         if(!isWasmInitialized) {
7713                 throw new Error("initializeWasm() must be awaited first!");
7714         }
7715         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
7716         return nativeResponseValue;
7717 }
7718         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
7719 /* @internal */
7720 export function CResult_RouteDecodeErrorZ_err(e: number): number {
7721         if(!isWasmInitialized) {
7722                 throw new Error("initializeWasm() must be awaited first!");
7723         }
7724         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
7725         return nativeResponseValue;
7726 }
7727         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
7728 /* @internal */
7729 export function CResult_RouteDecodeErrorZ_is_ok(o: number): boolean {
7730         if(!isWasmInitialized) {
7731                 throw new Error("initializeWasm() must be awaited first!");
7732         }
7733         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
7734         return nativeResponseValue;
7735 }
7736         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
7737 /* @internal */
7738 export function CResult_RouteDecodeErrorZ_free(_res: number): void {
7739         if(!isWasmInitialized) {
7740                 throw new Error("initializeWasm() must be awaited first!");
7741         }
7742         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
7743         // debug statements here
7744 }
7745         // uintptr_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
7746 /* @internal */
7747 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: number): number {
7748         if(!isWasmInitialized) {
7749                 throw new Error("initializeWasm() must be awaited first!");
7750         }
7751         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
7752         return nativeResponseValue;
7753 }
7754         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
7755 /* @internal */
7756 export function CResult_RouteDecodeErrorZ_clone(orig: number): number {
7757         if(!isWasmInitialized) {
7758                 throw new Error("initializeWasm() must be awaited first!");
7759         }
7760         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
7761         return nativeResponseValue;
7762 }
7763         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
7764 /* @internal */
7765 export function CResult_RouteParametersDecodeErrorZ_ok(o: number): number {
7766         if(!isWasmInitialized) {
7767                 throw new Error("initializeWasm() must be awaited first!");
7768         }
7769         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
7770         return nativeResponseValue;
7771 }
7772         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
7773 /* @internal */
7774 export function CResult_RouteParametersDecodeErrorZ_err(e: number): number {
7775         if(!isWasmInitialized) {
7776                 throw new Error("initializeWasm() must be awaited first!");
7777         }
7778         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
7779         return nativeResponseValue;
7780 }
7781         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
7782 /* @internal */
7783 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: number): boolean {
7784         if(!isWasmInitialized) {
7785                 throw new Error("initializeWasm() must be awaited first!");
7786         }
7787         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
7788         return nativeResponseValue;
7789 }
7790         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
7791 /* @internal */
7792 export function CResult_RouteParametersDecodeErrorZ_free(_res: number): void {
7793         if(!isWasmInitialized) {
7794                 throw new Error("initializeWasm() must be awaited first!");
7795         }
7796         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
7797         // debug statements here
7798 }
7799         // uintptr_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
7800 /* @internal */
7801 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: number): number {
7802         if(!isWasmInitialized) {
7803                 throw new Error("initializeWasm() must be awaited first!");
7804         }
7805         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
7806         return nativeResponseValue;
7807 }
7808         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
7809 /* @internal */
7810 export function CResult_RouteParametersDecodeErrorZ_clone(orig: number): number {
7811         if(!isWasmInitialized) {
7812                 throw new Error("initializeWasm() must be awaited first!");
7813         }
7814         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
7815         return nativeResponseValue;
7816 }
7817         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
7818 /* @internal */
7819 export function CVec_RouteHintZ_free(_res: number): void {
7820         if(!isWasmInitialized) {
7821                 throw new Error("initializeWasm() must be awaited first!");
7822         }
7823         const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
7824         // debug statements here
7825 }
7826         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
7827 /* @internal */
7828 export function COption_u64Z_some(o: bigint): number {
7829         if(!isWasmInitialized) {
7830                 throw new Error("initializeWasm() must be awaited first!");
7831         }
7832         const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
7833         return nativeResponseValue;
7834 }
7835         // struct LDKCOption_u64Z COption_u64Z_none(void);
7836 /* @internal */
7837 export function COption_u64Z_none(): number {
7838         if(!isWasmInitialized) {
7839                 throw new Error("initializeWasm() must be awaited first!");
7840         }
7841         const nativeResponseValue = wasm.TS_COption_u64Z_none();
7842         return nativeResponseValue;
7843 }
7844         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
7845 /* @internal */
7846 export function COption_u64Z_free(_res: number): void {
7847         if(!isWasmInitialized) {
7848                 throw new Error("initializeWasm() must be awaited first!");
7849         }
7850         const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
7851         // debug statements here
7852 }
7853         // uintptr_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
7854 /* @internal */
7855 export function COption_u64Z_clone_ptr(arg: number): number {
7856         if(!isWasmInitialized) {
7857                 throw new Error("initializeWasm() must be awaited first!");
7858         }
7859         const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
7860         return nativeResponseValue;
7861 }
7862         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
7863 /* @internal */
7864 export function COption_u64Z_clone(orig: number): number {
7865         if(!isWasmInitialized) {
7866                 throw new Error("initializeWasm() must be awaited first!");
7867         }
7868         const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
7869         return nativeResponseValue;
7870 }
7871         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
7872 /* @internal */
7873 export function CResult_PaymentParametersDecodeErrorZ_ok(o: number): number {
7874         if(!isWasmInitialized) {
7875                 throw new Error("initializeWasm() must be awaited first!");
7876         }
7877         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
7878         return nativeResponseValue;
7879 }
7880         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
7881 /* @internal */
7882 export function CResult_PaymentParametersDecodeErrorZ_err(e: number): number {
7883         if(!isWasmInitialized) {
7884                 throw new Error("initializeWasm() must be awaited first!");
7885         }
7886         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
7887         return nativeResponseValue;
7888 }
7889         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
7890 /* @internal */
7891 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: number): boolean {
7892         if(!isWasmInitialized) {
7893                 throw new Error("initializeWasm() must be awaited first!");
7894         }
7895         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
7896         return nativeResponseValue;
7897 }
7898         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
7899 /* @internal */
7900 export function CResult_PaymentParametersDecodeErrorZ_free(_res: number): void {
7901         if(!isWasmInitialized) {
7902                 throw new Error("initializeWasm() must be awaited first!");
7903         }
7904         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
7905         // debug statements here
7906 }
7907         // uintptr_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
7908 /* @internal */
7909 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: number): number {
7910         if(!isWasmInitialized) {
7911                 throw new Error("initializeWasm() must be awaited first!");
7912         }
7913         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
7914         return nativeResponseValue;
7915 }
7916         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
7917 /* @internal */
7918 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: number): number {
7919         if(!isWasmInitialized) {
7920                 throw new Error("initializeWasm() must be awaited first!");
7921         }
7922         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
7923         return nativeResponseValue;
7924 }
7925         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
7926 /* @internal */
7927 export function CVec_RouteHintHopZ_free(_res: number): void {
7928         if(!isWasmInitialized) {
7929                 throw new Error("initializeWasm() must be awaited first!");
7930         }
7931         const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
7932         // debug statements here
7933 }
7934         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
7935 /* @internal */
7936 export function CResult_RouteHintDecodeErrorZ_ok(o: number): number {
7937         if(!isWasmInitialized) {
7938                 throw new Error("initializeWasm() must be awaited first!");
7939         }
7940         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
7941         return nativeResponseValue;
7942 }
7943         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
7944 /* @internal */
7945 export function CResult_RouteHintDecodeErrorZ_err(e: number): number {
7946         if(!isWasmInitialized) {
7947                 throw new Error("initializeWasm() must be awaited first!");
7948         }
7949         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
7950         return nativeResponseValue;
7951 }
7952         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
7953 /* @internal */
7954 export function CResult_RouteHintDecodeErrorZ_is_ok(o: number): boolean {
7955         if(!isWasmInitialized) {
7956                 throw new Error("initializeWasm() must be awaited first!");
7957         }
7958         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
7959         return nativeResponseValue;
7960 }
7961         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
7962 /* @internal */
7963 export function CResult_RouteHintDecodeErrorZ_free(_res: number): void {
7964         if(!isWasmInitialized) {
7965                 throw new Error("initializeWasm() must be awaited first!");
7966         }
7967         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
7968         // debug statements here
7969 }
7970         // uintptr_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
7971 /* @internal */
7972 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: number): number {
7973         if(!isWasmInitialized) {
7974                 throw new Error("initializeWasm() must be awaited first!");
7975         }
7976         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
7977         return nativeResponseValue;
7978 }
7979         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
7980 /* @internal */
7981 export function CResult_RouteHintDecodeErrorZ_clone(orig: number): number {
7982         if(!isWasmInitialized) {
7983                 throw new Error("initializeWasm() must be awaited first!");
7984         }
7985         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
7986         return nativeResponseValue;
7987 }
7988         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
7989 /* @internal */
7990 export function CResult_RouteHintHopDecodeErrorZ_ok(o: number): number {
7991         if(!isWasmInitialized) {
7992                 throw new Error("initializeWasm() must be awaited first!");
7993         }
7994         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
7995         return nativeResponseValue;
7996 }
7997         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
7998 /* @internal */
7999 export function CResult_RouteHintHopDecodeErrorZ_err(e: number): number {
8000         if(!isWasmInitialized) {
8001                 throw new Error("initializeWasm() must be awaited first!");
8002         }
8003         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
8004         return nativeResponseValue;
8005 }
8006         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
8007 /* @internal */
8008 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: number): boolean {
8009         if(!isWasmInitialized) {
8010                 throw new Error("initializeWasm() must be awaited first!");
8011         }
8012         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
8013         return nativeResponseValue;
8014 }
8015         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
8016 /* @internal */
8017 export function CResult_RouteHintHopDecodeErrorZ_free(_res: number): void {
8018         if(!isWasmInitialized) {
8019                 throw new Error("initializeWasm() must be awaited first!");
8020         }
8021         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
8022         // debug statements here
8023 }
8024         // uintptr_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
8025 /* @internal */
8026 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: number): number {
8027         if(!isWasmInitialized) {
8028                 throw new Error("initializeWasm() must be awaited first!");
8029         }
8030         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
8031         return nativeResponseValue;
8032 }
8033         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
8034 /* @internal */
8035 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: number): number {
8036         if(!isWasmInitialized) {
8037                 throw new Error("initializeWasm() must be awaited first!");
8038         }
8039         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
8040         return nativeResponseValue;
8041 }
8042         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
8043 /* @internal */
8044 export function CVec_ChannelDetailsZ_free(_res: number): void {
8045         if(!isWasmInitialized) {
8046                 throw new Error("initializeWasm() must be awaited first!");
8047         }
8048         const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
8049         // debug statements here
8050 }
8051         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
8052 /* @internal */
8053 export function CResult_RouteLightningErrorZ_ok(o: number): number {
8054         if(!isWasmInitialized) {
8055                 throw new Error("initializeWasm() must be awaited first!");
8056         }
8057         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
8058         return nativeResponseValue;
8059 }
8060         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
8061 /* @internal */
8062 export function CResult_RouteLightningErrorZ_err(e: number): number {
8063         if(!isWasmInitialized) {
8064                 throw new Error("initializeWasm() must be awaited first!");
8065         }
8066         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
8067         return nativeResponseValue;
8068 }
8069         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
8070 /* @internal */
8071 export function CResult_RouteLightningErrorZ_is_ok(o: number): boolean {
8072         if(!isWasmInitialized) {
8073                 throw new Error("initializeWasm() must be awaited first!");
8074         }
8075         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
8076         return nativeResponseValue;
8077 }
8078         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
8079 /* @internal */
8080 export function CResult_RouteLightningErrorZ_free(_res: number): void {
8081         if(!isWasmInitialized) {
8082                 throw new Error("initializeWasm() must be awaited first!");
8083         }
8084         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
8085         // debug statements here
8086 }
8087         // uintptr_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
8088 /* @internal */
8089 export function CResult_RouteLightningErrorZ_clone_ptr(arg: number): number {
8090         if(!isWasmInitialized) {
8091                 throw new Error("initializeWasm() must be awaited first!");
8092         }
8093         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
8094         return nativeResponseValue;
8095 }
8096         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
8097 /* @internal */
8098 export function CResult_RouteLightningErrorZ_clone(orig: number): number {
8099         if(!isWasmInitialized) {
8100                 throw new Error("initializeWasm() must be awaited first!");
8101         }
8102         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
8103         return nativeResponseValue;
8104 }
8105         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
8106 /* @internal */
8107 export function CVec_PublicKeyZ_free(_res: number): void {
8108         if(!isWasmInitialized) {
8109                 throw new Error("initializeWasm() must be awaited first!");
8110         }
8111         const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
8112         // debug statements here
8113 }
8114         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
8115 /* @internal */
8116 export function CResult_PaymentPurposeDecodeErrorZ_ok(o: number): number {
8117         if(!isWasmInitialized) {
8118                 throw new Error("initializeWasm() must be awaited first!");
8119         }
8120         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o);
8121         return nativeResponseValue;
8122 }
8123         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
8124 /* @internal */
8125 export function CResult_PaymentPurposeDecodeErrorZ_err(e: number): number {
8126         if(!isWasmInitialized) {
8127                 throw new Error("initializeWasm() must be awaited first!");
8128         }
8129         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e);
8130         return nativeResponseValue;
8131 }
8132         // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
8133 /* @internal */
8134 export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: number): boolean {
8135         if(!isWasmInitialized) {
8136                 throw new Error("initializeWasm() must be awaited first!");
8137         }
8138         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o);
8139         return nativeResponseValue;
8140 }
8141         // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
8142 /* @internal */
8143 export function CResult_PaymentPurposeDecodeErrorZ_free(_res: number): void {
8144         if(!isWasmInitialized) {
8145                 throw new Error("initializeWasm() must be awaited first!");
8146         }
8147         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res);
8148         // debug statements here
8149 }
8150         // uintptr_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
8151 /* @internal */
8152 export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: number): number {
8153         if(!isWasmInitialized) {
8154                 throw new Error("initializeWasm() must be awaited first!");
8155         }
8156         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg);
8157         return nativeResponseValue;
8158 }
8159         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
8160 /* @internal */
8161 export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: number): number {
8162         if(!isWasmInitialized) {
8163                 throw new Error("initializeWasm() must be awaited first!");
8164         }
8165         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig);
8166         return nativeResponseValue;
8167 }
8168         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
8169 /* @internal */
8170 export function COption_ClosureReasonZ_some(o: number): number {
8171         if(!isWasmInitialized) {
8172                 throw new Error("initializeWasm() must be awaited first!");
8173         }
8174         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
8175         return nativeResponseValue;
8176 }
8177         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
8178 /* @internal */
8179 export function COption_ClosureReasonZ_none(): number {
8180         if(!isWasmInitialized) {
8181                 throw new Error("initializeWasm() must be awaited first!");
8182         }
8183         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
8184         return nativeResponseValue;
8185 }
8186         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
8187 /* @internal */
8188 export function COption_ClosureReasonZ_free(_res: number): void {
8189         if(!isWasmInitialized) {
8190                 throw new Error("initializeWasm() must be awaited first!");
8191         }
8192         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
8193         // debug statements here
8194 }
8195         // uintptr_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
8196 /* @internal */
8197 export function COption_ClosureReasonZ_clone_ptr(arg: number): number {
8198         if(!isWasmInitialized) {
8199                 throw new Error("initializeWasm() must be awaited first!");
8200         }
8201         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
8202         return nativeResponseValue;
8203 }
8204         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
8205 /* @internal */
8206 export function COption_ClosureReasonZ_clone(orig: number): number {
8207         if(!isWasmInitialized) {
8208                 throw new Error("initializeWasm() must be awaited first!");
8209         }
8210         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
8211         return nativeResponseValue;
8212 }
8213         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
8214 /* @internal */
8215 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: number): number {
8216         if(!isWasmInitialized) {
8217                 throw new Error("initializeWasm() must be awaited first!");
8218         }
8219         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
8220         return nativeResponseValue;
8221 }
8222         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
8223 /* @internal */
8224 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: number): number {
8225         if(!isWasmInitialized) {
8226                 throw new Error("initializeWasm() must be awaited first!");
8227         }
8228         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
8229         return nativeResponseValue;
8230 }
8231         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
8232 /* @internal */
8233 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: number): boolean {
8234         if(!isWasmInitialized) {
8235                 throw new Error("initializeWasm() must be awaited first!");
8236         }
8237         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
8238         return nativeResponseValue;
8239 }
8240         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
8241 /* @internal */
8242 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: number): void {
8243         if(!isWasmInitialized) {
8244                 throw new Error("initializeWasm() must be awaited first!");
8245         }
8246         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
8247         // debug statements here
8248 }
8249         // uintptr_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
8250 /* @internal */
8251 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: number): number {
8252         if(!isWasmInitialized) {
8253                 throw new Error("initializeWasm() must be awaited first!");
8254         }
8255         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
8256         return nativeResponseValue;
8257 }
8258         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
8259 /* @internal */
8260 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: number): number {
8261         if(!isWasmInitialized) {
8262                 throw new Error("initializeWasm() must be awaited first!");
8263         }
8264         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
8265         return nativeResponseValue;
8266 }
8267         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
8268 /* @internal */
8269 export function COption_NetworkUpdateZ_some(o: number): number {
8270         if(!isWasmInitialized) {
8271                 throw new Error("initializeWasm() must be awaited first!");
8272         }
8273         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
8274         return nativeResponseValue;
8275 }
8276         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
8277 /* @internal */
8278 export function COption_NetworkUpdateZ_none(): number {
8279         if(!isWasmInitialized) {
8280                 throw new Error("initializeWasm() must be awaited first!");
8281         }
8282         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
8283         return nativeResponseValue;
8284 }
8285         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
8286 /* @internal */
8287 export function COption_NetworkUpdateZ_free(_res: number): void {
8288         if(!isWasmInitialized) {
8289                 throw new Error("initializeWasm() must be awaited first!");
8290         }
8291         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
8292         // debug statements here
8293 }
8294         // uintptr_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
8295 /* @internal */
8296 export function COption_NetworkUpdateZ_clone_ptr(arg: number): number {
8297         if(!isWasmInitialized) {
8298                 throw new Error("initializeWasm() must be awaited first!");
8299         }
8300         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
8301         return nativeResponseValue;
8302 }
8303         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
8304 /* @internal */
8305 export function COption_NetworkUpdateZ_clone(orig: number): number {
8306         if(!isWasmInitialized) {
8307                 throw new Error("initializeWasm() must be awaited first!");
8308         }
8309         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
8310         return nativeResponseValue;
8311 }
8312         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
8313 /* @internal */
8314 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
8315         if(!isWasmInitialized) {
8316                 throw new Error("initializeWasm() must be awaited first!");
8317         }
8318         const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
8319         // debug statements here
8320 }
8321         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
8322 /* @internal */
8323 export function COption_EventZ_some(o: number): number {
8324         if(!isWasmInitialized) {
8325                 throw new Error("initializeWasm() must be awaited first!");
8326         }
8327         const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
8328         return nativeResponseValue;
8329 }
8330         // struct LDKCOption_EventZ COption_EventZ_none(void);
8331 /* @internal */
8332 export function COption_EventZ_none(): number {
8333         if(!isWasmInitialized) {
8334                 throw new Error("initializeWasm() must be awaited first!");
8335         }
8336         const nativeResponseValue = wasm.TS_COption_EventZ_none();
8337         return nativeResponseValue;
8338 }
8339         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
8340 /* @internal */
8341 export function COption_EventZ_free(_res: number): void {
8342         if(!isWasmInitialized) {
8343                 throw new Error("initializeWasm() must be awaited first!");
8344         }
8345         const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
8346         // debug statements here
8347 }
8348         // uintptr_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
8349 /* @internal */
8350 export function COption_EventZ_clone_ptr(arg: number): number {
8351         if(!isWasmInitialized) {
8352                 throw new Error("initializeWasm() must be awaited first!");
8353         }
8354         const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
8355         return nativeResponseValue;
8356 }
8357         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
8358 /* @internal */
8359 export function COption_EventZ_clone(orig: number): number {
8360         if(!isWasmInitialized) {
8361                 throw new Error("initializeWasm() must be awaited first!");
8362         }
8363         const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
8364         return nativeResponseValue;
8365 }
8366         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
8367 /* @internal */
8368 export function CResult_COption_EventZDecodeErrorZ_ok(o: number): number {
8369         if(!isWasmInitialized) {
8370                 throw new Error("initializeWasm() must be awaited first!");
8371         }
8372         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
8373         return nativeResponseValue;
8374 }
8375         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
8376 /* @internal */
8377 export function CResult_COption_EventZDecodeErrorZ_err(e: number): number {
8378         if(!isWasmInitialized) {
8379                 throw new Error("initializeWasm() must be awaited first!");
8380         }
8381         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
8382         return nativeResponseValue;
8383 }
8384         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
8385 /* @internal */
8386 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: number): boolean {
8387         if(!isWasmInitialized) {
8388                 throw new Error("initializeWasm() must be awaited first!");
8389         }
8390         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
8391         return nativeResponseValue;
8392 }
8393         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
8394 /* @internal */
8395 export function CResult_COption_EventZDecodeErrorZ_free(_res: number): void {
8396         if(!isWasmInitialized) {
8397                 throw new Error("initializeWasm() must be awaited first!");
8398         }
8399         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
8400         // debug statements here
8401 }
8402         // uintptr_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
8403 /* @internal */
8404 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: number): number {
8405         if(!isWasmInitialized) {
8406                 throw new Error("initializeWasm() must be awaited first!");
8407         }
8408         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
8409         return nativeResponseValue;
8410 }
8411         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
8412 /* @internal */
8413 export function CResult_COption_EventZDecodeErrorZ_clone(orig: number): number {
8414         if(!isWasmInitialized) {
8415                 throw new Error("initializeWasm() must be awaited first!");
8416         }
8417         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
8418         return nativeResponseValue;
8419 }
8420         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
8421 /* @internal */
8422 export function CVec_MessageSendEventZ_free(_res: number): void {
8423         if(!isWasmInitialized) {
8424                 throw new Error("initializeWasm() must be awaited first!");
8425         }
8426         const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
8427         // debug statements here
8428 }
8429         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
8430 /* @internal */
8431 export function CResult_TxOutAccessErrorZ_ok(o: number): number {
8432         if(!isWasmInitialized) {
8433                 throw new Error("initializeWasm() must be awaited first!");
8434         }
8435         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_ok(o);
8436         return nativeResponseValue;
8437 }
8438         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
8439 /* @internal */
8440 export function CResult_TxOutAccessErrorZ_err(e: AccessError): number {
8441         if(!isWasmInitialized) {
8442                 throw new Error("initializeWasm() must be awaited first!");
8443         }
8444         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_err(e);
8445         return nativeResponseValue;
8446 }
8447         // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
8448 /* @internal */
8449 export function CResult_TxOutAccessErrorZ_is_ok(o: number): boolean {
8450         if(!isWasmInitialized) {
8451                 throw new Error("initializeWasm() must be awaited first!");
8452         }
8453         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_is_ok(o);
8454         return nativeResponseValue;
8455 }
8456         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
8457 /* @internal */
8458 export function CResult_TxOutAccessErrorZ_free(_res: number): void {
8459         if(!isWasmInitialized) {
8460                 throw new Error("initializeWasm() must be awaited first!");
8461         }
8462         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_free(_res);
8463         // debug statements here
8464 }
8465         // uintptr_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
8466 /* @internal */
8467 export function CResult_TxOutAccessErrorZ_clone_ptr(arg: number): number {
8468         if(!isWasmInitialized) {
8469                 throw new Error("initializeWasm() must be awaited first!");
8470         }
8471         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone_ptr(arg);
8472         return nativeResponseValue;
8473 }
8474         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
8475 /* @internal */
8476 export function CResult_TxOutAccessErrorZ_clone(orig: number): number {
8477         if(!isWasmInitialized) {
8478                 throw new Error("initializeWasm() must be awaited first!");
8479         }
8480         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone(orig);
8481         return nativeResponseValue;
8482 }
8483         // uintptr_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
8484 /* @internal */
8485 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: number): number {
8486         if(!isWasmInitialized) {
8487                 throw new Error("initializeWasm() must be awaited first!");
8488         }
8489         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
8490         return nativeResponseValue;
8491 }
8492         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
8493 /* @internal */
8494 export function C2Tuple_usizeTransactionZ_clone(orig: number): number {
8495         if(!isWasmInitialized) {
8496                 throw new Error("initializeWasm() must be awaited first!");
8497         }
8498         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
8499         return nativeResponseValue;
8500 }
8501         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
8502 /* @internal */
8503 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): number {
8504         if(!isWasmInitialized) {
8505                 throw new Error("initializeWasm() must be awaited first!");
8506         }
8507         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
8508         return nativeResponseValue;
8509 }
8510         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
8511 /* @internal */
8512 export function C2Tuple_usizeTransactionZ_free(_res: number): void {
8513         if(!isWasmInitialized) {
8514                 throw new Error("initializeWasm() must be awaited first!");
8515         }
8516         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
8517         // debug statements here
8518 }
8519         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
8520 /* @internal */
8521 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8522         if(!isWasmInitialized) {
8523                 throw new Error("initializeWasm() must be awaited first!");
8524         }
8525         const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
8526         // debug statements here
8527 }
8528         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
8529 /* @internal */
8530 export function CVec_TxidZ_free(_res: number): void {
8531         if(!isWasmInitialized) {
8532                 throw new Error("initializeWasm() must be awaited first!");
8533         }
8534         const nativeResponseValue = wasm.TS_CVec_TxidZ_free(_res);
8535         // debug statements here
8536 }
8537         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
8538 /* @internal */
8539 export function CResult_NoneChannelMonitorUpdateErrZ_ok(): number {
8540         if(!isWasmInitialized) {
8541                 throw new Error("initializeWasm() must be awaited first!");
8542         }
8543         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_ok();
8544         return nativeResponseValue;
8545 }
8546         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
8547 /* @internal */
8548 export function CResult_NoneChannelMonitorUpdateErrZ_err(e: ChannelMonitorUpdateErr): number {
8549         if(!isWasmInitialized) {
8550                 throw new Error("initializeWasm() must be awaited first!");
8551         }
8552         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_err(e);
8553         return nativeResponseValue;
8554 }
8555         // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
8556 /* @internal */
8557 export function CResult_NoneChannelMonitorUpdateErrZ_is_ok(o: number): boolean {
8558         if(!isWasmInitialized) {
8559                 throw new Error("initializeWasm() must be awaited first!");
8560         }
8561         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_is_ok(o);
8562         return nativeResponseValue;
8563 }
8564         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
8565 /* @internal */
8566 export function CResult_NoneChannelMonitorUpdateErrZ_free(_res: number): void {
8567         if(!isWasmInitialized) {
8568                 throw new Error("initializeWasm() must be awaited first!");
8569         }
8570         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_free(_res);
8571         // debug statements here
8572 }
8573         // uintptr_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
8574 /* @internal */
8575 export function CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg: number): number {
8576         if(!isWasmInitialized) {
8577                 throw new Error("initializeWasm() must be awaited first!");
8578         }
8579         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg);
8580         return nativeResponseValue;
8581 }
8582         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
8583 /* @internal */
8584 export function CResult_NoneChannelMonitorUpdateErrZ_clone(orig: number): number {
8585         if(!isWasmInitialized) {
8586                 throw new Error("initializeWasm() must be awaited first!");
8587         }
8588         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone(orig);
8589         return nativeResponseValue;
8590 }
8591         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
8592 /* @internal */
8593 export function CVec_MonitorEventZ_free(_res: number): void {
8594         if(!isWasmInitialized) {
8595                 throw new Error("initializeWasm() must be awaited first!");
8596         }
8597         const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
8598         // debug statements here
8599 }
8600         // uintptr_t C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR arg);
8601 /* @internal */
8602 export function C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(arg: number): number {
8603         if(!isWasmInitialized) {
8604                 throw new Error("initializeWasm() must be awaited first!");
8605         }
8606         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(arg);
8607         return nativeResponseValue;
8608 }
8609         // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR orig);
8610 /* @internal */
8611 export function C2Tuple_OutPointCVec_MonitorEventZZ_clone(orig: number): number {
8612         if(!isWasmInitialized) {
8613                 throw new Error("initializeWasm() must be awaited first!");
8614         }
8615         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_clone(orig);
8616         return nativeResponseValue;
8617 }
8618         // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b);
8619 /* @internal */
8620 export function C2Tuple_OutPointCVec_MonitorEventZZ_new(a: number, b: number): number {
8621         if(!isWasmInitialized) {
8622                 throw new Error("initializeWasm() must be awaited first!");
8623         }
8624         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_new(a, b);
8625         return nativeResponseValue;
8626 }
8627         // void C2Tuple_OutPointCVec_MonitorEventZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorEventZZ _res);
8628 /* @internal */
8629 export function C2Tuple_OutPointCVec_MonitorEventZZ_free(_res: number): void {
8630         if(!isWasmInitialized) {
8631                 throw new Error("initializeWasm() must be awaited first!");
8632         }
8633         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_free(_res);
8634         // debug statements here
8635 }
8636         // void CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ _res);
8637 /* @internal */
8638 export function CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(_res: number): void {
8639         if(!isWasmInitialized) {
8640                 throw new Error("initializeWasm() must be awaited first!");
8641         }
8642         const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(_res);
8643         // debug statements here
8644 }
8645         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
8646 /* @internal */
8647 export function COption_C2Tuple_usizeTransactionZZ_some(o: number): number {
8648         if(!isWasmInitialized) {
8649                 throw new Error("initializeWasm() must be awaited first!");
8650         }
8651         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_some(o);
8652         return nativeResponseValue;
8653 }
8654         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
8655 /* @internal */
8656 export function COption_C2Tuple_usizeTransactionZZ_none(): number {
8657         if(!isWasmInitialized) {
8658                 throw new Error("initializeWasm() must be awaited first!");
8659         }
8660         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_none();
8661         return nativeResponseValue;
8662 }
8663         // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
8664 /* @internal */
8665 export function COption_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8666         if(!isWasmInitialized) {
8667                 throw new Error("initializeWasm() must be awaited first!");
8668         }
8669         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_free(_res);
8670         // debug statements here
8671 }
8672         // uintptr_t COption_C2Tuple_usizeTransactionZZ_clone_ptr(LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR arg);
8673 /* @internal */
8674 export function COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg: number): number {
8675         if(!isWasmInitialized) {
8676                 throw new Error("initializeWasm() must be awaited first!");
8677         }
8678         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg);
8679         return nativeResponseValue;
8680 }
8681         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
8682 /* @internal */
8683 export function COption_C2Tuple_usizeTransactionZZ_clone(orig: number): number {
8684         if(!isWasmInitialized) {
8685                 throw new Error("initializeWasm() must be awaited first!");
8686         }
8687         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone(orig);
8688         return nativeResponseValue;
8689 }
8690         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
8691 /* @internal */
8692 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: number): number {
8693         if(!isWasmInitialized) {
8694                 throw new Error("initializeWasm() must be awaited first!");
8695         }
8696         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
8697         return nativeResponseValue;
8698 }
8699         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
8700 /* @internal */
8701 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: number): number {
8702         if(!isWasmInitialized) {
8703                 throw new Error("initializeWasm() must be awaited first!");
8704         }
8705         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
8706         return nativeResponseValue;
8707 }
8708         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
8709 /* @internal */
8710 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: number): boolean {
8711         if(!isWasmInitialized) {
8712                 throw new Error("initializeWasm() must be awaited first!");
8713         }
8714         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
8715         return nativeResponseValue;
8716 }
8717         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
8718 /* @internal */
8719 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: number): void {
8720         if(!isWasmInitialized) {
8721                 throw new Error("initializeWasm() must be awaited first!");
8722         }
8723         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
8724         // debug statements here
8725 }
8726         // uintptr_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
8727 /* @internal */
8728 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: number): number {
8729         if(!isWasmInitialized) {
8730                 throw new Error("initializeWasm() must be awaited first!");
8731         }
8732         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
8733         return nativeResponseValue;
8734 }
8735         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
8736 /* @internal */
8737 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: number): number {
8738         if(!isWasmInitialized) {
8739                 throw new Error("initializeWasm() must be awaited first!");
8740         }
8741         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
8742         return nativeResponseValue;
8743 }
8744         // uintptr_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
8745 /* @internal */
8746 export function C2Tuple_u64u64Z_clone_ptr(arg: number): number {
8747         if(!isWasmInitialized) {
8748                 throw new Error("initializeWasm() must be awaited first!");
8749         }
8750         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone_ptr(arg);
8751         return nativeResponseValue;
8752 }
8753         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
8754 /* @internal */
8755 export function C2Tuple_u64u64Z_clone(orig: number): number {
8756         if(!isWasmInitialized) {
8757                 throw new Error("initializeWasm() must be awaited first!");
8758         }
8759         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone(orig);
8760         return nativeResponseValue;
8761 }
8762         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
8763 /* @internal */
8764 export function C2Tuple_u64u64Z_new(a: bigint, b: bigint): number {
8765         if(!isWasmInitialized) {
8766                 throw new Error("initializeWasm() must be awaited first!");
8767         }
8768         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_new(a, b);
8769         return nativeResponseValue;
8770 }
8771         // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
8772 /* @internal */
8773 export function C2Tuple_u64u64Z_free(_res: number): void {
8774         if(!isWasmInitialized) {
8775                 throw new Error("initializeWasm() must be awaited first!");
8776         }
8777         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_free(_res);
8778         // debug statements here
8779 }
8780         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
8781 /* @internal */
8782 export function COption_C2Tuple_u64u64ZZ_some(o: number): number {
8783         if(!isWasmInitialized) {
8784                 throw new Error("initializeWasm() must be awaited first!");
8785         }
8786         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_some(o);
8787         return nativeResponseValue;
8788 }
8789         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
8790 /* @internal */
8791 export function COption_C2Tuple_u64u64ZZ_none(): number {
8792         if(!isWasmInitialized) {
8793                 throw new Error("initializeWasm() must be awaited first!");
8794         }
8795         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_none();
8796         return nativeResponseValue;
8797 }
8798         // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
8799 /* @internal */
8800 export function COption_C2Tuple_u64u64ZZ_free(_res: number): void {
8801         if(!isWasmInitialized) {
8802                 throw new Error("initializeWasm() must be awaited first!");
8803         }
8804         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_free(_res);
8805         // debug statements here
8806 }
8807         // uintptr_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
8808 /* @internal */
8809 export function COption_C2Tuple_u64u64ZZ_clone_ptr(arg: number): number {
8810         if(!isWasmInitialized) {
8811                 throw new Error("initializeWasm() must be awaited first!");
8812         }
8813         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone_ptr(arg);
8814         return nativeResponseValue;
8815 }
8816         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
8817 /* @internal */
8818 export function COption_C2Tuple_u64u64ZZ_clone(orig: number): number {
8819         if(!isWasmInitialized) {
8820                 throw new Error("initializeWasm() must be awaited first!");
8821         }
8822         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone(orig);
8823         return nativeResponseValue;
8824 }
8825         // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
8826 /* @internal */
8827 export function CVec_NodeIdZ_free(_res: number): void {
8828         if(!isWasmInitialized) {
8829                 throw new Error("initializeWasm() must be awaited first!");
8830         }
8831         const nativeResponseValue = wasm.TS_CVec_NodeIdZ_free(_res);
8832         // debug statements here
8833 }
8834         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
8835 /* @internal */
8836 export function CResult_ProbabilisticScorerDecodeErrorZ_ok(o: number): number {
8837         if(!isWasmInitialized) {
8838                 throw new Error("initializeWasm() must be awaited first!");
8839         }
8840         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_ok(o);
8841         return nativeResponseValue;
8842 }
8843         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
8844 /* @internal */
8845 export function CResult_ProbabilisticScorerDecodeErrorZ_err(e: number): number {
8846         if(!isWasmInitialized) {
8847                 throw new Error("initializeWasm() must be awaited first!");
8848         }
8849         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_err(e);
8850         return nativeResponseValue;
8851 }
8852         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
8853 /* @internal */
8854 export function CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o: number): boolean {
8855         if(!isWasmInitialized) {
8856                 throw new Error("initializeWasm() must be awaited first!");
8857         }
8858         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o);
8859         return nativeResponseValue;
8860 }
8861         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
8862 /* @internal */
8863 export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: number): void {
8864         if(!isWasmInitialized) {
8865                 throw new Error("initializeWasm() must be awaited first!");
8866         }
8867         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res);
8868         // debug statements here
8869 }
8870         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
8871 /* @internal */
8872 export function CResult_InitFeaturesDecodeErrorZ_ok(o: number): number {
8873         if(!isWasmInitialized) {
8874                 throw new Error("initializeWasm() must be awaited first!");
8875         }
8876         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
8877         return nativeResponseValue;
8878 }
8879         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8880 /* @internal */
8881 export function CResult_InitFeaturesDecodeErrorZ_err(e: number): number {
8882         if(!isWasmInitialized) {
8883                 throw new Error("initializeWasm() must be awaited first!");
8884         }
8885         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
8886         return nativeResponseValue;
8887 }
8888         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
8889 /* @internal */
8890 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8891         if(!isWasmInitialized) {
8892                 throw new Error("initializeWasm() must be awaited first!");
8893         }
8894         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
8895         return nativeResponseValue;
8896 }
8897         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
8898 /* @internal */
8899 export function CResult_InitFeaturesDecodeErrorZ_free(_res: number): void {
8900         if(!isWasmInitialized) {
8901                 throw new Error("initializeWasm() must be awaited first!");
8902         }
8903         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
8904         // debug statements here
8905 }
8906         // uintptr_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
8907 /* @internal */
8908 export function CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8909         if(!isWasmInitialized) {
8910                 throw new Error("initializeWasm() must be awaited first!");
8911         }
8912         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg);
8913         return nativeResponseValue;
8914 }
8915         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
8916 /* @internal */
8917 export function CResult_InitFeaturesDecodeErrorZ_clone(orig: number): number {
8918         if(!isWasmInitialized) {
8919                 throw new Error("initializeWasm() must be awaited first!");
8920         }
8921         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone(orig);
8922         return nativeResponseValue;
8923 }
8924         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
8925 /* @internal */
8926 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: number): number {
8927         if(!isWasmInitialized) {
8928                 throw new Error("initializeWasm() must be awaited first!");
8929         }
8930         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
8931         return nativeResponseValue;
8932 }
8933         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8934 /* @internal */
8935 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: number): number {
8936         if(!isWasmInitialized) {
8937                 throw new Error("initializeWasm() must be awaited first!");
8938         }
8939         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
8940         return nativeResponseValue;
8941 }
8942         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
8943 /* @internal */
8944 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8945         if(!isWasmInitialized) {
8946                 throw new Error("initializeWasm() must be awaited first!");
8947         }
8948         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
8949         return nativeResponseValue;
8950 }
8951         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
8952 /* @internal */
8953 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: number): void {
8954         if(!isWasmInitialized) {
8955                 throw new Error("initializeWasm() must be awaited first!");
8956         }
8957         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
8958         // debug statements here
8959 }
8960         // uintptr_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
8961 /* @internal */
8962 export function CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8963         if(!isWasmInitialized) {
8964                 throw new Error("initializeWasm() must be awaited first!");
8965         }
8966         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg);
8967         return nativeResponseValue;
8968 }
8969         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
8970 /* @internal */
8971 export function CResult_ChannelFeaturesDecodeErrorZ_clone(orig: number): number {
8972         if(!isWasmInitialized) {
8973                 throw new Error("initializeWasm() must be awaited first!");
8974         }
8975         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone(orig);
8976         return nativeResponseValue;
8977 }
8978         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
8979 /* @internal */
8980 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: number): number {
8981         if(!isWasmInitialized) {
8982                 throw new Error("initializeWasm() must be awaited first!");
8983         }
8984         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
8985         return nativeResponseValue;
8986 }
8987         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8988 /* @internal */
8989 export function CResult_NodeFeaturesDecodeErrorZ_err(e: number): number {
8990         if(!isWasmInitialized) {
8991                 throw new Error("initializeWasm() must be awaited first!");
8992         }
8993         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
8994         return nativeResponseValue;
8995 }
8996         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
8997 /* @internal */
8998 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8999         if(!isWasmInitialized) {
9000                 throw new Error("initializeWasm() must be awaited first!");
9001         }
9002         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
9003         return nativeResponseValue;
9004 }
9005         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
9006 /* @internal */
9007 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: number): void {
9008         if(!isWasmInitialized) {
9009                 throw new Error("initializeWasm() must be awaited first!");
9010         }
9011         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
9012         // debug statements here
9013 }
9014         // uintptr_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
9015 /* @internal */
9016 export function CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
9017         if(!isWasmInitialized) {
9018                 throw new Error("initializeWasm() must be awaited first!");
9019         }
9020         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg);
9021         return nativeResponseValue;
9022 }
9023         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
9024 /* @internal */
9025 export function CResult_NodeFeaturesDecodeErrorZ_clone(orig: number): number {
9026         if(!isWasmInitialized) {
9027                 throw new Error("initializeWasm() must be awaited first!");
9028         }
9029         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone(orig);
9030         return nativeResponseValue;
9031 }
9032         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
9033 /* @internal */
9034 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: number): number {
9035         if(!isWasmInitialized) {
9036                 throw new Error("initializeWasm() must be awaited first!");
9037         }
9038         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
9039         return nativeResponseValue;
9040 }
9041         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9042 /* @internal */
9043 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: number): number {
9044         if(!isWasmInitialized) {
9045                 throw new Error("initializeWasm() must be awaited first!");
9046         }
9047         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
9048         return nativeResponseValue;
9049 }
9050         // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
9051 /* @internal */
9052 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: number): boolean {
9053         if(!isWasmInitialized) {
9054                 throw new Error("initializeWasm() must be awaited first!");
9055         }
9056         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
9057         return nativeResponseValue;
9058 }
9059         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
9060 /* @internal */
9061 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: number): void {
9062         if(!isWasmInitialized) {
9063                 throw new Error("initializeWasm() must be awaited first!");
9064         }
9065         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
9066         // debug statements here
9067 }
9068         // uintptr_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
9069 /* @internal */
9070 export function CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
9071         if(!isWasmInitialized) {
9072                 throw new Error("initializeWasm() must be awaited first!");
9073         }
9074         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg);
9075         return nativeResponseValue;
9076 }
9077         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
9078 /* @internal */
9079 export function CResult_InvoiceFeaturesDecodeErrorZ_clone(orig: number): number {
9080         if(!isWasmInitialized) {
9081                 throw new Error("initializeWasm() must be awaited first!");
9082         }
9083         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone(orig);
9084         return nativeResponseValue;
9085 }
9086         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
9087 /* @internal */
9088 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: number): number {
9089         if(!isWasmInitialized) {
9090                 throw new Error("initializeWasm() must be awaited first!");
9091         }
9092         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
9093         return nativeResponseValue;
9094 }
9095         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9096 /* @internal */
9097 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: number): number {
9098         if(!isWasmInitialized) {
9099                 throw new Error("initializeWasm() must be awaited first!");
9100         }
9101         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
9102         return nativeResponseValue;
9103 }
9104         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
9105 /* @internal */
9106 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
9107         if(!isWasmInitialized) {
9108                 throw new Error("initializeWasm() must be awaited first!");
9109         }
9110         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
9111         return nativeResponseValue;
9112 }
9113         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
9114 /* @internal */
9115 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: number): void {
9116         if(!isWasmInitialized) {
9117                 throw new Error("initializeWasm() must be awaited first!");
9118         }
9119         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
9120         // debug statements here
9121 }
9122         // uintptr_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
9123 /* @internal */
9124 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
9125         if(!isWasmInitialized) {
9126                 throw new Error("initializeWasm() must be awaited first!");
9127         }
9128         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg);
9129         return nativeResponseValue;
9130 }
9131         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
9132 /* @internal */
9133 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig: number): number {
9134         if(!isWasmInitialized) {
9135                 throw new Error("initializeWasm() must be awaited first!");
9136         }
9137         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig);
9138         return nativeResponseValue;
9139 }
9140         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
9141 /* @internal */
9142 export function CResult_NodeIdDecodeErrorZ_ok(o: number): number {
9143         if(!isWasmInitialized) {
9144                 throw new Error("initializeWasm() must be awaited first!");
9145         }
9146         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
9147         return nativeResponseValue;
9148 }
9149         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
9150 /* @internal */
9151 export function CResult_NodeIdDecodeErrorZ_err(e: number): number {
9152         if(!isWasmInitialized) {
9153                 throw new Error("initializeWasm() must be awaited first!");
9154         }
9155         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
9156         return nativeResponseValue;
9157 }
9158         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
9159 /* @internal */
9160 export function CResult_NodeIdDecodeErrorZ_is_ok(o: number): boolean {
9161         if(!isWasmInitialized) {
9162                 throw new Error("initializeWasm() must be awaited first!");
9163         }
9164         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
9165         return nativeResponseValue;
9166 }
9167         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
9168 /* @internal */
9169 export function CResult_NodeIdDecodeErrorZ_free(_res: number): void {
9170         if(!isWasmInitialized) {
9171                 throw new Error("initializeWasm() must be awaited first!");
9172         }
9173         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
9174         // debug statements here
9175 }
9176         // uintptr_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
9177 /* @internal */
9178 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: number): number {
9179         if(!isWasmInitialized) {
9180                 throw new Error("initializeWasm() must be awaited first!");
9181         }
9182         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
9183         return nativeResponseValue;
9184 }
9185         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
9186 /* @internal */
9187 export function CResult_NodeIdDecodeErrorZ_clone(orig: number): number {
9188         if(!isWasmInitialized) {
9189                 throw new Error("initializeWasm() must be awaited first!");
9190         }
9191         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
9192         return nativeResponseValue;
9193 }
9194         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
9195 /* @internal */
9196 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: number): number {
9197         if(!isWasmInitialized) {
9198                 throw new Error("initializeWasm() must be awaited first!");
9199         }
9200         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
9201         return nativeResponseValue;
9202 }
9203         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
9204 /* @internal */
9205 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: number): number {
9206         if(!isWasmInitialized) {
9207                 throw new Error("initializeWasm() must be awaited first!");
9208         }
9209         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
9210         return nativeResponseValue;
9211 }
9212         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
9213 /* @internal */
9214 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: number): boolean {
9215         if(!isWasmInitialized) {
9216                 throw new Error("initializeWasm() must be awaited first!");
9217         }
9218         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
9219         return nativeResponseValue;
9220 }
9221         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
9222 /* @internal */
9223 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: number): void {
9224         if(!isWasmInitialized) {
9225                 throw new Error("initializeWasm() must be awaited first!");
9226         }
9227         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
9228         // debug statements here
9229 }
9230         // uintptr_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
9231 /* @internal */
9232 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: number): number {
9233         if(!isWasmInitialized) {
9234                 throw new Error("initializeWasm() must be awaited first!");
9235         }
9236         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
9237         return nativeResponseValue;
9238 }
9239         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
9240 /* @internal */
9241 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: number): number {
9242         if(!isWasmInitialized) {
9243                 throw new Error("initializeWasm() must be awaited first!");
9244         }
9245         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
9246         return nativeResponseValue;
9247 }
9248         // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
9249 /* @internal */
9250 export function COption_AccessZ_some(o: number): number {
9251         if(!isWasmInitialized) {
9252                 throw new Error("initializeWasm() must be awaited first!");
9253         }
9254         const nativeResponseValue = wasm.TS_COption_AccessZ_some(o);
9255         return nativeResponseValue;
9256 }
9257         // struct LDKCOption_AccessZ COption_AccessZ_none(void);
9258 /* @internal */
9259 export function COption_AccessZ_none(): number {
9260         if(!isWasmInitialized) {
9261                 throw new Error("initializeWasm() must be awaited first!");
9262         }
9263         const nativeResponseValue = wasm.TS_COption_AccessZ_none();
9264         return nativeResponseValue;
9265 }
9266         // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
9267 /* @internal */
9268 export function COption_AccessZ_free(_res: number): void {
9269         if(!isWasmInitialized) {
9270                 throw new Error("initializeWasm() must be awaited first!");
9271         }
9272         const nativeResponseValue = wasm.TS_COption_AccessZ_free(_res);
9273         // debug statements here
9274 }
9275         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
9276 /* @internal */
9277 export function CResult_boolLightningErrorZ_ok(o: boolean): number {
9278         if(!isWasmInitialized) {
9279                 throw new Error("initializeWasm() must be awaited first!");
9280         }
9281         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
9282         return nativeResponseValue;
9283 }
9284         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
9285 /* @internal */
9286 export function CResult_boolLightningErrorZ_err(e: number): number {
9287         if(!isWasmInitialized) {
9288                 throw new Error("initializeWasm() must be awaited first!");
9289         }
9290         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
9291         return nativeResponseValue;
9292 }
9293         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
9294 /* @internal */
9295 export function CResult_boolLightningErrorZ_is_ok(o: number): boolean {
9296         if(!isWasmInitialized) {
9297                 throw new Error("initializeWasm() must be awaited first!");
9298         }
9299         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
9300         return nativeResponseValue;
9301 }
9302         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
9303 /* @internal */
9304 export function CResult_boolLightningErrorZ_free(_res: number): void {
9305         if(!isWasmInitialized) {
9306                 throw new Error("initializeWasm() must be awaited first!");
9307         }
9308         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
9309         // debug statements here
9310 }
9311         // uintptr_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
9312 /* @internal */
9313 export function CResult_boolLightningErrorZ_clone_ptr(arg: number): number {
9314         if(!isWasmInitialized) {
9315                 throw new Error("initializeWasm() must be awaited first!");
9316         }
9317         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
9318         return nativeResponseValue;
9319 }
9320         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
9321 /* @internal */
9322 export function CResult_boolLightningErrorZ_clone(orig: number): number {
9323         if(!isWasmInitialized) {
9324                 throw new Error("initializeWasm() must be awaited first!");
9325         }
9326         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
9327         return nativeResponseValue;
9328 }
9329         // uintptr_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
9330 /* @internal */
9331 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: number): number {
9332         if(!isWasmInitialized) {
9333                 throw new Error("initializeWasm() must be awaited first!");
9334         }
9335         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
9336         return nativeResponseValue;
9337 }
9338         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
9339 /* @internal */
9340 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: number): number {
9341         if(!isWasmInitialized) {
9342                 throw new Error("initializeWasm() must be awaited first!");
9343         }
9344         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
9345         return nativeResponseValue;
9346 }
9347         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
9348 /* @internal */
9349 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: number, b: number, c: number): number {
9350         if(!isWasmInitialized) {
9351                 throw new Error("initializeWasm() must be awaited first!");
9352         }
9353         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
9354         return nativeResponseValue;
9355 }
9356         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
9357 /* @internal */
9358 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: number): void {
9359         if(!isWasmInitialized) {
9360                 throw new Error("initializeWasm() must be awaited first!");
9361         }
9362         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
9363         // debug statements here
9364 }
9365         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
9366 /* @internal */
9367 export function CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: number): void {
9368         if(!isWasmInitialized) {
9369                 throw new Error("initializeWasm() must be awaited first!");
9370         }
9371         const nativeResponseValue = wasm.TS_CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
9372         // debug statements here
9373 }
9374         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
9375 /* @internal */
9376 export function CVec_NodeAnnouncementZ_free(_res: number): void {
9377         if(!isWasmInitialized) {
9378                 throw new Error("initializeWasm() must be awaited first!");
9379         }
9380         const nativeResponseValue = wasm.TS_CVec_NodeAnnouncementZ_free(_res);
9381         // debug statements here
9382 }
9383         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
9384 /* @internal */
9385 export function CResult_NoneLightningErrorZ_ok(): number {
9386         if(!isWasmInitialized) {
9387                 throw new Error("initializeWasm() must be awaited first!");
9388         }
9389         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
9390         return nativeResponseValue;
9391 }
9392         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
9393 /* @internal */
9394 export function CResult_NoneLightningErrorZ_err(e: number): number {
9395         if(!isWasmInitialized) {
9396                 throw new Error("initializeWasm() must be awaited first!");
9397         }
9398         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
9399         return nativeResponseValue;
9400 }
9401         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
9402 /* @internal */
9403 export function CResult_NoneLightningErrorZ_is_ok(o: number): boolean {
9404         if(!isWasmInitialized) {
9405                 throw new Error("initializeWasm() must be awaited first!");
9406         }
9407         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
9408         return nativeResponseValue;
9409 }
9410         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
9411 /* @internal */
9412 export function CResult_NoneLightningErrorZ_free(_res: number): void {
9413         if(!isWasmInitialized) {
9414                 throw new Error("initializeWasm() must be awaited first!");
9415         }
9416         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
9417         // debug statements here
9418 }
9419         // uintptr_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
9420 /* @internal */
9421 export function CResult_NoneLightningErrorZ_clone_ptr(arg: number): number {
9422         if(!isWasmInitialized) {
9423                 throw new Error("initializeWasm() must be awaited first!");
9424         }
9425         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
9426         return nativeResponseValue;
9427 }
9428         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
9429 /* @internal */
9430 export function CResult_NoneLightningErrorZ_clone(orig: number): number {
9431         if(!isWasmInitialized) {
9432                 throw new Error("initializeWasm() must be awaited first!");
9433         }
9434         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
9435         return nativeResponseValue;
9436 }
9437         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
9438 /* @internal */
9439 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: number): number {
9440         if(!isWasmInitialized) {
9441                 throw new Error("initializeWasm() must be awaited first!");
9442         }
9443         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
9444         return nativeResponseValue;
9445 }
9446         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
9447 /* @internal */
9448 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: number): number {
9449         if(!isWasmInitialized) {
9450                 throw new Error("initializeWasm() must be awaited first!");
9451         }
9452         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
9453         return nativeResponseValue;
9454 }
9455         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
9456 /* @internal */
9457 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: number): boolean {
9458         if(!isWasmInitialized) {
9459                 throw new Error("initializeWasm() must be awaited first!");
9460         }
9461         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
9462         return nativeResponseValue;
9463 }
9464         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
9465 /* @internal */
9466 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: number): void {
9467         if(!isWasmInitialized) {
9468                 throw new Error("initializeWasm() must be awaited first!");
9469         }
9470         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
9471         // debug statements here
9472 }
9473         // uintptr_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
9474 /* @internal */
9475 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: number): number {
9476         if(!isWasmInitialized) {
9477                 throw new Error("initializeWasm() must be awaited first!");
9478         }
9479         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
9480         return nativeResponseValue;
9481 }
9482         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
9483 /* @internal */
9484 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: number): number {
9485         if(!isWasmInitialized) {
9486                 throw new Error("initializeWasm() must be awaited first!");
9487         }
9488         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
9489         return nativeResponseValue;
9490 }
9491         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
9492 /* @internal */
9493 export function CResult_ChannelInfoDecodeErrorZ_ok(o: number): number {
9494         if(!isWasmInitialized) {
9495                 throw new Error("initializeWasm() must be awaited first!");
9496         }
9497         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
9498         return nativeResponseValue;
9499 }
9500         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
9501 /* @internal */
9502 export function CResult_ChannelInfoDecodeErrorZ_err(e: number): number {
9503         if(!isWasmInitialized) {
9504                 throw new Error("initializeWasm() must be awaited first!");
9505         }
9506         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
9507         return nativeResponseValue;
9508 }
9509         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
9510 /* @internal */
9511 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: number): boolean {
9512         if(!isWasmInitialized) {
9513                 throw new Error("initializeWasm() must be awaited first!");
9514         }
9515         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
9516         return nativeResponseValue;
9517 }
9518         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
9519 /* @internal */
9520 export function CResult_ChannelInfoDecodeErrorZ_free(_res: number): void {
9521         if(!isWasmInitialized) {
9522                 throw new Error("initializeWasm() must be awaited first!");
9523         }
9524         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
9525         // debug statements here
9526 }
9527         // uintptr_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
9528 /* @internal */
9529 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: number): number {
9530         if(!isWasmInitialized) {
9531                 throw new Error("initializeWasm() must be awaited first!");
9532         }
9533         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
9534         return nativeResponseValue;
9535 }
9536         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
9537 /* @internal */
9538 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: number): number {
9539         if(!isWasmInitialized) {
9540                 throw new Error("initializeWasm() must be awaited first!");
9541         }
9542         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
9543         return nativeResponseValue;
9544 }
9545         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
9546 /* @internal */
9547 export function CResult_RoutingFeesDecodeErrorZ_ok(o: number): number {
9548         if(!isWasmInitialized) {
9549                 throw new Error("initializeWasm() must be awaited first!");
9550         }
9551         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
9552         return nativeResponseValue;
9553 }
9554         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
9555 /* @internal */
9556 export function CResult_RoutingFeesDecodeErrorZ_err(e: number): number {
9557         if(!isWasmInitialized) {
9558                 throw new Error("initializeWasm() must be awaited first!");
9559         }
9560         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
9561         return nativeResponseValue;
9562 }
9563         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
9564 /* @internal */
9565 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: number): boolean {
9566         if(!isWasmInitialized) {
9567                 throw new Error("initializeWasm() must be awaited first!");
9568         }
9569         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
9570         return nativeResponseValue;
9571 }
9572         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
9573 /* @internal */
9574 export function CResult_RoutingFeesDecodeErrorZ_free(_res: number): void {
9575         if(!isWasmInitialized) {
9576                 throw new Error("initializeWasm() must be awaited first!");
9577         }
9578         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
9579         // debug statements here
9580 }
9581         // uintptr_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
9582 /* @internal */
9583 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: number): number {
9584         if(!isWasmInitialized) {
9585                 throw new Error("initializeWasm() must be awaited first!");
9586         }
9587         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
9588         return nativeResponseValue;
9589 }
9590         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
9591 /* @internal */
9592 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: number): number {
9593         if(!isWasmInitialized) {
9594                 throw new Error("initializeWasm() must be awaited first!");
9595         }
9596         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
9597         return nativeResponseValue;
9598 }
9599         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
9600 /* @internal */
9601 export function CVec_NetAddressZ_free(_res: number): void {
9602         if(!isWasmInitialized) {
9603                 throw new Error("initializeWasm() must be awaited first!");
9604         }
9605         const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
9606         // debug statements here
9607 }
9608         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
9609 /* @internal */
9610 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: number): number {
9611         if(!isWasmInitialized) {
9612                 throw new Error("initializeWasm() must be awaited first!");
9613         }
9614         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
9615         return nativeResponseValue;
9616 }
9617         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
9618 /* @internal */
9619 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: number): number {
9620         if(!isWasmInitialized) {
9621                 throw new Error("initializeWasm() must be awaited first!");
9622         }
9623         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
9624         return nativeResponseValue;
9625 }
9626         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
9627 /* @internal */
9628 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: number): boolean {
9629         if(!isWasmInitialized) {
9630                 throw new Error("initializeWasm() must be awaited first!");
9631         }
9632         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
9633         return nativeResponseValue;
9634 }
9635         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
9636 /* @internal */
9637 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: number): void {
9638         if(!isWasmInitialized) {
9639                 throw new Error("initializeWasm() must be awaited first!");
9640         }
9641         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
9642         // debug statements here
9643 }
9644         // uintptr_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
9645 /* @internal */
9646 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: number): number {
9647         if(!isWasmInitialized) {
9648                 throw new Error("initializeWasm() must be awaited first!");
9649         }
9650         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
9651         return nativeResponseValue;
9652 }
9653         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
9654 /* @internal */
9655 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: number): number {
9656         if(!isWasmInitialized) {
9657                 throw new Error("initializeWasm() must be awaited first!");
9658         }
9659         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
9660         return nativeResponseValue;
9661 }
9662         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
9663 /* @internal */
9664 export function CResult_NodeAliasDecodeErrorZ_ok(o: number): number {
9665         if(!isWasmInitialized) {
9666                 throw new Error("initializeWasm() must be awaited first!");
9667         }
9668         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_ok(o);
9669         return nativeResponseValue;
9670 }
9671         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
9672 /* @internal */
9673 export function CResult_NodeAliasDecodeErrorZ_err(e: number): number {
9674         if(!isWasmInitialized) {
9675                 throw new Error("initializeWasm() must be awaited first!");
9676         }
9677         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_err(e);
9678         return nativeResponseValue;
9679 }
9680         // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
9681 /* @internal */
9682 export function CResult_NodeAliasDecodeErrorZ_is_ok(o: number): boolean {
9683         if(!isWasmInitialized) {
9684                 throw new Error("initializeWasm() must be awaited first!");
9685         }
9686         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_is_ok(o);
9687         return nativeResponseValue;
9688 }
9689         // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
9690 /* @internal */
9691 export function CResult_NodeAliasDecodeErrorZ_free(_res: number): void {
9692         if(!isWasmInitialized) {
9693                 throw new Error("initializeWasm() must be awaited first!");
9694         }
9695         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_free(_res);
9696         // debug statements here
9697 }
9698         // uintptr_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
9699 /* @internal */
9700 export function CResult_NodeAliasDecodeErrorZ_clone_ptr(arg: number): number {
9701         if(!isWasmInitialized) {
9702                 throw new Error("initializeWasm() must be awaited first!");
9703         }
9704         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone_ptr(arg);
9705         return nativeResponseValue;
9706 }
9707         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
9708 /* @internal */
9709 export function CResult_NodeAliasDecodeErrorZ_clone(orig: number): number {
9710         if(!isWasmInitialized) {
9711                 throw new Error("initializeWasm() must be awaited first!");
9712         }
9713         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone(orig);
9714         return nativeResponseValue;
9715 }
9716         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
9717 /* @internal */
9718 export function CVec_u64Z_free(_res: number): void {
9719         if(!isWasmInitialized) {
9720                 throw new Error("initializeWasm() must be awaited first!");
9721         }
9722         const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
9723         // debug statements here
9724 }
9725         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
9726 /* @internal */
9727 export function CResult_NodeInfoDecodeErrorZ_ok(o: number): number {
9728         if(!isWasmInitialized) {
9729                 throw new Error("initializeWasm() must be awaited first!");
9730         }
9731         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
9732         return nativeResponseValue;
9733 }
9734         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
9735 /* @internal */
9736 export function CResult_NodeInfoDecodeErrorZ_err(e: number): number {
9737         if(!isWasmInitialized) {
9738                 throw new Error("initializeWasm() must be awaited first!");
9739         }
9740         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
9741         return nativeResponseValue;
9742 }
9743         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
9744 /* @internal */
9745 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: number): boolean {
9746         if(!isWasmInitialized) {
9747                 throw new Error("initializeWasm() must be awaited first!");
9748         }
9749         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
9750         return nativeResponseValue;
9751 }
9752         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
9753 /* @internal */
9754 export function CResult_NodeInfoDecodeErrorZ_free(_res: number): void {
9755         if(!isWasmInitialized) {
9756                 throw new Error("initializeWasm() must be awaited first!");
9757         }
9758         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
9759         // debug statements here
9760 }
9761         // uintptr_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
9762 /* @internal */
9763 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: number): number {
9764         if(!isWasmInitialized) {
9765                 throw new Error("initializeWasm() must be awaited first!");
9766         }
9767         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
9768         return nativeResponseValue;
9769 }
9770         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
9771 /* @internal */
9772 export function CResult_NodeInfoDecodeErrorZ_clone(orig: number): number {
9773         if(!isWasmInitialized) {
9774                 throw new Error("initializeWasm() must be awaited first!");
9775         }
9776         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
9777         return nativeResponseValue;
9778 }
9779         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
9780 /* @internal */
9781 export function CResult_NetworkGraphDecodeErrorZ_ok(o: number): number {
9782         if(!isWasmInitialized) {
9783                 throw new Error("initializeWasm() must be awaited first!");
9784         }
9785         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
9786         return nativeResponseValue;
9787 }
9788         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
9789 /* @internal */
9790 export function CResult_NetworkGraphDecodeErrorZ_err(e: number): number {
9791         if(!isWasmInitialized) {
9792                 throw new Error("initializeWasm() must be awaited first!");
9793         }
9794         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
9795         return nativeResponseValue;
9796 }
9797         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
9798 /* @internal */
9799 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: number): boolean {
9800         if(!isWasmInitialized) {
9801                 throw new Error("initializeWasm() must be awaited first!");
9802         }
9803         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
9804         return nativeResponseValue;
9805 }
9806         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
9807 /* @internal */
9808 export function CResult_NetworkGraphDecodeErrorZ_free(_res: number): void {
9809         if(!isWasmInitialized) {
9810                 throw new Error("initializeWasm() must be awaited first!");
9811         }
9812         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
9813         // debug statements here
9814 }
9815         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
9816 /* @internal */
9817 export function COption_CVec_NetAddressZZ_some(o: number): number {
9818         if(!isWasmInitialized) {
9819                 throw new Error("initializeWasm() must be awaited first!");
9820         }
9821         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
9822         return nativeResponseValue;
9823 }
9824         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
9825 /* @internal */
9826 export function COption_CVec_NetAddressZZ_none(): number {
9827         if(!isWasmInitialized) {
9828                 throw new Error("initializeWasm() must be awaited first!");
9829         }
9830         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
9831         return nativeResponseValue;
9832 }
9833         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
9834 /* @internal */
9835 export function COption_CVec_NetAddressZZ_free(_res: number): void {
9836         if(!isWasmInitialized) {
9837                 throw new Error("initializeWasm() must be awaited first!");
9838         }
9839         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
9840         // debug statements here
9841 }
9842         // uintptr_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
9843 /* @internal */
9844 export function COption_CVec_NetAddressZZ_clone_ptr(arg: number): number {
9845         if(!isWasmInitialized) {
9846                 throw new Error("initializeWasm() must be awaited first!");
9847         }
9848         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
9849         return nativeResponseValue;
9850 }
9851         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
9852 /* @internal */
9853 export function COption_CVec_NetAddressZZ_clone(orig: number): number {
9854         if(!isWasmInitialized) {
9855                 throw new Error("initializeWasm() must be awaited first!");
9856         }
9857         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
9858         return nativeResponseValue;
9859 }
9860         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
9861 /* @internal */
9862 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
9863         if(!isWasmInitialized) {
9864                 throw new Error("initializeWasm() must be awaited first!");
9865         }
9866         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
9867         return nativeResponseValue;
9868 }
9869         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9870 /* @internal */
9871 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
9872         if(!isWasmInitialized) {
9873                 throw new Error("initializeWasm() must be awaited first!");
9874         }
9875         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
9876         return nativeResponseValue;
9877 }
9878         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9879 /* @internal */
9880 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9881         if(!isWasmInitialized) {
9882                 throw new Error("initializeWasm() must be awaited first!");
9883         }
9884         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
9885         return nativeResponseValue;
9886 }
9887         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
9888 /* @internal */
9889 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
9890         if(!isWasmInitialized) {
9891                 throw new Error("initializeWasm() must be awaited first!");
9892         }
9893         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
9894         // debug statements here
9895 }
9896         // uintptr_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9897 /* @internal */
9898 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9899         if(!isWasmInitialized) {
9900                 throw new Error("initializeWasm() must be awaited first!");
9901         }
9902         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9903         return nativeResponseValue;
9904 }
9905         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9906 /* @internal */
9907 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9908         if(!isWasmInitialized) {
9909                 throw new Error("initializeWasm() must be awaited first!");
9910         }
9911         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
9912         return nativeResponseValue;
9913 }
9914         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
9915 /* @internal */
9916 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
9917         if(!isWasmInitialized) {
9918                 throw new Error("initializeWasm() must be awaited first!");
9919         }
9920         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
9921         return nativeResponseValue;
9922 }
9923         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9924 /* @internal */
9925 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
9926         if(!isWasmInitialized) {
9927                 throw new Error("initializeWasm() must be awaited first!");
9928         }
9929         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
9930         return nativeResponseValue;
9931 }
9932         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9933 /* @internal */
9934 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9935         if(!isWasmInitialized) {
9936                 throw new Error("initializeWasm() must be awaited first!");
9937         }
9938         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
9939         return nativeResponseValue;
9940 }
9941         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
9942 /* @internal */
9943 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
9944         if(!isWasmInitialized) {
9945                 throw new Error("initializeWasm() must be awaited first!");
9946         }
9947         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
9948         // debug statements here
9949 }
9950         // uintptr_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9951 /* @internal */
9952 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9953         if(!isWasmInitialized) {
9954                 throw new Error("initializeWasm() must be awaited first!");
9955         }
9956         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9957         return nativeResponseValue;
9958 }
9959         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9960 /* @internal */
9961 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9962         if(!isWasmInitialized) {
9963                 throw new Error("initializeWasm() must be awaited first!");
9964         }
9965         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
9966         return nativeResponseValue;
9967 }
9968         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
9969 /* @internal */
9970 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: number): number {
9971         if(!isWasmInitialized) {
9972                 throw new Error("initializeWasm() must be awaited first!");
9973         }
9974         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
9975         return nativeResponseValue;
9976 }
9977         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9978 /* @internal */
9979 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: number): number {
9980         if(!isWasmInitialized) {
9981                 throw new Error("initializeWasm() must be awaited first!");
9982         }
9983         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
9984         return nativeResponseValue;
9985 }
9986         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9987 /* @internal */
9988 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9989         if(!isWasmInitialized) {
9990                 throw new Error("initializeWasm() must be awaited first!");
9991         }
9992         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
9993         return nativeResponseValue;
9994 }
9995         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
9996 /* @internal */
9997 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: number): void {
9998         if(!isWasmInitialized) {
9999                 throw new Error("initializeWasm() must be awaited first!");
10000         }
10001         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
10002         // debug statements here
10003 }
10004         // uintptr_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
10005 /* @internal */
10006 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
10007         if(!isWasmInitialized) {
10008                 throw new Error("initializeWasm() must be awaited first!");
10009         }
10010         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
10011         return nativeResponseValue;
10012 }
10013         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
10014 /* @internal */
10015 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: number): number {
10016         if(!isWasmInitialized) {
10017                 throw new Error("initializeWasm() must be awaited first!");
10018         }
10019         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
10020         return nativeResponseValue;
10021 }
10022         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
10023 /* @internal */
10024 export function CVec_PaymentPreimageZ_free(_res: number): void {
10025         if(!isWasmInitialized) {
10026                 throw new Error("initializeWasm() must be awaited first!");
10027         }
10028         const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
10029         // debug statements here
10030 }
10031         // uintptr_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
10032 /* @internal */
10033 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: number): number {
10034         if(!isWasmInitialized) {
10035                 throw new Error("initializeWasm() must be awaited first!");
10036         }
10037         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
10038         return nativeResponseValue;
10039 }
10040         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
10041 /* @internal */
10042 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: number): number {
10043         if(!isWasmInitialized) {
10044                 throw new Error("initializeWasm() must be awaited first!");
10045         }
10046         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
10047         return nativeResponseValue;
10048 }
10049         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
10050 /* @internal */
10051 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): number {
10052         if(!isWasmInitialized) {
10053                 throw new Error("initializeWasm() must be awaited first!");
10054         }
10055         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
10056         return nativeResponseValue;
10057 }
10058         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
10059 /* @internal */
10060 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: number): void {
10061         if(!isWasmInitialized) {
10062                 throw new Error("initializeWasm() must be awaited first!");
10063         }
10064         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
10065         // debug statements here
10066 }
10067         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
10068 /* @internal */
10069 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: number): number {
10070         if(!isWasmInitialized) {
10071                 throw new Error("initializeWasm() must be awaited first!");
10072         }
10073         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
10074         return nativeResponseValue;
10075 }
10076         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
10077 /* @internal */
10078 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): number {
10079         if(!isWasmInitialized) {
10080                 throw new Error("initializeWasm() must be awaited first!");
10081         }
10082         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
10083         return nativeResponseValue;
10084 }
10085         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
10086 /* @internal */
10087 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: number): boolean {
10088         if(!isWasmInitialized) {
10089                 throw new Error("initializeWasm() must be awaited first!");
10090         }
10091         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
10092         return nativeResponseValue;
10093 }
10094         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
10095 /* @internal */
10096 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: number): void {
10097         if(!isWasmInitialized) {
10098                 throw new Error("initializeWasm() must be awaited first!");
10099         }
10100         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
10101         // debug statements here
10102 }
10103         // uintptr_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
10104 /* @internal */
10105 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: number): number {
10106         if(!isWasmInitialized) {
10107                 throw new Error("initializeWasm() must be awaited first!");
10108         }
10109         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
10110         return nativeResponseValue;
10111 }
10112         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
10113 /* @internal */
10114 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: number): number {
10115         if(!isWasmInitialized) {
10116                 throw new Error("initializeWasm() must be awaited first!");
10117         }
10118         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
10119         return nativeResponseValue;
10120 }
10121         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
10122 /* @internal */
10123 export function CResult_SignatureNoneZ_ok(o: number): number {
10124         if(!isWasmInitialized) {
10125                 throw new Error("initializeWasm() must be awaited first!");
10126         }
10127         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
10128         return nativeResponseValue;
10129 }
10130         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
10131 /* @internal */
10132 export function CResult_SignatureNoneZ_err(): number {
10133         if(!isWasmInitialized) {
10134                 throw new Error("initializeWasm() must be awaited first!");
10135         }
10136         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
10137         return nativeResponseValue;
10138 }
10139         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
10140 /* @internal */
10141 export function CResult_SignatureNoneZ_is_ok(o: number): boolean {
10142         if(!isWasmInitialized) {
10143                 throw new Error("initializeWasm() must be awaited first!");
10144         }
10145         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
10146         return nativeResponseValue;
10147 }
10148         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
10149 /* @internal */
10150 export function CResult_SignatureNoneZ_free(_res: number): void {
10151         if(!isWasmInitialized) {
10152                 throw new Error("initializeWasm() must be awaited first!");
10153         }
10154         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
10155         // debug statements here
10156 }
10157         // uintptr_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
10158 /* @internal */
10159 export function CResult_SignatureNoneZ_clone_ptr(arg: number): number {
10160         if(!isWasmInitialized) {
10161                 throw new Error("initializeWasm() must be awaited first!");
10162         }
10163         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
10164         return nativeResponseValue;
10165 }
10166         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
10167 /* @internal */
10168 export function CResult_SignatureNoneZ_clone(orig: number): number {
10169         if(!isWasmInitialized) {
10170                 throw new Error("initializeWasm() must be awaited first!");
10171         }
10172         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
10173         return nativeResponseValue;
10174 }
10175         // uintptr_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
10176 /* @internal */
10177 export function C2Tuple_SignatureSignatureZ_clone_ptr(arg: number): number {
10178         if(!isWasmInitialized) {
10179                 throw new Error("initializeWasm() must be awaited first!");
10180         }
10181         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone_ptr(arg);
10182         return nativeResponseValue;
10183 }
10184         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
10185 /* @internal */
10186 export function C2Tuple_SignatureSignatureZ_clone(orig: number): number {
10187         if(!isWasmInitialized) {
10188                 throw new Error("initializeWasm() must be awaited first!");
10189         }
10190         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone(orig);
10191         return nativeResponseValue;
10192 }
10193         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
10194 /* @internal */
10195 export function C2Tuple_SignatureSignatureZ_new(a: number, b: number): number {
10196         if(!isWasmInitialized) {
10197                 throw new Error("initializeWasm() must be awaited first!");
10198         }
10199         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_new(a, b);
10200         return nativeResponseValue;
10201 }
10202         // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
10203 /* @internal */
10204 export function C2Tuple_SignatureSignatureZ_free(_res: number): void {
10205         if(!isWasmInitialized) {
10206                 throw new Error("initializeWasm() must be awaited first!");
10207         }
10208         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_free(_res);
10209         // debug statements here
10210 }
10211         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
10212 /* @internal */
10213 export function CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o: number): number {
10214         if(!isWasmInitialized) {
10215                 throw new Error("initializeWasm() must be awaited first!");
10216         }
10217         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o);
10218         return nativeResponseValue;
10219 }
10220         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
10221 /* @internal */
10222 export function CResult_C2Tuple_SignatureSignatureZNoneZ_err(): number {
10223         if(!isWasmInitialized) {
10224                 throw new Error("initializeWasm() must be awaited first!");
10225         }
10226         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_err();
10227         return nativeResponseValue;
10228 }
10229         // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
10230 /* @internal */
10231 export function CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o: number): boolean {
10232         if(!isWasmInitialized) {
10233                 throw new Error("initializeWasm() must be awaited first!");
10234         }
10235         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o);
10236         return nativeResponseValue;
10237 }
10238         // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
10239 /* @internal */
10240 export function CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res: number): void {
10241         if(!isWasmInitialized) {
10242                 throw new Error("initializeWasm() must be awaited first!");
10243         }
10244         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res);
10245         // debug statements here
10246 }
10247         // uintptr_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
10248 /* @internal */
10249 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg: number): number {
10250         if(!isWasmInitialized) {
10251                 throw new Error("initializeWasm() must be awaited first!");
10252         }
10253         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg);
10254         return nativeResponseValue;
10255 }
10256         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
10257 /* @internal */
10258 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig: number): number {
10259         if(!isWasmInitialized) {
10260                 throw new Error("initializeWasm() must be awaited first!");
10261         }
10262         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig);
10263         return nativeResponseValue;
10264 }
10265         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
10266 /* @internal */
10267 export function CResult_SecretKeyNoneZ_ok(o: number): number {
10268         if(!isWasmInitialized) {
10269                 throw new Error("initializeWasm() must be awaited first!");
10270         }
10271         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_ok(o);
10272         return nativeResponseValue;
10273 }
10274         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
10275 /* @internal */
10276 export function CResult_SecretKeyNoneZ_err(): number {
10277         if(!isWasmInitialized) {
10278                 throw new Error("initializeWasm() must be awaited first!");
10279         }
10280         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_err();
10281         return nativeResponseValue;
10282 }
10283         // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
10284 /* @internal */
10285 export function CResult_SecretKeyNoneZ_is_ok(o: number): boolean {
10286         if(!isWasmInitialized) {
10287                 throw new Error("initializeWasm() must be awaited first!");
10288         }
10289         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_is_ok(o);
10290         return nativeResponseValue;
10291 }
10292         // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
10293 /* @internal */
10294 export function CResult_SecretKeyNoneZ_free(_res: number): void {
10295         if(!isWasmInitialized) {
10296                 throw new Error("initializeWasm() must be awaited first!");
10297         }
10298         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_free(_res);
10299         // debug statements here
10300 }
10301         // uintptr_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
10302 /* @internal */
10303 export function CResult_SecretKeyNoneZ_clone_ptr(arg: number): number {
10304         if(!isWasmInitialized) {
10305                 throw new Error("initializeWasm() must be awaited first!");
10306         }
10307         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone_ptr(arg);
10308         return nativeResponseValue;
10309 }
10310         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
10311 /* @internal */
10312 export function CResult_SecretKeyNoneZ_clone(orig: number): number {
10313         if(!isWasmInitialized) {
10314                 throw new Error("initializeWasm() must be awaited first!");
10315         }
10316         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone(orig);
10317         return nativeResponseValue;
10318 }
10319         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
10320 /* @internal */
10321 export function CResult_SignDecodeErrorZ_ok(o: number): number {
10322         if(!isWasmInitialized) {
10323                 throw new Error("initializeWasm() must be awaited first!");
10324         }
10325         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_ok(o);
10326         return nativeResponseValue;
10327 }
10328         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
10329 /* @internal */
10330 export function CResult_SignDecodeErrorZ_err(e: number): number {
10331         if(!isWasmInitialized) {
10332                 throw new Error("initializeWasm() must be awaited first!");
10333         }
10334         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_err(e);
10335         return nativeResponseValue;
10336 }
10337         // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
10338 /* @internal */
10339 export function CResult_SignDecodeErrorZ_is_ok(o: number): boolean {
10340         if(!isWasmInitialized) {
10341                 throw new Error("initializeWasm() must be awaited first!");
10342         }
10343         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_is_ok(o);
10344         return nativeResponseValue;
10345 }
10346         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
10347 /* @internal */
10348 export function CResult_SignDecodeErrorZ_free(_res: number): void {
10349         if(!isWasmInitialized) {
10350                 throw new Error("initializeWasm() must be awaited first!");
10351         }
10352         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_free(_res);
10353         // debug statements here
10354 }
10355         // uintptr_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
10356 /* @internal */
10357 export function CResult_SignDecodeErrorZ_clone_ptr(arg: number): number {
10358         if(!isWasmInitialized) {
10359                 throw new Error("initializeWasm() must be awaited first!");
10360         }
10361         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone_ptr(arg);
10362         return nativeResponseValue;
10363 }
10364         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
10365 /* @internal */
10366 export function CResult_SignDecodeErrorZ_clone(orig: number): number {
10367         if(!isWasmInitialized) {
10368                 throw new Error("initializeWasm() must be awaited first!");
10369         }
10370         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone(orig);
10371         return nativeResponseValue;
10372 }
10373         // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
10374 /* @internal */
10375 export function CVec_u5Z_free(_res: number): void {
10376         if(!isWasmInitialized) {
10377                 throw new Error("initializeWasm() must be awaited first!");
10378         }
10379         const nativeResponseValue = wasm.TS_CVec_u5Z_free(_res);
10380         // debug statements here
10381 }
10382         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
10383 /* @internal */
10384 export function CResult_RecoverableSignatureNoneZ_ok(o: number): number {
10385         if(!isWasmInitialized) {
10386                 throw new Error("initializeWasm() must be awaited first!");
10387         }
10388         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
10389         return nativeResponseValue;
10390 }
10391         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
10392 /* @internal */
10393 export function CResult_RecoverableSignatureNoneZ_err(): number {
10394         if(!isWasmInitialized) {
10395                 throw new Error("initializeWasm() must be awaited first!");
10396         }
10397         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
10398         return nativeResponseValue;
10399 }
10400         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
10401 /* @internal */
10402 export function CResult_RecoverableSignatureNoneZ_is_ok(o: number): boolean {
10403         if(!isWasmInitialized) {
10404                 throw new Error("initializeWasm() must be awaited first!");
10405         }
10406         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
10407         return nativeResponseValue;
10408 }
10409         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
10410 /* @internal */
10411 export function CResult_RecoverableSignatureNoneZ_free(_res: number): void {
10412         if(!isWasmInitialized) {
10413                 throw new Error("initializeWasm() must be awaited first!");
10414         }
10415         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
10416         // debug statements here
10417 }
10418         // uintptr_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
10419 /* @internal */
10420 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: number): number {
10421         if(!isWasmInitialized) {
10422                 throw new Error("initializeWasm() must be awaited first!");
10423         }
10424         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
10425         return nativeResponseValue;
10426 }
10427         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
10428 /* @internal */
10429 export function CResult_RecoverableSignatureNoneZ_clone(orig: number): number {
10430         if(!isWasmInitialized) {
10431                 throw new Error("initializeWasm() must be awaited first!");
10432         }
10433         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
10434         return nativeResponseValue;
10435 }
10436         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
10437 /* @internal */
10438 export function CVec_u8Z_free(_res: number): void {
10439         if(!isWasmInitialized) {
10440                 throw new Error("initializeWasm() must be awaited first!");
10441         }
10442         const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
10443         // debug statements here
10444 }
10445         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
10446 /* @internal */
10447 export function CVec_CVec_u8ZZ_free(_res: number): void {
10448         if(!isWasmInitialized) {
10449                 throw new Error("initializeWasm() must be awaited first!");
10450         }
10451         const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
10452         // debug statements here
10453 }
10454         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
10455 /* @internal */
10456 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): number {
10457         if(!isWasmInitialized) {
10458                 throw new Error("initializeWasm() must be awaited first!");
10459         }
10460         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
10461         return nativeResponseValue;
10462 }
10463         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
10464 /* @internal */
10465 export function CResult_CVec_CVec_u8ZZNoneZ_err(): number {
10466         if(!isWasmInitialized) {
10467                 throw new Error("initializeWasm() must be awaited first!");
10468         }
10469         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
10470         return nativeResponseValue;
10471 }
10472         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
10473 /* @internal */
10474 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: number): boolean {
10475         if(!isWasmInitialized) {
10476                 throw new Error("initializeWasm() must be awaited first!");
10477         }
10478         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
10479         return nativeResponseValue;
10480 }
10481         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
10482 /* @internal */
10483 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: number): void {
10484         if(!isWasmInitialized) {
10485                 throw new Error("initializeWasm() must be awaited first!");
10486         }
10487         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
10488         // debug statements here
10489 }
10490         // uintptr_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
10491 /* @internal */
10492 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: number): number {
10493         if(!isWasmInitialized) {
10494                 throw new Error("initializeWasm() must be awaited first!");
10495         }
10496         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
10497         return nativeResponseValue;
10498 }
10499         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
10500 /* @internal */
10501 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: number): number {
10502         if(!isWasmInitialized) {
10503                 throw new Error("initializeWasm() must be awaited first!");
10504         }
10505         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
10506         return nativeResponseValue;
10507 }
10508         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
10509 /* @internal */
10510 export function CResult_InMemorySignerDecodeErrorZ_ok(o: number): number {
10511         if(!isWasmInitialized) {
10512                 throw new Error("initializeWasm() must be awaited first!");
10513         }
10514         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
10515         return nativeResponseValue;
10516 }
10517         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
10518 /* @internal */
10519 export function CResult_InMemorySignerDecodeErrorZ_err(e: number): number {
10520         if(!isWasmInitialized) {
10521                 throw new Error("initializeWasm() must be awaited first!");
10522         }
10523         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
10524         return nativeResponseValue;
10525 }
10526         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
10527 /* @internal */
10528 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: number): boolean {
10529         if(!isWasmInitialized) {
10530                 throw new Error("initializeWasm() must be awaited first!");
10531         }
10532         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
10533         return nativeResponseValue;
10534 }
10535         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
10536 /* @internal */
10537 export function CResult_InMemorySignerDecodeErrorZ_free(_res: number): void {
10538         if(!isWasmInitialized) {
10539                 throw new Error("initializeWasm() must be awaited first!");
10540         }
10541         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
10542         // debug statements here
10543 }
10544         // uintptr_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
10545 /* @internal */
10546 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: number): number {
10547         if(!isWasmInitialized) {
10548                 throw new Error("initializeWasm() must be awaited first!");
10549         }
10550         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
10551         return nativeResponseValue;
10552 }
10553         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
10554 /* @internal */
10555 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: number): number {
10556         if(!isWasmInitialized) {
10557                 throw new Error("initializeWasm() must be awaited first!");
10558         }
10559         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
10560         return nativeResponseValue;
10561 }
10562         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
10563 /* @internal */
10564 export function CVec_TxOutZ_free(_res: number): void {
10565         if(!isWasmInitialized) {
10566                 throw new Error("initializeWasm() must be awaited first!");
10567         }
10568         const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
10569         // debug statements here
10570 }
10571         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
10572 /* @internal */
10573 export function CResult_TransactionNoneZ_ok(o: number): number {
10574         if(!isWasmInitialized) {
10575                 throw new Error("initializeWasm() must be awaited first!");
10576         }
10577         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
10578         return nativeResponseValue;
10579 }
10580         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
10581 /* @internal */
10582 export function CResult_TransactionNoneZ_err(): number {
10583         if(!isWasmInitialized) {
10584                 throw new Error("initializeWasm() must be awaited first!");
10585         }
10586         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
10587         return nativeResponseValue;
10588 }
10589         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
10590 /* @internal */
10591 export function CResult_TransactionNoneZ_is_ok(o: number): boolean {
10592         if(!isWasmInitialized) {
10593                 throw new Error("initializeWasm() must be awaited first!");
10594         }
10595         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
10596         return nativeResponseValue;
10597 }
10598         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
10599 /* @internal */
10600 export function CResult_TransactionNoneZ_free(_res: number): void {
10601         if(!isWasmInitialized) {
10602                 throw new Error("initializeWasm() must be awaited first!");
10603         }
10604         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
10605         // debug statements here
10606 }
10607         // uintptr_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
10608 /* @internal */
10609 export function CResult_TransactionNoneZ_clone_ptr(arg: number): number {
10610         if(!isWasmInitialized) {
10611                 throw new Error("initializeWasm() must be awaited first!");
10612         }
10613         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
10614         return nativeResponseValue;
10615 }
10616         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
10617 /* @internal */
10618 export function CResult_TransactionNoneZ_clone(orig: number): number {
10619         if(!isWasmInitialized) {
10620                 throw new Error("initializeWasm() must be awaited first!");
10621         }
10622         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
10623         return nativeResponseValue;
10624 }
10625         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
10626 /* @internal */
10627 export function COption_u16Z_some(o: number): number {
10628         if(!isWasmInitialized) {
10629                 throw new Error("initializeWasm() must be awaited first!");
10630         }
10631         const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
10632         return nativeResponseValue;
10633 }
10634         // struct LDKCOption_u16Z COption_u16Z_none(void);
10635 /* @internal */
10636 export function COption_u16Z_none(): number {
10637         if(!isWasmInitialized) {
10638                 throw new Error("initializeWasm() must be awaited first!");
10639         }
10640         const nativeResponseValue = wasm.TS_COption_u16Z_none();
10641         return nativeResponseValue;
10642 }
10643         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
10644 /* @internal */
10645 export function COption_u16Z_free(_res: number): void {
10646         if(!isWasmInitialized) {
10647                 throw new Error("initializeWasm() must be awaited first!");
10648         }
10649         const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
10650         // debug statements here
10651 }
10652         // uintptr_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
10653 /* @internal */
10654 export function COption_u16Z_clone_ptr(arg: number): number {
10655         if(!isWasmInitialized) {
10656                 throw new Error("initializeWasm() must be awaited first!");
10657         }
10658         const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
10659         return nativeResponseValue;
10660 }
10661         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
10662 /* @internal */
10663 export function COption_u16Z_clone(orig: number): number {
10664         if(!isWasmInitialized) {
10665                 throw new Error("initializeWasm() must be awaited first!");
10666         }
10667         const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
10668         return nativeResponseValue;
10669 }
10670         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
10671 /* @internal */
10672 export function CResult_NoneAPIErrorZ_ok(): number {
10673         if(!isWasmInitialized) {
10674                 throw new Error("initializeWasm() must be awaited first!");
10675         }
10676         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
10677         return nativeResponseValue;
10678 }
10679         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
10680 /* @internal */
10681 export function CResult_NoneAPIErrorZ_err(e: number): number {
10682         if(!isWasmInitialized) {
10683                 throw new Error("initializeWasm() must be awaited first!");
10684         }
10685         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
10686         return nativeResponseValue;
10687 }
10688         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
10689 /* @internal */
10690 export function CResult_NoneAPIErrorZ_is_ok(o: number): boolean {
10691         if(!isWasmInitialized) {
10692                 throw new Error("initializeWasm() must be awaited first!");
10693         }
10694         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
10695         return nativeResponseValue;
10696 }
10697         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
10698 /* @internal */
10699 export function CResult_NoneAPIErrorZ_free(_res: number): void {
10700         if(!isWasmInitialized) {
10701                 throw new Error("initializeWasm() must be awaited first!");
10702         }
10703         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
10704         // debug statements here
10705 }
10706         // uintptr_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
10707 /* @internal */
10708 export function CResult_NoneAPIErrorZ_clone_ptr(arg: number): number {
10709         if(!isWasmInitialized) {
10710                 throw new Error("initializeWasm() must be awaited first!");
10711         }
10712         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
10713         return nativeResponseValue;
10714 }
10715         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
10716 /* @internal */
10717 export function CResult_NoneAPIErrorZ_clone(orig: number): number {
10718         if(!isWasmInitialized) {
10719                 throw new Error("initializeWasm() must be awaited first!");
10720         }
10721         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
10722         return nativeResponseValue;
10723 }
10724         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
10725 /* @internal */
10726 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
10727         if(!isWasmInitialized) {
10728                 throw new Error("initializeWasm() must be awaited first!");
10729         }
10730         const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
10731         // debug statements here
10732 }
10733         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
10734 /* @internal */
10735 export function CVec_APIErrorZ_free(_res: number): void {
10736         if(!isWasmInitialized) {
10737                 throw new Error("initializeWasm() must be awaited first!");
10738         }
10739         const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
10740         // debug statements here
10741 }
10742         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
10743 /* @internal */
10744 export function CResult__u832APIErrorZ_ok(o: number): number {
10745         if(!isWasmInitialized) {
10746                 throw new Error("initializeWasm() must be awaited first!");
10747         }
10748         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
10749         return nativeResponseValue;
10750 }
10751         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
10752 /* @internal */
10753 export function CResult__u832APIErrorZ_err(e: number): number {
10754         if(!isWasmInitialized) {
10755                 throw new Error("initializeWasm() must be awaited first!");
10756         }
10757         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
10758         return nativeResponseValue;
10759 }
10760         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
10761 /* @internal */
10762 export function CResult__u832APIErrorZ_is_ok(o: number): boolean {
10763         if(!isWasmInitialized) {
10764                 throw new Error("initializeWasm() must be awaited first!");
10765         }
10766         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
10767         return nativeResponseValue;
10768 }
10769         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
10770 /* @internal */
10771 export function CResult__u832APIErrorZ_free(_res: number): void {
10772         if(!isWasmInitialized) {
10773                 throw new Error("initializeWasm() must be awaited first!");
10774         }
10775         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
10776         // debug statements here
10777 }
10778         // uintptr_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
10779 /* @internal */
10780 export function CResult__u832APIErrorZ_clone_ptr(arg: number): number {
10781         if(!isWasmInitialized) {
10782                 throw new Error("initializeWasm() must be awaited first!");
10783         }
10784         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
10785         return nativeResponseValue;
10786 }
10787         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
10788 /* @internal */
10789 export function CResult__u832APIErrorZ_clone(orig: number): number {
10790         if(!isWasmInitialized) {
10791                 throw new Error("initializeWasm() must be awaited first!");
10792         }
10793         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
10794         return nativeResponseValue;
10795 }
10796         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
10797 /* @internal */
10798 export function CResult_PaymentIdPaymentSendFailureZ_ok(o: number): number {
10799         if(!isWasmInitialized) {
10800                 throw new Error("initializeWasm() must be awaited first!");
10801         }
10802         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_ok(o);
10803         return nativeResponseValue;
10804 }
10805         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10806 /* @internal */
10807 export function CResult_PaymentIdPaymentSendFailureZ_err(e: number): number {
10808         if(!isWasmInitialized) {
10809                 throw new Error("initializeWasm() must be awaited first!");
10810         }
10811         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_err(e);
10812         return nativeResponseValue;
10813 }
10814         // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
10815 /* @internal */
10816 export function CResult_PaymentIdPaymentSendFailureZ_is_ok(o: number): boolean {
10817         if(!isWasmInitialized) {
10818                 throw new Error("initializeWasm() must be awaited first!");
10819         }
10820         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_is_ok(o);
10821         return nativeResponseValue;
10822 }
10823         // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
10824 /* @internal */
10825 export function CResult_PaymentIdPaymentSendFailureZ_free(_res: number): void {
10826         if(!isWasmInitialized) {
10827                 throw new Error("initializeWasm() must be awaited first!");
10828         }
10829         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_free(_res);
10830         // debug statements here
10831 }
10832         // uintptr_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
10833 /* @internal */
10834 export function CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg: number): number {
10835         if(!isWasmInitialized) {
10836                 throw new Error("initializeWasm() must be awaited first!");
10837         }
10838         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg);
10839         return nativeResponseValue;
10840 }
10841         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
10842 /* @internal */
10843 export function CResult_PaymentIdPaymentSendFailureZ_clone(orig: number): number {
10844         if(!isWasmInitialized) {
10845                 throw new Error("initializeWasm() must be awaited first!");
10846         }
10847         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone(orig);
10848         return nativeResponseValue;
10849 }
10850         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
10851 /* @internal */
10852 export function CResult_NonePaymentSendFailureZ_ok(): number {
10853         if(!isWasmInitialized) {
10854                 throw new Error("initializeWasm() must be awaited first!");
10855         }
10856         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
10857         return nativeResponseValue;
10858 }
10859         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10860 /* @internal */
10861 export function CResult_NonePaymentSendFailureZ_err(e: number): number {
10862         if(!isWasmInitialized) {
10863                 throw new Error("initializeWasm() must be awaited first!");
10864         }
10865         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
10866         return nativeResponseValue;
10867 }
10868         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
10869 /* @internal */
10870 export function CResult_NonePaymentSendFailureZ_is_ok(o: number): boolean {
10871         if(!isWasmInitialized) {
10872                 throw new Error("initializeWasm() must be awaited first!");
10873         }
10874         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
10875         return nativeResponseValue;
10876 }
10877         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
10878 /* @internal */
10879 export function CResult_NonePaymentSendFailureZ_free(_res: number): void {
10880         if(!isWasmInitialized) {
10881                 throw new Error("initializeWasm() must be awaited first!");
10882         }
10883         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
10884         // debug statements here
10885 }
10886         // uintptr_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
10887 /* @internal */
10888 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: number): number {
10889         if(!isWasmInitialized) {
10890                 throw new Error("initializeWasm() must be awaited first!");
10891         }
10892         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
10893         return nativeResponseValue;
10894 }
10895         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
10896 /* @internal */
10897 export function CResult_NonePaymentSendFailureZ_clone(orig: number): number {
10898         if(!isWasmInitialized) {
10899                 throw new Error("initializeWasm() must be awaited first!");
10900         }
10901         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
10902         return nativeResponseValue;
10903 }
10904         // uintptr_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
10905 /* @internal */
10906 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: number): number {
10907         if(!isWasmInitialized) {
10908                 throw new Error("initializeWasm() must be awaited first!");
10909         }
10910         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
10911         return nativeResponseValue;
10912 }
10913         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
10914 /* @internal */
10915 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: number): number {
10916         if(!isWasmInitialized) {
10917                 throw new Error("initializeWasm() must be awaited first!");
10918         }
10919         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
10920         return nativeResponseValue;
10921 }
10922         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
10923 /* @internal */
10924 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): number {
10925         if(!isWasmInitialized) {
10926                 throw new Error("initializeWasm() must be awaited first!");
10927         }
10928         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
10929         return nativeResponseValue;
10930 }
10931         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
10932 /* @internal */
10933 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: number): void {
10934         if(!isWasmInitialized) {
10935                 throw new Error("initializeWasm() must be awaited first!");
10936         }
10937         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
10938         // debug statements here
10939 }
10940         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
10941 /* @internal */
10942 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: number): number {
10943         if(!isWasmInitialized) {
10944                 throw new Error("initializeWasm() must be awaited first!");
10945         }
10946         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
10947         return nativeResponseValue;
10948 }
10949         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10950 /* @internal */
10951 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: number): number {
10952         if(!isWasmInitialized) {
10953                 throw new Error("initializeWasm() must be awaited first!");
10954         }
10955         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
10956         return nativeResponseValue;
10957 }
10958         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
10959 /* @internal */
10960 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: number): boolean {
10961         if(!isWasmInitialized) {
10962                 throw new Error("initializeWasm() must be awaited first!");
10963         }
10964         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
10965         return nativeResponseValue;
10966 }
10967         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
10968 /* @internal */
10969 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: number): void {
10970         if(!isWasmInitialized) {
10971                 throw new Error("initializeWasm() must be awaited first!");
10972         }
10973         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
10974         // debug statements here
10975 }
10976         // uintptr_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
10977 /* @internal */
10978 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: number): number {
10979         if(!isWasmInitialized) {
10980                 throw new Error("initializeWasm() must be awaited first!");
10981         }
10982         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
10983         return nativeResponseValue;
10984 }
10985         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
10986 /* @internal */
10987 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: number): number {
10988         if(!isWasmInitialized) {
10989                 throw new Error("initializeWasm() must be awaited first!");
10990         }
10991         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
10992         return nativeResponseValue;
10993 }
10994         // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
10995 /* @internal */
10996 export function CVec_ThirtyTwoBytesZ_free(_res: number): void {
10997         if(!isWasmInitialized) {
10998                 throw new Error("initializeWasm() must be awaited first!");
10999         }
11000         const nativeResponseValue = wasm.TS_CVec_ThirtyTwoBytesZ_free(_res);
11001         // debug statements here
11002 }
11003         // uintptr_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
11004 /* @internal */
11005 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: number): number {
11006         if(!isWasmInitialized) {
11007                 throw new Error("initializeWasm() must be awaited first!");
11008         }
11009         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
11010         return nativeResponseValue;
11011 }
11012         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
11013 /* @internal */
11014 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: number): number {
11015         if(!isWasmInitialized) {
11016                 throw new Error("initializeWasm() must be awaited first!");
11017         }
11018         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
11019         return nativeResponseValue;
11020 }
11021         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
11022 /* @internal */
11023 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): number {
11024         if(!isWasmInitialized) {
11025                 throw new Error("initializeWasm() must be awaited first!");
11026         }
11027         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
11028         return nativeResponseValue;
11029 }
11030         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
11031 /* @internal */
11032 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: number): void {
11033         if(!isWasmInitialized) {
11034                 throw new Error("initializeWasm() must be awaited first!");
11035         }
11036         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
11037         // debug statements here
11038 }
11039         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
11040 /* @internal */
11041 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: number): number {
11042         if(!isWasmInitialized) {
11043                 throw new Error("initializeWasm() must be awaited first!");
11044         }
11045         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
11046         return nativeResponseValue;
11047 }
11048         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
11049 /* @internal */
11050 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): number {
11051         if(!isWasmInitialized) {
11052                 throw new Error("initializeWasm() must be awaited first!");
11053         }
11054         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
11055         return nativeResponseValue;
11056 }
11057         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
11058 /* @internal */
11059 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: number): boolean {
11060         if(!isWasmInitialized) {
11061                 throw new Error("initializeWasm() must be awaited first!");
11062         }
11063         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
11064         return nativeResponseValue;
11065 }
11066         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
11067 /* @internal */
11068 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: number): void {
11069         if(!isWasmInitialized) {
11070                 throw new Error("initializeWasm() must be awaited first!");
11071         }
11072         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
11073         // debug statements here
11074 }
11075         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
11076 /* @internal */
11077 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: number): number {
11078         if(!isWasmInitialized) {
11079                 throw new Error("initializeWasm() must be awaited first!");
11080         }
11081         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
11082         return nativeResponseValue;
11083 }
11084         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
11085 /* @internal */
11086 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: number): number {
11087         if(!isWasmInitialized) {
11088                 throw new Error("initializeWasm() must be awaited first!");
11089         }
11090         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
11091         return nativeResponseValue;
11092 }
11093         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
11094 /* @internal */
11095 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: number): number {
11096         if(!isWasmInitialized) {
11097                 throw new Error("initializeWasm() must be awaited first!");
11098         }
11099         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
11100         return nativeResponseValue;
11101 }
11102         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
11103 /* @internal */
11104 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: number): number {
11105         if(!isWasmInitialized) {
11106                 throw new Error("initializeWasm() must be awaited first!");
11107         }
11108         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
11109         return nativeResponseValue;
11110 }
11111         // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
11112 /* @internal */
11113 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: number): boolean {
11114         if(!isWasmInitialized) {
11115                 throw new Error("initializeWasm() must be awaited first!");
11116         }
11117         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
11118         return nativeResponseValue;
11119 }
11120         // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
11121 /* @internal */
11122 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: number): void {
11123         if(!isWasmInitialized) {
11124                 throw new Error("initializeWasm() must be awaited first!");
11125         }
11126         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
11127         // debug statements here
11128 }
11129         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
11130 /* @internal */
11131 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: number): number {
11132         if(!isWasmInitialized) {
11133                 throw new Error("initializeWasm() must be awaited first!");
11134         }
11135         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
11136         return nativeResponseValue;
11137 }
11138         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
11139 /* @internal */
11140 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: number): number {
11141         if(!isWasmInitialized) {
11142                 throw new Error("initializeWasm() must be awaited first!");
11143         }
11144         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
11145         return nativeResponseValue;
11146 }
11147         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
11148 /* @internal */
11149 export function CResult_PaymentSecretNoneZ_ok(o: number): number {
11150         if(!isWasmInitialized) {
11151                 throw new Error("initializeWasm() must be awaited first!");
11152         }
11153         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
11154         return nativeResponseValue;
11155 }
11156         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
11157 /* @internal */
11158 export function CResult_PaymentSecretNoneZ_err(): number {
11159         if(!isWasmInitialized) {
11160                 throw new Error("initializeWasm() must be awaited first!");
11161         }
11162         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
11163         return nativeResponseValue;
11164 }
11165         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
11166 /* @internal */
11167 export function CResult_PaymentSecretNoneZ_is_ok(o: number): boolean {
11168         if(!isWasmInitialized) {
11169                 throw new Error("initializeWasm() must be awaited first!");
11170         }
11171         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
11172         return nativeResponseValue;
11173 }
11174         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
11175 /* @internal */
11176 export function CResult_PaymentSecretNoneZ_free(_res: number): void {
11177         if(!isWasmInitialized) {
11178                 throw new Error("initializeWasm() must be awaited first!");
11179         }
11180         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
11181         // debug statements here
11182 }
11183         // uintptr_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
11184 /* @internal */
11185 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: number): number {
11186         if(!isWasmInitialized) {
11187                 throw new Error("initializeWasm() must be awaited first!");
11188         }
11189         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
11190         return nativeResponseValue;
11191 }
11192         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
11193 /* @internal */
11194 export function CResult_PaymentSecretNoneZ_clone(orig: number): number {
11195         if(!isWasmInitialized) {
11196                 throw new Error("initializeWasm() must be awaited first!");
11197         }
11198         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
11199         return nativeResponseValue;
11200 }
11201         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
11202 /* @internal */
11203 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): number {
11204         if(!isWasmInitialized) {
11205                 throw new Error("initializeWasm() must be awaited first!");
11206         }
11207         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
11208         return nativeResponseValue;
11209 }
11210         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
11211 /* @internal */
11212 export function CResult_PaymentSecretAPIErrorZ_err(e: number): number {
11213         if(!isWasmInitialized) {
11214                 throw new Error("initializeWasm() must be awaited first!");
11215         }
11216         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
11217         return nativeResponseValue;
11218 }
11219         // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
11220 /* @internal */
11221 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: number): boolean {
11222         if(!isWasmInitialized) {
11223                 throw new Error("initializeWasm() must be awaited first!");
11224         }
11225         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
11226         return nativeResponseValue;
11227 }
11228         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
11229 /* @internal */
11230 export function CResult_PaymentSecretAPIErrorZ_free(_res: number): void {
11231         if(!isWasmInitialized) {
11232                 throw new Error("initializeWasm() must be awaited first!");
11233         }
11234         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
11235         // debug statements here
11236 }
11237         // uintptr_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
11238 /* @internal */
11239 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: number): number {
11240         if(!isWasmInitialized) {
11241                 throw new Error("initializeWasm() must be awaited first!");
11242         }
11243         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
11244         return nativeResponseValue;
11245 }
11246         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
11247 /* @internal */
11248 export function CResult_PaymentSecretAPIErrorZ_clone(orig: number): number {
11249         if(!isWasmInitialized) {
11250                 throw new Error("initializeWasm() must be awaited first!");
11251         }
11252         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
11253         return nativeResponseValue;
11254 }
11255         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
11256 /* @internal */
11257 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): number {
11258         if(!isWasmInitialized) {
11259                 throw new Error("initializeWasm() must be awaited first!");
11260         }
11261         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
11262         return nativeResponseValue;
11263 }
11264         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
11265 /* @internal */
11266 export function CResult_PaymentPreimageAPIErrorZ_err(e: number): number {
11267         if(!isWasmInitialized) {
11268                 throw new Error("initializeWasm() must be awaited first!");
11269         }
11270         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
11271         return nativeResponseValue;
11272 }
11273         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
11274 /* @internal */
11275 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: number): boolean {
11276         if(!isWasmInitialized) {
11277                 throw new Error("initializeWasm() must be awaited first!");
11278         }
11279         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
11280         return nativeResponseValue;
11281 }
11282         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
11283 /* @internal */
11284 export function CResult_PaymentPreimageAPIErrorZ_free(_res: number): void {
11285         if(!isWasmInitialized) {
11286                 throw new Error("initializeWasm() must be awaited first!");
11287         }
11288         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
11289         // debug statements here
11290 }
11291         // uintptr_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
11292 /* @internal */
11293 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: number): number {
11294         if(!isWasmInitialized) {
11295                 throw new Error("initializeWasm() must be awaited first!");
11296         }
11297         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
11298         return nativeResponseValue;
11299 }
11300         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
11301 /* @internal */
11302 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: number): number {
11303         if(!isWasmInitialized) {
11304                 throw new Error("initializeWasm() must be awaited first!");
11305         }
11306         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
11307         return nativeResponseValue;
11308 }
11309         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
11310 /* @internal */
11311 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: number): number {
11312         if(!isWasmInitialized) {
11313                 throw new Error("initializeWasm() must be awaited first!");
11314         }
11315         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
11316         return nativeResponseValue;
11317 }
11318         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
11319 /* @internal */
11320 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: number): number {
11321         if(!isWasmInitialized) {
11322                 throw new Error("initializeWasm() must be awaited first!");
11323         }
11324         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
11325         return nativeResponseValue;
11326 }
11327         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
11328 /* @internal */
11329 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: number): boolean {
11330         if(!isWasmInitialized) {
11331                 throw new Error("initializeWasm() must be awaited first!");
11332         }
11333         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
11334         return nativeResponseValue;
11335 }
11336         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
11337 /* @internal */
11338 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: number): void {
11339         if(!isWasmInitialized) {
11340                 throw new Error("initializeWasm() must be awaited first!");
11341         }
11342         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
11343         // debug statements here
11344 }
11345         // uintptr_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
11346 /* @internal */
11347 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: number): number {
11348         if(!isWasmInitialized) {
11349                 throw new Error("initializeWasm() must be awaited first!");
11350         }
11351         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
11352         return nativeResponseValue;
11353 }
11354         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
11355 /* @internal */
11356 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: number): number {
11357         if(!isWasmInitialized) {
11358                 throw new Error("initializeWasm() must be awaited first!");
11359         }
11360         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
11361         return nativeResponseValue;
11362 }
11363         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
11364 /* @internal */
11365 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: number): number {
11366         if(!isWasmInitialized) {
11367                 throw new Error("initializeWasm() must be awaited first!");
11368         }
11369         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
11370         return nativeResponseValue;
11371 }
11372         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
11373 /* @internal */
11374 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: number): number {
11375         if(!isWasmInitialized) {
11376                 throw new Error("initializeWasm() must be awaited first!");
11377         }
11378         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
11379         return nativeResponseValue;
11380 }
11381         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
11382 /* @internal */
11383 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: number): boolean {
11384         if(!isWasmInitialized) {
11385                 throw new Error("initializeWasm() must be awaited first!");
11386         }
11387         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
11388         return nativeResponseValue;
11389 }
11390         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
11391 /* @internal */
11392 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: number): void {
11393         if(!isWasmInitialized) {
11394                 throw new Error("initializeWasm() must be awaited first!");
11395         }
11396         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
11397         // debug statements here
11398 }
11399         // uintptr_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
11400 /* @internal */
11401 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: number): number {
11402         if(!isWasmInitialized) {
11403                 throw new Error("initializeWasm() must be awaited first!");
11404         }
11405         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
11406         return nativeResponseValue;
11407 }
11408         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
11409 /* @internal */
11410 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: number): number {
11411         if(!isWasmInitialized) {
11412                 throw new Error("initializeWasm() must be awaited first!");
11413         }
11414         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
11415         return nativeResponseValue;
11416 }
11417         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
11418 /* @internal */
11419 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: number): number {
11420         if(!isWasmInitialized) {
11421                 throw new Error("initializeWasm() must be awaited first!");
11422         }
11423         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
11424         return nativeResponseValue;
11425 }
11426         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
11427 /* @internal */
11428 export function CResult_ChannelDetailsDecodeErrorZ_err(e: number): number {
11429         if(!isWasmInitialized) {
11430                 throw new Error("initializeWasm() must be awaited first!");
11431         }
11432         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
11433         return nativeResponseValue;
11434 }
11435         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
11436 /* @internal */
11437 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: number): boolean {
11438         if(!isWasmInitialized) {
11439                 throw new Error("initializeWasm() must be awaited first!");
11440         }
11441         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
11442         return nativeResponseValue;
11443 }
11444         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
11445 /* @internal */
11446 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: number): void {
11447         if(!isWasmInitialized) {
11448                 throw new Error("initializeWasm() must be awaited first!");
11449         }
11450         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
11451         // debug statements here
11452 }
11453         // uintptr_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
11454 /* @internal */
11455 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: number): number {
11456         if(!isWasmInitialized) {
11457                 throw new Error("initializeWasm() must be awaited first!");
11458         }
11459         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
11460         return nativeResponseValue;
11461 }
11462         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
11463 /* @internal */
11464 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: number): number {
11465         if(!isWasmInitialized) {
11466                 throw new Error("initializeWasm() must be awaited first!");
11467         }
11468         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
11469         return nativeResponseValue;
11470 }
11471         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
11472 /* @internal */
11473 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: number): number {
11474         if(!isWasmInitialized) {
11475                 throw new Error("initializeWasm() must be awaited first!");
11476         }
11477         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
11478         return nativeResponseValue;
11479 }
11480         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
11481 /* @internal */
11482 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: number): number {
11483         if(!isWasmInitialized) {
11484                 throw new Error("initializeWasm() must be awaited first!");
11485         }
11486         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
11487         return nativeResponseValue;
11488 }
11489         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
11490 /* @internal */
11491 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: number): boolean {
11492         if(!isWasmInitialized) {
11493                 throw new Error("initializeWasm() must be awaited first!");
11494         }
11495         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
11496         return nativeResponseValue;
11497 }
11498         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
11499 /* @internal */
11500 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: number): void {
11501         if(!isWasmInitialized) {
11502                 throw new Error("initializeWasm() must be awaited first!");
11503         }
11504         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
11505         // debug statements here
11506 }
11507         // uintptr_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
11508 /* @internal */
11509 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: number): number {
11510         if(!isWasmInitialized) {
11511                 throw new Error("initializeWasm() must be awaited first!");
11512         }
11513         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
11514         return nativeResponseValue;
11515 }
11516         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
11517 /* @internal */
11518 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: number): number {
11519         if(!isWasmInitialized) {
11520                 throw new Error("initializeWasm() must be awaited first!");
11521         }
11522         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
11523         return nativeResponseValue;
11524 }
11525         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
11526 /* @internal */
11527 export function CVec_ChannelMonitorZ_free(_res: number): void {
11528         if(!isWasmInitialized) {
11529                 throw new Error("initializeWasm() must be awaited first!");
11530         }
11531         const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
11532         // debug statements here
11533 }
11534         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
11535 /* @internal */
11536 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: number): number {
11537         if(!isWasmInitialized) {
11538                 throw new Error("initializeWasm() must be awaited first!");
11539         }
11540         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
11541         return nativeResponseValue;
11542 }
11543         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
11544 /* @internal */
11545 export function C2Tuple_BlockHashChannelManagerZ_free(_res: number): void {
11546         if(!isWasmInitialized) {
11547                 throw new Error("initializeWasm() must be awaited first!");
11548         }
11549         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
11550         // debug statements here
11551 }
11552         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
11553 /* @internal */
11554 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: number): number {
11555         if(!isWasmInitialized) {
11556                 throw new Error("initializeWasm() must be awaited first!");
11557         }
11558         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
11559         return nativeResponseValue;
11560 }
11561         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
11562 /* @internal */
11563 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: number): number {
11564         if(!isWasmInitialized) {
11565                 throw new Error("initializeWasm() must be awaited first!");
11566         }
11567         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
11568         return nativeResponseValue;
11569 }
11570         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
11571 /* @internal */
11572 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: number): boolean {
11573         if(!isWasmInitialized) {
11574                 throw new Error("initializeWasm() must be awaited first!");
11575         }
11576         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
11577         return nativeResponseValue;
11578 }
11579         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
11580 /* @internal */
11581 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: number): void {
11582         if(!isWasmInitialized) {
11583                 throw new Error("initializeWasm() must be awaited first!");
11584         }
11585         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
11586         // debug statements here
11587 }
11588         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
11589 /* @internal */
11590 export function CResult_ChannelConfigDecodeErrorZ_ok(o: number): number {
11591         if(!isWasmInitialized) {
11592                 throw new Error("initializeWasm() must be awaited first!");
11593         }
11594         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
11595         return nativeResponseValue;
11596 }
11597         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
11598 /* @internal */
11599 export function CResult_ChannelConfigDecodeErrorZ_err(e: number): number {
11600         if(!isWasmInitialized) {
11601                 throw new Error("initializeWasm() must be awaited first!");
11602         }
11603         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
11604         return nativeResponseValue;
11605 }
11606         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
11607 /* @internal */
11608 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: number): boolean {
11609         if(!isWasmInitialized) {
11610                 throw new Error("initializeWasm() must be awaited first!");
11611         }
11612         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
11613         return nativeResponseValue;
11614 }
11615         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
11616 /* @internal */
11617 export function CResult_ChannelConfigDecodeErrorZ_free(_res: number): void {
11618         if(!isWasmInitialized) {
11619                 throw new Error("initializeWasm() must be awaited first!");
11620         }
11621         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
11622         // debug statements here
11623 }
11624         // uintptr_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
11625 /* @internal */
11626 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: number): number {
11627         if(!isWasmInitialized) {
11628                 throw new Error("initializeWasm() must be awaited first!");
11629         }
11630         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
11631         return nativeResponseValue;
11632 }
11633         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
11634 /* @internal */
11635 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: number): number {
11636         if(!isWasmInitialized) {
11637                 throw new Error("initializeWasm() must be awaited first!");
11638         }
11639         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
11640         return nativeResponseValue;
11641 }
11642         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
11643 /* @internal */
11644 export function CResult_OutPointDecodeErrorZ_ok(o: number): number {
11645         if(!isWasmInitialized) {
11646                 throw new Error("initializeWasm() must be awaited first!");
11647         }
11648         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
11649         return nativeResponseValue;
11650 }
11651         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
11652 /* @internal */
11653 export function CResult_OutPointDecodeErrorZ_err(e: number): number {
11654         if(!isWasmInitialized) {
11655                 throw new Error("initializeWasm() must be awaited first!");
11656         }
11657         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
11658         return nativeResponseValue;
11659 }
11660         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
11661 /* @internal */
11662 export function CResult_OutPointDecodeErrorZ_is_ok(o: number): boolean {
11663         if(!isWasmInitialized) {
11664                 throw new Error("initializeWasm() must be awaited first!");
11665         }
11666         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
11667         return nativeResponseValue;
11668 }
11669         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
11670 /* @internal */
11671 export function CResult_OutPointDecodeErrorZ_free(_res: number): void {
11672         if(!isWasmInitialized) {
11673                 throw new Error("initializeWasm() must be awaited first!");
11674         }
11675         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
11676         // debug statements here
11677 }
11678         // uintptr_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
11679 /* @internal */
11680 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: number): number {
11681         if(!isWasmInitialized) {
11682                 throw new Error("initializeWasm() must be awaited first!");
11683         }
11684         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
11685         return nativeResponseValue;
11686 }
11687         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
11688 /* @internal */
11689 export function CResult_OutPointDecodeErrorZ_clone(orig: number): number {
11690         if(!isWasmInitialized) {
11691                 throw new Error("initializeWasm() must be awaited first!");
11692         }
11693         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
11694         return nativeResponseValue;
11695 }
11696         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
11697 /* @internal */
11698 export function COption_TypeZ_some(o: number): number {
11699         if(!isWasmInitialized) {
11700                 throw new Error("initializeWasm() must be awaited first!");
11701         }
11702         const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
11703         return nativeResponseValue;
11704 }
11705         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
11706 /* @internal */
11707 export function COption_TypeZ_none(): number {
11708         if(!isWasmInitialized) {
11709                 throw new Error("initializeWasm() must be awaited first!");
11710         }
11711         const nativeResponseValue = wasm.TS_COption_TypeZ_none();
11712         return nativeResponseValue;
11713 }
11714         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
11715 /* @internal */
11716 export function COption_TypeZ_free(_res: number): void {
11717         if(!isWasmInitialized) {
11718                 throw new Error("initializeWasm() must be awaited first!");
11719         }
11720         const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
11721         // debug statements here
11722 }
11723         // uintptr_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
11724 /* @internal */
11725 export function COption_TypeZ_clone_ptr(arg: number): number {
11726         if(!isWasmInitialized) {
11727                 throw new Error("initializeWasm() must be awaited first!");
11728         }
11729         const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
11730         return nativeResponseValue;
11731 }
11732         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
11733 /* @internal */
11734 export function COption_TypeZ_clone(orig: number): number {
11735         if(!isWasmInitialized) {
11736                 throw new Error("initializeWasm() must be awaited first!");
11737         }
11738         const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
11739         return nativeResponseValue;
11740 }
11741         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
11742 /* @internal */
11743 export function CResult_COption_TypeZDecodeErrorZ_ok(o: number): number {
11744         if(!isWasmInitialized) {
11745                 throw new Error("initializeWasm() must be awaited first!");
11746         }
11747         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
11748         return nativeResponseValue;
11749 }
11750         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
11751 /* @internal */
11752 export function CResult_COption_TypeZDecodeErrorZ_err(e: number): number {
11753         if(!isWasmInitialized) {
11754                 throw new Error("initializeWasm() must be awaited first!");
11755         }
11756         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
11757         return nativeResponseValue;
11758 }
11759         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
11760 /* @internal */
11761 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: number): boolean {
11762         if(!isWasmInitialized) {
11763                 throw new Error("initializeWasm() must be awaited first!");
11764         }
11765         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
11766         return nativeResponseValue;
11767 }
11768         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
11769 /* @internal */
11770 export function CResult_COption_TypeZDecodeErrorZ_free(_res: number): void {
11771         if(!isWasmInitialized) {
11772                 throw new Error("initializeWasm() must be awaited first!");
11773         }
11774         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
11775         // debug statements here
11776 }
11777         // uintptr_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
11778 /* @internal */
11779 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: number): number {
11780         if(!isWasmInitialized) {
11781                 throw new Error("initializeWasm() must be awaited first!");
11782         }
11783         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
11784         return nativeResponseValue;
11785 }
11786         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
11787 /* @internal */
11788 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: number): number {
11789         if(!isWasmInitialized) {
11790                 throw new Error("initializeWasm() must be awaited first!");
11791         }
11792         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
11793         return nativeResponseValue;
11794 }
11795         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
11796 /* @internal */
11797 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): number {
11798         if(!isWasmInitialized) {
11799                 throw new Error("initializeWasm() must be awaited first!");
11800         }
11801         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
11802         return nativeResponseValue;
11803 }
11804         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
11805 /* @internal */
11806 export function CResult_PaymentIdPaymentErrorZ_err(e: number): number {
11807         if(!isWasmInitialized) {
11808                 throw new Error("initializeWasm() must be awaited first!");
11809         }
11810         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
11811         return nativeResponseValue;
11812 }
11813         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
11814 /* @internal */
11815 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: number): boolean {
11816         if(!isWasmInitialized) {
11817                 throw new Error("initializeWasm() must be awaited first!");
11818         }
11819         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
11820         return nativeResponseValue;
11821 }
11822         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
11823 /* @internal */
11824 export function CResult_PaymentIdPaymentErrorZ_free(_res: number): void {
11825         if(!isWasmInitialized) {
11826                 throw new Error("initializeWasm() must be awaited first!");
11827         }
11828         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
11829         // debug statements here
11830 }
11831         // uintptr_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
11832 /* @internal */
11833 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: number): number {
11834         if(!isWasmInitialized) {
11835                 throw new Error("initializeWasm() must be awaited first!");
11836         }
11837         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
11838         return nativeResponseValue;
11839 }
11840         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
11841 /* @internal */
11842 export function CResult_PaymentIdPaymentErrorZ_clone(orig: number): number {
11843         if(!isWasmInitialized) {
11844                 throw new Error("initializeWasm() must be awaited first!");
11845         }
11846         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
11847         return nativeResponseValue;
11848 }
11849         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
11850 /* @internal */
11851 export function CResult_SiPrefixParseErrorZ_ok(o: SiPrefix): number {
11852         if(!isWasmInitialized) {
11853                 throw new Error("initializeWasm() must be awaited first!");
11854         }
11855         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_ok(o);
11856         return nativeResponseValue;
11857 }
11858         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
11859 /* @internal */
11860 export function CResult_SiPrefixParseErrorZ_err(e: number): number {
11861         if(!isWasmInitialized) {
11862                 throw new Error("initializeWasm() must be awaited first!");
11863         }
11864         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_err(e);
11865         return nativeResponseValue;
11866 }
11867         // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
11868 /* @internal */
11869 export function CResult_SiPrefixParseErrorZ_is_ok(o: number): boolean {
11870         if(!isWasmInitialized) {
11871                 throw new Error("initializeWasm() must be awaited first!");
11872         }
11873         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_is_ok(o);
11874         return nativeResponseValue;
11875 }
11876         // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
11877 /* @internal */
11878 export function CResult_SiPrefixParseErrorZ_free(_res: number): void {
11879         if(!isWasmInitialized) {
11880                 throw new Error("initializeWasm() must be awaited first!");
11881         }
11882         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_free(_res);
11883         // debug statements here
11884 }
11885         // uintptr_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
11886 /* @internal */
11887 export function CResult_SiPrefixParseErrorZ_clone_ptr(arg: number): number {
11888         if(!isWasmInitialized) {
11889                 throw new Error("initializeWasm() must be awaited first!");
11890         }
11891         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone_ptr(arg);
11892         return nativeResponseValue;
11893 }
11894         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
11895 /* @internal */
11896 export function CResult_SiPrefixParseErrorZ_clone(orig: number): number {
11897         if(!isWasmInitialized) {
11898                 throw new Error("initializeWasm() must be awaited first!");
11899         }
11900         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone(orig);
11901         return nativeResponseValue;
11902 }
11903         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
11904 /* @internal */
11905 export function CResult_InvoiceParseOrSemanticErrorZ_ok(o: number): number {
11906         if(!isWasmInitialized) {
11907                 throw new Error("initializeWasm() must be awaited first!");
11908         }
11909         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_ok(o);
11910         return nativeResponseValue;
11911 }
11912         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
11913 /* @internal */
11914 export function CResult_InvoiceParseOrSemanticErrorZ_err(e: number): number {
11915         if(!isWasmInitialized) {
11916                 throw new Error("initializeWasm() must be awaited first!");
11917         }
11918         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_err(e);
11919         return nativeResponseValue;
11920 }
11921         // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
11922 /* @internal */
11923 export function CResult_InvoiceParseOrSemanticErrorZ_is_ok(o: number): boolean {
11924         if(!isWasmInitialized) {
11925                 throw new Error("initializeWasm() must be awaited first!");
11926         }
11927         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_is_ok(o);
11928         return nativeResponseValue;
11929 }
11930         // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
11931 /* @internal */
11932 export function CResult_InvoiceParseOrSemanticErrorZ_free(_res: number): void {
11933         if(!isWasmInitialized) {
11934                 throw new Error("initializeWasm() must be awaited first!");
11935         }
11936         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_free(_res);
11937         // debug statements here
11938 }
11939         // uintptr_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
11940 /* @internal */
11941 export function CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg: number): number {
11942         if(!isWasmInitialized) {
11943                 throw new Error("initializeWasm() must be awaited first!");
11944         }
11945         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg);
11946         return nativeResponseValue;
11947 }
11948         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
11949 /* @internal */
11950 export function CResult_InvoiceParseOrSemanticErrorZ_clone(orig: number): number {
11951         if(!isWasmInitialized) {
11952                 throw new Error("initializeWasm() must be awaited first!");
11953         }
11954         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone(orig);
11955         return nativeResponseValue;
11956 }
11957         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
11958 /* @internal */
11959 export function CResult_SignedRawInvoiceParseErrorZ_ok(o: number): number {
11960         if(!isWasmInitialized) {
11961                 throw new Error("initializeWasm() must be awaited first!");
11962         }
11963         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_ok(o);
11964         return nativeResponseValue;
11965 }
11966         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
11967 /* @internal */
11968 export function CResult_SignedRawInvoiceParseErrorZ_err(e: number): number {
11969         if(!isWasmInitialized) {
11970                 throw new Error("initializeWasm() must be awaited first!");
11971         }
11972         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_err(e);
11973         return nativeResponseValue;
11974 }
11975         // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
11976 /* @internal */
11977 export function CResult_SignedRawInvoiceParseErrorZ_is_ok(o: number): boolean {
11978         if(!isWasmInitialized) {
11979                 throw new Error("initializeWasm() must be awaited first!");
11980         }
11981         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_is_ok(o);
11982         return nativeResponseValue;
11983 }
11984         // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
11985 /* @internal */
11986 export function CResult_SignedRawInvoiceParseErrorZ_free(_res: number): void {
11987         if(!isWasmInitialized) {
11988                 throw new Error("initializeWasm() must be awaited first!");
11989         }
11990         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_free(_res);
11991         // debug statements here
11992 }
11993         // uintptr_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
11994 /* @internal */
11995 export function CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg: number): number {
11996         if(!isWasmInitialized) {
11997                 throw new Error("initializeWasm() must be awaited first!");
11998         }
11999         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg);
12000         return nativeResponseValue;
12001 }
12002         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
12003 /* @internal */
12004 export function CResult_SignedRawInvoiceParseErrorZ_clone(orig: number): number {
12005         if(!isWasmInitialized) {
12006                 throw new Error("initializeWasm() must be awaited first!");
12007         }
12008         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone(orig);
12009         return nativeResponseValue;
12010 }
12011         // uintptr_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
12012 /* @internal */
12013 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: number): number {
12014         if(!isWasmInitialized) {
12015                 throw new Error("initializeWasm() must be awaited first!");
12016         }
12017         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
12018         return nativeResponseValue;
12019 }
12020         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
12021 /* @internal */
12022 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: number): number {
12023         if(!isWasmInitialized) {
12024                 throw new Error("initializeWasm() must be awaited first!");
12025         }
12026         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
12027         return nativeResponseValue;
12028 }
12029         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
12030 /* @internal */
12031 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: number, b: number, c: number): number {
12032         if(!isWasmInitialized) {
12033                 throw new Error("initializeWasm() must be awaited first!");
12034         }
12035         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
12036         return nativeResponseValue;
12037 }
12038         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
12039 /* @internal */
12040 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: number): void {
12041         if(!isWasmInitialized) {
12042                 throw new Error("initializeWasm() must be awaited first!");
12043         }
12044         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
12045         // debug statements here
12046 }
12047         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
12048 /* @internal */
12049 export function CResult_PayeePubKeyErrorZ_ok(o: number): number {
12050         if(!isWasmInitialized) {
12051                 throw new Error("initializeWasm() must be awaited first!");
12052         }
12053         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
12054         return nativeResponseValue;
12055 }
12056         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
12057 /* @internal */
12058 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): number {
12059         if(!isWasmInitialized) {
12060                 throw new Error("initializeWasm() must be awaited first!");
12061         }
12062         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
12063         return nativeResponseValue;
12064 }
12065         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
12066 /* @internal */
12067 export function CResult_PayeePubKeyErrorZ_is_ok(o: number): boolean {
12068         if(!isWasmInitialized) {
12069                 throw new Error("initializeWasm() must be awaited first!");
12070         }
12071         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
12072         return nativeResponseValue;
12073 }
12074         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
12075 /* @internal */
12076 export function CResult_PayeePubKeyErrorZ_free(_res: number): void {
12077         if(!isWasmInitialized) {
12078                 throw new Error("initializeWasm() must be awaited first!");
12079         }
12080         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
12081         // debug statements here
12082 }
12083         // uintptr_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
12084 /* @internal */
12085 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: number): number {
12086         if(!isWasmInitialized) {
12087                 throw new Error("initializeWasm() must be awaited first!");
12088         }
12089         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
12090         return nativeResponseValue;
12091 }
12092         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
12093 /* @internal */
12094 export function CResult_PayeePubKeyErrorZ_clone(orig: number): number {
12095         if(!isWasmInitialized) {
12096                 throw new Error("initializeWasm() must be awaited first!");
12097         }
12098         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
12099         return nativeResponseValue;
12100 }
12101         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
12102 /* @internal */
12103 export function CVec_PrivateRouteZ_free(_res: number): void {
12104         if(!isWasmInitialized) {
12105                 throw new Error("initializeWasm() must be awaited first!");
12106         }
12107         const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
12108         // debug statements here
12109 }
12110         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
12111 /* @internal */
12112 export function CResult_PositiveTimestampCreationErrorZ_ok(o: number): number {
12113         if(!isWasmInitialized) {
12114                 throw new Error("initializeWasm() must be awaited first!");
12115         }
12116         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
12117         return nativeResponseValue;
12118 }
12119         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
12120 /* @internal */
12121 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): number {
12122         if(!isWasmInitialized) {
12123                 throw new Error("initializeWasm() must be awaited first!");
12124         }
12125         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
12126         return nativeResponseValue;
12127 }
12128         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
12129 /* @internal */
12130 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: number): boolean {
12131         if(!isWasmInitialized) {
12132                 throw new Error("initializeWasm() must be awaited first!");
12133         }
12134         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
12135         return nativeResponseValue;
12136 }
12137         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
12138 /* @internal */
12139 export function CResult_PositiveTimestampCreationErrorZ_free(_res: number): void {
12140         if(!isWasmInitialized) {
12141                 throw new Error("initializeWasm() must be awaited first!");
12142         }
12143         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
12144         // debug statements here
12145 }
12146         // uintptr_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
12147 /* @internal */
12148 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: number): number {
12149         if(!isWasmInitialized) {
12150                 throw new Error("initializeWasm() must be awaited first!");
12151         }
12152         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
12153         return nativeResponseValue;
12154 }
12155         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
12156 /* @internal */
12157 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: number): number {
12158         if(!isWasmInitialized) {
12159                 throw new Error("initializeWasm() must be awaited first!");
12160         }
12161         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
12162         return nativeResponseValue;
12163 }
12164         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
12165 /* @internal */
12166 export function CResult_NoneSemanticErrorZ_ok(): number {
12167         if(!isWasmInitialized) {
12168                 throw new Error("initializeWasm() must be awaited first!");
12169         }
12170         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
12171         return nativeResponseValue;
12172 }
12173         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
12174 /* @internal */
12175 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): number {
12176         if(!isWasmInitialized) {
12177                 throw new Error("initializeWasm() must be awaited first!");
12178         }
12179         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
12180         return nativeResponseValue;
12181 }
12182         // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
12183 /* @internal */
12184 export function CResult_NoneSemanticErrorZ_is_ok(o: number): boolean {
12185         if(!isWasmInitialized) {
12186                 throw new Error("initializeWasm() must be awaited first!");
12187         }
12188         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
12189         return nativeResponseValue;
12190 }
12191         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
12192 /* @internal */
12193 export function CResult_NoneSemanticErrorZ_free(_res: number): void {
12194         if(!isWasmInitialized) {
12195                 throw new Error("initializeWasm() must be awaited first!");
12196         }
12197         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
12198         // debug statements here
12199 }
12200         // uintptr_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
12201 /* @internal */
12202 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: number): number {
12203         if(!isWasmInitialized) {
12204                 throw new Error("initializeWasm() must be awaited first!");
12205         }
12206         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
12207         return nativeResponseValue;
12208 }
12209         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
12210 /* @internal */
12211 export function CResult_NoneSemanticErrorZ_clone(orig: number): number {
12212         if(!isWasmInitialized) {
12213                 throw new Error("initializeWasm() must be awaited first!");
12214         }
12215         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
12216         return nativeResponseValue;
12217 }
12218         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
12219 /* @internal */
12220 export function CResult_InvoiceSemanticErrorZ_ok(o: number): number {
12221         if(!isWasmInitialized) {
12222                 throw new Error("initializeWasm() must be awaited first!");
12223         }
12224         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
12225         return nativeResponseValue;
12226 }
12227         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
12228 /* @internal */
12229 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): number {
12230         if(!isWasmInitialized) {
12231                 throw new Error("initializeWasm() must be awaited first!");
12232         }
12233         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
12234         return nativeResponseValue;
12235 }
12236         // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
12237 /* @internal */
12238 export function CResult_InvoiceSemanticErrorZ_is_ok(o: number): boolean {
12239         if(!isWasmInitialized) {
12240                 throw new Error("initializeWasm() must be awaited first!");
12241         }
12242         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
12243         return nativeResponseValue;
12244 }
12245         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
12246 /* @internal */
12247 export function CResult_InvoiceSemanticErrorZ_free(_res: number): void {
12248         if(!isWasmInitialized) {
12249                 throw new Error("initializeWasm() must be awaited first!");
12250         }
12251         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
12252         // debug statements here
12253 }
12254         // uintptr_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
12255 /* @internal */
12256 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: number): number {
12257         if(!isWasmInitialized) {
12258                 throw new Error("initializeWasm() must be awaited first!");
12259         }
12260         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
12261         return nativeResponseValue;
12262 }
12263         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
12264 /* @internal */
12265 export function CResult_InvoiceSemanticErrorZ_clone(orig: number): number {
12266         if(!isWasmInitialized) {
12267                 throw new Error("initializeWasm() must be awaited first!");
12268         }
12269         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
12270         return nativeResponseValue;
12271 }
12272         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
12273 /* @internal */
12274 export function CResult_DescriptionCreationErrorZ_ok(o: number): number {
12275         if(!isWasmInitialized) {
12276                 throw new Error("initializeWasm() must be awaited first!");
12277         }
12278         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
12279         return nativeResponseValue;
12280 }
12281         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
12282 /* @internal */
12283 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): number {
12284         if(!isWasmInitialized) {
12285                 throw new Error("initializeWasm() must be awaited first!");
12286         }
12287         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
12288         return nativeResponseValue;
12289 }
12290         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
12291 /* @internal */
12292 export function CResult_DescriptionCreationErrorZ_is_ok(o: number): boolean {
12293         if(!isWasmInitialized) {
12294                 throw new Error("initializeWasm() must be awaited first!");
12295         }
12296         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
12297         return nativeResponseValue;
12298 }
12299         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
12300 /* @internal */
12301 export function CResult_DescriptionCreationErrorZ_free(_res: number): void {
12302         if(!isWasmInitialized) {
12303                 throw new Error("initializeWasm() must be awaited first!");
12304         }
12305         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
12306         // debug statements here
12307 }
12308         // uintptr_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
12309 /* @internal */
12310 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: number): number {
12311         if(!isWasmInitialized) {
12312                 throw new Error("initializeWasm() must be awaited first!");
12313         }
12314         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
12315         return nativeResponseValue;
12316 }
12317         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
12318 /* @internal */
12319 export function CResult_DescriptionCreationErrorZ_clone(orig: number): number {
12320         if(!isWasmInitialized) {
12321                 throw new Error("initializeWasm() must be awaited first!");
12322         }
12323         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
12324         return nativeResponseValue;
12325 }
12326         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
12327 /* @internal */
12328 export function CResult_PrivateRouteCreationErrorZ_ok(o: number): number {
12329         if(!isWasmInitialized) {
12330                 throw new Error("initializeWasm() must be awaited first!");
12331         }
12332         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
12333         return nativeResponseValue;
12334 }
12335         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
12336 /* @internal */
12337 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): number {
12338         if(!isWasmInitialized) {
12339                 throw new Error("initializeWasm() must be awaited first!");
12340         }
12341         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
12342         return nativeResponseValue;
12343 }
12344         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
12345 /* @internal */
12346 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: number): boolean {
12347         if(!isWasmInitialized) {
12348                 throw new Error("initializeWasm() must be awaited first!");
12349         }
12350         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
12351         return nativeResponseValue;
12352 }
12353         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
12354 /* @internal */
12355 export function CResult_PrivateRouteCreationErrorZ_free(_res: number): void {
12356         if(!isWasmInitialized) {
12357                 throw new Error("initializeWasm() must be awaited first!");
12358         }
12359         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
12360         // debug statements here
12361 }
12362         // uintptr_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
12363 /* @internal */
12364 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: number): number {
12365         if(!isWasmInitialized) {
12366                 throw new Error("initializeWasm() must be awaited first!");
12367         }
12368         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
12369         return nativeResponseValue;
12370 }
12371         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
12372 /* @internal */
12373 export function CResult_PrivateRouteCreationErrorZ_clone(orig: number): number {
12374         if(!isWasmInitialized) {
12375                 throw new Error("initializeWasm() must be awaited first!");
12376         }
12377         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
12378         return nativeResponseValue;
12379 }
12380         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
12381 /* @internal */
12382 export function CResult_StringErrorZ_ok(o: number): number {
12383         if(!isWasmInitialized) {
12384                 throw new Error("initializeWasm() must be awaited first!");
12385         }
12386         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
12387         return nativeResponseValue;
12388 }
12389         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
12390 /* @internal */
12391 export function CResult_StringErrorZ_err(e: Secp256k1Error): number {
12392         if(!isWasmInitialized) {
12393                 throw new Error("initializeWasm() must be awaited first!");
12394         }
12395         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
12396         return nativeResponseValue;
12397 }
12398         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
12399 /* @internal */
12400 export function CResult_StringErrorZ_is_ok(o: number): boolean {
12401         if(!isWasmInitialized) {
12402                 throw new Error("initializeWasm() must be awaited first!");
12403         }
12404         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
12405         return nativeResponseValue;
12406 }
12407         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
12408 /* @internal */
12409 export function CResult_StringErrorZ_free(_res: number): void {
12410         if(!isWasmInitialized) {
12411                 throw new Error("initializeWasm() must be awaited first!");
12412         }
12413         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
12414         // debug statements here
12415 }
12416         // uintptr_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
12417 /* @internal */
12418 export function CResult_StringErrorZ_clone_ptr(arg: number): number {
12419         if(!isWasmInitialized) {
12420                 throw new Error("initializeWasm() must be awaited first!");
12421         }
12422         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone_ptr(arg);
12423         return nativeResponseValue;
12424 }
12425         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
12426 /* @internal */
12427 export function CResult_StringErrorZ_clone(orig: number): number {
12428         if(!isWasmInitialized) {
12429                 throw new Error("initializeWasm() must be awaited first!");
12430         }
12431         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone(orig);
12432         return nativeResponseValue;
12433 }
12434         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
12435 /* @internal */
12436 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: number): number {
12437         if(!isWasmInitialized) {
12438                 throw new Error("initializeWasm() must be awaited first!");
12439         }
12440         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
12441         return nativeResponseValue;
12442 }
12443         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
12444 /* @internal */
12445 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: number): number {
12446         if(!isWasmInitialized) {
12447                 throw new Error("initializeWasm() must be awaited first!");
12448         }
12449         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
12450         return nativeResponseValue;
12451 }
12452         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
12453 /* @internal */
12454 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: number): boolean {
12455         if(!isWasmInitialized) {
12456                 throw new Error("initializeWasm() must be awaited first!");
12457         }
12458         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
12459         return nativeResponseValue;
12460 }
12461         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
12462 /* @internal */
12463 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: number): void {
12464         if(!isWasmInitialized) {
12465                 throw new Error("initializeWasm() must be awaited first!");
12466         }
12467         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
12468         // debug statements here
12469 }
12470         // uintptr_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
12471 /* @internal */
12472 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: number): number {
12473         if(!isWasmInitialized) {
12474                 throw new Error("initializeWasm() must be awaited first!");
12475         }
12476         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
12477         return nativeResponseValue;
12478 }
12479         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
12480 /* @internal */
12481 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: number): number {
12482         if(!isWasmInitialized) {
12483                 throw new Error("initializeWasm() must be awaited first!");
12484         }
12485         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
12486         return nativeResponseValue;
12487 }
12488         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
12489 /* @internal */
12490 export function COption_MonitorEventZ_some(o: number): number {
12491         if(!isWasmInitialized) {
12492                 throw new Error("initializeWasm() must be awaited first!");
12493         }
12494         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
12495         return nativeResponseValue;
12496 }
12497         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
12498 /* @internal */
12499 export function COption_MonitorEventZ_none(): number {
12500         if(!isWasmInitialized) {
12501                 throw new Error("initializeWasm() must be awaited first!");
12502         }
12503         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
12504         return nativeResponseValue;
12505 }
12506         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
12507 /* @internal */
12508 export function COption_MonitorEventZ_free(_res: number): void {
12509         if(!isWasmInitialized) {
12510                 throw new Error("initializeWasm() must be awaited first!");
12511         }
12512         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
12513         // debug statements here
12514 }
12515         // uintptr_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
12516 /* @internal */
12517 export function COption_MonitorEventZ_clone_ptr(arg: number): number {
12518         if(!isWasmInitialized) {
12519                 throw new Error("initializeWasm() must be awaited first!");
12520         }
12521         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
12522         return nativeResponseValue;
12523 }
12524         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
12525 /* @internal */
12526 export function COption_MonitorEventZ_clone(orig: number): number {
12527         if(!isWasmInitialized) {
12528                 throw new Error("initializeWasm() must be awaited first!");
12529         }
12530         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
12531         return nativeResponseValue;
12532 }
12533         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
12534 /* @internal */
12535 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: number): number {
12536         if(!isWasmInitialized) {
12537                 throw new Error("initializeWasm() must be awaited first!");
12538         }
12539         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
12540         return nativeResponseValue;
12541 }
12542         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
12543 /* @internal */
12544 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: number): number {
12545         if(!isWasmInitialized) {
12546                 throw new Error("initializeWasm() must be awaited first!");
12547         }
12548         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
12549         return nativeResponseValue;
12550 }
12551         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
12552 /* @internal */
12553 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: number): boolean {
12554         if(!isWasmInitialized) {
12555                 throw new Error("initializeWasm() must be awaited first!");
12556         }
12557         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
12558         return nativeResponseValue;
12559 }
12560         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
12561 /* @internal */
12562 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: number): void {
12563         if(!isWasmInitialized) {
12564                 throw new Error("initializeWasm() must be awaited first!");
12565         }
12566         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
12567         // debug statements here
12568 }
12569         // uintptr_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
12570 /* @internal */
12571 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: number): number {
12572         if(!isWasmInitialized) {
12573                 throw new Error("initializeWasm() must be awaited first!");
12574         }
12575         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
12576         return nativeResponseValue;
12577 }
12578         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
12579 /* @internal */
12580 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: number): number {
12581         if(!isWasmInitialized) {
12582                 throw new Error("initializeWasm() must be awaited first!");
12583         }
12584         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
12585         return nativeResponseValue;
12586 }
12587         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
12588 /* @internal */
12589 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: number): number {
12590         if(!isWasmInitialized) {
12591                 throw new Error("initializeWasm() must be awaited first!");
12592         }
12593         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
12594         return nativeResponseValue;
12595 }
12596         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
12597 /* @internal */
12598 export function CResult_HTLCUpdateDecodeErrorZ_err(e: number): number {
12599         if(!isWasmInitialized) {
12600                 throw new Error("initializeWasm() must be awaited first!");
12601         }
12602         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
12603         return nativeResponseValue;
12604 }
12605         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
12606 /* @internal */
12607 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: number): boolean {
12608         if(!isWasmInitialized) {
12609                 throw new Error("initializeWasm() must be awaited first!");
12610         }
12611         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
12612         return nativeResponseValue;
12613 }
12614         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
12615 /* @internal */
12616 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: number): void {
12617         if(!isWasmInitialized) {
12618                 throw new Error("initializeWasm() must be awaited first!");
12619         }
12620         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
12621         // debug statements here
12622 }
12623         // uintptr_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
12624 /* @internal */
12625 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: number): number {
12626         if(!isWasmInitialized) {
12627                 throw new Error("initializeWasm() must be awaited first!");
12628         }
12629         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
12630         return nativeResponseValue;
12631 }
12632         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
12633 /* @internal */
12634 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: number): number {
12635         if(!isWasmInitialized) {
12636                 throw new Error("initializeWasm() must be awaited first!");
12637         }
12638         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
12639         return nativeResponseValue;
12640 }
12641         // uintptr_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
12642 /* @internal */
12643 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: number): number {
12644         if(!isWasmInitialized) {
12645                 throw new Error("initializeWasm() must be awaited first!");
12646         }
12647         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
12648         return nativeResponseValue;
12649 }
12650         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
12651 /* @internal */
12652 export function C2Tuple_OutPointScriptZ_clone(orig: number): number {
12653         if(!isWasmInitialized) {
12654                 throw new Error("initializeWasm() must be awaited first!");
12655         }
12656         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
12657         return nativeResponseValue;
12658 }
12659         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
12660 /* @internal */
12661 export function C2Tuple_OutPointScriptZ_new(a: number, b: number): number {
12662         if(!isWasmInitialized) {
12663                 throw new Error("initializeWasm() must be awaited first!");
12664         }
12665         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
12666         return nativeResponseValue;
12667 }
12668         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
12669 /* @internal */
12670 export function C2Tuple_OutPointScriptZ_free(_res: number): void {
12671         if(!isWasmInitialized) {
12672                 throw new Error("initializeWasm() must be awaited first!");
12673         }
12674         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
12675         // debug statements here
12676 }
12677         // uintptr_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
12678 /* @internal */
12679 export function C2Tuple_u32ScriptZ_clone_ptr(arg: number): number {
12680         if(!isWasmInitialized) {
12681                 throw new Error("initializeWasm() must be awaited first!");
12682         }
12683         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
12684         return nativeResponseValue;
12685 }
12686         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
12687 /* @internal */
12688 export function C2Tuple_u32ScriptZ_clone(orig: number): number {
12689         if(!isWasmInitialized) {
12690                 throw new Error("initializeWasm() must be awaited first!");
12691         }
12692         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
12693         return nativeResponseValue;
12694 }
12695         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
12696 /* @internal */
12697 export function C2Tuple_u32ScriptZ_new(a: number, b: number): number {
12698         if(!isWasmInitialized) {
12699                 throw new Error("initializeWasm() must be awaited first!");
12700         }
12701         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
12702         return nativeResponseValue;
12703 }
12704         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
12705 /* @internal */
12706 export function C2Tuple_u32ScriptZ_free(_res: number): void {
12707         if(!isWasmInitialized) {
12708                 throw new Error("initializeWasm() must be awaited first!");
12709         }
12710         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
12711         // debug statements here
12712 }
12713         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
12714 /* @internal */
12715 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
12716         if(!isWasmInitialized) {
12717                 throw new Error("initializeWasm() must be awaited first!");
12718         }
12719         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
12720         // debug statements here
12721 }
12722         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
12723 /* @internal */
12724 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: number): number {
12725         if(!isWasmInitialized) {
12726                 throw new Error("initializeWasm() must be awaited first!");
12727         }
12728         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
12729         return nativeResponseValue;
12730 }
12731         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
12732 /* @internal */
12733 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: number): number {
12734         if(!isWasmInitialized) {
12735                 throw new Error("initializeWasm() must be awaited first!");
12736         }
12737         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
12738         return nativeResponseValue;
12739 }
12740         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
12741 /* @internal */
12742 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): number {
12743         if(!isWasmInitialized) {
12744                 throw new Error("initializeWasm() must be awaited first!");
12745         }
12746         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
12747         return nativeResponseValue;
12748 }
12749         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
12750 /* @internal */
12751 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: number): void {
12752         if(!isWasmInitialized) {
12753                 throw new Error("initializeWasm() must be awaited first!");
12754         }
12755         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
12756         // debug statements here
12757 }
12758         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
12759 /* @internal */
12760 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
12761         if(!isWasmInitialized) {
12762                 throw new Error("initializeWasm() must be awaited first!");
12763         }
12764         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
12765         // debug statements here
12766 }
12767         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
12768 /* @internal */
12769 export function CVec_EventZ_free(_res: number): void {
12770         if(!isWasmInitialized) {
12771                 throw new Error("initializeWasm() must be awaited first!");
12772         }
12773         const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
12774         // debug statements here
12775 }
12776         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
12777 /* @internal */
12778 export function CVec_TransactionZ_free(_res: number): void {
12779         if(!isWasmInitialized) {
12780                 throw new Error("initializeWasm() must be awaited first!");
12781         }
12782         const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
12783         // debug statements here
12784 }
12785         // uintptr_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
12786 /* @internal */
12787 export function C2Tuple_u32TxOutZ_clone_ptr(arg: number): number {
12788         if(!isWasmInitialized) {
12789                 throw new Error("initializeWasm() must be awaited first!");
12790         }
12791         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
12792         return nativeResponseValue;
12793 }
12794         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
12795 /* @internal */
12796 export function C2Tuple_u32TxOutZ_clone(orig: number): number {
12797         if(!isWasmInitialized) {
12798                 throw new Error("initializeWasm() must be awaited first!");
12799         }
12800         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
12801         return nativeResponseValue;
12802 }
12803         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
12804 /* @internal */
12805 export function C2Tuple_u32TxOutZ_new(a: number, b: number): number {
12806         if(!isWasmInitialized) {
12807                 throw new Error("initializeWasm() must be awaited first!");
12808         }
12809         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
12810         return nativeResponseValue;
12811 }
12812         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
12813 /* @internal */
12814 export function C2Tuple_u32TxOutZ_free(_res: number): void {
12815         if(!isWasmInitialized) {
12816                 throw new Error("initializeWasm() must be awaited first!");
12817         }
12818         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
12819         // debug statements here
12820 }
12821         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
12822 /* @internal */
12823 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
12824         if(!isWasmInitialized) {
12825                 throw new Error("initializeWasm() must be awaited first!");
12826         }
12827         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
12828         // debug statements here
12829 }
12830         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
12831 /* @internal */
12832 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: number): number {
12833         if(!isWasmInitialized) {
12834                 throw new Error("initializeWasm() must be awaited first!");
12835         }
12836         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
12837         return nativeResponseValue;
12838 }
12839         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
12840 /* @internal */
12841 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: number): number {
12842         if(!isWasmInitialized) {
12843                 throw new Error("initializeWasm() must be awaited first!");
12844         }
12845         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
12846         return nativeResponseValue;
12847 }
12848         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
12849 /* @internal */
12850 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): number {
12851         if(!isWasmInitialized) {
12852                 throw new Error("initializeWasm() must be awaited first!");
12853         }
12854         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
12855         return nativeResponseValue;
12856 }
12857         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
12858 /* @internal */
12859 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: number): void {
12860         if(!isWasmInitialized) {
12861                 throw new Error("initializeWasm() must be awaited first!");
12862         }
12863         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
12864         // debug statements here
12865 }
12866         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
12867 /* @internal */
12868 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
12869         if(!isWasmInitialized) {
12870                 throw new Error("initializeWasm() must be awaited first!");
12871         }
12872         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
12873         // debug statements here
12874 }
12875         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
12876 /* @internal */
12877 export function CVec_BalanceZ_free(_res: number): void {
12878         if(!isWasmInitialized) {
12879                 throw new Error("initializeWasm() must be awaited first!");
12880         }
12881         const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
12882         // debug statements here
12883 }
12884         // uintptr_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
12885 /* @internal */
12886 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: number): number {
12887         if(!isWasmInitialized) {
12888                 throw new Error("initializeWasm() must be awaited first!");
12889         }
12890         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
12891         return nativeResponseValue;
12892 }
12893         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
12894 /* @internal */
12895 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: number): number {
12896         if(!isWasmInitialized) {
12897                 throw new Error("initializeWasm() must be awaited first!");
12898         }
12899         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
12900         return nativeResponseValue;
12901 }
12902         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
12903 /* @internal */
12904 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: number): number {
12905         if(!isWasmInitialized) {
12906                 throw new Error("initializeWasm() must be awaited first!");
12907         }
12908         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
12909         return nativeResponseValue;
12910 }
12911         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
12912 /* @internal */
12913 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: number): void {
12914         if(!isWasmInitialized) {
12915                 throw new Error("initializeWasm() must be awaited first!");
12916         }
12917         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
12918         // debug statements here
12919 }
12920         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
12921 /* @internal */
12922 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: number): number {
12923         if(!isWasmInitialized) {
12924                 throw new Error("initializeWasm() must be awaited first!");
12925         }
12926         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
12927         return nativeResponseValue;
12928 }
12929         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
12930 /* @internal */
12931 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: number): number {
12932         if(!isWasmInitialized) {
12933                 throw new Error("initializeWasm() must be awaited first!");
12934         }
12935         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
12936         return nativeResponseValue;
12937 }
12938         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
12939 /* @internal */
12940 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: number): boolean {
12941         if(!isWasmInitialized) {
12942                 throw new Error("initializeWasm() must be awaited first!");
12943         }
12944         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
12945         return nativeResponseValue;
12946 }
12947         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
12948 /* @internal */
12949 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: number): void {
12950         if(!isWasmInitialized) {
12951                 throw new Error("initializeWasm() must be awaited first!");
12952         }
12953         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
12954         // debug statements here
12955 }
12956         // uintptr_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
12957 /* @internal */
12958 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: number): number {
12959         if(!isWasmInitialized) {
12960                 throw new Error("initializeWasm() must be awaited first!");
12961         }
12962         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
12963         return nativeResponseValue;
12964 }
12965         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
12966 /* @internal */
12967 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: number): number {
12968         if(!isWasmInitialized) {
12969                 throw new Error("initializeWasm() must be awaited first!");
12970         }
12971         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
12972         return nativeResponseValue;
12973 }
12974         // uintptr_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
12975 /* @internal */
12976 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: number): number {
12977         if(!isWasmInitialized) {
12978                 throw new Error("initializeWasm() must be awaited first!");
12979         }
12980         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
12981         return nativeResponseValue;
12982 }
12983         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
12984 /* @internal */
12985 export function C2Tuple_PublicKeyTypeZ_clone(orig: number): number {
12986         if(!isWasmInitialized) {
12987                 throw new Error("initializeWasm() must be awaited first!");
12988         }
12989         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
12990         return nativeResponseValue;
12991 }
12992         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
12993 /* @internal */
12994 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: number): number {
12995         if(!isWasmInitialized) {
12996                 throw new Error("initializeWasm() must be awaited first!");
12997         }
12998         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
12999         return nativeResponseValue;
13000 }
13001         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
13002 /* @internal */
13003 export function C2Tuple_PublicKeyTypeZ_free(_res: number): void {
13004         if(!isWasmInitialized) {
13005                 throw new Error("initializeWasm() must be awaited first!");
13006         }
13007         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
13008         // debug statements here
13009 }
13010         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
13011 /* @internal */
13012 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
13013         if(!isWasmInitialized) {
13014                 throw new Error("initializeWasm() must be awaited first!");
13015         }
13016         const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
13017         // debug statements here
13018 }
13019         // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
13020 /* @internal */
13021 export function COption_NetAddressZ_some(o: number): number {
13022         if(!isWasmInitialized) {
13023                 throw new Error("initializeWasm() must be awaited first!");
13024         }
13025         const nativeResponseValue = wasm.TS_COption_NetAddressZ_some(o);
13026         return nativeResponseValue;
13027 }
13028         // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
13029 /* @internal */
13030 export function COption_NetAddressZ_none(): number {
13031         if(!isWasmInitialized) {
13032                 throw new Error("initializeWasm() must be awaited first!");
13033         }
13034         const nativeResponseValue = wasm.TS_COption_NetAddressZ_none();
13035         return nativeResponseValue;
13036 }
13037         // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
13038 /* @internal */
13039 export function COption_NetAddressZ_free(_res: number): void {
13040         if(!isWasmInitialized) {
13041                 throw new Error("initializeWasm() must be awaited first!");
13042         }
13043         const nativeResponseValue = wasm.TS_COption_NetAddressZ_free(_res);
13044         // debug statements here
13045 }
13046         // uintptr_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
13047 /* @internal */
13048 export function COption_NetAddressZ_clone_ptr(arg: number): number {
13049         if(!isWasmInitialized) {
13050                 throw new Error("initializeWasm() must be awaited first!");
13051         }
13052         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone_ptr(arg);
13053         return nativeResponseValue;
13054 }
13055         // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
13056 /* @internal */
13057 export function COption_NetAddressZ_clone(orig: number): number {
13058         if(!isWasmInitialized) {
13059                 throw new Error("initializeWasm() must be awaited first!");
13060         }
13061         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone(orig);
13062         return nativeResponseValue;
13063 }
13064         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
13065 /* @internal */
13066 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): number {
13067         if(!isWasmInitialized) {
13068                 throw new Error("initializeWasm() must be awaited first!");
13069         }
13070         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
13071         return nativeResponseValue;
13072 }
13073         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
13074 /* @internal */
13075 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: number): number {
13076         if(!isWasmInitialized) {
13077                 throw new Error("initializeWasm() must be awaited first!");
13078         }
13079         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
13080         return nativeResponseValue;
13081 }
13082         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
13083 /* @internal */
13084 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: number): boolean {
13085         if(!isWasmInitialized) {
13086                 throw new Error("initializeWasm() must be awaited first!");
13087         }
13088         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
13089         return nativeResponseValue;
13090 }
13091         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
13092 /* @internal */
13093 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: number): void {
13094         if(!isWasmInitialized) {
13095                 throw new Error("initializeWasm() must be awaited first!");
13096         }
13097         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
13098         // debug statements here
13099 }
13100         // uintptr_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
13101 /* @internal */
13102 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: number): number {
13103         if(!isWasmInitialized) {
13104                 throw new Error("initializeWasm() must be awaited first!");
13105         }
13106         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
13107         return nativeResponseValue;
13108 }
13109         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
13110 /* @internal */
13111 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: number): number {
13112         if(!isWasmInitialized) {
13113                 throw new Error("initializeWasm() must be awaited first!");
13114         }
13115         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
13116         return nativeResponseValue;
13117 }
13118         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
13119 /* @internal */
13120 export function CResult_NonePeerHandleErrorZ_ok(): number {
13121         if(!isWasmInitialized) {
13122                 throw new Error("initializeWasm() must be awaited first!");
13123         }
13124         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
13125         return nativeResponseValue;
13126 }
13127         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
13128 /* @internal */
13129 export function CResult_NonePeerHandleErrorZ_err(e: number): number {
13130         if(!isWasmInitialized) {
13131                 throw new Error("initializeWasm() must be awaited first!");
13132         }
13133         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
13134         return nativeResponseValue;
13135 }
13136         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
13137 /* @internal */
13138 export function CResult_NonePeerHandleErrorZ_is_ok(o: number): boolean {
13139         if(!isWasmInitialized) {
13140                 throw new Error("initializeWasm() must be awaited first!");
13141         }
13142         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
13143         return nativeResponseValue;
13144 }
13145         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
13146 /* @internal */
13147 export function CResult_NonePeerHandleErrorZ_free(_res: number): void {
13148         if(!isWasmInitialized) {
13149                 throw new Error("initializeWasm() must be awaited first!");
13150         }
13151         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
13152         // debug statements here
13153 }
13154         // uintptr_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
13155 /* @internal */
13156 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: number): number {
13157         if(!isWasmInitialized) {
13158                 throw new Error("initializeWasm() must be awaited first!");
13159         }
13160         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
13161         return nativeResponseValue;
13162 }
13163         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
13164 /* @internal */
13165 export function CResult_NonePeerHandleErrorZ_clone(orig: number): number {
13166         if(!isWasmInitialized) {
13167                 throw new Error("initializeWasm() must be awaited first!");
13168         }
13169         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
13170         return nativeResponseValue;
13171 }
13172         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
13173 /* @internal */
13174 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): number {
13175         if(!isWasmInitialized) {
13176                 throw new Error("initializeWasm() must be awaited first!");
13177         }
13178         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
13179         return nativeResponseValue;
13180 }
13181         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
13182 /* @internal */
13183 export function CResult_boolPeerHandleErrorZ_err(e: number): number {
13184         if(!isWasmInitialized) {
13185                 throw new Error("initializeWasm() must be awaited first!");
13186         }
13187         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
13188         return nativeResponseValue;
13189 }
13190         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
13191 /* @internal */
13192 export function CResult_boolPeerHandleErrorZ_is_ok(o: number): boolean {
13193         if(!isWasmInitialized) {
13194                 throw new Error("initializeWasm() must be awaited first!");
13195         }
13196         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
13197         return nativeResponseValue;
13198 }
13199         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
13200 /* @internal */
13201 export function CResult_boolPeerHandleErrorZ_free(_res: number): void {
13202         if(!isWasmInitialized) {
13203                 throw new Error("initializeWasm() must be awaited first!");
13204         }
13205         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
13206         // debug statements here
13207 }
13208         // uintptr_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
13209 /* @internal */
13210 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: number): number {
13211         if(!isWasmInitialized) {
13212                 throw new Error("initializeWasm() must be awaited first!");
13213         }
13214         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
13215         return nativeResponseValue;
13216 }
13217         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
13218 /* @internal */
13219 export function CResult_boolPeerHandleErrorZ_clone(orig: number): number {
13220         if(!isWasmInitialized) {
13221                 throw new Error("initializeWasm() must be awaited first!");
13222         }
13223         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
13224         return nativeResponseValue;
13225 }
13226         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
13227 /* @internal */
13228 export function CResult_NoneErrorZ_ok(): number {
13229         if(!isWasmInitialized) {
13230                 throw new Error("initializeWasm() must be awaited first!");
13231         }
13232         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_ok();
13233         return nativeResponseValue;
13234 }
13235         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
13236 /* @internal */
13237 export function CResult_NoneErrorZ_err(e: IOError): number {
13238         if(!isWasmInitialized) {
13239                 throw new Error("initializeWasm() must be awaited first!");
13240         }
13241         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_err(e);
13242         return nativeResponseValue;
13243 }
13244         // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
13245 /* @internal */
13246 export function CResult_NoneErrorZ_is_ok(o: number): boolean {
13247         if(!isWasmInitialized) {
13248                 throw new Error("initializeWasm() must be awaited first!");
13249         }
13250         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_is_ok(o);
13251         return nativeResponseValue;
13252 }
13253         // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
13254 /* @internal */
13255 export function CResult_NoneErrorZ_free(_res: number): void {
13256         if(!isWasmInitialized) {
13257                 throw new Error("initializeWasm() must be awaited first!");
13258         }
13259         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_free(_res);
13260         // debug statements here
13261 }
13262         // uintptr_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
13263 /* @internal */
13264 export function CResult_NoneErrorZ_clone_ptr(arg: number): number {
13265         if(!isWasmInitialized) {
13266                 throw new Error("initializeWasm() must be awaited first!");
13267         }
13268         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone_ptr(arg);
13269         return nativeResponseValue;
13270 }
13271         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
13272 /* @internal */
13273 export function CResult_NoneErrorZ_clone(orig: number): number {
13274         if(!isWasmInitialized) {
13275                 throw new Error("initializeWasm() must be awaited first!");
13276         }
13277         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone(orig);
13278         return nativeResponseValue;
13279 }
13280         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
13281 /* @internal */
13282 export function CResult_NetAddressDecodeErrorZ_ok(o: number): number {
13283         if(!isWasmInitialized) {
13284                 throw new Error("initializeWasm() must be awaited first!");
13285         }
13286         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
13287         return nativeResponseValue;
13288 }
13289         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
13290 /* @internal */
13291 export function CResult_NetAddressDecodeErrorZ_err(e: number): number {
13292         if(!isWasmInitialized) {
13293                 throw new Error("initializeWasm() must be awaited first!");
13294         }
13295         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
13296         return nativeResponseValue;
13297 }
13298         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
13299 /* @internal */
13300 export function CResult_NetAddressDecodeErrorZ_is_ok(o: number): boolean {
13301         if(!isWasmInitialized) {
13302                 throw new Error("initializeWasm() must be awaited first!");
13303         }
13304         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
13305         return nativeResponseValue;
13306 }
13307         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
13308 /* @internal */
13309 export function CResult_NetAddressDecodeErrorZ_free(_res: number): void {
13310         if(!isWasmInitialized) {
13311                 throw new Error("initializeWasm() must be awaited first!");
13312         }
13313         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
13314         // debug statements here
13315 }
13316         // uintptr_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
13317 /* @internal */
13318 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: number): number {
13319         if(!isWasmInitialized) {
13320                 throw new Error("initializeWasm() must be awaited first!");
13321         }
13322         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
13323         return nativeResponseValue;
13324 }
13325         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
13326 /* @internal */
13327 export function CResult_NetAddressDecodeErrorZ_clone(orig: number): number {
13328         if(!isWasmInitialized) {
13329                 throw new Error("initializeWasm() must be awaited first!");
13330         }
13331         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
13332         return nativeResponseValue;
13333 }
13334         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
13335 /* @internal */
13336 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
13337         if(!isWasmInitialized) {
13338                 throw new Error("initializeWasm() must be awaited first!");
13339         }
13340         const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
13341         // debug statements here
13342 }
13343         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
13344 /* @internal */
13345 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
13346         if(!isWasmInitialized) {
13347                 throw new Error("initializeWasm() must be awaited first!");
13348         }
13349         const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
13350         // debug statements here
13351 }
13352         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
13353 /* @internal */
13354 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
13355         if(!isWasmInitialized) {
13356                 throw new Error("initializeWasm() must be awaited first!");
13357         }
13358         const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
13359         // debug statements here
13360 }
13361         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
13362 /* @internal */
13363 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
13364         if(!isWasmInitialized) {
13365                 throw new Error("initializeWasm() must be awaited first!");
13366         }
13367         const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
13368         // debug statements here
13369 }
13370         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
13371 /* @internal */
13372 export function CResult_AcceptChannelDecodeErrorZ_ok(o: number): number {
13373         if(!isWasmInitialized) {
13374                 throw new Error("initializeWasm() must be awaited first!");
13375         }
13376         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
13377         return nativeResponseValue;
13378 }
13379         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
13380 /* @internal */
13381 export function CResult_AcceptChannelDecodeErrorZ_err(e: number): number {
13382         if(!isWasmInitialized) {
13383                 throw new Error("initializeWasm() must be awaited first!");
13384         }
13385         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
13386         return nativeResponseValue;
13387 }
13388         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
13389 /* @internal */
13390 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: number): boolean {
13391         if(!isWasmInitialized) {
13392                 throw new Error("initializeWasm() must be awaited first!");
13393         }
13394         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
13395         return nativeResponseValue;
13396 }
13397         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
13398 /* @internal */
13399 export function CResult_AcceptChannelDecodeErrorZ_free(_res: number): void {
13400         if(!isWasmInitialized) {
13401                 throw new Error("initializeWasm() must be awaited first!");
13402         }
13403         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
13404         // debug statements here
13405 }
13406         // uintptr_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
13407 /* @internal */
13408 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: number): number {
13409         if(!isWasmInitialized) {
13410                 throw new Error("initializeWasm() must be awaited first!");
13411         }
13412         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
13413         return nativeResponseValue;
13414 }
13415         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
13416 /* @internal */
13417 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: number): number {
13418         if(!isWasmInitialized) {
13419                 throw new Error("initializeWasm() must be awaited first!");
13420         }
13421         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
13422         return nativeResponseValue;
13423 }
13424         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
13425 /* @internal */
13426 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: number): number {
13427         if(!isWasmInitialized) {
13428                 throw new Error("initializeWasm() must be awaited first!");
13429         }
13430         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
13431         return nativeResponseValue;
13432 }
13433         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
13434 /* @internal */
13435 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: number): number {
13436         if(!isWasmInitialized) {
13437                 throw new Error("initializeWasm() must be awaited first!");
13438         }
13439         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
13440         return nativeResponseValue;
13441 }
13442         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
13443 /* @internal */
13444 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: number): boolean {
13445         if(!isWasmInitialized) {
13446                 throw new Error("initializeWasm() must be awaited first!");
13447         }
13448         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
13449         return nativeResponseValue;
13450 }
13451         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
13452 /* @internal */
13453 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: number): void {
13454         if(!isWasmInitialized) {
13455                 throw new Error("initializeWasm() must be awaited first!");
13456         }
13457         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
13458         // debug statements here
13459 }
13460         // uintptr_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
13461 /* @internal */
13462 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: number): number {
13463         if(!isWasmInitialized) {
13464                 throw new Error("initializeWasm() must be awaited first!");
13465         }
13466         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
13467         return nativeResponseValue;
13468 }
13469         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
13470 /* @internal */
13471 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: number): number {
13472         if(!isWasmInitialized) {
13473                 throw new Error("initializeWasm() must be awaited first!");
13474         }
13475         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
13476         return nativeResponseValue;
13477 }
13478         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
13479 /* @internal */
13480 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: number): number {
13481         if(!isWasmInitialized) {
13482                 throw new Error("initializeWasm() must be awaited first!");
13483         }
13484         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
13485         return nativeResponseValue;
13486 }
13487         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
13488 /* @internal */
13489 export function CResult_ChannelReestablishDecodeErrorZ_err(e: number): number {
13490         if(!isWasmInitialized) {
13491                 throw new Error("initializeWasm() must be awaited first!");
13492         }
13493         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
13494         return nativeResponseValue;
13495 }
13496         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
13497 /* @internal */
13498 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: number): boolean {
13499         if(!isWasmInitialized) {
13500                 throw new Error("initializeWasm() must be awaited first!");
13501         }
13502         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
13503         return nativeResponseValue;
13504 }
13505         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
13506 /* @internal */
13507 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: number): void {
13508         if(!isWasmInitialized) {
13509                 throw new Error("initializeWasm() must be awaited first!");
13510         }
13511         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
13512         // debug statements here
13513 }
13514         // uintptr_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
13515 /* @internal */
13516 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: number): number {
13517         if(!isWasmInitialized) {
13518                 throw new Error("initializeWasm() must be awaited first!");
13519         }
13520         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
13521         return nativeResponseValue;
13522 }
13523         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
13524 /* @internal */
13525 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: number): number {
13526         if(!isWasmInitialized) {
13527                 throw new Error("initializeWasm() must be awaited first!");
13528         }
13529         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
13530         return nativeResponseValue;
13531 }
13532         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
13533 /* @internal */
13534 export function CResult_ClosingSignedDecodeErrorZ_ok(o: number): number {
13535         if(!isWasmInitialized) {
13536                 throw new Error("initializeWasm() must be awaited first!");
13537         }
13538         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
13539         return nativeResponseValue;
13540 }
13541         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13542 /* @internal */
13543 export function CResult_ClosingSignedDecodeErrorZ_err(e: number): number {
13544         if(!isWasmInitialized) {
13545                 throw new Error("initializeWasm() must be awaited first!");
13546         }
13547         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
13548         return nativeResponseValue;
13549 }
13550         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
13551 /* @internal */
13552 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: number): boolean {
13553         if(!isWasmInitialized) {
13554                 throw new Error("initializeWasm() must be awaited first!");
13555         }
13556         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
13557         return nativeResponseValue;
13558 }
13559         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
13560 /* @internal */
13561 export function CResult_ClosingSignedDecodeErrorZ_free(_res: number): void {
13562         if(!isWasmInitialized) {
13563                 throw new Error("initializeWasm() must be awaited first!");
13564         }
13565         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
13566         // debug statements here
13567 }
13568         // uintptr_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
13569 /* @internal */
13570 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13571         if(!isWasmInitialized) {
13572                 throw new Error("initializeWasm() must be awaited first!");
13573         }
13574         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
13575         return nativeResponseValue;
13576 }
13577         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
13578 /* @internal */
13579 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: number): number {
13580         if(!isWasmInitialized) {
13581                 throw new Error("initializeWasm() must be awaited first!");
13582         }
13583         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
13584         return nativeResponseValue;
13585 }
13586         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
13587 /* @internal */
13588 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: number): number {
13589         if(!isWasmInitialized) {
13590                 throw new Error("initializeWasm() must be awaited first!");
13591         }
13592         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
13593         return nativeResponseValue;
13594 }
13595         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
13596 /* @internal */
13597 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: number): number {
13598         if(!isWasmInitialized) {
13599                 throw new Error("initializeWasm() must be awaited first!");
13600         }
13601         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
13602         return nativeResponseValue;
13603 }
13604         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
13605 /* @internal */
13606 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: number): boolean {
13607         if(!isWasmInitialized) {
13608                 throw new Error("initializeWasm() must be awaited first!");
13609         }
13610         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
13611         return nativeResponseValue;
13612 }
13613         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
13614 /* @internal */
13615 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: number): void {
13616         if(!isWasmInitialized) {
13617                 throw new Error("initializeWasm() must be awaited first!");
13618         }
13619         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
13620         // debug statements here
13621 }
13622         // uintptr_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
13623 /* @internal */
13624 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: number): number {
13625         if(!isWasmInitialized) {
13626                 throw new Error("initializeWasm() must be awaited first!");
13627         }
13628         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
13629         return nativeResponseValue;
13630 }
13631         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
13632 /* @internal */
13633 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: number): number {
13634         if(!isWasmInitialized) {
13635                 throw new Error("initializeWasm() must be awaited first!");
13636         }
13637         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
13638         return nativeResponseValue;
13639 }
13640         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
13641 /* @internal */
13642 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: number): number {
13643         if(!isWasmInitialized) {
13644                 throw new Error("initializeWasm() must be awaited first!");
13645         }
13646         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
13647         return nativeResponseValue;
13648 }
13649         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
13650 /* @internal */
13651 export function CResult_CommitmentSignedDecodeErrorZ_err(e: number): number {
13652         if(!isWasmInitialized) {
13653                 throw new Error("initializeWasm() must be awaited first!");
13654         }
13655         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
13656         return nativeResponseValue;
13657 }
13658         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
13659 /* @internal */
13660 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: number): boolean {
13661         if(!isWasmInitialized) {
13662                 throw new Error("initializeWasm() must be awaited first!");
13663         }
13664         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
13665         return nativeResponseValue;
13666 }
13667         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
13668 /* @internal */
13669 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: number): void {
13670         if(!isWasmInitialized) {
13671                 throw new Error("initializeWasm() must be awaited first!");
13672         }
13673         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
13674         // debug statements here
13675 }
13676         // uintptr_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
13677 /* @internal */
13678 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: number): number {
13679         if(!isWasmInitialized) {
13680                 throw new Error("initializeWasm() must be awaited first!");
13681         }
13682         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
13683         return nativeResponseValue;
13684 }
13685         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
13686 /* @internal */
13687 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: number): number {
13688         if(!isWasmInitialized) {
13689                 throw new Error("initializeWasm() must be awaited first!");
13690         }
13691         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
13692         return nativeResponseValue;
13693 }
13694         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
13695 /* @internal */
13696 export function CResult_FundingCreatedDecodeErrorZ_ok(o: number): number {
13697         if(!isWasmInitialized) {
13698                 throw new Error("initializeWasm() must be awaited first!");
13699         }
13700         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
13701         return nativeResponseValue;
13702 }
13703         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
13704 /* @internal */
13705 export function CResult_FundingCreatedDecodeErrorZ_err(e: number): number {
13706         if(!isWasmInitialized) {
13707                 throw new Error("initializeWasm() must be awaited first!");
13708         }
13709         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
13710         return nativeResponseValue;
13711 }
13712         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
13713 /* @internal */
13714 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: number): boolean {
13715         if(!isWasmInitialized) {
13716                 throw new Error("initializeWasm() must be awaited first!");
13717         }
13718         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
13719         return nativeResponseValue;
13720 }
13721         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
13722 /* @internal */
13723 export function CResult_FundingCreatedDecodeErrorZ_free(_res: number): void {
13724         if(!isWasmInitialized) {
13725                 throw new Error("initializeWasm() must be awaited first!");
13726         }
13727         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
13728         // debug statements here
13729 }
13730         // uintptr_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
13731 /* @internal */
13732 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: number): number {
13733         if(!isWasmInitialized) {
13734                 throw new Error("initializeWasm() must be awaited first!");
13735         }
13736         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
13737         return nativeResponseValue;
13738 }
13739         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
13740 /* @internal */
13741 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: number): number {
13742         if(!isWasmInitialized) {
13743                 throw new Error("initializeWasm() must be awaited first!");
13744         }
13745         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
13746         return nativeResponseValue;
13747 }
13748         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
13749 /* @internal */
13750 export function CResult_FundingSignedDecodeErrorZ_ok(o: number): number {
13751         if(!isWasmInitialized) {
13752                 throw new Error("initializeWasm() must be awaited first!");
13753         }
13754         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
13755         return nativeResponseValue;
13756 }
13757         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13758 /* @internal */
13759 export function CResult_FundingSignedDecodeErrorZ_err(e: number): number {
13760         if(!isWasmInitialized) {
13761                 throw new Error("initializeWasm() must be awaited first!");
13762         }
13763         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
13764         return nativeResponseValue;
13765 }
13766         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
13767 /* @internal */
13768 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: number): boolean {
13769         if(!isWasmInitialized) {
13770                 throw new Error("initializeWasm() must be awaited first!");
13771         }
13772         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
13773         return nativeResponseValue;
13774 }
13775         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
13776 /* @internal */
13777 export function CResult_FundingSignedDecodeErrorZ_free(_res: number): void {
13778         if(!isWasmInitialized) {
13779                 throw new Error("initializeWasm() must be awaited first!");
13780         }
13781         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
13782         // debug statements here
13783 }
13784         // uintptr_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
13785 /* @internal */
13786 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13787         if(!isWasmInitialized) {
13788                 throw new Error("initializeWasm() must be awaited first!");
13789         }
13790         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
13791         return nativeResponseValue;
13792 }
13793         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
13794 /* @internal */
13795 export function CResult_FundingSignedDecodeErrorZ_clone(orig: number): number {
13796         if(!isWasmInitialized) {
13797                 throw new Error("initializeWasm() must be awaited first!");
13798         }
13799         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
13800         return nativeResponseValue;
13801 }
13802         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
13803 /* @internal */
13804 export function CResult_ChannelReadyDecodeErrorZ_ok(o: number): number {
13805         if(!isWasmInitialized) {
13806                 throw new Error("initializeWasm() must be awaited first!");
13807         }
13808         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_ok(o);
13809         return nativeResponseValue;
13810 }
13811         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
13812 /* @internal */
13813 export function CResult_ChannelReadyDecodeErrorZ_err(e: number): number {
13814         if(!isWasmInitialized) {
13815                 throw new Error("initializeWasm() must be awaited first!");
13816         }
13817         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_err(e);
13818         return nativeResponseValue;
13819 }
13820         // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
13821 /* @internal */
13822 export function CResult_ChannelReadyDecodeErrorZ_is_ok(o: number): boolean {
13823         if(!isWasmInitialized) {
13824                 throw new Error("initializeWasm() must be awaited first!");
13825         }
13826         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_is_ok(o);
13827         return nativeResponseValue;
13828 }
13829         // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
13830 /* @internal */
13831 export function CResult_ChannelReadyDecodeErrorZ_free(_res: number): void {
13832         if(!isWasmInitialized) {
13833                 throw new Error("initializeWasm() must be awaited first!");
13834         }
13835         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_free(_res);
13836         // debug statements here
13837 }
13838         // uintptr_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
13839 /* @internal */
13840 export function CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg: number): number {
13841         if(!isWasmInitialized) {
13842                 throw new Error("initializeWasm() must be awaited first!");
13843         }
13844         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg);
13845         return nativeResponseValue;
13846 }
13847         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
13848 /* @internal */
13849 export function CResult_ChannelReadyDecodeErrorZ_clone(orig: number): number {
13850         if(!isWasmInitialized) {
13851                 throw new Error("initializeWasm() must be awaited first!");
13852         }
13853         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone(orig);
13854         return nativeResponseValue;
13855 }
13856         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
13857 /* @internal */
13858 export function CResult_InitDecodeErrorZ_ok(o: number): number {
13859         if(!isWasmInitialized) {
13860                 throw new Error("initializeWasm() must be awaited first!");
13861         }
13862         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
13863         return nativeResponseValue;
13864 }
13865         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
13866 /* @internal */
13867 export function CResult_InitDecodeErrorZ_err(e: number): number {
13868         if(!isWasmInitialized) {
13869                 throw new Error("initializeWasm() must be awaited first!");
13870         }
13871         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
13872         return nativeResponseValue;
13873 }
13874         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
13875 /* @internal */
13876 export function CResult_InitDecodeErrorZ_is_ok(o: number): boolean {
13877         if(!isWasmInitialized) {
13878                 throw new Error("initializeWasm() must be awaited first!");
13879         }
13880         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
13881         return nativeResponseValue;
13882 }
13883         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
13884 /* @internal */
13885 export function CResult_InitDecodeErrorZ_free(_res: number): void {
13886         if(!isWasmInitialized) {
13887                 throw new Error("initializeWasm() must be awaited first!");
13888         }
13889         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
13890         // debug statements here
13891 }
13892         // uintptr_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
13893 /* @internal */
13894 export function CResult_InitDecodeErrorZ_clone_ptr(arg: number): number {
13895         if(!isWasmInitialized) {
13896                 throw new Error("initializeWasm() must be awaited first!");
13897         }
13898         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
13899         return nativeResponseValue;
13900 }
13901         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
13902 /* @internal */
13903 export function CResult_InitDecodeErrorZ_clone(orig: number): number {
13904         if(!isWasmInitialized) {
13905                 throw new Error("initializeWasm() must be awaited first!");
13906         }
13907         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
13908         return nativeResponseValue;
13909 }
13910         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
13911 /* @internal */
13912 export function CResult_OpenChannelDecodeErrorZ_ok(o: number): number {
13913         if(!isWasmInitialized) {
13914                 throw new Error("initializeWasm() must be awaited first!");
13915         }
13916         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
13917         return nativeResponseValue;
13918 }
13919         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
13920 /* @internal */
13921 export function CResult_OpenChannelDecodeErrorZ_err(e: number): number {
13922         if(!isWasmInitialized) {
13923                 throw new Error("initializeWasm() must be awaited first!");
13924         }
13925         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
13926         return nativeResponseValue;
13927 }
13928         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
13929 /* @internal */
13930 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: number): boolean {
13931         if(!isWasmInitialized) {
13932                 throw new Error("initializeWasm() must be awaited first!");
13933         }
13934         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
13935         return nativeResponseValue;
13936 }
13937         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
13938 /* @internal */
13939 export function CResult_OpenChannelDecodeErrorZ_free(_res: number): void {
13940         if(!isWasmInitialized) {
13941                 throw new Error("initializeWasm() must be awaited first!");
13942         }
13943         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
13944         // debug statements here
13945 }
13946         // uintptr_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
13947 /* @internal */
13948 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: number): number {
13949         if(!isWasmInitialized) {
13950                 throw new Error("initializeWasm() must be awaited first!");
13951         }
13952         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
13953         return nativeResponseValue;
13954 }
13955         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
13956 /* @internal */
13957 export function CResult_OpenChannelDecodeErrorZ_clone(orig: number): number {
13958         if(!isWasmInitialized) {
13959                 throw new Error("initializeWasm() must be awaited first!");
13960         }
13961         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
13962         return nativeResponseValue;
13963 }
13964         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
13965 /* @internal */
13966 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: number): number {
13967         if(!isWasmInitialized) {
13968                 throw new Error("initializeWasm() must be awaited first!");
13969         }
13970         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
13971         return nativeResponseValue;
13972 }
13973         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
13974 /* @internal */
13975 export function CResult_RevokeAndACKDecodeErrorZ_err(e: number): number {
13976         if(!isWasmInitialized) {
13977                 throw new Error("initializeWasm() must be awaited first!");
13978         }
13979         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
13980         return nativeResponseValue;
13981 }
13982         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
13983 /* @internal */
13984 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: number): boolean {
13985         if(!isWasmInitialized) {
13986                 throw new Error("initializeWasm() must be awaited first!");
13987         }
13988         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
13989         return nativeResponseValue;
13990 }
13991         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
13992 /* @internal */
13993 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: number): void {
13994         if(!isWasmInitialized) {
13995                 throw new Error("initializeWasm() must be awaited first!");
13996         }
13997         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
13998         // debug statements here
13999 }
14000         // uintptr_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
14001 /* @internal */
14002 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: number): number {
14003         if(!isWasmInitialized) {
14004                 throw new Error("initializeWasm() must be awaited first!");
14005         }
14006         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
14007         return nativeResponseValue;
14008 }
14009         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
14010 /* @internal */
14011 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: number): number {
14012         if(!isWasmInitialized) {
14013                 throw new Error("initializeWasm() must be awaited first!");
14014         }
14015         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
14016         return nativeResponseValue;
14017 }
14018         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
14019 /* @internal */
14020 export function CResult_ShutdownDecodeErrorZ_ok(o: number): number {
14021         if(!isWasmInitialized) {
14022                 throw new Error("initializeWasm() must be awaited first!");
14023         }
14024         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
14025         return nativeResponseValue;
14026 }
14027         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
14028 /* @internal */
14029 export function CResult_ShutdownDecodeErrorZ_err(e: number): number {
14030         if(!isWasmInitialized) {
14031                 throw new Error("initializeWasm() must be awaited first!");
14032         }
14033         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
14034         return nativeResponseValue;
14035 }
14036         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
14037 /* @internal */
14038 export function CResult_ShutdownDecodeErrorZ_is_ok(o: number): boolean {
14039         if(!isWasmInitialized) {
14040                 throw new Error("initializeWasm() must be awaited first!");
14041         }
14042         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
14043         return nativeResponseValue;
14044 }
14045         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
14046 /* @internal */
14047 export function CResult_ShutdownDecodeErrorZ_free(_res: number): void {
14048         if(!isWasmInitialized) {
14049                 throw new Error("initializeWasm() must be awaited first!");
14050         }
14051         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
14052         // debug statements here
14053 }
14054         // uintptr_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
14055 /* @internal */
14056 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: number): number {
14057         if(!isWasmInitialized) {
14058                 throw new Error("initializeWasm() must be awaited first!");
14059         }
14060         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
14061         return nativeResponseValue;
14062 }
14063         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
14064 /* @internal */
14065 export function CResult_ShutdownDecodeErrorZ_clone(orig: number): number {
14066         if(!isWasmInitialized) {
14067                 throw new Error("initializeWasm() must be awaited first!");
14068         }
14069         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
14070         return nativeResponseValue;
14071 }
14072         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
14073 /* @internal */
14074 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: number): number {
14075         if(!isWasmInitialized) {
14076                 throw new Error("initializeWasm() must be awaited first!");
14077         }
14078         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
14079         return nativeResponseValue;
14080 }
14081         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14082 /* @internal */
14083 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: number): number {
14084         if(!isWasmInitialized) {
14085                 throw new Error("initializeWasm() must be awaited first!");
14086         }
14087         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
14088         return nativeResponseValue;
14089 }
14090         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
14091 /* @internal */
14092 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: number): boolean {
14093         if(!isWasmInitialized) {
14094                 throw new Error("initializeWasm() must be awaited first!");
14095         }
14096         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
14097         return nativeResponseValue;
14098 }
14099         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
14100 /* @internal */
14101 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: number): void {
14102         if(!isWasmInitialized) {
14103                 throw new Error("initializeWasm() must be awaited first!");
14104         }
14105         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
14106         // debug statements here
14107 }
14108         // uintptr_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
14109 /* @internal */
14110 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14111         if(!isWasmInitialized) {
14112                 throw new Error("initializeWasm() must be awaited first!");
14113         }
14114         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
14115         return nativeResponseValue;
14116 }
14117         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
14118 /* @internal */
14119 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: number): number {
14120         if(!isWasmInitialized) {
14121                 throw new Error("initializeWasm() must be awaited first!");
14122         }
14123         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
14124         return nativeResponseValue;
14125 }
14126         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
14127 /* @internal */
14128 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: number): number {
14129         if(!isWasmInitialized) {
14130                 throw new Error("initializeWasm() must be awaited first!");
14131         }
14132         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
14133         return nativeResponseValue;
14134 }
14135         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14136 /* @internal */
14137 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: number): number {
14138         if(!isWasmInitialized) {
14139                 throw new Error("initializeWasm() must be awaited first!");
14140         }
14141         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
14142         return nativeResponseValue;
14143 }
14144         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
14145 /* @internal */
14146 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: number): boolean {
14147         if(!isWasmInitialized) {
14148                 throw new Error("initializeWasm() must be awaited first!");
14149         }
14150         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
14151         return nativeResponseValue;
14152 }
14153         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
14154 /* @internal */
14155 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: number): void {
14156         if(!isWasmInitialized) {
14157                 throw new Error("initializeWasm() must be awaited first!");
14158         }
14159         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
14160         // debug statements here
14161 }
14162         // uintptr_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
14163 /* @internal */
14164 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14165         if(!isWasmInitialized) {
14166                 throw new Error("initializeWasm() must be awaited first!");
14167         }
14168         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
14169         return nativeResponseValue;
14170 }
14171         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
14172 /* @internal */
14173 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: number): number {
14174         if(!isWasmInitialized) {
14175                 throw new Error("initializeWasm() must be awaited first!");
14176         }
14177         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
14178         return nativeResponseValue;
14179 }
14180         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
14181 /* @internal */
14182 export function CResult_UpdateFeeDecodeErrorZ_ok(o: number): number {
14183         if(!isWasmInitialized) {
14184                 throw new Error("initializeWasm() must be awaited first!");
14185         }
14186         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
14187         return nativeResponseValue;
14188 }
14189         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
14190 /* @internal */
14191 export function CResult_UpdateFeeDecodeErrorZ_err(e: number): number {
14192         if(!isWasmInitialized) {
14193                 throw new Error("initializeWasm() must be awaited first!");
14194         }
14195         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
14196         return nativeResponseValue;
14197 }
14198         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
14199 /* @internal */
14200 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: number): boolean {
14201         if(!isWasmInitialized) {
14202                 throw new Error("initializeWasm() must be awaited first!");
14203         }
14204         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
14205         return nativeResponseValue;
14206 }
14207         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
14208 /* @internal */
14209 export function CResult_UpdateFeeDecodeErrorZ_free(_res: number): void {
14210         if(!isWasmInitialized) {
14211                 throw new Error("initializeWasm() must be awaited first!");
14212         }
14213         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
14214         // debug statements here
14215 }
14216         // uintptr_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
14217 /* @internal */
14218 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: number): number {
14219         if(!isWasmInitialized) {
14220                 throw new Error("initializeWasm() must be awaited first!");
14221         }
14222         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
14223         return nativeResponseValue;
14224 }
14225         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
14226 /* @internal */
14227 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: number): number {
14228         if(!isWasmInitialized) {
14229                 throw new Error("initializeWasm() must be awaited first!");
14230         }
14231         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
14232         return nativeResponseValue;
14233 }
14234         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
14235 /* @internal */
14236 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: number): number {
14237         if(!isWasmInitialized) {
14238                 throw new Error("initializeWasm() must be awaited first!");
14239         }
14240         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
14241         return nativeResponseValue;
14242 }
14243         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14244 /* @internal */
14245 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: number): number {
14246         if(!isWasmInitialized) {
14247                 throw new Error("initializeWasm() must be awaited first!");
14248         }
14249         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
14250         return nativeResponseValue;
14251 }
14252         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
14253 /* @internal */
14254 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: number): boolean {
14255         if(!isWasmInitialized) {
14256                 throw new Error("initializeWasm() must be awaited first!");
14257         }
14258         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
14259         return nativeResponseValue;
14260 }
14261         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
14262 /* @internal */
14263 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: number): void {
14264         if(!isWasmInitialized) {
14265                 throw new Error("initializeWasm() must be awaited first!");
14266         }
14267         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
14268         // debug statements here
14269 }
14270         // uintptr_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
14271 /* @internal */
14272 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14273         if(!isWasmInitialized) {
14274                 throw new Error("initializeWasm() must be awaited first!");
14275         }
14276         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
14277         return nativeResponseValue;
14278 }
14279         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
14280 /* @internal */
14281 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: number): number {
14282         if(!isWasmInitialized) {
14283                 throw new Error("initializeWasm() must be awaited first!");
14284         }
14285         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
14286         return nativeResponseValue;
14287 }
14288         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
14289 /* @internal */
14290 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: number): number {
14291         if(!isWasmInitialized) {
14292                 throw new Error("initializeWasm() must be awaited first!");
14293         }
14294         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
14295         return nativeResponseValue;
14296 }
14297         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14298 /* @internal */
14299 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: number): number {
14300         if(!isWasmInitialized) {
14301                 throw new Error("initializeWasm() must be awaited first!");
14302         }
14303         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
14304         return nativeResponseValue;
14305 }
14306         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
14307 /* @internal */
14308 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: number): boolean {
14309         if(!isWasmInitialized) {
14310                 throw new Error("initializeWasm() must be awaited first!");
14311         }
14312         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
14313         return nativeResponseValue;
14314 }
14315         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
14316 /* @internal */
14317 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: number): void {
14318         if(!isWasmInitialized) {
14319                 throw new Error("initializeWasm() must be awaited first!");
14320         }
14321         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
14322         // debug statements here
14323 }
14324         // uintptr_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
14325 /* @internal */
14326 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14327         if(!isWasmInitialized) {
14328                 throw new Error("initializeWasm() must be awaited first!");
14329         }
14330         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
14331         return nativeResponseValue;
14332 }
14333         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
14334 /* @internal */
14335 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: number): number {
14336         if(!isWasmInitialized) {
14337                 throw new Error("initializeWasm() must be awaited first!");
14338         }
14339         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
14340         return nativeResponseValue;
14341 }
14342         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
14343 /* @internal */
14344 export function CResult_PingDecodeErrorZ_ok(o: number): number {
14345         if(!isWasmInitialized) {
14346                 throw new Error("initializeWasm() must be awaited first!");
14347         }
14348         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
14349         return nativeResponseValue;
14350 }
14351         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
14352 /* @internal */
14353 export function CResult_PingDecodeErrorZ_err(e: number): number {
14354         if(!isWasmInitialized) {
14355                 throw new Error("initializeWasm() must be awaited first!");
14356         }
14357         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
14358         return nativeResponseValue;
14359 }
14360         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
14361 /* @internal */
14362 export function CResult_PingDecodeErrorZ_is_ok(o: number): boolean {
14363         if(!isWasmInitialized) {
14364                 throw new Error("initializeWasm() must be awaited first!");
14365         }
14366         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
14367         return nativeResponseValue;
14368 }
14369         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
14370 /* @internal */
14371 export function CResult_PingDecodeErrorZ_free(_res: number): void {
14372         if(!isWasmInitialized) {
14373                 throw new Error("initializeWasm() must be awaited first!");
14374         }
14375         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
14376         // debug statements here
14377 }
14378         // uintptr_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
14379 /* @internal */
14380 export function CResult_PingDecodeErrorZ_clone_ptr(arg: number): number {
14381         if(!isWasmInitialized) {
14382                 throw new Error("initializeWasm() must be awaited first!");
14383         }
14384         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
14385         return nativeResponseValue;
14386 }
14387         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
14388 /* @internal */
14389 export function CResult_PingDecodeErrorZ_clone(orig: number): number {
14390         if(!isWasmInitialized) {
14391                 throw new Error("initializeWasm() must be awaited first!");
14392         }
14393         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
14394         return nativeResponseValue;
14395 }
14396         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
14397 /* @internal */
14398 export function CResult_PongDecodeErrorZ_ok(o: number): number {
14399         if(!isWasmInitialized) {
14400                 throw new Error("initializeWasm() must be awaited first!");
14401         }
14402         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
14403         return nativeResponseValue;
14404 }
14405         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
14406 /* @internal */
14407 export function CResult_PongDecodeErrorZ_err(e: number): number {
14408         if(!isWasmInitialized) {
14409                 throw new Error("initializeWasm() must be awaited first!");
14410         }
14411         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
14412         return nativeResponseValue;
14413 }
14414         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
14415 /* @internal */
14416 export function CResult_PongDecodeErrorZ_is_ok(o: number): boolean {
14417         if(!isWasmInitialized) {
14418                 throw new Error("initializeWasm() must be awaited first!");
14419         }
14420         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
14421         return nativeResponseValue;
14422 }
14423         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
14424 /* @internal */
14425 export function CResult_PongDecodeErrorZ_free(_res: number): void {
14426         if(!isWasmInitialized) {
14427                 throw new Error("initializeWasm() must be awaited first!");
14428         }
14429         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
14430         // debug statements here
14431 }
14432         // uintptr_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
14433 /* @internal */
14434 export function CResult_PongDecodeErrorZ_clone_ptr(arg: number): number {
14435         if(!isWasmInitialized) {
14436                 throw new Error("initializeWasm() must be awaited first!");
14437         }
14438         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
14439         return nativeResponseValue;
14440 }
14441         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
14442 /* @internal */
14443 export function CResult_PongDecodeErrorZ_clone(orig: number): number {
14444         if(!isWasmInitialized) {
14445                 throw new Error("initializeWasm() must be awaited first!");
14446         }
14447         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
14448         return nativeResponseValue;
14449 }
14450         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
14451 /* @internal */
14452 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: number): number {
14453         if(!isWasmInitialized) {
14454                 throw new Error("initializeWasm() must be awaited first!");
14455         }
14456         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
14457         return nativeResponseValue;
14458 }
14459         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14460 /* @internal */
14461 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: number): number {
14462         if(!isWasmInitialized) {
14463                 throw new Error("initializeWasm() must be awaited first!");
14464         }
14465         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
14466         return nativeResponseValue;
14467 }
14468         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
14469 /* @internal */
14470 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14471         if(!isWasmInitialized) {
14472                 throw new Error("initializeWasm() must be awaited first!");
14473         }
14474         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
14475         return nativeResponseValue;
14476 }
14477         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
14478 /* @internal */
14479 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: number): void {
14480         if(!isWasmInitialized) {
14481                 throw new Error("initializeWasm() must be awaited first!");
14482         }
14483         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
14484         // debug statements here
14485 }
14486         // uintptr_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14487 /* @internal */
14488 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14489         if(!isWasmInitialized) {
14490                 throw new Error("initializeWasm() must be awaited first!");
14491         }
14492         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
14493         return nativeResponseValue;
14494 }
14495         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14496 /* @internal */
14497 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
14498         if(!isWasmInitialized) {
14499                 throw new Error("initializeWasm() must be awaited first!");
14500         }
14501         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
14502         return nativeResponseValue;
14503 }
14504         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
14505 /* @internal */
14506 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: number): number {
14507         if(!isWasmInitialized) {
14508                 throw new Error("initializeWasm() must be awaited first!");
14509         }
14510         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
14511         return nativeResponseValue;
14512 }
14513         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14514 /* @internal */
14515 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: number): number {
14516         if(!isWasmInitialized) {
14517                 throw new Error("initializeWasm() must be awaited first!");
14518         }
14519         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
14520         return nativeResponseValue;
14521 }
14522         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
14523 /* @internal */
14524 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14525         if(!isWasmInitialized) {
14526                 throw new Error("initializeWasm() must be awaited first!");
14527         }
14528         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
14529         return nativeResponseValue;
14530 }
14531         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
14532 /* @internal */
14533 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: number): void {
14534         if(!isWasmInitialized) {
14535                 throw new Error("initializeWasm() must be awaited first!");
14536         }
14537         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
14538         // debug statements here
14539 }
14540         // uintptr_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14541 /* @internal */
14542 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14543         if(!isWasmInitialized) {
14544                 throw new Error("initializeWasm() must be awaited first!");
14545         }
14546         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
14547         return nativeResponseValue;
14548 }
14549         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14550 /* @internal */
14551 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
14552         if(!isWasmInitialized) {
14553                 throw new Error("initializeWasm() must be awaited first!");
14554         }
14555         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
14556         return nativeResponseValue;
14557 }
14558         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
14559 /* @internal */
14560 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: number): number {
14561         if(!isWasmInitialized) {
14562                 throw new Error("initializeWasm() must be awaited first!");
14563         }
14564         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
14565         return nativeResponseValue;
14566 }
14567         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14568 /* @internal */
14569 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: number): number {
14570         if(!isWasmInitialized) {
14571                 throw new Error("initializeWasm() must be awaited first!");
14572         }
14573         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
14574         return nativeResponseValue;
14575 }
14576         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14577 /* @internal */
14578 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14579         if(!isWasmInitialized) {
14580                 throw new Error("initializeWasm() must be awaited first!");
14581         }
14582         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
14583         return nativeResponseValue;
14584 }
14585         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
14586 /* @internal */
14587 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: number): void {
14588         if(!isWasmInitialized) {
14589                 throw new Error("initializeWasm() must be awaited first!");
14590         }
14591         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
14592         // debug statements here
14593 }
14594         // uintptr_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14595 /* @internal */
14596 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14597         if(!isWasmInitialized) {
14598                 throw new Error("initializeWasm() must be awaited first!");
14599         }
14600         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
14601         return nativeResponseValue;
14602 }
14603         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14604 /* @internal */
14605 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: number): number {
14606         if(!isWasmInitialized) {
14607                 throw new Error("initializeWasm() must be awaited first!");
14608         }
14609         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
14610         return nativeResponseValue;
14611 }
14612         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
14613 /* @internal */
14614 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: number): number {
14615         if(!isWasmInitialized) {
14616                 throw new Error("initializeWasm() must be awaited first!");
14617         }
14618         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
14619         return nativeResponseValue;
14620 }
14621         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14622 /* @internal */
14623 export function CResult_ChannelUpdateDecodeErrorZ_err(e: number): number {
14624         if(!isWasmInitialized) {
14625                 throw new Error("initializeWasm() must be awaited first!");
14626         }
14627         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
14628         return nativeResponseValue;
14629 }
14630         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14631 /* @internal */
14632 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14633         if(!isWasmInitialized) {
14634                 throw new Error("initializeWasm() must be awaited first!");
14635         }
14636         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
14637         return nativeResponseValue;
14638 }
14639         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
14640 /* @internal */
14641 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: number): void {
14642         if(!isWasmInitialized) {
14643                 throw new Error("initializeWasm() must be awaited first!");
14644         }
14645         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
14646         // debug statements here
14647 }
14648         // uintptr_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14649 /* @internal */
14650 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14651         if(!isWasmInitialized) {
14652                 throw new Error("initializeWasm() must be awaited first!");
14653         }
14654         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
14655         return nativeResponseValue;
14656 }
14657         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14658 /* @internal */
14659 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: number): number {
14660         if(!isWasmInitialized) {
14661                 throw new Error("initializeWasm() must be awaited first!");
14662         }
14663         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
14664         return nativeResponseValue;
14665 }
14666         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
14667 /* @internal */
14668 export function CResult_ErrorMessageDecodeErrorZ_ok(o: number): number {
14669         if(!isWasmInitialized) {
14670                 throw new Error("initializeWasm() must be awaited first!");
14671         }
14672         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
14673         return nativeResponseValue;
14674 }
14675         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
14676 /* @internal */
14677 export function CResult_ErrorMessageDecodeErrorZ_err(e: number): number {
14678         if(!isWasmInitialized) {
14679                 throw new Error("initializeWasm() must be awaited first!");
14680         }
14681         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
14682         return nativeResponseValue;
14683 }
14684         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
14685 /* @internal */
14686 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: number): boolean {
14687         if(!isWasmInitialized) {
14688                 throw new Error("initializeWasm() must be awaited first!");
14689         }
14690         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
14691         return nativeResponseValue;
14692 }
14693         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
14694 /* @internal */
14695 export function CResult_ErrorMessageDecodeErrorZ_free(_res: number): void {
14696         if(!isWasmInitialized) {
14697                 throw new Error("initializeWasm() must be awaited first!");
14698         }
14699         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
14700         // debug statements here
14701 }
14702         // uintptr_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
14703 /* @internal */
14704 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: number): number {
14705         if(!isWasmInitialized) {
14706                 throw new Error("initializeWasm() must be awaited first!");
14707         }
14708         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
14709         return nativeResponseValue;
14710 }
14711         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
14712 /* @internal */
14713 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: number): number {
14714         if(!isWasmInitialized) {
14715                 throw new Error("initializeWasm() must be awaited first!");
14716         }
14717         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
14718         return nativeResponseValue;
14719 }
14720         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
14721 /* @internal */
14722 export function CResult_WarningMessageDecodeErrorZ_ok(o: number): number {
14723         if(!isWasmInitialized) {
14724                 throw new Error("initializeWasm() must be awaited first!");
14725         }
14726         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
14727         return nativeResponseValue;
14728 }
14729         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
14730 /* @internal */
14731 export function CResult_WarningMessageDecodeErrorZ_err(e: number): number {
14732         if(!isWasmInitialized) {
14733                 throw new Error("initializeWasm() must be awaited first!");
14734         }
14735         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
14736         return nativeResponseValue;
14737 }
14738         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
14739 /* @internal */
14740 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: number): boolean {
14741         if(!isWasmInitialized) {
14742                 throw new Error("initializeWasm() must be awaited first!");
14743         }
14744         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
14745         return nativeResponseValue;
14746 }
14747         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
14748 /* @internal */
14749 export function CResult_WarningMessageDecodeErrorZ_free(_res: number): void {
14750         if(!isWasmInitialized) {
14751                 throw new Error("initializeWasm() must be awaited first!");
14752         }
14753         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
14754         // debug statements here
14755 }
14756         // uintptr_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
14757 /* @internal */
14758 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: number): number {
14759         if(!isWasmInitialized) {
14760                 throw new Error("initializeWasm() must be awaited first!");
14761         }
14762         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
14763         return nativeResponseValue;
14764 }
14765         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
14766 /* @internal */
14767 export function CResult_WarningMessageDecodeErrorZ_clone(orig: number): number {
14768         if(!isWasmInitialized) {
14769                 throw new Error("initializeWasm() must be awaited first!");
14770         }
14771         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
14772         return nativeResponseValue;
14773 }
14774         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
14775 /* @internal */
14776 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: number): number {
14777         if(!isWasmInitialized) {
14778                 throw new Error("initializeWasm() must be awaited first!");
14779         }
14780         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
14781         return nativeResponseValue;
14782 }
14783         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14784 /* @internal */
14785 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: number): number {
14786         if(!isWasmInitialized) {
14787                 throw new Error("initializeWasm() must be awaited first!");
14788         }
14789         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
14790         return nativeResponseValue;
14791 }
14792         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14793 /* @internal */
14794 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14795         if(!isWasmInitialized) {
14796                 throw new Error("initializeWasm() must be awaited first!");
14797         }
14798         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
14799         return nativeResponseValue;
14800 }
14801         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
14802 /* @internal */
14803 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: number): void {
14804         if(!isWasmInitialized) {
14805                 throw new Error("initializeWasm() must be awaited first!");
14806         }
14807         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
14808         // debug statements here
14809 }
14810         // uintptr_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14811 /* @internal */
14812 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14813         if(!isWasmInitialized) {
14814                 throw new Error("initializeWasm() must be awaited first!");
14815         }
14816         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14817         return nativeResponseValue;
14818 }
14819         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14820 /* @internal */
14821 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14822         if(!isWasmInitialized) {
14823                 throw new Error("initializeWasm() must be awaited first!");
14824         }
14825         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
14826         return nativeResponseValue;
14827 }
14828         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
14829 /* @internal */
14830 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: number): number {
14831         if(!isWasmInitialized) {
14832                 throw new Error("initializeWasm() must be awaited first!");
14833         }
14834         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
14835         return nativeResponseValue;
14836 }
14837         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14838 /* @internal */
14839 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: number): number {
14840         if(!isWasmInitialized) {
14841                 throw new Error("initializeWasm() must be awaited first!");
14842         }
14843         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
14844         return nativeResponseValue;
14845 }
14846         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14847 /* @internal */
14848 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14849         if(!isWasmInitialized) {
14850                 throw new Error("initializeWasm() must be awaited first!");
14851         }
14852         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
14853         return nativeResponseValue;
14854 }
14855         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
14856 /* @internal */
14857 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: number): void {
14858         if(!isWasmInitialized) {
14859                 throw new Error("initializeWasm() must be awaited first!");
14860         }
14861         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
14862         // debug statements here
14863 }
14864         // uintptr_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14865 /* @internal */
14866 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14867         if(!isWasmInitialized) {
14868                 throw new Error("initializeWasm() must be awaited first!");
14869         }
14870         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14871         return nativeResponseValue;
14872 }
14873         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14874 /* @internal */
14875 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14876         if(!isWasmInitialized) {
14877                 throw new Error("initializeWasm() must be awaited first!");
14878         }
14879         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
14880         return nativeResponseValue;
14881 }
14882         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
14883 /* @internal */
14884 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: number): number {
14885         if(!isWasmInitialized) {
14886                 throw new Error("initializeWasm() must be awaited first!");
14887         }
14888         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
14889         return nativeResponseValue;
14890 }
14891         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
14892 /* @internal */
14893 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: number): number {
14894         if(!isWasmInitialized) {
14895                 throw new Error("initializeWasm() must be awaited first!");
14896         }
14897         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
14898         return nativeResponseValue;
14899 }
14900         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
14901 /* @internal */
14902 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: number): boolean {
14903         if(!isWasmInitialized) {
14904                 throw new Error("initializeWasm() must be awaited first!");
14905         }
14906         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
14907         return nativeResponseValue;
14908 }
14909         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
14910 /* @internal */
14911 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: number): void {
14912         if(!isWasmInitialized) {
14913                 throw new Error("initializeWasm() must be awaited first!");
14914         }
14915         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
14916         // debug statements here
14917 }
14918         // uintptr_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
14919 /* @internal */
14920 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: number): number {
14921         if(!isWasmInitialized) {
14922                 throw new Error("initializeWasm() must be awaited first!");
14923         }
14924         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
14925         return nativeResponseValue;
14926 }
14927         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
14928 /* @internal */
14929 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: number): number {
14930         if(!isWasmInitialized) {
14931                 throw new Error("initializeWasm() must be awaited first!");
14932         }
14933         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
14934         return nativeResponseValue;
14935 }
14936         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
14937 /* @internal */
14938 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: number): number {
14939         if(!isWasmInitialized) {
14940                 throw new Error("initializeWasm() must be awaited first!");
14941         }
14942         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
14943         return nativeResponseValue;
14944 }
14945         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
14946 /* @internal */
14947 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: number): number {
14948         if(!isWasmInitialized) {
14949                 throw new Error("initializeWasm() must be awaited first!");
14950         }
14951         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
14952         return nativeResponseValue;
14953 }
14954         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
14955 /* @internal */
14956 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: number): boolean {
14957         if(!isWasmInitialized) {
14958                 throw new Error("initializeWasm() must be awaited first!");
14959         }
14960         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
14961         return nativeResponseValue;
14962 }
14963         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
14964 /* @internal */
14965 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: number): void {
14966         if(!isWasmInitialized) {
14967                 throw new Error("initializeWasm() must be awaited first!");
14968         }
14969         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
14970         // debug statements here
14971 }
14972         // uintptr_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
14973 /* @internal */
14974 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: number): number {
14975         if(!isWasmInitialized) {
14976                 throw new Error("initializeWasm() must be awaited first!");
14977         }
14978         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
14979         return nativeResponseValue;
14980 }
14981         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
14982 /* @internal */
14983 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: number): number {
14984         if(!isWasmInitialized) {
14985                 throw new Error("initializeWasm() must be awaited first!");
14986         }
14987         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
14988         return nativeResponseValue;
14989 }
14990         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
14991 /* @internal */
14992 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: number): number {
14993         if(!isWasmInitialized) {
14994                 throw new Error("initializeWasm() must be awaited first!");
14995         }
14996         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
14997         return nativeResponseValue;
14998 }
14999         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
15000 /* @internal */
15001 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: number): number {
15002         if(!isWasmInitialized) {
15003                 throw new Error("initializeWasm() must be awaited first!");
15004         }
15005         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
15006         return nativeResponseValue;
15007 }
15008         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
15009 /* @internal */
15010 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
15011         if(!isWasmInitialized) {
15012                 throw new Error("initializeWasm() must be awaited first!");
15013         }
15014         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
15015         return nativeResponseValue;
15016 }
15017         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
15018 /* @internal */
15019 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: number): void {
15020         if(!isWasmInitialized) {
15021                 throw new Error("initializeWasm() must be awaited first!");
15022         }
15023         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
15024         // debug statements here
15025 }
15026         // uintptr_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
15027 /* @internal */
15028 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
15029         if(!isWasmInitialized) {
15030                 throw new Error("initializeWasm() must be awaited first!");
15031         }
15032         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
15033         return nativeResponseValue;
15034 }
15035         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
15036 /* @internal */
15037 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: number): number {
15038         if(!isWasmInitialized) {
15039                 throw new Error("initializeWasm() must be awaited first!");
15040         }
15041         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
15042         return nativeResponseValue;
15043 }
15044         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
15045 /* @internal */
15046 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: number): number {
15047         if(!isWasmInitialized) {
15048                 throw new Error("initializeWasm() must be awaited first!");
15049         }
15050         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
15051         return nativeResponseValue;
15052 }
15053         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
15054 /* @internal */
15055 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: number): number {
15056         if(!isWasmInitialized) {
15057                 throw new Error("initializeWasm() must be awaited first!");
15058         }
15059         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
15060         return nativeResponseValue;
15061 }
15062         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
15063 /* @internal */
15064 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
15065         if(!isWasmInitialized) {
15066                 throw new Error("initializeWasm() must be awaited first!");
15067         }
15068         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
15069         return nativeResponseValue;
15070 }
15071         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
15072 /* @internal */
15073 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: number): void {
15074         if(!isWasmInitialized) {
15075                 throw new Error("initializeWasm() must be awaited first!");
15076         }
15077         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
15078         // debug statements here
15079 }
15080         // uintptr_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
15081 /* @internal */
15082 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
15083         if(!isWasmInitialized) {
15084                 throw new Error("initializeWasm() must be awaited first!");
15085         }
15086         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
15087         return nativeResponseValue;
15088 }
15089         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
15090 /* @internal */
15091 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: number): number {
15092         if(!isWasmInitialized) {
15093                 throw new Error("initializeWasm() must be awaited first!");
15094         }
15095         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
15096         return nativeResponseValue;
15097 }
15098         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
15099 /* @internal */
15100 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: number): number {
15101         if(!isWasmInitialized) {
15102                 throw new Error("initializeWasm() must be awaited first!");
15103         }
15104         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
15105         return nativeResponseValue;
15106 }
15107         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
15108 /* @internal */
15109 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: number): number {
15110         if(!isWasmInitialized) {
15111                 throw new Error("initializeWasm() must be awaited first!");
15112         }
15113         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
15114         return nativeResponseValue;
15115 }
15116         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
15117 /* @internal */
15118 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: number): boolean {
15119         if(!isWasmInitialized) {
15120                 throw new Error("initializeWasm() must be awaited first!");
15121         }
15122         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
15123         return nativeResponseValue;
15124 }
15125         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
15126 /* @internal */
15127 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: number): void {
15128         if(!isWasmInitialized) {
15129                 throw new Error("initializeWasm() must be awaited first!");
15130         }
15131         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
15132         // debug statements here
15133 }
15134         // uintptr_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
15135 /* @internal */
15136 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: number): number {
15137         if(!isWasmInitialized) {
15138                 throw new Error("initializeWasm() must be awaited first!");
15139         }
15140         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
15141         return nativeResponseValue;
15142 }
15143         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
15144 /* @internal */
15145 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: number): number {
15146         if(!isWasmInitialized) {
15147                 throw new Error("initializeWasm() must be awaited first!");
15148         }
15149         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
15150         return nativeResponseValue;
15151 }
15152         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
15153 /* @internal */
15154 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: number): number {
15155         if(!isWasmInitialized) {
15156                 throw new Error("initializeWasm() must be awaited first!");
15157         }
15158         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
15159         return nativeResponseValue;
15160 }
15161         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
15162 /* @internal */
15163 export function CResult_InvoiceSignOrCreationErrorZ_err(e: number): number {
15164         if(!isWasmInitialized) {
15165                 throw new Error("initializeWasm() must be awaited first!");
15166         }
15167         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
15168         return nativeResponseValue;
15169 }
15170         // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
15171 /* @internal */
15172 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: number): boolean {
15173         if(!isWasmInitialized) {
15174                 throw new Error("initializeWasm() must be awaited first!");
15175         }
15176         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
15177         return nativeResponseValue;
15178 }
15179         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
15180 /* @internal */
15181 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: number): void {
15182         if(!isWasmInitialized) {
15183                 throw new Error("initializeWasm() must be awaited first!");
15184         }
15185         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
15186         // debug statements here
15187 }
15188         // uintptr_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
15189 /* @internal */
15190 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: number): number {
15191         if(!isWasmInitialized) {
15192                 throw new Error("initializeWasm() must be awaited first!");
15193         }
15194         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
15195         return nativeResponseValue;
15196 }
15197         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
15198 /* @internal */
15199 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: number): number {
15200         if(!isWasmInitialized) {
15201                 throw new Error("initializeWasm() must be awaited first!");
15202         }
15203         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
15204         return nativeResponseValue;
15205 }
15206         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
15207 /* @internal */
15208 export function COption_FilterZ_some(o: number): number {
15209         if(!isWasmInitialized) {
15210                 throw new Error("initializeWasm() must be awaited first!");
15211         }
15212         const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
15213         return nativeResponseValue;
15214 }
15215         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
15216 /* @internal */
15217 export function COption_FilterZ_none(): number {
15218         if(!isWasmInitialized) {
15219                 throw new Error("initializeWasm() must be awaited first!");
15220         }
15221         const nativeResponseValue = wasm.TS_COption_FilterZ_none();
15222         return nativeResponseValue;
15223 }
15224         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
15225 /* @internal */
15226 export function COption_FilterZ_free(_res: number): void {
15227         if(!isWasmInitialized) {
15228                 throw new Error("initializeWasm() must be awaited first!");
15229         }
15230         const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
15231         // debug statements here
15232 }
15233         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
15234 /* @internal */
15235 export function CResult_LockedChannelMonitorNoneZ_ok(o: number): number {
15236         if(!isWasmInitialized) {
15237                 throw new Error("initializeWasm() must be awaited first!");
15238         }
15239         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
15240         return nativeResponseValue;
15241 }
15242         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
15243 /* @internal */
15244 export function CResult_LockedChannelMonitorNoneZ_err(): number {
15245         if(!isWasmInitialized) {
15246                 throw new Error("initializeWasm() must be awaited first!");
15247         }
15248         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
15249         return nativeResponseValue;
15250 }
15251         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
15252 /* @internal */
15253 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: number): boolean {
15254         if(!isWasmInitialized) {
15255                 throw new Error("initializeWasm() must be awaited first!");
15256         }
15257         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
15258         return nativeResponseValue;
15259 }
15260         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
15261 /* @internal */
15262 export function CResult_LockedChannelMonitorNoneZ_free(_res: number): void {
15263         if(!isWasmInitialized) {
15264                 throw new Error("initializeWasm() must be awaited first!");
15265         }
15266         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
15267         // debug statements here
15268 }
15269         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
15270 /* @internal */
15271 export function CVec_OutPointZ_free(_res: number): void {
15272         if(!isWasmInitialized) {
15273                 throw new Error("initializeWasm() must be awaited first!");
15274         }
15275         const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
15276         // debug statements here
15277 }
15278         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
15279 /* @internal */
15280 export function PaymentPurpose_free(this_ptr: number): void {
15281         if(!isWasmInitialized) {
15282                 throw new Error("initializeWasm() must be awaited first!");
15283         }
15284         const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
15285         // debug statements here
15286 }
15287         // uintptr_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
15288 /* @internal */
15289 export function PaymentPurpose_clone_ptr(arg: number): number {
15290         if(!isWasmInitialized) {
15291                 throw new Error("initializeWasm() must be awaited first!");
15292         }
15293         const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
15294         return nativeResponseValue;
15295 }
15296         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
15297 /* @internal */
15298 export function PaymentPurpose_clone(orig: number): number {
15299         if(!isWasmInitialized) {
15300                 throw new Error("initializeWasm() must be awaited first!");
15301         }
15302         const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
15303         return nativeResponseValue;
15304 }
15305         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
15306 /* @internal */
15307 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): number {
15308         if(!isWasmInitialized) {
15309                 throw new Error("initializeWasm() must be awaited first!");
15310         }
15311         const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
15312         return nativeResponseValue;
15313 }
15314         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
15315 /* @internal */
15316 export function PaymentPurpose_spontaneous_payment(a: number): number {
15317         if(!isWasmInitialized) {
15318                 throw new Error("initializeWasm() must be awaited first!");
15319         }
15320         const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
15321         return nativeResponseValue;
15322 }
15323         // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
15324 /* @internal */
15325 export function PaymentPurpose_write(obj: number): number {
15326         if(!isWasmInitialized) {
15327                 throw new Error("initializeWasm() must be awaited first!");
15328         }
15329         const nativeResponseValue = wasm.TS_PaymentPurpose_write(obj);
15330         return nativeResponseValue;
15331 }
15332         // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
15333 /* @internal */
15334 export function PaymentPurpose_read(ser: number): number {
15335         if(!isWasmInitialized) {
15336                 throw new Error("initializeWasm() must be awaited first!");
15337         }
15338         const nativeResponseValue = wasm.TS_PaymentPurpose_read(ser);
15339         return nativeResponseValue;
15340 }
15341         // void ClosureReason_free(struct LDKClosureReason this_ptr);
15342 /* @internal */
15343 export function ClosureReason_free(this_ptr: number): void {
15344         if(!isWasmInitialized) {
15345                 throw new Error("initializeWasm() must be awaited first!");
15346         }
15347         const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
15348         // debug statements here
15349 }
15350         // uintptr_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
15351 /* @internal */
15352 export function ClosureReason_clone_ptr(arg: number): number {
15353         if(!isWasmInitialized) {
15354                 throw new Error("initializeWasm() must be awaited first!");
15355         }
15356         const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
15357         return nativeResponseValue;
15358 }
15359         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
15360 /* @internal */
15361 export function ClosureReason_clone(orig: number): number {
15362         if(!isWasmInitialized) {
15363                 throw new Error("initializeWasm() must be awaited first!");
15364         }
15365         const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
15366         return nativeResponseValue;
15367 }
15368         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
15369 /* @internal */
15370 export function ClosureReason_counterparty_force_closed(peer_msg: number): number {
15371         if(!isWasmInitialized) {
15372                 throw new Error("initializeWasm() must be awaited first!");
15373         }
15374         const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
15375         return nativeResponseValue;
15376 }
15377         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
15378 /* @internal */
15379 export function ClosureReason_holder_force_closed(): number {
15380         if(!isWasmInitialized) {
15381                 throw new Error("initializeWasm() must be awaited first!");
15382         }
15383         const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
15384         return nativeResponseValue;
15385 }
15386         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
15387 /* @internal */
15388 export function ClosureReason_cooperative_closure(): number {
15389         if(!isWasmInitialized) {
15390                 throw new Error("initializeWasm() must be awaited first!");
15391         }
15392         const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
15393         return nativeResponseValue;
15394 }
15395         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
15396 /* @internal */
15397 export function ClosureReason_commitment_tx_confirmed(): number {
15398         if(!isWasmInitialized) {
15399                 throw new Error("initializeWasm() must be awaited first!");
15400         }
15401         const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
15402         return nativeResponseValue;
15403 }
15404         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
15405 /* @internal */
15406 export function ClosureReason_funding_timed_out(): number {
15407         if(!isWasmInitialized) {
15408                 throw new Error("initializeWasm() must be awaited first!");
15409         }
15410         const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
15411         return nativeResponseValue;
15412 }
15413         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
15414 /* @internal */
15415 export function ClosureReason_processing_error(err: number): number {
15416         if(!isWasmInitialized) {
15417                 throw new Error("initializeWasm() must be awaited first!");
15418         }
15419         const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
15420         return nativeResponseValue;
15421 }
15422         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
15423 /* @internal */
15424 export function ClosureReason_disconnected_peer(): number {
15425         if(!isWasmInitialized) {
15426                 throw new Error("initializeWasm() must be awaited first!");
15427         }
15428         const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
15429         return nativeResponseValue;
15430 }
15431         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
15432 /* @internal */
15433 export function ClosureReason_outdated_channel_manager(): number {
15434         if(!isWasmInitialized) {
15435                 throw new Error("initializeWasm() must be awaited first!");
15436         }
15437         const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
15438         return nativeResponseValue;
15439 }
15440         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
15441 /* @internal */
15442 export function ClosureReason_write(obj: number): number {
15443         if(!isWasmInitialized) {
15444                 throw new Error("initializeWasm() must be awaited first!");
15445         }
15446         const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
15447         return nativeResponseValue;
15448 }
15449         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
15450 /* @internal */
15451 export function ClosureReason_read(ser: number): number {
15452         if(!isWasmInitialized) {
15453                 throw new Error("initializeWasm() must be awaited first!");
15454         }
15455         const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
15456         return nativeResponseValue;
15457 }
15458         // void Event_free(struct LDKEvent this_ptr);
15459 /* @internal */
15460 export function Event_free(this_ptr: number): void {
15461         if(!isWasmInitialized) {
15462                 throw new Error("initializeWasm() must be awaited first!");
15463         }
15464         const nativeResponseValue = wasm.TS_Event_free(this_ptr);
15465         // debug statements here
15466 }
15467         // uintptr_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
15468 /* @internal */
15469 export function Event_clone_ptr(arg: number): number {
15470         if(!isWasmInitialized) {
15471                 throw new Error("initializeWasm() must be awaited first!");
15472         }
15473         const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
15474         return nativeResponseValue;
15475 }
15476         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
15477 /* @internal */
15478 export function Event_clone(orig: number): number {
15479         if(!isWasmInitialized) {
15480                 throw new Error("initializeWasm() must be awaited first!");
15481         }
15482         const nativeResponseValue = wasm.TS_Event_clone(orig);
15483         return nativeResponseValue;
15484 }
15485         // 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);
15486 /* @internal */
15487 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 {
15488         if(!isWasmInitialized) {
15489                 throw new Error("initializeWasm() must be awaited first!");
15490         }
15491         const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, counterparty_node_id, channel_value_satoshis, output_script, user_channel_id);
15492         return nativeResponseValue;
15493 }
15494         // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
15495 /* @internal */
15496 export function Event_payment_received(payment_hash: number, amount_msat: bigint, purpose: number): number {
15497         if(!isWasmInitialized) {
15498                 throw new Error("initializeWasm() must be awaited first!");
15499         }
15500         const nativeResponseValue = wasm.TS_Event_payment_received(payment_hash, amount_msat, purpose);
15501         return nativeResponseValue;
15502 }
15503         // struct LDKEvent Event_payment_claimed(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
15504 /* @internal */
15505 export function Event_payment_claimed(payment_hash: number, amount_msat: bigint, purpose: number): number {
15506         if(!isWasmInitialized) {
15507                 throw new Error("initializeWasm() must be awaited first!");
15508         }
15509         const nativeResponseValue = wasm.TS_Event_payment_claimed(payment_hash, amount_msat, purpose);
15510         return nativeResponseValue;
15511 }
15512         // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
15513 /* @internal */
15514 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: number): number {
15515         if(!isWasmInitialized) {
15516                 throw new Error("initializeWasm() must be awaited first!");
15517         }
15518         const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
15519         return nativeResponseValue;
15520 }
15521         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
15522 /* @internal */
15523 export function Event_payment_failed(payment_id: number, payment_hash: number): number {
15524         if(!isWasmInitialized) {
15525                 throw new Error("initializeWasm() must be awaited first!");
15526         }
15527         const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash);
15528         return nativeResponseValue;
15529 }
15530         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
15531 /* @internal */
15532 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: number): number {
15533         if(!isWasmInitialized) {
15534                 throw new Error("initializeWasm() must be awaited first!");
15535         }
15536         const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
15537         return nativeResponseValue;
15538 }
15539         // 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);
15540 /* @internal */
15541 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 {
15542         if(!isWasmInitialized) {
15543                 throw new Error("initializeWasm() must be awaited first!");
15544         }
15545         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);
15546         return nativeResponseValue;
15547 }
15548         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
15549 /* @internal */
15550 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): number {
15551         if(!isWasmInitialized) {
15552                 throw new Error("initializeWasm() must be awaited first!");
15553         }
15554         const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
15555         return nativeResponseValue;
15556 }
15557         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
15558 /* @internal */
15559 export function Event_spendable_outputs(outputs: number): number {
15560         if(!isWasmInitialized) {
15561                 throw new Error("initializeWasm() must be awaited first!");
15562         }
15563         const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
15564         return nativeResponseValue;
15565 }
15566         // 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);
15567 /* @internal */
15568 export function Event_payment_forwarded(prev_channel_id: number, next_channel_id: number, fee_earned_msat: number, claim_from_onchain_tx: boolean): number {
15569         if(!isWasmInitialized) {
15570                 throw new Error("initializeWasm() must be awaited first!");
15571         }
15572         const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, fee_earned_msat, claim_from_onchain_tx);
15573         return nativeResponseValue;
15574 }
15575         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
15576 /* @internal */
15577 export function Event_channel_closed(channel_id: number, user_channel_id: bigint, reason: number): number {
15578         if(!isWasmInitialized) {
15579                 throw new Error("initializeWasm() must be awaited first!");
15580         }
15581         const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
15582         return nativeResponseValue;
15583 }
15584         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
15585 /* @internal */
15586 export function Event_discard_funding(channel_id: number, transaction: number): number {
15587         if(!isWasmInitialized) {
15588                 throw new Error("initializeWasm() must be awaited first!");
15589         }
15590         const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
15591         return nativeResponseValue;
15592 }
15593         // 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);
15594 /* @internal */
15595 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: number): number {
15596         if(!isWasmInitialized) {
15597                 throw new Error("initializeWasm() must be awaited first!");
15598         }
15599         const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type);
15600         return nativeResponseValue;
15601 }
15602         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
15603 /* @internal */
15604 export function Event_write(obj: number): number {
15605         if(!isWasmInitialized) {
15606                 throw new Error("initializeWasm() must be awaited first!");
15607         }
15608         const nativeResponseValue = wasm.TS_Event_write(obj);
15609         return nativeResponseValue;
15610 }
15611         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
15612 /* @internal */
15613 export function Event_read(ser: number): number {
15614         if(!isWasmInitialized) {
15615                 throw new Error("initializeWasm() must be awaited first!");
15616         }
15617         const nativeResponseValue = wasm.TS_Event_read(ser);
15618         return nativeResponseValue;
15619 }
15620         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
15621 /* @internal */
15622 export function MessageSendEvent_free(this_ptr: number): void {
15623         if(!isWasmInitialized) {
15624                 throw new Error("initializeWasm() must be awaited first!");
15625         }
15626         const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
15627         // debug statements here
15628 }
15629         // uintptr_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
15630 /* @internal */
15631 export function MessageSendEvent_clone_ptr(arg: number): number {
15632         if(!isWasmInitialized) {
15633                 throw new Error("initializeWasm() must be awaited first!");
15634         }
15635         const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
15636         return nativeResponseValue;
15637 }
15638         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
15639 /* @internal */
15640 export function MessageSendEvent_clone(orig: number): number {
15641         if(!isWasmInitialized) {
15642                 throw new Error("initializeWasm() must be awaited first!");
15643         }
15644         const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
15645         return nativeResponseValue;
15646 }
15647         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
15648 /* @internal */
15649 export function MessageSendEvent_send_accept_channel(node_id: number, msg: number): number {
15650         if(!isWasmInitialized) {
15651                 throw new Error("initializeWasm() must be awaited first!");
15652         }
15653         const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
15654         return nativeResponseValue;
15655 }
15656         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
15657 /* @internal */
15658 export function MessageSendEvent_send_open_channel(node_id: number, msg: number): number {
15659         if(!isWasmInitialized) {
15660                 throw new Error("initializeWasm() must be awaited first!");
15661         }
15662         const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
15663         return nativeResponseValue;
15664 }
15665         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
15666 /* @internal */
15667 export function MessageSendEvent_send_funding_created(node_id: number, msg: number): number {
15668         if(!isWasmInitialized) {
15669                 throw new Error("initializeWasm() must be awaited first!");
15670         }
15671         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
15672         return nativeResponseValue;
15673 }
15674         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
15675 /* @internal */
15676 export function MessageSendEvent_send_funding_signed(node_id: number, msg: number): number {
15677         if(!isWasmInitialized) {
15678                 throw new Error("initializeWasm() must be awaited first!");
15679         }
15680         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
15681         return nativeResponseValue;
15682 }
15683         // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
15684 /* @internal */
15685 export function MessageSendEvent_send_channel_ready(node_id: number, msg: number): number {
15686         if(!isWasmInitialized) {
15687                 throw new Error("initializeWasm() must be awaited first!");
15688         }
15689         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_ready(node_id, msg);
15690         return nativeResponseValue;
15691 }
15692         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
15693 /* @internal */
15694 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: number): number {
15695         if(!isWasmInitialized) {
15696                 throw new Error("initializeWasm() must be awaited first!");
15697         }
15698         const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
15699         return nativeResponseValue;
15700 }
15701         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
15702 /* @internal */
15703 export function MessageSendEvent_update_htlcs(node_id: number, updates: number): number {
15704         if(!isWasmInitialized) {
15705                 throw new Error("initializeWasm() must be awaited first!");
15706         }
15707         const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
15708         return nativeResponseValue;
15709 }
15710         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
15711 /* @internal */
15712 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: number): number {
15713         if(!isWasmInitialized) {
15714                 throw new Error("initializeWasm() must be awaited first!");
15715         }
15716         const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
15717         return nativeResponseValue;
15718 }
15719         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
15720 /* @internal */
15721 export function MessageSendEvent_send_closing_signed(node_id: number, msg: number): number {
15722         if(!isWasmInitialized) {
15723                 throw new Error("initializeWasm() must be awaited first!");
15724         }
15725         const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
15726         return nativeResponseValue;
15727 }
15728         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
15729 /* @internal */
15730 export function MessageSendEvent_send_shutdown(node_id: number, msg: number): number {
15731         if(!isWasmInitialized) {
15732                 throw new Error("initializeWasm() must be awaited first!");
15733         }
15734         const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
15735         return nativeResponseValue;
15736 }
15737         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
15738 /* @internal */
15739 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: number): number {
15740         if(!isWasmInitialized) {
15741                 throw new Error("initializeWasm() must be awaited first!");
15742         }
15743         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
15744         return nativeResponseValue;
15745 }
15746         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
15747 /* @internal */
15748 export function MessageSendEvent_broadcast_channel_announcement(msg: number, update_msg: number): number {
15749         if(!isWasmInitialized) {
15750                 throw new Error("initializeWasm() must be awaited first!");
15751         }
15752         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
15753         return nativeResponseValue;
15754 }
15755         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
15756 /* @internal */
15757 export function MessageSendEvent_broadcast_node_announcement(msg: number): number {
15758         if(!isWasmInitialized) {
15759                 throw new Error("initializeWasm() must be awaited first!");
15760         }
15761         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_node_announcement(msg);
15762         return nativeResponseValue;
15763 }
15764         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
15765 /* @internal */
15766 export function MessageSendEvent_broadcast_channel_update(msg: number): number {
15767         if(!isWasmInitialized) {
15768                 throw new Error("initializeWasm() must be awaited first!");
15769         }
15770         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
15771         return nativeResponseValue;
15772 }
15773         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
15774 /* @internal */
15775 export function MessageSendEvent_send_channel_update(node_id: number, msg: number): number {
15776         if(!isWasmInitialized) {
15777                 throw new Error("initializeWasm() must be awaited first!");
15778         }
15779         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
15780         return nativeResponseValue;
15781 }
15782         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
15783 /* @internal */
15784 export function MessageSendEvent_handle_error(node_id: number, action: number): number {
15785         if(!isWasmInitialized) {
15786                 throw new Error("initializeWasm() must be awaited first!");
15787         }
15788         const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
15789         return nativeResponseValue;
15790 }
15791         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
15792 /* @internal */
15793 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: number): number {
15794         if(!isWasmInitialized) {
15795                 throw new Error("initializeWasm() must be awaited first!");
15796         }
15797         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
15798         return nativeResponseValue;
15799 }
15800         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
15801 /* @internal */
15802 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: number): number {
15803         if(!isWasmInitialized) {
15804                 throw new Error("initializeWasm() must be awaited first!");
15805         }
15806         const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
15807         return nativeResponseValue;
15808 }
15809         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
15810 /* @internal */
15811 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: number): number {
15812         if(!isWasmInitialized) {
15813                 throw new Error("initializeWasm() must be awaited first!");
15814         }
15815         const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
15816         return nativeResponseValue;
15817 }
15818         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
15819 /* @internal */
15820 export function MessageSendEvent_send_gossip_timestamp_filter(node_id: number, msg: number): number {
15821         if(!isWasmInitialized) {
15822                 throw new Error("initializeWasm() must be awaited first!");
15823         }
15824         const nativeResponseValue = wasm.TS_MessageSendEvent_send_gossip_timestamp_filter(node_id, msg);
15825         return nativeResponseValue;
15826 }
15827         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
15828 /* @internal */
15829 export function MessageSendEventsProvider_free(this_ptr: number): void {
15830         if(!isWasmInitialized) {
15831                 throw new Error("initializeWasm() must be awaited first!");
15832         }
15833         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
15834         // debug statements here
15835 }
15836         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
15837 /* @internal */
15838 export function EventsProvider_free(this_ptr: number): void {
15839         if(!isWasmInitialized) {
15840                 throw new Error("initializeWasm() must be awaited first!");
15841         }
15842         const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
15843         // debug statements here
15844 }
15845         // void EventHandler_free(struct LDKEventHandler this_ptr);
15846 /* @internal */
15847 export function EventHandler_free(this_ptr: number): void {
15848         if(!isWasmInitialized) {
15849                 throw new Error("initializeWasm() must be awaited first!");
15850         }
15851         const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
15852         // debug statements here
15853 }
15854         // void APIError_free(struct LDKAPIError this_ptr);
15855 /* @internal */
15856 export function APIError_free(this_ptr: number): void {
15857         if(!isWasmInitialized) {
15858                 throw new Error("initializeWasm() must be awaited first!");
15859         }
15860         const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
15861         // debug statements here
15862 }
15863         // uintptr_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
15864 /* @internal */
15865 export function APIError_clone_ptr(arg: number): number {
15866         if(!isWasmInitialized) {
15867                 throw new Error("initializeWasm() must be awaited first!");
15868         }
15869         const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
15870         return nativeResponseValue;
15871 }
15872         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
15873 /* @internal */
15874 export function APIError_clone(orig: number): number {
15875         if(!isWasmInitialized) {
15876                 throw new Error("initializeWasm() must be awaited first!");
15877         }
15878         const nativeResponseValue = wasm.TS_APIError_clone(orig);
15879         return nativeResponseValue;
15880 }
15881         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
15882 /* @internal */
15883 export function APIError_apimisuse_error(err: number): number {
15884         if(!isWasmInitialized) {
15885                 throw new Error("initializeWasm() must be awaited first!");
15886         }
15887         const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
15888         return nativeResponseValue;
15889 }
15890         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
15891 /* @internal */
15892 export function APIError_fee_rate_too_high(err: number, feerate: number): number {
15893         if(!isWasmInitialized) {
15894                 throw new Error("initializeWasm() must be awaited first!");
15895         }
15896         const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
15897         return nativeResponseValue;
15898 }
15899         // struct LDKAPIError APIError_route_error(struct LDKStr err);
15900 /* @internal */
15901 export function APIError_route_error(err: number): number {
15902         if(!isWasmInitialized) {
15903                 throw new Error("initializeWasm() must be awaited first!");
15904         }
15905         const nativeResponseValue = wasm.TS_APIError_route_error(err);
15906         return nativeResponseValue;
15907 }
15908         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
15909 /* @internal */
15910 export function APIError_channel_unavailable(err: number): number {
15911         if(!isWasmInitialized) {
15912                 throw new Error("initializeWasm() must be awaited first!");
15913         }
15914         const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
15915         return nativeResponseValue;
15916 }
15917         // struct LDKAPIError APIError_monitor_update_failed(void);
15918 /* @internal */
15919 export function APIError_monitor_update_failed(): number {
15920         if(!isWasmInitialized) {
15921                 throw new Error("initializeWasm() must be awaited first!");
15922         }
15923         const nativeResponseValue = wasm.TS_APIError_monitor_update_failed();
15924         return nativeResponseValue;
15925 }
15926         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
15927 /* @internal */
15928 export function APIError_incompatible_shutdown_script(script: number): number {
15929         if(!isWasmInitialized) {
15930                 throw new Error("initializeWasm() must be awaited first!");
15931         }
15932         const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
15933         return nativeResponseValue;
15934 }
15935         // void BigSize_free(struct LDKBigSize this_obj);
15936 /* @internal */
15937 export function BigSize_free(this_obj: number): void {
15938         if(!isWasmInitialized) {
15939                 throw new Error("initializeWasm() must be awaited first!");
15940         }
15941         const nativeResponseValue = wasm.TS_BigSize_free(this_obj);
15942         // debug statements here
15943 }
15944         // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
15945 /* @internal */
15946 export function BigSize_get_a(this_ptr: number): bigint {
15947         if(!isWasmInitialized) {
15948                 throw new Error("initializeWasm() must be awaited first!");
15949         }
15950         const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr);
15951         return nativeResponseValue;
15952 }
15953         // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
15954 /* @internal */
15955 export function BigSize_set_a(this_ptr: number, val: bigint): void {
15956         if(!isWasmInitialized) {
15957                 throw new Error("initializeWasm() must be awaited first!");
15958         }
15959         const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val);
15960         // debug statements here
15961 }
15962         // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
15963 /* @internal */
15964 export function BigSize_new(a_arg: bigint): number {
15965         if(!isWasmInitialized) {
15966                 throw new Error("initializeWasm() must be awaited first!");
15967         }
15968         const nativeResponseValue = wasm.TS_BigSize_new(a_arg);
15969         return nativeResponseValue;
15970 }
15971         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
15972 /* @internal */
15973 export function sign(msg: number, sk: number): number {
15974         if(!isWasmInitialized) {
15975                 throw new Error("initializeWasm() must be awaited first!");
15976         }
15977         const nativeResponseValue = wasm.TS_sign(msg, sk);
15978         return nativeResponseValue;
15979 }
15980         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
15981 /* @internal */
15982 export function recover_pk(msg: number, sig: number): number {
15983         if(!isWasmInitialized) {
15984                 throw new Error("initializeWasm() must be awaited first!");
15985         }
15986         const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
15987         return nativeResponseValue;
15988 }
15989         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
15990 /* @internal */
15991 export function verify(msg: number, sig: number, pk: number): boolean {
15992         if(!isWasmInitialized) {
15993                 throw new Error("initializeWasm() must be awaited first!");
15994         }
15995         const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
15996         return nativeResponseValue;
15997 }
15998         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
15999 /* @internal */
16000 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
16001         if(!isWasmInitialized) {
16002                 throw new Error("initializeWasm() must be awaited first!");
16003         }
16004         const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
16005         return nativeResponseValue;
16006 }
16007         // void Persister_free(struct LDKPersister this_ptr);
16008 /* @internal */
16009 export function Persister_free(this_ptr: number): void {
16010         if(!isWasmInitialized) {
16011                 throw new Error("initializeWasm() must be awaited first!");
16012         }
16013         const nativeResponseValue = wasm.TS_Persister_free(this_ptr);
16014         // debug statements here
16015 }
16016         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
16017 /* @internal */
16018 export function Level_clone(orig: number): Level {
16019         if(!isWasmInitialized) {
16020                 throw new Error("initializeWasm() must be awaited first!");
16021         }
16022         const nativeResponseValue = wasm.TS_Level_clone(orig);
16023         return nativeResponseValue;
16024 }
16025         // enum LDKLevel Level_gossip(void);
16026 /* @internal */
16027 export function Level_gossip(): Level {
16028         if(!isWasmInitialized) {
16029                 throw new Error("initializeWasm() must be awaited first!");
16030         }
16031         const nativeResponseValue = wasm.TS_Level_gossip();
16032         return nativeResponseValue;
16033 }
16034         // enum LDKLevel Level_trace(void);
16035 /* @internal */
16036 export function Level_trace(): Level {
16037         if(!isWasmInitialized) {
16038                 throw new Error("initializeWasm() must be awaited first!");
16039         }
16040         const nativeResponseValue = wasm.TS_Level_trace();
16041         return nativeResponseValue;
16042 }
16043         // enum LDKLevel Level_debug(void);
16044 /* @internal */
16045 export function Level_debug(): Level {
16046         if(!isWasmInitialized) {
16047                 throw new Error("initializeWasm() must be awaited first!");
16048         }
16049         const nativeResponseValue = wasm.TS_Level_debug();
16050         return nativeResponseValue;
16051 }
16052         // enum LDKLevel Level_info(void);
16053 /* @internal */
16054 export function Level_info(): Level {
16055         if(!isWasmInitialized) {
16056                 throw new Error("initializeWasm() must be awaited first!");
16057         }
16058         const nativeResponseValue = wasm.TS_Level_info();
16059         return nativeResponseValue;
16060 }
16061         // enum LDKLevel Level_warn(void);
16062 /* @internal */
16063 export function Level_warn(): Level {
16064         if(!isWasmInitialized) {
16065                 throw new Error("initializeWasm() must be awaited first!");
16066         }
16067         const nativeResponseValue = wasm.TS_Level_warn();
16068         return nativeResponseValue;
16069 }
16070         // enum LDKLevel Level_error(void);
16071 /* @internal */
16072 export function Level_error(): Level {
16073         if(!isWasmInitialized) {
16074                 throw new Error("initializeWasm() must be awaited first!");
16075         }
16076         const nativeResponseValue = wasm.TS_Level_error();
16077         return nativeResponseValue;
16078 }
16079         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
16080 /* @internal */
16081 export function Level_eq(a: number, b: number): boolean {
16082         if(!isWasmInitialized) {
16083                 throw new Error("initializeWasm() must be awaited first!");
16084         }
16085         const nativeResponseValue = wasm.TS_Level_eq(a, b);
16086         return nativeResponseValue;
16087 }
16088         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
16089 /* @internal */
16090 export function Level_hash(o: number): bigint {
16091         if(!isWasmInitialized) {
16092                 throw new Error("initializeWasm() must be awaited first!");
16093         }
16094         const nativeResponseValue = wasm.TS_Level_hash(o);
16095         return nativeResponseValue;
16096 }
16097         // MUST_USE_RES enum LDKLevel Level_max(void);
16098 /* @internal */
16099 export function Level_max(): Level {
16100         if(!isWasmInitialized) {
16101                 throw new Error("initializeWasm() must be awaited first!");
16102         }
16103         const nativeResponseValue = wasm.TS_Level_max();
16104         return nativeResponseValue;
16105 }
16106         // void Record_free(struct LDKRecord this_obj);
16107 /* @internal */
16108 export function Record_free(this_obj: number): void {
16109         if(!isWasmInitialized) {
16110                 throw new Error("initializeWasm() must be awaited first!");
16111         }
16112         const nativeResponseValue = wasm.TS_Record_free(this_obj);
16113         // debug statements here
16114 }
16115         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
16116 /* @internal */
16117 export function Record_get_level(this_ptr: number): Level {
16118         if(!isWasmInitialized) {
16119                 throw new Error("initializeWasm() must be awaited first!");
16120         }
16121         const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
16122         return nativeResponseValue;
16123 }
16124         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
16125 /* @internal */
16126 export function Record_set_level(this_ptr: number, val: Level): void {
16127         if(!isWasmInitialized) {
16128                 throw new Error("initializeWasm() must be awaited first!");
16129         }
16130         const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
16131         // debug statements here
16132 }
16133         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
16134 /* @internal */
16135 export function Record_get_args(this_ptr: number): number {
16136         if(!isWasmInitialized) {
16137                 throw new Error("initializeWasm() must be awaited first!");
16138         }
16139         const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
16140         return nativeResponseValue;
16141 }
16142         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
16143 /* @internal */
16144 export function Record_set_args(this_ptr: number, val: number): void {
16145         if(!isWasmInitialized) {
16146                 throw new Error("initializeWasm() must be awaited first!");
16147         }
16148         const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
16149         // debug statements here
16150 }
16151         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
16152 /* @internal */
16153 export function Record_get_module_path(this_ptr: number): number {
16154         if(!isWasmInitialized) {
16155                 throw new Error("initializeWasm() must be awaited first!");
16156         }
16157         const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
16158         return nativeResponseValue;
16159 }
16160         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
16161 /* @internal */
16162 export function Record_set_module_path(this_ptr: number, val: number): void {
16163         if(!isWasmInitialized) {
16164                 throw new Error("initializeWasm() must be awaited first!");
16165         }
16166         const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
16167         // debug statements here
16168 }
16169         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
16170 /* @internal */
16171 export function Record_get_file(this_ptr: number): number {
16172         if(!isWasmInitialized) {
16173                 throw new Error("initializeWasm() must be awaited first!");
16174         }
16175         const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
16176         return nativeResponseValue;
16177 }
16178         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
16179 /* @internal */
16180 export function Record_set_file(this_ptr: number, val: number): void {
16181         if(!isWasmInitialized) {
16182                 throw new Error("initializeWasm() must be awaited first!");
16183         }
16184         const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
16185         // debug statements here
16186 }
16187         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
16188 /* @internal */
16189 export function Record_get_line(this_ptr: number): number {
16190         if(!isWasmInitialized) {
16191                 throw new Error("initializeWasm() must be awaited first!");
16192         }
16193         const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
16194         return nativeResponseValue;
16195 }
16196         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
16197 /* @internal */
16198 export function Record_set_line(this_ptr: number, val: number): void {
16199         if(!isWasmInitialized) {
16200                 throw new Error("initializeWasm() must be awaited first!");
16201         }
16202         const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
16203         // debug statements here
16204 }
16205         // uintptr_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
16206 /* @internal */
16207 export function Record_clone_ptr(arg: number): number {
16208         if(!isWasmInitialized) {
16209                 throw new Error("initializeWasm() must be awaited first!");
16210         }
16211         const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
16212         return nativeResponseValue;
16213 }
16214         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
16215 /* @internal */
16216 export function Record_clone(orig: number): number {
16217         if(!isWasmInitialized) {
16218                 throw new Error("initializeWasm() must be awaited first!");
16219         }
16220         const nativeResponseValue = wasm.TS_Record_clone(orig);
16221         return nativeResponseValue;
16222 }
16223         // void Logger_free(struct LDKLogger this_ptr);
16224 /* @internal */
16225 export function Logger_free(this_ptr: number): void {
16226         if(!isWasmInitialized) {
16227                 throw new Error("initializeWasm() must be awaited first!");
16228         }
16229         const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
16230         // debug statements here
16231 }
16232         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
16233 /* @internal */
16234 export function ChannelHandshakeConfig_free(this_obj: number): void {
16235         if(!isWasmInitialized) {
16236                 throw new Error("initializeWasm() must be awaited first!");
16237         }
16238         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
16239         // debug statements here
16240 }
16241         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16242 /* @internal */
16243 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: number): number {
16244         if(!isWasmInitialized) {
16245                 throw new Error("initializeWasm() must be awaited first!");
16246         }
16247         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
16248         return nativeResponseValue;
16249 }
16250         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
16251 /* @internal */
16252 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: number, val: number): void {
16253         if(!isWasmInitialized) {
16254                 throw new Error("initializeWasm() must be awaited first!");
16255         }
16256         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
16257         // debug statements here
16258 }
16259         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16260 /* @internal */
16261 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: number): number {
16262         if(!isWasmInitialized) {
16263                 throw new Error("initializeWasm() must be awaited first!");
16264         }
16265         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
16266         return nativeResponseValue;
16267 }
16268         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
16269 /* @internal */
16270 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: number, val: number): void {
16271         if(!isWasmInitialized) {
16272                 throw new Error("initializeWasm() must be awaited first!");
16273         }
16274         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
16275         // debug statements here
16276 }
16277         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16278 /* @internal */
16279 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: number): bigint {
16280         if(!isWasmInitialized) {
16281                 throw new Error("initializeWasm() must be awaited first!");
16282         }
16283         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
16284         return nativeResponseValue;
16285 }
16286         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
16287 /* @internal */
16288 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: number, val: bigint): void {
16289         if(!isWasmInitialized) {
16290                 throw new Error("initializeWasm() must be awaited first!");
16291         }
16292         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
16293         // debug statements here
16294 }
16295         // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16296 /* @internal */
16297 export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: number): number {
16298         if(!isWasmInitialized) {
16299                 throw new Error("initializeWasm() must be awaited first!");
16300         }
16301         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr);
16302         return nativeResponseValue;
16303 }
16304         // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
16305 /* @internal */
16306 export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: number, val: number): void {
16307         if(!isWasmInitialized) {
16308                 throw new Error("initializeWasm() must be awaited first!");
16309         }
16310         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val);
16311         // debug statements here
16312 }
16313         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16314 /* @internal */
16315 export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: number): boolean {
16316         if(!isWasmInitialized) {
16317                 throw new Error("initializeWasm() must be awaited first!");
16318         }
16319         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr);
16320         return nativeResponseValue;
16321 }
16322         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16323 /* @internal */
16324 export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: number, val: boolean): void {
16325         if(!isWasmInitialized) {
16326                 throw new Error("initializeWasm() must be awaited first!");
16327         }
16328         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val);
16329         // debug statements here
16330 }
16331         // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16332 /* @internal */
16333 export function ChannelHandshakeConfig_get_announced_channel(this_ptr: number): boolean {
16334         if(!isWasmInitialized) {
16335                 throw new Error("initializeWasm() must be awaited first!");
16336         }
16337         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_announced_channel(this_ptr);
16338         return nativeResponseValue;
16339 }
16340         // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16341 /* @internal */
16342 export function ChannelHandshakeConfig_set_announced_channel(this_ptr: number, val: boolean): void {
16343         if(!isWasmInitialized) {
16344                 throw new Error("initializeWasm() must be awaited first!");
16345         }
16346         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_announced_channel(this_ptr, val);
16347         // debug statements here
16348 }
16349         // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16350 /* @internal */
16351 export function ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr: number): boolean {
16352         if(!isWasmInitialized) {
16353                 throw new Error("initializeWasm() must be awaited first!");
16354         }
16355         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
16356         return nativeResponseValue;
16357 }
16358         // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16359 /* @internal */
16360 export function ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr: number, val: boolean): void {
16361         if(!isWasmInitialized) {
16362                 throw new Error("initializeWasm() must be awaited first!");
16363         }
16364         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
16365         // debug statements here
16366 }
16367         // 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);
16368 /* @internal */
16369 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 {
16370         if(!isWasmInitialized) {
16371                 throw new Error("initializeWasm() must be awaited first!");
16372         }
16373         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);
16374         return nativeResponseValue;
16375 }
16376         // uintptr_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
16377 /* @internal */
16378 export function ChannelHandshakeConfig_clone_ptr(arg: number): number {
16379         if(!isWasmInitialized) {
16380                 throw new Error("initializeWasm() must be awaited first!");
16381         }
16382         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
16383         return nativeResponseValue;
16384 }
16385         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
16386 /* @internal */
16387 export function ChannelHandshakeConfig_clone(orig: number): number {
16388         if(!isWasmInitialized) {
16389                 throw new Error("initializeWasm() must be awaited first!");
16390         }
16391         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
16392         return nativeResponseValue;
16393 }
16394         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
16395 /* @internal */
16396 export function ChannelHandshakeConfig_default(): number {
16397         if(!isWasmInitialized) {
16398                 throw new Error("initializeWasm() must be awaited first!");
16399         }
16400         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
16401         return nativeResponseValue;
16402 }
16403         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
16404 /* @internal */
16405 export function ChannelHandshakeLimits_free(this_obj: number): void {
16406         if(!isWasmInitialized) {
16407                 throw new Error("initializeWasm() must be awaited first!");
16408         }
16409         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
16410         // debug statements here
16411 }
16412         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16413 /* @internal */
16414 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: number): bigint {
16415         if(!isWasmInitialized) {
16416                 throw new Error("initializeWasm() must be awaited first!");
16417         }
16418         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
16419         return nativeResponseValue;
16420 }
16421         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16422 /* @internal */
16423 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: number, val: bigint): void {
16424         if(!isWasmInitialized) {
16425                 throw new Error("initializeWasm() must be awaited first!");
16426         }
16427         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
16428         // debug statements here
16429 }
16430         // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16431 /* @internal */
16432 export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: number): bigint {
16433         if(!isWasmInitialized) {
16434                 throw new Error("initializeWasm() must be awaited first!");
16435         }
16436         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr);
16437         return nativeResponseValue;
16438 }
16439         // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16440 /* @internal */
16441 export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: number, val: bigint): void {
16442         if(!isWasmInitialized) {
16443                 throw new Error("initializeWasm() must be awaited first!");
16444         }
16445         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val);
16446         // debug statements here
16447 }
16448         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16449 /* @internal */
16450 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: number): bigint {
16451         if(!isWasmInitialized) {
16452                 throw new Error("initializeWasm() must be awaited first!");
16453         }
16454         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
16455         return nativeResponseValue;
16456 }
16457         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16458 /* @internal */
16459 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: number, val: bigint): void {
16460         if(!isWasmInitialized) {
16461                 throw new Error("initializeWasm() must be awaited first!");
16462         }
16463         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
16464         // debug statements here
16465 }
16466         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16467 /* @internal */
16468 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
16469         if(!isWasmInitialized) {
16470                 throw new Error("initializeWasm() must be awaited first!");
16471         }
16472         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
16473         return nativeResponseValue;
16474 }
16475         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16476 /* @internal */
16477 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
16478         if(!isWasmInitialized) {
16479                 throw new Error("initializeWasm() must be awaited first!");
16480         }
16481         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
16482         // debug statements here
16483 }
16484         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16485 /* @internal */
16486 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: number): bigint {
16487         if(!isWasmInitialized) {
16488                 throw new Error("initializeWasm() must be awaited first!");
16489         }
16490         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
16491         return nativeResponseValue;
16492 }
16493         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16494 /* @internal */
16495 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
16496         if(!isWasmInitialized) {
16497                 throw new Error("initializeWasm() must be awaited first!");
16498         }
16499         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
16500         // debug statements here
16501 }
16502         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16503 /* @internal */
16504 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: number): number {
16505         if(!isWasmInitialized) {
16506                 throw new Error("initializeWasm() must be awaited first!");
16507         }
16508         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
16509         return nativeResponseValue;
16510 }
16511         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
16512 /* @internal */
16513 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: number, val: number): void {
16514         if(!isWasmInitialized) {
16515                 throw new Error("initializeWasm() must be awaited first!");
16516         }
16517         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
16518         // debug statements here
16519 }
16520         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16521 /* @internal */
16522 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: number): number {
16523         if(!isWasmInitialized) {
16524                 throw new Error("initializeWasm() must be awaited first!");
16525         }
16526         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
16527         return nativeResponseValue;
16528 }
16529         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
16530 /* @internal */
16531 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: number, val: number): void {
16532         if(!isWasmInitialized) {
16533                 throw new Error("initializeWasm() must be awaited first!");
16534         }
16535         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
16536         // debug statements here
16537 }
16538         // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16539 /* @internal */
16540 export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: number): boolean {
16541         if(!isWasmInitialized) {
16542                 throw new Error("initializeWasm() must be awaited first!");
16543         }
16544         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr);
16545         return nativeResponseValue;
16546 }
16547         // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
16548 /* @internal */
16549 export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: number, val: boolean): void {
16550         if(!isWasmInitialized) {
16551                 throw new Error("initializeWasm() must be awaited first!");
16552         }
16553         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val);
16554         // debug statements here
16555 }
16556         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16557 /* @internal */
16558 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: number): boolean {
16559         if(!isWasmInitialized) {
16560                 throw new Error("initializeWasm() must be awaited first!");
16561         }
16562         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
16563         return nativeResponseValue;
16564 }
16565         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
16566 /* @internal */
16567 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: number, val: boolean): void {
16568         if(!isWasmInitialized) {
16569                 throw new Error("initializeWasm() must be awaited first!");
16570         }
16571         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
16572         // debug statements here
16573 }
16574         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16575 /* @internal */
16576 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: number): number {
16577         if(!isWasmInitialized) {
16578                 throw new Error("initializeWasm() must be awaited first!");
16579         }
16580         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
16581         return nativeResponseValue;
16582 }
16583         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
16584 /* @internal */
16585 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: number, val: number): void {
16586         if(!isWasmInitialized) {
16587                 throw new Error("initializeWasm() must be awaited first!");
16588         }
16589         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
16590         // debug statements here
16591 }
16592         // 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);
16593 /* @internal */
16594 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 {
16595         if(!isWasmInitialized) {
16596                 throw new Error("initializeWasm() must be awaited first!");
16597         }
16598         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);
16599         return nativeResponseValue;
16600 }
16601         // uintptr_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
16602 /* @internal */
16603 export function ChannelHandshakeLimits_clone_ptr(arg: number): number {
16604         if(!isWasmInitialized) {
16605                 throw new Error("initializeWasm() must be awaited first!");
16606         }
16607         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
16608         return nativeResponseValue;
16609 }
16610         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
16611 /* @internal */
16612 export function ChannelHandshakeLimits_clone(orig: number): number {
16613         if(!isWasmInitialized) {
16614                 throw new Error("initializeWasm() must be awaited first!");
16615         }
16616         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
16617         return nativeResponseValue;
16618 }
16619         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
16620 /* @internal */
16621 export function ChannelHandshakeLimits_default(): number {
16622         if(!isWasmInitialized) {
16623                 throw new Error("initializeWasm() must be awaited first!");
16624         }
16625         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
16626         return nativeResponseValue;
16627 }
16628         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
16629 /* @internal */
16630 export function ChannelConfig_free(this_obj: number): void {
16631         if(!isWasmInitialized) {
16632                 throw new Error("initializeWasm() must be awaited first!");
16633         }
16634         const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
16635         // debug statements here
16636 }
16637         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16638 /* @internal */
16639 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: number): number {
16640         if(!isWasmInitialized) {
16641                 throw new Error("initializeWasm() must be awaited first!");
16642         }
16643         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
16644         return nativeResponseValue;
16645 }
16646         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
16647 /* @internal */
16648 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: number, val: number): void {
16649         if(!isWasmInitialized) {
16650                 throw new Error("initializeWasm() must be awaited first!");
16651         }
16652         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
16653         // debug statements here
16654 }
16655         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16656 /* @internal */
16657 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: number): number {
16658         if(!isWasmInitialized) {
16659                 throw new Error("initializeWasm() must be awaited first!");
16660         }
16661         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
16662         return nativeResponseValue;
16663 }
16664         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
16665 /* @internal */
16666 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: number, val: number): void {
16667         if(!isWasmInitialized) {
16668                 throw new Error("initializeWasm() must be awaited first!");
16669         }
16670         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
16671         // debug statements here
16672 }
16673         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16674 /* @internal */
16675 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: number): number {
16676         if(!isWasmInitialized) {
16677                 throw new Error("initializeWasm() must be awaited first!");
16678         }
16679         const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
16680         return nativeResponseValue;
16681 }
16682         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
16683 /* @internal */
16684 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: number, val: number): void {
16685         if(!isWasmInitialized) {
16686                 throw new Error("initializeWasm() must be awaited first!");
16687         }
16688         const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
16689         // debug statements here
16690 }
16691         // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16692 /* @internal */
16693 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: number): bigint {
16694         if(!isWasmInitialized) {
16695                 throw new Error("initializeWasm() must be awaited first!");
16696         }
16697         const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
16698         return nativeResponseValue;
16699 }
16700         // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16701 /* @internal */
16702 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: number, val: bigint): void {
16703         if(!isWasmInitialized) {
16704                 throw new Error("initializeWasm() must be awaited first!");
16705         }
16706         const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
16707         // debug statements here
16708 }
16709         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16710 /* @internal */
16711 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: number): bigint {
16712         if(!isWasmInitialized) {
16713                 throw new Error("initializeWasm() must be awaited first!");
16714         }
16715         const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
16716         return nativeResponseValue;
16717 }
16718         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16719 /* @internal */
16720 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: number, val: bigint): void {
16721         if(!isWasmInitialized) {
16722                 throw new Error("initializeWasm() must be awaited first!");
16723         }
16724         const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
16725         // debug statements here
16726 }
16727         // 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);
16728 /* @internal */
16729 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 {
16730         if(!isWasmInitialized) {
16731                 throw new Error("initializeWasm() must be awaited first!");
16732         }
16733         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);
16734         return nativeResponseValue;
16735 }
16736         // uintptr_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
16737 /* @internal */
16738 export function ChannelConfig_clone_ptr(arg: number): number {
16739         if(!isWasmInitialized) {
16740                 throw new Error("initializeWasm() must be awaited first!");
16741         }
16742         const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
16743         return nativeResponseValue;
16744 }
16745         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
16746 /* @internal */
16747 export function ChannelConfig_clone(orig: number): number {
16748         if(!isWasmInitialized) {
16749                 throw new Error("initializeWasm() must be awaited first!");
16750         }
16751         const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
16752         return nativeResponseValue;
16753 }
16754         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
16755 /* @internal */
16756 export function ChannelConfig_default(): number {
16757         if(!isWasmInitialized) {
16758                 throw new Error("initializeWasm() must be awaited first!");
16759         }
16760         const nativeResponseValue = wasm.TS_ChannelConfig_default();
16761         return nativeResponseValue;
16762 }
16763         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
16764 /* @internal */
16765 export function ChannelConfig_write(obj: number): number {
16766         if(!isWasmInitialized) {
16767                 throw new Error("initializeWasm() must be awaited first!");
16768         }
16769         const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
16770         return nativeResponseValue;
16771 }
16772         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
16773 /* @internal */
16774 export function ChannelConfig_read(ser: number): number {
16775         if(!isWasmInitialized) {
16776                 throw new Error("initializeWasm() must be awaited first!");
16777         }
16778         const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
16779         return nativeResponseValue;
16780 }
16781         // void UserConfig_free(struct LDKUserConfig this_obj);
16782 /* @internal */
16783 export function UserConfig_free(this_obj: number): void {
16784         if(!isWasmInitialized) {
16785                 throw new Error("initializeWasm() must be awaited first!");
16786         }
16787         const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
16788         // debug statements here
16789 }
16790         // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16791 /* @internal */
16792 export function UserConfig_get_channel_handshake_config(this_ptr: number): number {
16793         if(!isWasmInitialized) {
16794                 throw new Error("initializeWasm() must be awaited first!");
16795         }
16796         const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_config(this_ptr);
16797         return nativeResponseValue;
16798 }
16799         // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
16800 /* @internal */
16801 export function UserConfig_set_channel_handshake_config(this_ptr: number, val: number): void {
16802         if(!isWasmInitialized) {
16803                 throw new Error("initializeWasm() must be awaited first!");
16804         }
16805         const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_config(this_ptr, val);
16806         // debug statements here
16807 }
16808         // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16809 /* @internal */
16810 export function UserConfig_get_channel_handshake_limits(this_ptr: number): number {
16811         if(!isWasmInitialized) {
16812                 throw new Error("initializeWasm() must be awaited first!");
16813         }
16814         const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_limits(this_ptr);
16815         return nativeResponseValue;
16816 }
16817         // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
16818 /* @internal */
16819 export function UserConfig_set_channel_handshake_limits(this_ptr: number, val: number): void {
16820         if(!isWasmInitialized) {
16821                 throw new Error("initializeWasm() must be awaited first!");
16822         }
16823         const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_limits(this_ptr, val);
16824         // debug statements here
16825 }
16826         // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16827 /* @internal */
16828 export function UserConfig_get_channel_config(this_ptr: number): number {
16829         if(!isWasmInitialized) {
16830                 throw new Error("initializeWasm() must be awaited first!");
16831         }
16832         const nativeResponseValue = wasm.TS_UserConfig_get_channel_config(this_ptr);
16833         return nativeResponseValue;
16834 }
16835         // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
16836 /* @internal */
16837 export function UserConfig_set_channel_config(this_ptr: number, val: number): void {
16838         if(!isWasmInitialized) {
16839                 throw new Error("initializeWasm() must be awaited first!");
16840         }
16841         const nativeResponseValue = wasm.TS_UserConfig_set_channel_config(this_ptr, val);
16842         // debug statements here
16843 }
16844         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16845 /* @internal */
16846 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: number): boolean {
16847         if(!isWasmInitialized) {
16848                 throw new Error("initializeWasm() must be awaited first!");
16849         }
16850         const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
16851         return nativeResponseValue;
16852 }
16853         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16854 /* @internal */
16855 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: number, val: boolean): void {
16856         if(!isWasmInitialized) {
16857                 throw new Error("initializeWasm() must be awaited first!");
16858         }
16859         const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
16860         // debug statements here
16861 }
16862         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16863 /* @internal */
16864 export function UserConfig_get_accept_inbound_channels(this_ptr: number): boolean {
16865         if(!isWasmInitialized) {
16866                 throw new Error("initializeWasm() must be awaited first!");
16867         }
16868         const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
16869         return nativeResponseValue;
16870 }
16871         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16872 /* @internal */
16873 export function UserConfig_set_accept_inbound_channels(this_ptr: number, val: boolean): void {
16874         if(!isWasmInitialized) {
16875                 throw new Error("initializeWasm() must be awaited first!");
16876         }
16877         const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
16878         // debug statements here
16879 }
16880         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16881 /* @internal */
16882 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: number): boolean {
16883         if(!isWasmInitialized) {
16884                 throw new Error("initializeWasm() must be awaited first!");
16885         }
16886         const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
16887         return nativeResponseValue;
16888 }
16889         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16890 /* @internal */
16891 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: number, val: boolean): void {
16892         if(!isWasmInitialized) {
16893                 throw new Error("initializeWasm() must be awaited first!");
16894         }
16895         const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
16896         // debug statements here
16897 }
16898         // 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);
16899 /* @internal */
16900 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 {
16901         if(!isWasmInitialized) {
16902                 throw new Error("initializeWasm() must be awaited first!");
16903         }
16904         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);
16905         return nativeResponseValue;
16906 }
16907         // uintptr_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
16908 /* @internal */
16909 export function UserConfig_clone_ptr(arg: number): number {
16910         if(!isWasmInitialized) {
16911                 throw new Error("initializeWasm() must be awaited first!");
16912         }
16913         const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
16914         return nativeResponseValue;
16915 }
16916         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
16917 /* @internal */
16918 export function UserConfig_clone(orig: number): number {
16919         if(!isWasmInitialized) {
16920                 throw new Error("initializeWasm() must be awaited first!");
16921         }
16922         const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
16923         return nativeResponseValue;
16924 }
16925         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
16926 /* @internal */
16927 export function UserConfig_default(): number {
16928         if(!isWasmInitialized) {
16929                 throw new Error("initializeWasm() must be awaited first!");
16930         }
16931         const nativeResponseValue = wasm.TS_UserConfig_default();
16932         return nativeResponseValue;
16933 }
16934         // void BestBlock_free(struct LDKBestBlock this_obj);
16935 /* @internal */
16936 export function BestBlock_free(this_obj: number): void {
16937         if(!isWasmInitialized) {
16938                 throw new Error("initializeWasm() must be awaited first!");
16939         }
16940         const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
16941         // debug statements here
16942 }
16943         // uintptr_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
16944 /* @internal */
16945 export function BestBlock_clone_ptr(arg: number): number {
16946         if(!isWasmInitialized) {
16947                 throw new Error("initializeWasm() must be awaited first!");
16948         }
16949         const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
16950         return nativeResponseValue;
16951 }
16952         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
16953 /* @internal */
16954 export function BestBlock_clone(orig: number): number {
16955         if(!isWasmInitialized) {
16956                 throw new Error("initializeWasm() must be awaited first!");
16957         }
16958         const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
16959         return nativeResponseValue;
16960 }
16961         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
16962 /* @internal */
16963 export function BestBlock_from_genesis(network: Network): number {
16964         if(!isWasmInitialized) {
16965                 throw new Error("initializeWasm() must be awaited first!");
16966         }
16967         const nativeResponseValue = wasm.TS_BestBlock_from_genesis(network);
16968         return nativeResponseValue;
16969 }
16970         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
16971 /* @internal */
16972 export function BestBlock_new(block_hash: number, height: number): number {
16973         if(!isWasmInitialized) {
16974                 throw new Error("initializeWasm() must be awaited first!");
16975         }
16976         const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
16977         return nativeResponseValue;
16978 }
16979         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
16980 /* @internal */
16981 export function BestBlock_block_hash(this_arg: number): number {
16982         if(!isWasmInitialized) {
16983                 throw new Error("initializeWasm() must be awaited first!");
16984         }
16985         const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
16986         return nativeResponseValue;
16987 }
16988         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
16989 /* @internal */
16990 export function BestBlock_height(this_arg: number): number {
16991         if(!isWasmInitialized) {
16992                 throw new Error("initializeWasm() must be awaited first!");
16993         }
16994         const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
16995         return nativeResponseValue;
16996 }
16997         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
16998 /* @internal */
16999 export function AccessError_clone(orig: number): AccessError {
17000         if(!isWasmInitialized) {
17001                 throw new Error("initializeWasm() must be awaited first!");
17002         }
17003         const nativeResponseValue = wasm.TS_AccessError_clone(orig);
17004         return nativeResponseValue;
17005 }
17006         // enum LDKAccessError AccessError_unknown_chain(void);
17007 /* @internal */
17008 export function AccessError_unknown_chain(): AccessError {
17009         if(!isWasmInitialized) {
17010                 throw new Error("initializeWasm() must be awaited first!");
17011         }
17012         const nativeResponseValue = wasm.TS_AccessError_unknown_chain();
17013         return nativeResponseValue;
17014 }
17015         // enum LDKAccessError AccessError_unknown_tx(void);
17016 /* @internal */
17017 export function AccessError_unknown_tx(): AccessError {
17018         if(!isWasmInitialized) {
17019                 throw new Error("initializeWasm() must be awaited first!");
17020         }
17021         const nativeResponseValue = wasm.TS_AccessError_unknown_tx();
17022         return nativeResponseValue;
17023 }
17024         // void Access_free(struct LDKAccess this_ptr);
17025 /* @internal */
17026 export function Access_free(this_ptr: number): void {
17027         if(!isWasmInitialized) {
17028                 throw new Error("initializeWasm() must be awaited first!");
17029         }
17030         const nativeResponseValue = wasm.TS_Access_free(this_ptr);
17031         // debug statements here
17032 }
17033         // void Listen_free(struct LDKListen this_ptr);
17034 /* @internal */
17035 export function Listen_free(this_ptr: number): void {
17036         if(!isWasmInitialized) {
17037                 throw new Error("initializeWasm() must be awaited first!");
17038         }
17039         const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
17040         // debug statements here
17041 }
17042         // void Confirm_free(struct LDKConfirm this_ptr);
17043 /* @internal */
17044 export function Confirm_free(this_ptr: number): void {
17045         if(!isWasmInitialized) {
17046                 throw new Error("initializeWasm() must be awaited first!");
17047         }
17048         const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
17049         // debug statements here
17050 }
17051         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
17052 /* @internal */
17053 export function ChannelMonitorUpdateErr_clone(orig: number): ChannelMonitorUpdateErr {
17054         if(!isWasmInitialized) {
17055                 throw new Error("initializeWasm() must be awaited first!");
17056         }
17057         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_clone(orig);
17058         return nativeResponseValue;
17059 }
17060         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
17061 /* @internal */
17062 export function ChannelMonitorUpdateErr_temporary_failure(): ChannelMonitorUpdateErr {
17063         if(!isWasmInitialized) {
17064                 throw new Error("initializeWasm() must be awaited first!");
17065         }
17066         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_temporary_failure();
17067         return nativeResponseValue;
17068 }
17069         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
17070 /* @internal */
17071 export function ChannelMonitorUpdateErr_permanent_failure(): ChannelMonitorUpdateErr {
17072         if(!isWasmInitialized) {
17073                 throw new Error("initializeWasm() must be awaited first!");
17074         }
17075         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_permanent_failure();
17076         return nativeResponseValue;
17077 }
17078         // void Watch_free(struct LDKWatch this_ptr);
17079 /* @internal */
17080 export function Watch_free(this_ptr: number): void {
17081         if(!isWasmInitialized) {
17082                 throw new Error("initializeWasm() must be awaited first!");
17083         }
17084         const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
17085         // debug statements here
17086 }
17087         // void Filter_free(struct LDKFilter this_ptr);
17088 /* @internal */
17089 export function Filter_free(this_ptr: number): void {
17090         if(!isWasmInitialized) {
17091                 throw new Error("initializeWasm() must be awaited first!");
17092         }
17093         const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
17094         // debug statements here
17095 }
17096         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
17097 /* @internal */
17098 export function WatchedOutput_free(this_obj: number): void {
17099         if(!isWasmInitialized) {
17100                 throw new Error("initializeWasm() must be awaited first!");
17101         }
17102         const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
17103         // debug statements here
17104 }
17105         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
17106 /* @internal */
17107 export function WatchedOutput_get_block_hash(this_ptr: number): number {
17108         if(!isWasmInitialized) {
17109                 throw new Error("initializeWasm() must be awaited first!");
17110         }
17111         const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
17112         return nativeResponseValue;
17113 }
17114         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17115 /* @internal */
17116 export function WatchedOutput_set_block_hash(this_ptr: number, val: number): void {
17117         if(!isWasmInitialized) {
17118                 throw new Error("initializeWasm() must be awaited first!");
17119         }
17120         const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
17121         // debug statements here
17122 }
17123         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
17124 /* @internal */
17125 export function WatchedOutput_get_outpoint(this_ptr: number): number {
17126         if(!isWasmInitialized) {
17127                 throw new Error("initializeWasm() must be awaited first!");
17128         }
17129         const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
17130         return nativeResponseValue;
17131 }
17132         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17133 /* @internal */
17134 export function WatchedOutput_set_outpoint(this_ptr: number, val: number): void {
17135         if(!isWasmInitialized) {
17136                 throw new Error("initializeWasm() must be awaited first!");
17137         }
17138         const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
17139         // debug statements here
17140 }
17141         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
17142 /* @internal */
17143 export function WatchedOutput_get_script_pubkey(this_ptr: number): number {
17144         if(!isWasmInitialized) {
17145                 throw new Error("initializeWasm() must be awaited first!");
17146         }
17147         const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
17148         return nativeResponseValue;
17149 }
17150         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
17151 /* @internal */
17152 export function WatchedOutput_set_script_pubkey(this_ptr: number, val: number): void {
17153         if(!isWasmInitialized) {
17154                 throw new Error("initializeWasm() must be awaited first!");
17155         }
17156         const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
17157         // debug statements here
17158 }
17159         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
17160 /* @internal */
17161 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: number, script_pubkey_arg: number): number {
17162         if(!isWasmInitialized) {
17163                 throw new Error("initializeWasm() must be awaited first!");
17164         }
17165         const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
17166         return nativeResponseValue;
17167 }
17168         // uintptr_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
17169 /* @internal */
17170 export function WatchedOutput_clone_ptr(arg: number): number {
17171         if(!isWasmInitialized) {
17172                 throw new Error("initializeWasm() must be awaited first!");
17173         }
17174         const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
17175         return nativeResponseValue;
17176 }
17177         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
17178 /* @internal */
17179 export function WatchedOutput_clone(orig: number): number {
17180         if(!isWasmInitialized) {
17181                 throw new Error("initializeWasm() must be awaited first!");
17182         }
17183         const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
17184         return nativeResponseValue;
17185 }
17186         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
17187 /* @internal */
17188 export function WatchedOutput_hash(o: number): bigint {
17189         if(!isWasmInitialized) {
17190                 throw new Error("initializeWasm() must be awaited first!");
17191         }
17192         const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
17193         return nativeResponseValue;
17194 }
17195         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
17196 /* @internal */
17197 export function BroadcasterInterface_free(this_ptr: number): void {
17198         if(!isWasmInitialized) {
17199                 throw new Error("initializeWasm() must be awaited first!");
17200         }
17201         const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
17202         // debug statements here
17203 }
17204         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
17205 /* @internal */
17206 export function ConfirmationTarget_clone(orig: number): ConfirmationTarget {
17207         if(!isWasmInitialized) {
17208                 throw new Error("initializeWasm() must be awaited first!");
17209         }
17210         const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
17211         return nativeResponseValue;
17212 }
17213         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
17214 /* @internal */
17215 export function ConfirmationTarget_background(): ConfirmationTarget {
17216         if(!isWasmInitialized) {
17217                 throw new Error("initializeWasm() must be awaited first!");
17218         }
17219         const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
17220         return nativeResponseValue;
17221 }
17222         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
17223 /* @internal */
17224 export function ConfirmationTarget_normal(): ConfirmationTarget {
17225         if(!isWasmInitialized) {
17226                 throw new Error("initializeWasm() must be awaited first!");
17227         }
17228         const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
17229         return nativeResponseValue;
17230 }
17231         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
17232 /* @internal */
17233 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
17234         if(!isWasmInitialized) {
17235                 throw new Error("initializeWasm() must be awaited first!");
17236         }
17237         const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
17238         return nativeResponseValue;
17239 }
17240         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
17241 /* @internal */
17242 export function ConfirmationTarget_eq(a: number, b: number): boolean {
17243         if(!isWasmInitialized) {
17244                 throw new Error("initializeWasm() must be awaited first!");
17245         }
17246         const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
17247         return nativeResponseValue;
17248 }
17249         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
17250 /* @internal */
17251 export function FeeEstimator_free(this_ptr: number): void {
17252         if(!isWasmInitialized) {
17253                 throw new Error("initializeWasm() must be awaited first!");
17254         }
17255         const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
17256         // debug statements here
17257 }
17258         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
17259 /* @internal */
17260 export function MonitorUpdateId_free(this_obj: number): void {
17261         if(!isWasmInitialized) {
17262                 throw new Error("initializeWasm() must be awaited first!");
17263         }
17264         const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
17265         // debug statements here
17266 }
17267         // uintptr_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
17268 /* @internal */
17269 export function MonitorUpdateId_clone_ptr(arg: number): number {
17270         if(!isWasmInitialized) {
17271                 throw new Error("initializeWasm() must be awaited first!");
17272         }
17273         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
17274         return nativeResponseValue;
17275 }
17276         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
17277 /* @internal */
17278 export function MonitorUpdateId_clone(orig: number): number {
17279         if(!isWasmInitialized) {
17280                 throw new Error("initializeWasm() must be awaited first!");
17281         }
17282         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
17283         return nativeResponseValue;
17284 }
17285         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
17286 /* @internal */
17287 export function MonitorUpdateId_hash(o: number): bigint {
17288         if(!isWasmInitialized) {
17289                 throw new Error("initializeWasm() must be awaited first!");
17290         }
17291         const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
17292         return nativeResponseValue;
17293 }
17294         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
17295 /* @internal */
17296 export function MonitorUpdateId_eq(a: number, b: number): boolean {
17297         if(!isWasmInitialized) {
17298                 throw new Error("initializeWasm() must be awaited first!");
17299         }
17300         const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
17301         return nativeResponseValue;
17302 }
17303         // void Persist_free(struct LDKPersist this_ptr);
17304 /* @internal */
17305 export function Persist_free(this_ptr: number): void {
17306         if(!isWasmInitialized) {
17307                 throw new Error("initializeWasm() must be awaited first!");
17308         }
17309         const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
17310         // debug statements here
17311 }
17312         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
17313 /* @internal */
17314 export function LockedChannelMonitor_free(this_obj: number): void {
17315         if(!isWasmInitialized) {
17316                 throw new Error("initializeWasm() must be awaited first!");
17317         }
17318         const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
17319         // debug statements here
17320 }
17321         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
17322 /* @internal */
17323 export function ChainMonitor_free(this_obj: number): void {
17324         if(!isWasmInitialized) {
17325                 throw new Error("initializeWasm() must be awaited first!");
17326         }
17327         const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
17328         // debug statements here
17329 }
17330         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
17331 /* @internal */
17332 export function ChainMonitor_new(chain_source: number, broadcaster: number, logger: number, feeest: number, persister: number): number {
17333         if(!isWasmInitialized) {
17334                 throw new Error("initializeWasm() must be awaited first!");
17335         }
17336         const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
17337         return nativeResponseValue;
17338 }
17339         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
17340 /* @internal */
17341 export function ChainMonitor_get_claimable_balances(this_arg: number, ignored_channels: number): number {
17342         if(!isWasmInitialized) {
17343                 throw new Error("initializeWasm() must be awaited first!");
17344         }
17345         const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
17346         return nativeResponseValue;
17347 }
17348         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
17349 /* @internal */
17350 export function ChainMonitor_get_monitor(this_arg: number, funding_txo: number): number {
17351         if(!isWasmInitialized) {
17352                 throw new Error("initializeWasm() must be awaited first!");
17353         }
17354         const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
17355         return nativeResponseValue;
17356 }
17357         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17358 /* @internal */
17359 export function ChainMonitor_list_monitors(this_arg: number): number {
17360         if(!isWasmInitialized) {
17361                 throw new Error("initializeWasm() must be awaited first!");
17362         }
17363         const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
17364         return nativeResponseValue;
17365 }
17366         // 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);
17367 /* @internal */
17368 export function ChainMonitor_channel_monitor_updated(this_arg: number, funding_txo: number, completed_update_id: number): number {
17369         if(!isWasmInitialized) {
17370                 throw new Error("initializeWasm() must be awaited first!");
17371         }
17372         const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
17373         return nativeResponseValue;
17374 }
17375         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17376 /* @internal */
17377 export function ChainMonitor_as_Listen(this_arg: number): number {
17378         if(!isWasmInitialized) {
17379                 throw new Error("initializeWasm() must be awaited first!");
17380         }
17381         const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
17382         return nativeResponseValue;
17383 }
17384         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17385 /* @internal */
17386 export function ChainMonitor_as_Confirm(this_arg: number): number {
17387         if(!isWasmInitialized) {
17388                 throw new Error("initializeWasm() must be awaited first!");
17389         }
17390         const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
17391         return nativeResponseValue;
17392 }
17393         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17394 /* @internal */
17395 export function ChainMonitor_as_Watch(this_arg: number): number {
17396         if(!isWasmInitialized) {
17397                 throw new Error("initializeWasm() must be awaited first!");
17398         }
17399         const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
17400         return nativeResponseValue;
17401 }
17402         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17403 /* @internal */
17404 export function ChainMonitor_as_EventsProvider(this_arg: number): number {
17405         if(!isWasmInitialized) {
17406                 throw new Error("initializeWasm() must be awaited first!");
17407         }
17408         const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
17409         return nativeResponseValue;
17410 }
17411         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
17412 /* @internal */
17413 export function ChannelMonitorUpdate_free(this_obj: number): void {
17414         if(!isWasmInitialized) {
17415                 throw new Error("initializeWasm() must be awaited first!");
17416         }
17417         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
17418         // debug statements here
17419 }
17420         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
17421 /* @internal */
17422 export function ChannelMonitorUpdate_get_update_id(this_ptr: number): bigint {
17423         if(!isWasmInitialized) {
17424                 throw new Error("initializeWasm() must be awaited first!");
17425         }
17426         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
17427         return nativeResponseValue;
17428 }
17429         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
17430 /* @internal */
17431 export function ChannelMonitorUpdate_set_update_id(this_ptr: number, val: bigint): void {
17432         if(!isWasmInitialized) {
17433                 throw new Error("initializeWasm() must be awaited first!");
17434         }
17435         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
17436         // debug statements here
17437 }
17438         // uintptr_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
17439 /* @internal */
17440 export function ChannelMonitorUpdate_clone_ptr(arg: number): number {
17441         if(!isWasmInitialized) {
17442                 throw new Error("initializeWasm() must be awaited first!");
17443         }
17444         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
17445         return nativeResponseValue;
17446 }
17447         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
17448 /* @internal */
17449 export function ChannelMonitorUpdate_clone(orig: number): number {
17450         if(!isWasmInitialized) {
17451                 throw new Error("initializeWasm() must be awaited first!");
17452         }
17453         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
17454         return nativeResponseValue;
17455 }
17456         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
17457 /* @internal */
17458 export function ChannelMonitorUpdate_write(obj: number): number {
17459         if(!isWasmInitialized) {
17460                 throw new Error("initializeWasm() must be awaited first!");
17461         }
17462         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
17463         return nativeResponseValue;
17464 }
17465         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
17466 /* @internal */
17467 export function ChannelMonitorUpdate_read(ser: number): number {
17468         if(!isWasmInitialized) {
17469                 throw new Error("initializeWasm() must be awaited first!");
17470         }
17471         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
17472         return nativeResponseValue;
17473 }
17474         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
17475 /* @internal */
17476 export function MonitorEvent_free(this_ptr: number): void {
17477         if(!isWasmInitialized) {
17478                 throw new Error("initializeWasm() must be awaited first!");
17479         }
17480         const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
17481         // debug statements here
17482 }
17483         // uintptr_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
17484 /* @internal */
17485 export function MonitorEvent_clone_ptr(arg: number): number {
17486         if(!isWasmInitialized) {
17487                 throw new Error("initializeWasm() must be awaited first!");
17488         }
17489         const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
17490         return nativeResponseValue;
17491 }
17492         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
17493 /* @internal */
17494 export function MonitorEvent_clone(orig: number): number {
17495         if(!isWasmInitialized) {
17496                 throw new Error("initializeWasm() must be awaited first!");
17497         }
17498         const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
17499         return nativeResponseValue;
17500 }
17501         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
17502 /* @internal */
17503 export function MonitorEvent_htlcevent(a: number): number {
17504         if(!isWasmInitialized) {
17505                 throw new Error("initializeWasm() must be awaited first!");
17506         }
17507         const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
17508         return nativeResponseValue;
17509 }
17510         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
17511 /* @internal */
17512 export function MonitorEvent_commitment_tx_confirmed(a: number): number {
17513         if(!isWasmInitialized) {
17514                 throw new Error("initializeWasm() must be awaited first!");
17515         }
17516         const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
17517         return nativeResponseValue;
17518 }
17519         // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
17520 /* @internal */
17521 export function MonitorEvent_update_completed(funding_txo: number, monitor_update_id: bigint): number {
17522         if(!isWasmInitialized) {
17523                 throw new Error("initializeWasm() must be awaited first!");
17524         }
17525         const nativeResponseValue = wasm.TS_MonitorEvent_update_completed(funding_txo, monitor_update_id);
17526         return nativeResponseValue;
17527 }
17528         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
17529 /* @internal */
17530 export function MonitorEvent_update_failed(a: number): number {
17531         if(!isWasmInitialized) {
17532                 throw new Error("initializeWasm() must be awaited first!");
17533         }
17534         const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
17535         return nativeResponseValue;
17536 }
17537         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
17538 /* @internal */
17539 export function MonitorEvent_write(obj: number): number {
17540         if(!isWasmInitialized) {
17541                 throw new Error("initializeWasm() must be awaited first!");
17542         }
17543         const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
17544         return nativeResponseValue;
17545 }
17546         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
17547 /* @internal */
17548 export function MonitorEvent_read(ser: number): number {
17549         if(!isWasmInitialized) {
17550                 throw new Error("initializeWasm() must be awaited first!");
17551         }
17552         const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
17553         return nativeResponseValue;
17554 }
17555         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
17556 /* @internal */
17557 export function HTLCUpdate_free(this_obj: number): void {
17558         if(!isWasmInitialized) {
17559                 throw new Error("initializeWasm() must be awaited first!");
17560         }
17561         const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
17562         // debug statements here
17563 }
17564         // uintptr_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
17565 /* @internal */
17566 export function HTLCUpdate_clone_ptr(arg: number): number {
17567         if(!isWasmInitialized) {
17568                 throw new Error("initializeWasm() must be awaited first!");
17569         }
17570         const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
17571         return nativeResponseValue;
17572 }
17573         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
17574 /* @internal */
17575 export function HTLCUpdate_clone(orig: number): number {
17576         if(!isWasmInitialized) {
17577                 throw new Error("initializeWasm() must be awaited first!");
17578         }
17579         const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
17580         return nativeResponseValue;
17581 }
17582         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
17583 /* @internal */
17584 export function HTLCUpdate_write(obj: number): number {
17585         if(!isWasmInitialized) {
17586                 throw new Error("initializeWasm() must be awaited first!");
17587         }
17588         const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
17589         return nativeResponseValue;
17590 }
17591         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
17592 /* @internal */
17593 export function HTLCUpdate_read(ser: number): number {
17594         if(!isWasmInitialized) {
17595                 throw new Error("initializeWasm() must be awaited first!");
17596         }
17597         const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
17598         return nativeResponseValue;
17599 }
17600         // void Balance_free(struct LDKBalance this_ptr);
17601 /* @internal */
17602 export function Balance_free(this_ptr: number): void {
17603         if(!isWasmInitialized) {
17604                 throw new Error("initializeWasm() must be awaited first!");
17605         }
17606         const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
17607         // debug statements here
17608 }
17609         // uintptr_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
17610 /* @internal */
17611 export function Balance_clone_ptr(arg: number): number {
17612         if(!isWasmInitialized) {
17613                 throw new Error("initializeWasm() must be awaited first!");
17614         }
17615         const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
17616         return nativeResponseValue;
17617 }
17618         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
17619 /* @internal */
17620 export function Balance_clone(orig: number): number {
17621         if(!isWasmInitialized) {
17622                 throw new Error("initializeWasm() must be awaited first!");
17623         }
17624         const nativeResponseValue = wasm.TS_Balance_clone(orig);
17625         return nativeResponseValue;
17626 }
17627         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
17628 /* @internal */
17629 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): number {
17630         if(!isWasmInitialized) {
17631                 throw new Error("initializeWasm() must be awaited first!");
17632         }
17633         const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
17634         return nativeResponseValue;
17635 }
17636         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
17637 /* @internal */
17638 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): number {
17639         if(!isWasmInitialized) {
17640                 throw new Error("initializeWasm() must be awaited first!");
17641         }
17642         const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
17643         return nativeResponseValue;
17644 }
17645         // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
17646 /* @internal */
17647 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): number {
17648         if(!isWasmInitialized) {
17649                 throw new Error("initializeWasm() must be awaited first!");
17650         }
17651         const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
17652         return nativeResponseValue;
17653 }
17654         // struct LDKBalance Balance_maybe_claimable_htlcawaiting_timeout(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
17655 /* @internal */
17656 export function Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis: bigint, claimable_height: number): number {
17657         if(!isWasmInitialized) {
17658                 throw new Error("initializeWasm() must be awaited first!");
17659         }
17660         const nativeResponseValue = wasm.TS_Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis, claimable_height);
17661         return nativeResponseValue;
17662 }
17663         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
17664 /* @internal */
17665 export function Balance_eq(a: number, b: number): boolean {
17666         if(!isWasmInitialized) {
17667                 throw new Error("initializeWasm() must be awaited first!");
17668         }
17669         const nativeResponseValue = wasm.TS_Balance_eq(a, b);
17670         return nativeResponseValue;
17671 }
17672         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
17673 /* @internal */
17674 export function ChannelMonitor_free(this_obj: number): void {
17675         if(!isWasmInitialized) {
17676                 throw new Error("initializeWasm() must be awaited first!");
17677         }
17678         const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
17679         // debug statements here
17680 }
17681         // uintptr_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
17682 /* @internal */
17683 export function ChannelMonitor_clone_ptr(arg: number): number {
17684         if(!isWasmInitialized) {
17685                 throw new Error("initializeWasm() must be awaited first!");
17686         }
17687         const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
17688         return nativeResponseValue;
17689 }
17690         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
17691 /* @internal */
17692 export function ChannelMonitor_clone(orig: number): number {
17693         if(!isWasmInitialized) {
17694                 throw new Error("initializeWasm() must be awaited first!");
17695         }
17696         const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
17697         return nativeResponseValue;
17698 }
17699         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
17700 /* @internal */
17701 export function ChannelMonitor_write(obj: number): number {
17702         if(!isWasmInitialized) {
17703                 throw new Error("initializeWasm() must be awaited first!");
17704         }
17705         const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
17706         return nativeResponseValue;
17707 }
17708         // 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);
17709 /* @internal */
17710 export function ChannelMonitor_update_monitor(this_arg: number, updates: number, broadcaster: number, fee_estimator: number, logger: number): number {
17711         if(!isWasmInitialized) {
17712                 throw new Error("initializeWasm() must be awaited first!");
17713         }
17714         const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
17715         return nativeResponseValue;
17716 }
17717         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17718 /* @internal */
17719 export function ChannelMonitor_get_latest_update_id(this_arg: number): bigint {
17720         if(!isWasmInitialized) {
17721                 throw new Error("initializeWasm() must be awaited first!");
17722         }
17723         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
17724         return nativeResponseValue;
17725 }
17726         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17727 /* @internal */
17728 export function ChannelMonitor_get_funding_txo(this_arg: number): number {
17729         if(!isWasmInitialized) {
17730                 throw new Error("initializeWasm() must be awaited first!");
17731         }
17732         const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
17733         return nativeResponseValue;
17734 }
17735         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17736 /* @internal */
17737 export function ChannelMonitor_get_outputs_to_watch(this_arg: number): number {
17738         if(!isWasmInitialized) {
17739                 throw new Error("initializeWasm() must be awaited first!");
17740         }
17741         const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
17742         return nativeResponseValue;
17743 }
17744         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
17745 /* @internal */
17746 export function ChannelMonitor_load_outputs_to_watch(this_arg: number, filter: number): void {
17747         if(!isWasmInitialized) {
17748                 throw new Error("initializeWasm() must be awaited first!");
17749         }
17750         const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
17751         // debug statements here
17752 }
17753         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17754 /* @internal */
17755 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: number): number {
17756         if(!isWasmInitialized) {
17757                 throw new Error("initializeWasm() must be awaited first!");
17758         }
17759         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
17760         return nativeResponseValue;
17761 }
17762         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17763 /* @internal */
17764 export function ChannelMonitor_get_and_clear_pending_events(this_arg: number): number {
17765         if(!isWasmInitialized) {
17766                 throw new Error("initializeWasm() must be awaited first!");
17767         }
17768         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
17769         return nativeResponseValue;
17770 }
17771         // 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);
17772 /* @internal */
17773 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: number, logger: number): number {
17774         if(!isWasmInitialized) {
17775                 throw new Error("initializeWasm() must be awaited first!");
17776         }
17777         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
17778         return nativeResponseValue;
17779 }
17780         // 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);
17781 /* @internal */
17782 export function ChannelMonitor_block_connected(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17783         if(!isWasmInitialized) {
17784                 throw new Error("initializeWasm() must be awaited first!");
17785         }
17786         const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17787         return nativeResponseValue;
17788 }
17789         // 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);
17790 /* @internal */
17791 export function ChannelMonitor_block_disconnected(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): void {
17792         if(!isWasmInitialized) {
17793                 throw new Error("initializeWasm() must be awaited first!");
17794         }
17795         const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
17796         // debug statements here
17797 }
17798         // 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);
17799 /* @internal */
17800 export function ChannelMonitor_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17801         if(!isWasmInitialized) {
17802                 throw new Error("initializeWasm() must be awaited first!");
17803         }
17804         const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17805         return nativeResponseValue;
17806 }
17807         // 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);
17808 /* @internal */
17809 export function ChannelMonitor_transaction_unconfirmed(this_arg: number, txid: number, broadcaster: number, fee_estimator: number, logger: number): void {
17810         if(!isWasmInitialized) {
17811                 throw new Error("initializeWasm() must be awaited first!");
17812         }
17813         const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
17814         // debug statements here
17815 }
17816         // 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);
17817 /* @internal */
17818 export function ChannelMonitor_best_block_updated(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17819         if(!isWasmInitialized) {
17820                 throw new Error("initializeWasm() must be awaited first!");
17821         }
17822         const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
17823         return nativeResponseValue;
17824 }
17825         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17826 /* @internal */
17827 export function ChannelMonitor_get_relevant_txids(this_arg: number): number {
17828         if(!isWasmInitialized) {
17829                 throw new Error("initializeWasm() must be awaited first!");
17830         }
17831         const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
17832         return nativeResponseValue;
17833 }
17834         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17835 /* @internal */
17836 export function ChannelMonitor_current_best_block(this_arg: number): number {
17837         if(!isWasmInitialized) {
17838                 throw new Error("initializeWasm() must be awaited first!");
17839         }
17840         const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
17841         return nativeResponseValue;
17842 }
17843         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17844 /* @internal */
17845 export function ChannelMonitor_get_claimable_balances(this_arg: number): number {
17846         if(!isWasmInitialized) {
17847                 throw new Error("initializeWasm() must be awaited first!");
17848         }
17849         const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
17850         return nativeResponseValue;
17851 }
17852         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
17853 /* @internal */
17854 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg: number): number {
17855         if(!isWasmInitialized) {
17856                 throw new Error("initializeWasm() must be awaited first!");
17857         }
17858         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg);
17859         return nativeResponseValue;
17860 }
17861         // void OutPoint_free(struct LDKOutPoint this_obj);
17862 /* @internal */
17863 export function OutPoint_free(this_obj: number): void {
17864         if(!isWasmInitialized) {
17865                 throw new Error("initializeWasm() must be awaited first!");
17866         }
17867         const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
17868         // debug statements here
17869 }
17870         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
17871 /* @internal */
17872 export function OutPoint_get_txid(this_ptr: number): number {
17873         if(!isWasmInitialized) {
17874                 throw new Error("initializeWasm() must be awaited first!");
17875         }
17876         const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
17877         return nativeResponseValue;
17878 }
17879         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17880 /* @internal */
17881 export function OutPoint_set_txid(this_ptr: number, val: number): void {
17882         if(!isWasmInitialized) {
17883                 throw new Error("initializeWasm() must be awaited first!");
17884         }
17885         const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
17886         // debug statements here
17887 }
17888         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
17889 /* @internal */
17890 export function OutPoint_get_index(this_ptr: number): number {
17891         if(!isWasmInitialized) {
17892                 throw new Error("initializeWasm() must be awaited first!");
17893         }
17894         const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
17895         return nativeResponseValue;
17896 }
17897         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
17898 /* @internal */
17899 export function OutPoint_set_index(this_ptr: number, val: number): void {
17900         if(!isWasmInitialized) {
17901                 throw new Error("initializeWasm() must be awaited first!");
17902         }
17903         const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
17904         // debug statements here
17905 }
17906         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
17907 /* @internal */
17908 export function OutPoint_new(txid_arg: number, index_arg: number): number {
17909         if(!isWasmInitialized) {
17910                 throw new Error("initializeWasm() must be awaited first!");
17911         }
17912         const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
17913         return nativeResponseValue;
17914 }
17915         // uintptr_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
17916 /* @internal */
17917 export function OutPoint_clone_ptr(arg: number): number {
17918         if(!isWasmInitialized) {
17919                 throw new Error("initializeWasm() must be awaited first!");
17920         }
17921         const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
17922         return nativeResponseValue;
17923 }
17924         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
17925 /* @internal */
17926 export function OutPoint_clone(orig: number): number {
17927         if(!isWasmInitialized) {
17928                 throw new Error("initializeWasm() must be awaited first!");
17929         }
17930         const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
17931         return nativeResponseValue;
17932 }
17933         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
17934 /* @internal */
17935 export function OutPoint_eq(a: number, b: number): boolean {
17936         if(!isWasmInitialized) {
17937                 throw new Error("initializeWasm() must be awaited first!");
17938         }
17939         const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
17940         return nativeResponseValue;
17941 }
17942         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
17943 /* @internal */
17944 export function OutPoint_hash(o: number): bigint {
17945         if(!isWasmInitialized) {
17946                 throw new Error("initializeWasm() must be awaited first!");
17947         }
17948         const nativeResponseValue = wasm.TS_OutPoint_hash(o);
17949         return nativeResponseValue;
17950 }
17951         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
17952 /* @internal */
17953 export function OutPoint_to_channel_id(this_arg: number): number {
17954         if(!isWasmInitialized) {
17955                 throw new Error("initializeWasm() must be awaited first!");
17956         }
17957         const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
17958         return nativeResponseValue;
17959 }
17960         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
17961 /* @internal */
17962 export function OutPoint_write(obj: number): number {
17963         if(!isWasmInitialized) {
17964                 throw new Error("initializeWasm() must be awaited first!");
17965         }
17966         const nativeResponseValue = wasm.TS_OutPoint_write(obj);
17967         return nativeResponseValue;
17968 }
17969         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
17970 /* @internal */
17971 export function OutPoint_read(ser: number): number {
17972         if(!isWasmInitialized) {
17973                 throw new Error("initializeWasm() must be awaited first!");
17974         }
17975         const nativeResponseValue = wasm.TS_OutPoint_read(ser);
17976         return nativeResponseValue;
17977 }
17978         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
17979 /* @internal */
17980 export function DelayedPaymentOutputDescriptor_free(this_obj: number): void {
17981         if(!isWasmInitialized) {
17982                 throw new Error("initializeWasm() must be awaited first!");
17983         }
17984         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
17985         // debug statements here
17986 }
17987         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17988 /* @internal */
17989 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17990         if(!isWasmInitialized) {
17991                 throw new Error("initializeWasm() must be awaited first!");
17992         }
17993         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
17994         return nativeResponseValue;
17995 }
17996         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17997 /* @internal */
17998 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17999         if(!isWasmInitialized) {
18000                 throw new Error("initializeWasm() must be awaited first!");
18001         }
18002         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
18003         // debug statements here
18004 }
18005         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18006 /* @internal */
18007 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: number): number {
18008         if(!isWasmInitialized) {
18009                 throw new Error("initializeWasm() must be awaited first!");
18010         }
18011         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
18012         return nativeResponseValue;
18013 }
18014         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18015 /* @internal */
18016 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: number, val: number): void {
18017         if(!isWasmInitialized) {
18018                 throw new Error("initializeWasm() must be awaited first!");
18019         }
18020         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
18021         // debug statements here
18022 }
18023         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18024 /* @internal */
18025 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: number): number {
18026         if(!isWasmInitialized) {
18027                 throw new Error("initializeWasm() must be awaited first!");
18028         }
18029         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
18030         return nativeResponseValue;
18031 }
18032         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
18033 /* @internal */
18034 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: number, val: number): void {
18035         if(!isWasmInitialized) {
18036                 throw new Error("initializeWasm() must be awaited first!");
18037         }
18038         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
18039         // debug statements here
18040 }
18041         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
18042 /* @internal */
18043 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
18044         if(!isWasmInitialized) {
18045                 throw new Error("initializeWasm() must be awaited first!");
18046         }
18047         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
18048         // debug statements here
18049 }
18050         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18051 /* @internal */
18052 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: number): number {
18053         if(!isWasmInitialized) {
18054                 throw new Error("initializeWasm() must be awaited first!");
18055         }
18056         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
18057         return nativeResponseValue;
18058 }
18059         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18060 /* @internal */
18061 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: number, val: number): void {
18062         if(!isWasmInitialized) {
18063                 throw new Error("initializeWasm() must be awaited first!");
18064         }
18065         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
18066         // debug statements here
18067 }
18068         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
18069 /* @internal */
18070 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
18071         if(!isWasmInitialized) {
18072                 throw new Error("initializeWasm() must be awaited first!");
18073         }
18074         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
18075         return nativeResponseValue;
18076 }
18077         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18078 /* @internal */
18079 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
18080         if(!isWasmInitialized) {
18081                 throw new Error("initializeWasm() must be awaited first!");
18082         }
18083         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
18084         // debug statements here
18085 }
18086         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18087 /* @internal */
18088 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
18089         if(!isWasmInitialized) {
18090                 throw new Error("initializeWasm() must be awaited first!");
18091         }
18092         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
18093         return nativeResponseValue;
18094 }
18095         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
18096 /* @internal */
18097 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18098         if(!isWasmInitialized) {
18099                 throw new Error("initializeWasm() must be awaited first!");
18100         }
18101         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
18102         // debug statements here
18103 }
18104         // 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);
18105 /* @internal */
18106 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 {
18107         if(!isWasmInitialized) {
18108                 throw new Error("initializeWasm() must be awaited first!");
18109         }
18110         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);
18111         return nativeResponseValue;
18112 }
18113         // uintptr_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
18114 /* @internal */
18115 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: number): number {
18116         if(!isWasmInitialized) {
18117                 throw new Error("initializeWasm() must be awaited first!");
18118         }
18119         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
18120         return nativeResponseValue;
18121 }
18122         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
18123 /* @internal */
18124 export function DelayedPaymentOutputDescriptor_clone(orig: number): number {
18125         if(!isWasmInitialized) {
18126                 throw new Error("initializeWasm() must be awaited first!");
18127         }
18128         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
18129         return nativeResponseValue;
18130 }
18131         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
18132 /* @internal */
18133 export function DelayedPaymentOutputDescriptor_write(obj: number): number {
18134         if(!isWasmInitialized) {
18135                 throw new Error("initializeWasm() must be awaited first!");
18136         }
18137         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
18138         return nativeResponseValue;
18139 }
18140         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
18141 /* @internal */
18142 export function DelayedPaymentOutputDescriptor_read(ser: number): number {
18143         if(!isWasmInitialized) {
18144                 throw new Error("initializeWasm() must be awaited first!");
18145         }
18146         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
18147         return nativeResponseValue;
18148 }
18149         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
18150 /* @internal */
18151 export function StaticPaymentOutputDescriptor_free(this_obj: number): void {
18152         if(!isWasmInitialized) {
18153                 throw new Error("initializeWasm() must be awaited first!");
18154         }
18155         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
18156         // debug statements here
18157 }
18158         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18159 /* @internal */
18160 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
18161         if(!isWasmInitialized) {
18162                 throw new Error("initializeWasm() must be awaited first!");
18163         }
18164         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
18165         return nativeResponseValue;
18166 }
18167         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
18168 /* @internal */
18169 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
18170         if(!isWasmInitialized) {
18171                 throw new Error("initializeWasm() must be awaited first!");
18172         }
18173         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
18174         // debug statements here
18175 }
18176         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
18177 /* @internal */
18178 export function StaticPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
18179         if(!isWasmInitialized) {
18180                 throw new Error("initializeWasm() must be awaited first!");
18181         }
18182         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
18183         // debug statements here
18184 }
18185         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
18186 /* @internal */
18187 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
18188         if(!isWasmInitialized) {
18189                 throw new Error("initializeWasm() must be awaited first!");
18190         }
18191         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
18192         return nativeResponseValue;
18193 }
18194         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18195 /* @internal */
18196 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
18197         if(!isWasmInitialized) {
18198                 throw new Error("initializeWasm() must be awaited first!");
18199         }
18200         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
18201         // debug statements here
18202 }
18203         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18204 /* @internal */
18205 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
18206         if(!isWasmInitialized) {
18207                 throw new Error("initializeWasm() must be awaited first!");
18208         }
18209         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
18210         return nativeResponseValue;
18211 }
18212         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
18213 /* @internal */
18214 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18215         if(!isWasmInitialized) {
18216                 throw new Error("initializeWasm() must be awaited first!");
18217         }
18218         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
18219         // debug statements here
18220 }
18221         // 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);
18222 /* @internal */
18223 export function StaticPaymentOutputDescriptor_new(outpoint_arg: number, output_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): number {
18224         if(!isWasmInitialized) {
18225                 throw new Error("initializeWasm() must be awaited first!");
18226         }
18227         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
18228         return nativeResponseValue;
18229 }
18230         // uintptr_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
18231 /* @internal */
18232 export function StaticPaymentOutputDescriptor_clone_ptr(arg: number): number {
18233         if(!isWasmInitialized) {
18234                 throw new Error("initializeWasm() must be awaited first!");
18235         }
18236         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
18237         return nativeResponseValue;
18238 }
18239         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
18240 /* @internal */
18241 export function StaticPaymentOutputDescriptor_clone(orig: number): number {
18242         if(!isWasmInitialized) {
18243                 throw new Error("initializeWasm() must be awaited first!");
18244         }
18245         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
18246         return nativeResponseValue;
18247 }
18248         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
18249 /* @internal */
18250 export function StaticPaymentOutputDescriptor_write(obj: number): number {
18251         if(!isWasmInitialized) {
18252                 throw new Error("initializeWasm() must be awaited first!");
18253         }
18254         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
18255         return nativeResponseValue;
18256 }
18257         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
18258 /* @internal */
18259 export function StaticPaymentOutputDescriptor_read(ser: number): number {
18260         if(!isWasmInitialized) {
18261                 throw new Error("initializeWasm() must be awaited first!");
18262         }
18263         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
18264         return nativeResponseValue;
18265 }
18266         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
18267 /* @internal */
18268 export function SpendableOutputDescriptor_free(this_ptr: number): void {
18269         if(!isWasmInitialized) {
18270                 throw new Error("initializeWasm() must be awaited first!");
18271         }
18272         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
18273         // debug statements here
18274 }
18275         // uintptr_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
18276 /* @internal */
18277 export function SpendableOutputDescriptor_clone_ptr(arg: number): number {
18278         if(!isWasmInitialized) {
18279                 throw new Error("initializeWasm() must be awaited first!");
18280         }
18281         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
18282         return nativeResponseValue;
18283 }
18284         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
18285 /* @internal */
18286 export function SpendableOutputDescriptor_clone(orig: number): number {
18287         if(!isWasmInitialized) {
18288                 throw new Error("initializeWasm() must be awaited first!");
18289         }
18290         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
18291         return nativeResponseValue;
18292 }
18293         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
18294 /* @internal */
18295 export function SpendableOutputDescriptor_static_output(outpoint: number, output: number): number {
18296         if(!isWasmInitialized) {
18297                 throw new Error("initializeWasm() must be awaited first!");
18298         }
18299         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
18300         return nativeResponseValue;
18301 }
18302         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
18303 /* @internal */
18304 export function SpendableOutputDescriptor_delayed_payment_output(a: number): number {
18305         if(!isWasmInitialized) {
18306                 throw new Error("initializeWasm() must be awaited first!");
18307         }
18308         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
18309         return nativeResponseValue;
18310 }
18311         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
18312 /* @internal */
18313 export function SpendableOutputDescriptor_static_payment_output(a: number): number {
18314         if(!isWasmInitialized) {
18315                 throw new Error("initializeWasm() must be awaited first!");
18316         }
18317         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
18318         return nativeResponseValue;
18319 }
18320         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
18321 /* @internal */
18322 export function SpendableOutputDescriptor_write(obj: number): number {
18323         if(!isWasmInitialized) {
18324                 throw new Error("initializeWasm() must be awaited first!");
18325         }
18326         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
18327         return nativeResponseValue;
18328 }
18329         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
18330 /* @internal */
18331 export function SpendableOutputDescriptor_read(ser: number): number {
18332         if(!isWasmInitialized) {
18333                 throw new Error("initializeWasm() must be awaited first!");
18334         }
18335         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
18336         return nativeResponseValue;
18337 }
18338         // void BaseSign_free(struct LDKBaseSign this_ptr);
18339 /* @internal */
18340 export function BaseSign_free(this_ptr: number): void {
18341         if(!isWasmInitialized) {
18342                 throw new Error("initializeWasm() must be awaited first!");
18343         }
18344         const nativeResponseValue = wasm.TS_BaseSign_free(this_ptr);
18345         // debug statements here
18346 }
18347         // uintptr_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
18348 /* @internal */
18349 export function Sign_clone_ptr(arg: number): number {
18350         if(!isWasmInitialized) {
18351                 throw new Error("initializeWasm() must be awaited first!");
18352         }
18353         const nativeResponseValue = wasm.TS_Sign_clone_ptr(arg);
18354         return nativeResponseValue;
18355 }
18356         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
18357 /* @internal */
18358 export function Sign_clone(orig: number): number {
18359         if(!isWasmInitialized) {
18360                 throw new Error("initializeWasm() must be awaited first!");
18361         }
18362         const nativeResponseValue = wasm.TS_Sign_clone(orig);
18363         return nativeResponseValue;
18364 }
18365         // void Sign_free(struct LDKSign this_ptr);
18366 /* @internal */
18367 export function Sign_free(this_ptr: number): void {
18368         if(!isWasmInitialized) {
18369                 throw new Error("initializeWasm() must be awaited first!");
18370         }
18371         const nativeResponseValue = wasm.TS_Sign_free(this_ptr);
18372         // debug statements here
18373 }
18374         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
18375 /* @internal */
18376 export function Recipient_clone(orig: number): Recipient {
18377         if(!isWasmInitialized) {
18378                 throw new Error("initializeWasm() must be awaited first!");
18379         }
18380         const nativeResponseValue = wasm.TS_Recipient_clone(orig);
18381         return nativeResponseValue;
18382 }
18383         // enum LDKRecipient Recipient_node(void);
18384 /* @internal */
18385 export function Recipient_node(): Recipient {
18386         if(!isWasmInitialized) {
18387                 throw new Error("initializeWasm() must be awaited first!");
18388         }
18389         const nativeResponseValue = wasm.TS_Recipient_node();
18390         return nativeResponseValue;
18391 }
18392         // enum LDKRecipient Recipient_phantom_node(void);
18393 /* @internal */
18394 export function Recipient_phantom_node(): Recipient {
18395         if(!isWasmInitialized) {
18396                 throw new Error("initializeWasm() must be awaited first!");
18397         }
18398         const nativeResponseValue = wasm.TS_Recipient_phantom_node();
18399         return nativeResponseValue;
18400 }
18401         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
18402 /* @internal */
18403 export function KeysInterface_free(this_ptr: number): void {
18404         if(!isWasmInitialized) {
18405                 throw new Error("initializeWasm() must be awaited first!");
18406         }
18407         const nativeResponseValue = wasm.TS_KeysInterface_free(this_ptr);
18408         // debug statements here
18409 }
18410         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
18411 /* @internal */
18412 export function InMemorySigner_free(this_obj: number): void {
18413         if(!isWasmInitialized) {
18414                 throw new Error("initializeWasm() must be awaited first!");
18415         }
18416         const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
18417         // debug statements here
18418 }
18419         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18420 /* @internal */
18421 export function InMemorySigner_get_funding_key(this_ptr: number): number {
18422         if(!isWasmInitialized) {
18423                 throw new Error("initializeWasm() must be awaited first!");
18424         }
18425         const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
18426         return nativeResponseValue;
18427 }
18428         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18429 /* @internal */
18430 export function InMemorySigner_set_funding_key(this_ptr: number, val: number): void {
18431         if(!isWasmInitialized) {
18432                 throw new Error("initializeWasm() must be awaited first!");
18433         }
18434         const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
18435         // debug statements here
18436 }
18437         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18438 /* @internal */
18439 export function InMemorySigner_get_revocation_base_key(this_ptr: number): number {
18440         if(!isWasmInitialized) {
18441                 throw new Error("initializeWasm() must be awaited first!");
18442         }
18443         const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
18444         return nativeResponseValue;
18445 }
18446         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18447 /* @internal */
18448 export function InMemorySigner_set_revocation_base_key(this_ptr: number, val: number): void {
18449         if(!isWasmInitialized) {
18450                 throw new Error("initializeWasm() must be awaited first!");
18451         }
18452         const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
18453         // debug statements here
18454 }
18455         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18456 /* @internal */
18457 export function InMemorySigner_get_payment_key(this_ptr: number): number {
18458         if(!isWasmInitialized) {
18459                 throw new Error("initializeWasm() must be awaited first!");
18460         }
18461         const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
18462         return nativeResponseValue;
18463 }
18464         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18465 /* @internal */
18466 export function InMemorySigner_set_payment_key(this_ptr: number, val: number): void {
18467         if(!isWasmInitialized) {
18468                 throw new Error("initializeWasm() must be awaited first!");
18469         }
18470         const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
18471         // debug statements here
18472 }
18473         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18474 /* @internal */
18475 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: number): number {
18476         if(!isWasmInitialized) {
18477                 throw new Error("initializeWasm() must be awaited first!");
18478         }
18479         const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
18480         return nativeResponseValue;
18481 }
18482         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18483 /* @internal */
18484 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: number, val: number): void {
18485         if(!isWasmInitialized) {
18486                 throw new Error("initializeWasm() must be awaited first!");
18487         }
18488         const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
18489         // debug statements here
18490 }
18491         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18492 /* @internal */
18493 export function InMemorySigner_get_htlc_base_key(this_ptr: number): number {
18494         if(!isWasmInitialized) {
18495                 throw new Error("initializeWasm() must be awaited first!");
18496         }
18497         const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
18498         return nativeResponseValue;
18499 }
18500         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18501 /* @internal */
18502 export function InMemorySigner_set_htlc_base_key(this_ptr: number, val: number): void {
18503         if(!isWasmInitialized) {
18504                 throw new Error("initializeWasm() must be awaited first!");
18505         }
18506         const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
18507         // debug statements here
18508 }
18509         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18510 /* @internal */
18511 export function InMemorySigner_get_commitment_seed(this_ptr: number): number {
18512         if(!isWasmInitialized) {
18513                 throw new Error("initializeWasm() must be awaited first!");
18514         }
18515         const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
18516         return nativeResponseValue;
18517 }
18518         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18519 /* @internal */
18520 export function InMemorySigner_set_commitment_seed(this_ptr: number, val: number): void {
18521         if(!isWasmInitialized) {
18522                 throw new Error("initializeWasm() must be awaited first!");
18523         }
18524         const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
18525         // debug statements here
18526 }
18527         // uintptr_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
18528 /* @internal */
18529 export function InMemorySigner_clone_ptr(arg: number): number {
18530         if(!isWasmInitialized) {
18531                 throw new Error("initializeWasm() must be awaited first!");
18532         }
18533         const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
18534         return nativeResponseValue;
18535 }
18536         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
18537 /* @internal */
18538 export function InMemorySigner_clone(orig: number): number {
18539         if(!isWasmInitialized) {
18540                 throw new Error("initializeWasm() must be awaited first!");
18541         }
18542         const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
18543         return nativeResponseValue;
18544 }
18545         // 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);
18546 /* @internal */
18547 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 {
18548         if(!isWasmInitialized) {
18549                 throw new Error("initializeWasm() must be awaited first!");
18550         }
18551         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);
18552         return nativeResponseValue;
18553 }
18554         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18555 /* @internal */
18556 export function InMemorySigner_counterparty_pubkeys(this_arg: number): number {
18557         if(!isWasmInitialized) {
18558                 throw new Error("initializeWasm() must be awaited first!");
18559         }
18560         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
18561         return nativeResponseValue;
18562 }
18563         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18564 /* @internal */
18565 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: number): number {
18566         if(!isWasmInitialized) {
18567                 throw new Error("initializeWasm() must be awaited first!");
18568         }
18569         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
18570         return nativeResponseValue;
18571 }
18572         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18573 /* @internal */
18574 export function InMemorySigner_holder_selected_contest_delay(this_arg: number): number {
18575         if(!isWasmInitialized) {
18576                 throw new Error("initializeWasm() must be awaited first!");
18577         }
18578         const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
18579         return nativeResponseValue;
18580 }
18581         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18582 /* @internal */
18583 export function InMemorySigner_is_outbound(this_arg: number): boolean {
18584         if(!isWasmInitialized) {
18585                 throw new Error("initializeWasm() must be awaited first!");
18586         }
18587         const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
18588         return nativeResponseValue;
18589 }
18590         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18591 /* @internal */
18592 export function InMemorySigner_funding_outpoint(this_arg: number): number {
18593         if(!isWasmInitialized) {
18594                 throw new Error("initializeWasm() must be awaited first!");
18595         }
18596         const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
18597         return nativeResponseValue;
18598 }
18599         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18600 /* @internal */
18601 export function InMemorySigner_get_channel_parameters(this_arg: number): number {
18602         if(!isWasmInitialized) {
18603                 throw new Error("initializeWasm() must be awaited first!");
18604         }
18605         const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
18606         return nativeResponseValue;
18607 }
18608         // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18609 /* @internal */
18610 export function InMemorySigner_opt_anchors(this_arg: number): boolean {
18611         if(!isWasmInitialized) {
18612                 throw new Error("initializeWasm() must be awaited first!");
18613         }
18614         const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
18615         return nativeResponseValue;
18616 }
18617         // 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);
18618 /* @internal */
18619 export function InMemorySigner_sign_counterparty_payment_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
18620         if(!isWasmInitialized) {
18621                 throw new Error("initializeWasm() must be awaited first!");
18622         }
18623         const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
18624         return nativeResponseValue;
18625 }
18626         // 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);
18627 /* @internal */
18628 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
18629         if(!isWasmInitialized) {
18630                 throw new Error("initializeWasm() must be awaited first!");
18631         }
18632         const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
18633         return nativeResponseValue;
18634 }
18635         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18636 /* @internal */
18637 export function InMemorySigner_as_BaseSign(this_arg: number): number {
18638         if(!isWasmInitialized) {
18639                 throw new Error("initializeWasm() must be awaited first!");
18640         }
18641         const nativeResponseValue = wasm.TS_InMemorySigner_as_BaseSign(this_arg);
18642         return nativeResponseValue;
18643 }
18644         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18645 /* @internal */
18646 export function InMemorySigner_as_Sign(this_arg: number): number {
18647         if(!isWasmInitialized) {
18648                 throw new Error("initializeWasm() must be awaited first!");
18649         }
18650         const nativeResponseValue = wasm.TS_InMemorySigner_as_Sign(this_arg);
18651         return nativeResponseValue;
18652 }
18653         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
18654 /* @internal */
18655 export function InMemorySigner_write(obj: number): number {
18656         if(!isWasmInitialized) {
18657                 throw new Error("initializeWasm() must be awaited first!");
18658         }
18659         const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
18660         return nativeResponseValue;
18661 }
18662         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
18663 /* @internal */
18664 export function InMemorySigner_read(ser: number, arg: number): number {
18665         if(!isWasmInitialized) {
18666                 throw new Error("initializeWasm() must be awaited first!");
18667         }
18668         const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
18669         return nativeResponseValue;
18670 }
18671         // void KeysManager_free(struct LDKKeysManager this_obj);
18672 /* @internal */
18673 export function KeysManager_free(this_obj: number): void {
18674         if(!isWasmInitialized) {
18675                 throw new Error("initializeWasm() must be awaited first!");
18676         }
18677         const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
18678         // debug statements here
18679 }
18680         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
18681 /* @internal */
18682 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): number {
18683         if(!isWasmInitialized) {
18684                 throw new Error("initializeWasm() must be awaited first!");
18685         }
18686         const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
18687         return nativeResponseValue;
18688 }
18689         // 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]);
18690 /* @internal */
18691 export function KeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18692         if(!isWasmInitialized) {
18693                 throw new Error("initializeWasm() must be awaited first!");
18694         }
18695         const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18696         return nativeResponseValue;
18697 }
18698         // 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);
18699 /* @internal */
18700 export function KeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18701         if(!isWasmInitialized) {
18702                 throw new Error("initializeWasm() must be awaited first!");
18703         }
18704         const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18705         return nativeResponseValue;
18706 }
18707         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
18708 /* @internal */
18709 export function KeysManager_as_KeysInterface(this_arg: number): number {
18710         if(!isWasmInitialized) {
18711                 throw new Error("initializeWasm() must be awaited first!");
18712         }
18713         const nativeResponseValue = wasm.TS_KeysManager_as_KeysInterface(this_arg);
18714         return nativeResponseValue;
18715 }
18716         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
18717 /* @internal */
18718 export function PhantomKeysManager_free(this_obj: number): void {
18719         if(!isWasmInitialized) {
18720                 throw new Error("initializeWasm() must be awaited first!");
18721         }
18722         const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
18723         // debug statements here
18724 }
18725         // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
18726 /* @internal */
18727 export function PhantomKeysManager_as_KeysInterface(this_arg: number): number {
18728         if(!isWasmInitialized) {
18729                 throw new Error("initializeWasm() must be awaited first!");
18730         }
18731         const nativeResponseValue = wasm.TS_PhantomKeysManager_as_KeysInterface(this_arg);
18732         return nativeResponseValue;
18733 }
18734         // 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]);
18735 /* @internal */
18736 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): number {
18737         if(!isWasmInitialized) {
18738                 throw new Error("initializeWasm() must be awaited first!");
18739         }
18740         const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
18741         return nativeResponseValue;
18742 }
18743         // 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);
18744 /* @internal */
18745 export function PhantomKeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18746         if(!isWasmInitialized) {
18747                 throw new Error("initializeWasm() must be awaited first!");
18748         }
18749         const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18750         return nativeResponseValue;
18751 }
18752         // 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]);
18753 /* @internal */
18754 export function PhantomKeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18755         if(!isWasmInitialized) {
18756                 throw new Error("initializeWasm() must be awaited first!");
18757         }
18758         const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18759         return nativeResponseValue;
18760 }
18761         // void ChannelManager_free(struct LDKChannelManager this_obj);
18762 /* @internal */
18763 export function ChannelManager_free(this_obj: number): void {
18764         if(!isWasmInitialized) {
18765                 throw new Error("initializeWasm() must be awaited first!");
18766         }
18767         const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
18768         // debug statements here
18769 }
18770         // void ChainParameters_free(struct LDKChainParameters this_obj);
18771 /* @internal */
18772 export function ChainParameters_free(this_obj: number): void {
18773         if(!isWasmInitialized) {
18774                 throw new Error("initializeWasm() must be awaited first!");
18775         }
18776         const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
18777         // debug statements here
18778 }
18779         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18780 /* @internal */
18781 export function ChainParameters_get_network(this_ptr: number): Network {
18782         if(!isWasmInitialized) {
18783                 throw new Error("initializeWasm() must be awaited first!");
18784         }
18785         const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
18786         return nativeResponseValue;
18787 }
18788         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
18789 /* @internal */
18790 export function ChainParameters_set_network(this_ptr: number, val: Network): void {
18791         if(!isWasmInitialized) {
18792                 throw new Error("initializeWasm() must be awaited first!");
18793         }
18794         const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
18795         // debug statements here
18796 }
18797         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18798 /* @internal */
18799 export function ChainParameters_get_best_block(this_ptr: number): number {
18800         if(!isWasmInitialized) {
18801                 throw new Error("initializeWasm() must be awaited first!");
18802         }
18803         const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
18804         return nativeResponseValue;
18805 }
18806         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
18807 /* @internal */
18808 export function ChainParameters_set_best_block(this_ptr: number, val: number): void {
18809         if(!isWasmInitialized) {
18810                 throw new Error("initializeWasm() must be awaited first!");
18811         }
18812         const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
18813         // debug statements here
18814 }
18815         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
18816 /* @internal */
18817 export function ChainParameters_new(network_arg: Network, best_block_arg: number): number {
18818         if(!isWasmInitialized) {
18819                 throw new Error("initializeWasm() must be awaited first!");
18820         }
18821         const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
18822         return nativeResponseValue;
18823 }
18824         // uintptr_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
18825 /* @internal */
18826 export function ChainParameters_clone_ptr(arg: number): number {
18827         if(!isWasmInitialized) {
18828                 throw new Error("initializeWasm() must be awaited first!");
18829         }
18830         const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
18831         return nativeResponseValue;
18832 }
18833         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
18834 /* @internal */
18835 export function ChainParameters_clone(orig: number): number {
18836         if(!isWasmInitialized) {
18837                 throw new Error("initializeWasm() must be awaited first!");
18838         }
18839         const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
18840         return nativeResponseValue;
18841 }
18842         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
18843 /* @internal */
18844 export function CounterpartyForwardingInfo_free(this_obj: number): void {
18845         if(!isWasmInitialized) {
18846                 throw new Error("initializeWasm() must be awaited first!");
18847         }
18848         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
18849         // debug statements here
18850 }
18851         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18852 /* @internal */
18853 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: number): number {
18854         if(!isWasmInitialized) {
18855                 throw new Error("initializeWasm() must be awaited first!");
18856         }
18857         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
18858         return nativeResponseValue;
18859 }
18860         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18861 /* @internal */
18862 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: number, val: number): void {
18863         if(!isWasmInitialized) {
18864                 throw new Error("initializeWasm() must be awaited first!");
18865         }
18866         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
18867         // debug statements here
18868 }
18869         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18870 /* @internal */
18871 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: number): number {
18872         if(!isWasmInitialized) {
18873                 throw new Error("initializeWasm() must be awaited first!");
18874         }
18875         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
18876         return nativeResponseValue;
18877 }
18878         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18879 /* @internal */
18880 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: number, val: number): void {
18881         if(!isWasmInitialized) {
18882                 throw new Error("initializeWasm() must be awaited first!");
18883         }
18884         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
18885         // debug statements here
18886 }
18887         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18888 /* @internal */
18889 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: number): number {
18890         if(!isWasmInitialized) {
18891                 throw new Error("initializeWasm() must be awaited first!");
18892         }
18893         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
18894         return nativeResponseValue;
18895 }
18896         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
18897 /* @internal */
18898 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
18899         if(!isWasmInitialized) {
18900                 throw new Error("initializeWasm() must be awaited first!");
18901         }
18902         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
18903         // debug statements here
18904 }
18905         // 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);
18906 /* @internal */
18907 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): number {
18908         if(!isWasmInitialized) {
18909                 throw new Error("initializeWasm() must be awaited first!");
18910         }
18911         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
18912         return nativeResponseValue;
18913 }
18914         // uintptr_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
18915 /* @internal */
18916 export function CounterpartyForwardingInfo_clone_ptr(arg: number): number {
18917         if(!isWasmInitialized) {
18918                 throw new Error("initializeWasm() must be awaited first!");
18919         }
18920         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
18921         return nativeResponseValue;
18922 }
18923         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
18924 /* @internal */
18925 export function CounterpartyForwardingInfo_clone(orig: number): number {
18926         if(!isWasmInitialized) {
18927                 throw new Error("initializeWasm() must be awaited first!");
18928         }
18929         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
18930         return nativeResponseValue;
18931 }
18932         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
18933 /* @internal */
18934 export function ChannelCounterparty_free(this_obj: number): void {
18935         if(!isWasmInitialized) {
18936                 throw new Error("initializeWasm() must be awaited first!");
18937         }
18938         const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
18939         // debug statements here
18940 }
18941         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18942 /* @internal */
18943 export function ChannelCounterparty_get_node_id(this_ptr: number): number {
18944         if(!isWasmInitialized) {
18945                 throw new Error("initializeWasm() must be awaited first!");
18946         }
18947         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
18948         return nativeResponseValue;
18949 }
18950         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18951 /* @internal */
18952 export function ChannelCounterparty_set_node_id(this_ptr: number, val: number): void {
18953         if(!isWasmInitialized) {
18954                 throw new Error("initializeWasm() must be awaited first!");
18955         }
18956         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
18957         // debug statements here
18958 }
18959         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18960 /* @internal */
18961 export function ChannelCounterparty_get_features(this_ptr: number): number {
18962         if(!isWasmInitialized) {
18963                 throw new Error("initializeWasm() must be awaited first!");
18964         }
18965         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
18966         return nativeResponseValue;
18967 }
18968         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
18969 /* @internal */
18970 export function ChannelCounterparty_set_features(this_ptr: number, val: number): void {
18971         if(!isWasmInitialized) {
18972                 throw new Error("initializeWasm() must be awaited first!");
18973         }
18974         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
18975         // debug statements here
18976 }
18977         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18978 /* @internal */
18979 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: number): bigint {
18980         if(!isWasmInitialized) {
18981                 throw new Error("initializeWasm() must be awaited first!");
18982         }
18983         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
18984         return nativeResponseValue;
18985 }
18986         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
18987 /* @internal */
18988 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: number, val: bigint): void {
18989         if(!isWasmInitialized) {
18990                 throw new Error("initializeWasm() must be awaited first!");
18991         }
18992         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
18993         // debug statements here
18994 }
18995         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18996 /* @internal */
18997 export function ChannelCounterparty_get_forwarding_info(this_ptr: number): number {
18998         if(!isWasmInitialized) {
18999                 throw new Error("initializeWasm() must be awaited first!");
19000         }
19001         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
19002         return nativeResponseValue;
19003 }
19004         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
19005 /* @internal */
19006 export function ChannelCounterparty_set_forwarding_info(this_ptr: number, val: number): void {
19007         if(!isWasmInitialized) {
19008                 throw new Error("initializeWasm() must be awaited first!");
19009         }
19010         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
19011         // debug statements here
19012 }
19013         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
19014 /* @internal */
19015 export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: number): number {
19016         if(!isWasmInitialized) {
19017                 throw new Error("initializeWasm() must be awaited first!");
19018         }
19019         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr);
19020         return nativeResponseValue;
19021 }
19022         // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19023 /* @internal */
19024 export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: number, val: number): void {
19025         if(!isWasmInitialized) {
19026                 throw new Error("initializeWasm() must be awaited first!");
19027         }
19028         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val);
19029         // debug statements here
19030 }
19031         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
19032 /* @internal */
19033 export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: number): number {
19034         if(!isWasmInitialized) {
19035                 throw new Error("initializeWasm() must be awaited first!");
19036         }
19037         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr);
19038         return nativeResponseValue;
19039 }
19040         // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19041 /* @internal */
19042 export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: number, val: number): void {
19043         if(!isWasmInitialized) {
19044                 throw new Error("initializeWasm() must be awaited first!");
19045         }
19046         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val);
19047         // debug statements here
19048 }
19049         // 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);
19050 /* @internal */
19051 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 {
19052         if(!isWasmInitialized) {
19053                 throw new Error("initializeWasm() must be awaited first!");
19054         }
19055         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);
19056         return nativeResponseValue;
19057 }
19058         // uintptr_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
19059 /* @internal */
19060 export function ChannelCounterparty_clone_ptr(arg: number): number {
19061         if(!isWasmInitialized) {
19062                 throw new Error("initializeWasm() must be awaited first!");
19063         }
19064         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
19065         return nativeResponseValue;
19066 }
19067         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
19068 /* @internal */
19069 export function ChannelCounterparty_clone(orig: number): number {
19070         if(!isWasmInitialized) {
19071                 throw new Error("initializeWasm() must be awaited first!");
19072         }
19073         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
19074         return nativeResponseValue;
19075 }
19076         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
19077 /* @internal */
19078 export function ChannelDetails_free(this_obj: number): void {
19079         if(!isWasmInitialized) {
19080                 throw new Error("initializeWasm() must be awaited first!");
19081         }
19082         const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
19083         // debug statements here
19084 }
19085         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
19086 /* @internal */
19087 export function ChannelDetails_get_channel_id(this_ptr: number): number {
19088         if(!isWasmInitialized) {
19089                 throw new Error("initializeWasm() must be awaited first!");
19090         }
19091         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
19092         return nativeResponseValue;
19093 }
19094         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19095 /* @internal */
19096 export function ChannelDetails_set_channel_id(this_ptr: number, val: number): void {
19097         if(!isWasmInitialized) {
19098                 throw new Error("initializeWasm() must be awaited first!");
19099         }
19100         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
19101         // debug statements here
19102 }
19103         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19104 /* @internal */
19105 export function ChannelDetails_get_counterparty(this_ptr: number): number {
19106         if(!isWasmInitialized) {
19107                 throw new Error("initializeWasm() must be awaited first!");
19108         }
19109         const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
19110         return nativeResponseValue;
19111 }
19112         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
19113 /* @internal */
19114 export function ChannelDetails_set_counterparty(this_ptr: number, val: number): void {
19115         if(!isWasmInitialized) {
19116                 throw new Error("initializeWasm() must be awaited first!");
19117         }
19118         const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
19119         // debug statements here
19120 }
19121         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19122 /* @internal */
19123 export function ChannelDetails_get_funding_txo(this_ptr: number): number {
19124         if(!isWasmInitialized) {
19125                 throw new Error("initializeWasm() must be awaited first!");
19126         }
19127         const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
19128         return nativeResponseValue;
19129 }
19130         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
19131 /* @internal */
19132 export function ChannelDetails_set_funding_txo(this_ptr: number, val: number): void {
19133         if(!isWasmInitialized) {
19134                 throw new Error("initializeWasm() must be awaited first!");
19135         }
19136         const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
19137         // debug statements here
19138 }
19139         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19140 /* @internal */
19141 export function ChannelDetails_get_channel_type(this_ptr: number): number {
19142         if(!isWasmInitialized) {
19143                 throw new Error("initializeWasm() must be awaited first!");
19144         }
19145         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr);
19146         return nativeResponseValue;
19147 }
19148         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
19149 /* @internal */
19150 export function ChannelDetails_set_channel_type(this_ptr: number, val: number): void {
19151         if(!isWasmInitialized) {
19152                 throw new Error("initializeWasm() must be awaited first!");
19153         }
19154         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val);
19155         // debug statements here
19156 }
19157         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19158 /* @internal */
19159 export function ChannelDetails_get_short_channel_id(this_ptr: number): number {
19160         if(!isWasmInitialized) {
19161                 throw new Error("initializeWasm() must be awaited first!");
19162         }
19163         const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
19164         return nativeResponseValue;
19165 }
19166         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19167 /* @internal */
19168 export function ChannelDetails_set_short_channel_id(this_ptr: number, val: number): void {
19169         if(!isWasmInitialized) {
19170                 throw new Error("initializeWasm() must be awaited first!");
19171         }
19172         const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
19173         // debug statements here
19174 }
19175         // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19176 /* @internal */
19177 export function ChannelDetails_get_outbound_scid_alias(this_ptr: number): number {
19178         if(!isWasmInitialized) {
19179                 throw new Error("initializeWasm() must be awaited first!");
19180         }
19181         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr);
19182         return nativeResponseValue;
19183 }
19184         // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19185 /* @internal */
19186 export function ChannelDetails_set_outbound_scid_alias(this_ptr: number, val: number): void {
19187         if(!isWasmInitialized) {
19188                 throw new Error("initializeWasm() must be awaited first!");
19189         }
19190         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val);
19191         // debug statements here
19192 }
19193         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19194 /* @internal */
19195 export function ChannelDetails_get_inbound_scid_alias(this_ptr: number): number {
19196         if(!isWasmInitialized) {
19197                 throw new Error("initializeWasm() must be awaited first!");
19198         }
19199         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr);
19200         return nativeResponseValue;
19201 }
19202         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19203 /* @internal */
19204 export function ChannelDetails_set_inbound_scid_alias(this_ptr: number, val: number): void {
19205         if(!isWasmInitialized) {
19206                 throw new Error("initializeWasm() must be awaited first!");
19207         }
19208         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val);
19209         // debug statements here
19210 }
19211         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19212 /* @internal */
19213 export function ChannelDetails_get_channel_value_satoshis(this_ptr: number): bigint {
19214         if(!isWasmInitialized) {
19215                 throw new Error("initializeWasm() must be awaited first!");
19216         }
19217         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
19218         return nativeResponseValue;
19219 }
19220         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19221 /* @internal */
19222 export function ChannelDetails_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
19223         if(!isWasmInitialized) {
19224                 throw new Error("initializeWasm() must be awaited first!");
19225         }
19226         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
19227         // debug statements here
19228 }
19229         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19230 /* @internal */
19231 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: number): number {
19232         if(!isWasmInitialized) {
19233                 throw new Error("initializeWasm() must be awaited first!");
19234         }
19235         const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
19236         return nativeResponseValue;
19237 }
19238         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19239 /* @internal */
19240 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: number, val: number): void {
19241         if(!isWasmInitialized) {
19242                 throw new Error("initializeWasm() must be awaited first!");
19243         }
19244         const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
19245         // debug statements here
19246 }
19247         // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19248 /* @internal */
19249 export function ChannelDetails_get_user_channel_id(this_ptr: number): bigint {
19250         if(!isWasmInitialized) {
19251                 throw new Error("initializeWasm() must be awaited first!");
19252         }
19253         const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
19254         return nativeResponseValue;
19255 }
19256         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19257 /* @internal */
19258 export function ChannelDetails_set_user_channel_id(this_ptr: number, val: bigint): void {
19259         if(!isWasmInitialized) {
19260                 throw new Error("initializeWasm() must be awaited first!");
19261         }
19262         const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
19263         // debug statements here
19264 }
19265         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19266 /* @internal */
19267 export function ChannelDetails_get_balance_msat(this_ptr: number): bigint {
19268         if(!isWasmInitialized) {
19269                 throw new Error("initializeWasm() must be awaited first!");
19270         }
19271         const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
19272         return nativeResponseValue;
19273 }
19274         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19275 /* @internal */
19276 export function ChannelDetails_set_balance_msat(this_ptr: number, val: bigint): void {
19277         if(!isWasmInitialized) {
19278                 throw new Error("initializeWasm() must be awaited first!");
19279         }
19280         const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
19281         // debug statements here
19282 }
19283         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19284 /* @internal */
19285 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: number): bigint {
19286         if(!isWasmInitialized) {
19287                 throw new Error("initializeWasm() must be awaited first!");
19288         }
19289         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
19290         return nativeResponseValue;
19291 }
19292         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19293 /* @internal */
19294 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: number, val: bigint): void {
19295         if(!isWasmInitialized) {
19296                 throw new Error("initializeWasm() must be awaited first!");
19297         }
19298         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
19299         // debug statements here
19300 }
19301         // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19302 /* @internal */
19303 export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: number): bigint {
19304         if(!isWasmInitialized) {
19305                 throw new Error("initializeWasm() must be awaited first!");
19306         }
19307         const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr);
19308         return nativeResponseValue;
19309 }
19310         // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19311 /* @internal */
19312 export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: number, val: bigint): void {
19313         if(!isWasmInitialized) {
19314                 throw new Error("initializeWasm() must be awaited first!");
19315         }
19316         const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val);
19317         // debug statements here
19318 }
19319         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19320 /* @internal */
19321 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: number): bigint {
19322         if(!isWasmInitialized) {
19323                 throw new Error("initializeWasm() must be awaited first!");
19324         }
19325         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
19326         return nativeResponseValue;
19327 }
19328         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19329 /* @internal */
19330 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: number, val: bigint): void {
19331         if(!isWasmInitialized) {
19332                 throw new Error("initializeWasm() must be awaited first!");
19333         }
19334         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
19335         // debug statements here
19336 }
19337         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19338 /* @internal */
19339 export function ChannelDetails_get_confirmations_required(this_ptr: number): number {
19340         if(!isWasmInitialized) {
19341                 throw new Error("initializeWasm() must be awaited first!");
19342         }
19343         const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
19344         return nativeResponseValue;
19345 }
19346         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
19347 /* @internal */
19348 export function ChannelDetails_set_confirmations_required(this_ptr: number, val: number): void {
19349         if(!isWasmInitialized) {
19350                 throw new Error("initializeWasm() must be awaited first!");
19351         }
19352         const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
19353         // debug statements here
19354 }
19355         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19356 /* @internal */
19357 export function ChannelDetails_get_force_close_spend_delay(this_ptr: number): number {
19358         if(!isWasmInitialized) {
19359                 throw new Error("initializeWasm() must be awaited first!");
19360         }
19361         const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
19362         return nativeResponseValue;
19363 }
19364         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
19365 /* @internal */
19366 export function ChannelDetails_set_force_close_spend_delay(this_ptr: number, val: number): void {
19367         if(!isWasmInitialized) {
19368                 throw new Error("initializeWasm() must be awaited first!");
19369         }
19370         const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
19371         // debug statements here
19372 }
19373         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19374 /* @internal */
19375 export function ChannelDetails_get_is_outbound(this_ptr: number): boolean {
19376         if(!isWasmInitialized) {
19377                 throw new Error("initializeWasm() must be awaited first!");
19378         }
19379         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
19380         return nativeResponseValue;
19381 }
19382         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19383 /* @internal */
19384 export function ChannelDetails_set_is_outbound(this_ptr: number, val: boolean): void {
19385         if(!isWasmInitialized) {
19386                 throw new Error("initializeWasm() must be awaited first!");
19387         }
19388         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
19389         // debug statements here
19390 }
19391         // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19392 /* @internal */
19393 export function ChannelDetails_get_is_channel_ready(this_ptr: number): boolean {
19394         if(!isWasmInitialized) {
19395                 throw new Error("initializeWasm() must be awaited first!");
19396         }
19397         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr);
19398         return nativeResponseValue;
19399 }
19400         // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19401 /* @internal */
19402 export function ChannelDetails_set_is_channel_ready(this_ptr: number, val: boolean): void {
19403         if(!isWasmInitialized) {
19404                 throw new Error("initializeWasm() must be awaited first!");
19405         }
19406         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val);
19407         // debug statements here
19408 }
19409         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19410 /* @internal */
19411 export function ChannelDetails_get_is_usable(this_ptr: number): boolean {
19412         if(!isWasmInitialized) {
19413                 throw new Error("initializeWasm() must be awaited first!");
19414         }
19415         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
19416         return nativeResponseValue;
19417 }
19418         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19419 /* @internal */
19420 export function ChannelDetails_set_is_usable(this_ptr: number, val: boolean): void {
19421         if(!isWasmInitialized) {
19422                 throw new Error("initializeWasm() must be awaited first!");
19423         }
19424         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
19425         // debug statements here
19426 }
19427         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19428 /* @internal */
19429 export function ChannelDetails_get_is_public(this_ptr: number): boolean {
19430         if(!isWasmInitialized) {
19431                 throw new Error("initializeWasm() must be awaited first!");
19432         }
19433         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
19434         return nativeResponseValue;
19435 }
19436         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19437 /* @internal */
19438 export function ChannelDetails_set_is_public(this_ptr: number, val: boolean): void {
19439         if(!isWasmInitialized) {
19440                 throw new Error("initializeWasm() must be awaited first!");
19441         }
19442         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
19443         // debug statements here
19444 }
19445         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19446 /* @internal */
19447 export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: number): number {
19448         if(!isWasmInitialized) {
19449                 throw new Error("initializeWasm() must be awaited first!");
19450         }
19451         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr);
19452         return nativeResponseValue;
19453 }
19454         // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19455 /* @internal */
19456 export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: number, val: number): void {
19457         if(!isWasmInitialized) {
19458                 throw new Error("initializeWasm() must be awaited first!");
19459         }
19460         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val);
19461         // debug statements here
19462 }
19463         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19464 /* @internal */
19465 export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: number): number {
19466         if(!isWasmInitialized) {
19467                 throw new Error("initializeWasm() must be awaited first!");
19468         }
19469         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr);
19470         return nativeResponseValue;
19471 }
19472         // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19473 /* @internal */
19474 export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: number, val: number): void {
19475         if(!isWasmInitialized) {
19476                 throw new Error("initializeWasm() must be awaited first!");
19477         }
19478         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val);
19479         // debug statements here
19480 }
19481         // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19482 /* @internal */
19483 export function ChannelDetails_get_config(this_ptr: number): number {
19484         if(!isWasmInitialized) {
19485                 throw new Error("initializeWasm() must be awaited first!");
19486         }
19487         const nativeResponseValue = wasm.TS_ChannelDetails_get_config(this_ptr);
19488         return nativeResponseValue;
19489 }
19490         // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
19491 /* @internal */
19492 export function ChannelDetails_set_config(this_ptr: number, val: number): void {
19493         if(!isWasmInitialized) {
19494                 throw new Error("initializeWasm() must be awaited first!");
19495         }
19496         const nativeResponseValue = wasm.TS_ChannelDetails_set_config(this_ptr, val);
19497         // debug statements here
19498 }
19499         // 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);
19500 /* @internal */
19501 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 {
19502         if(!isWasmInitialized) {
19503                 throw new Error("initializeWasm() must be awaited first!");
19504         }
19505         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);
19506         return nativeResponseValue;
19507 }
19508         // uintptr_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
19509 /* @internal */
19510 export function ChannelDetails_clone_ptr(arg: number): number {
19511         if(!isWasmInitialized) {
19512                 throw new Error("initializeWasm() must be awaited first!");
19513         }
19514         const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
19515         return nativeResponseValue;
19516 }
19517         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
19518 /* @internal */
19519 export function ChannelDetails_clone(orig: number): number {
19520         if(!isWasmInitialized) {
19521                 throw new Error("initializeWasm() must be awaited first!");
19522         }
19523         const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
19524         return nativeResponseValue;
19525 }
19526         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
19527 /* @internal */
19528 export function ChannelDetails_get_inbound_payment_scid(this_arg: number): number {
19529         if(!isWasmInitialized) {
19530                 throw new Error("initializeWasm() must be awaited first!");
19531         }
19532         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg);
19533         return nativeResponseValue;
19534 }
19535         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
19536 /* @internal */
19537 export function ChannelDetails_get_outbound_payment_scid(this_arg: number): number {
19538         if(!isWasmInitialized) {
19539                 throw new Error("initializeWasm() must be awaited first!");
19540         }
19541         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg);
19542         return nativeResponseValue;
19543 }
19544         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
19545 /* @internal */
19546 export function PaymentSendFailure_free(this_ptr: number): void {
19547         if(!isWasmInitialized) {
19548                 throw new Error("initializeWasm() must be awaited first!");
19549         }
19550         const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
19551         // debug statements here
19552 }
19553         // uintptr_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
19554 /* @internal */
19555 export function PaymentSendFailure_clone_ptr(arg: number): number {
19556         if(!isWasmInitialized) {
19557                 throw new Error("initializeWasm() must be awaited first!");
19558         }
19559         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
19560         return nativeResponseValue;
19561 }
19562         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
19563 /* @internal */
19564 export function PaymentSendFailure_clone(orig: number): number {
19565         if(!isWasmInitialized) {
19566                 throw new Error("initializeWasm() must be awaited first!");
19567         }
19568         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
19569         return nativeResponseValue;
19570 }
19571         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
19572 /* @internal */
19573 export function PaymentSendFailure_parameter_error(a: number): number {
19574         if(!isWasmInitialized) {
19575                 throw new Error("initializeWasm() must be awaited first!");
19576         }
19577         const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
19578         return nativeResponseValue;
19579 }
19580         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
19581 /* @internal */
19582 export function PaymentSendFailure_path_parameter_error(a: number): number {
19583         if(!isWasmInitialized) {
19584                 throw new Error("initializeWasm() must be awaited first!");
19585         }
19586         const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
19587         return nativeResponseValue;
19588 }
19589         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
19590 /* @internal */
19591 export function PaymentSendFailure_all_failed_retry_safe(a: number): number {
19592         if(!isWasmInitialized) {
19593                 throw new Error("initializeWasm() must be awaited first!");
19594         }
19595         const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_retry_safe(a);
19596         return nativeResponseValue;
19597 }
19598         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
19599 /* @internal */
19600 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: number, payment_id: number): number {
19601         if(!isWasmInitialized) {
19602                 throw new Error("initializeWasm() must be awaited first!");
19603         }
19604         const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
19605         return nativeResponseValue;
19606 }
19607         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
19608 /* @internal */
19609 export function PhantomRouteHints_free(this_obj: number): void {
19610         if(!isWasmInitialized) {
19611                 throw new Error("initializeWasm() must be awaited first!");
19612         }
19613         const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
19614         // debug statements here
19615 }
19616         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19617 /* @internal */
19618 export function PhantomRouteHints_get_channels(this_ptr: number): number {
19619         if(!isWasmInitialized) {
19620                 throw new Error("initializeWasm() must be awaited first!");
19621         }
19622         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
19623         return nativeResponseValue;
19624 }
19625         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
19626 /* @internal */
19627 export function PhantomRouteHints_set_channels(this_ptr: number, val: number): void {
19628         if(!isWasmInitialized) {
19629                 throw new Error("initializeWasm() must be awaited first!");
19630         }
19631         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
19632         // debug statements here
19633 }
19634         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19635 /* @internal */
19636 export function PhantomRouteHints_get_phantom_scid(this_ptr: number): bigint {
19637         if(!isWasmInitialized) {
19638                 throw new Error("initializeWasm() must be awaited first!");
19639         }
19640         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
19641         return nativeResponseValue;
19642 }
19643         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
19644 /* @internal */
19645 export function PhantomRouteHints_set_phantom_scid(this_ptr: number, val: bigint): void {
19646         if(!isWasmInitialized) {
19647                 throw new Error("initializeWasm() must be awaited first!");
19648         }
19649         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
19650         // debug statements here
19651 }
19652         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19653 /* @internal */
19654 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: number): number {
19655         if(!isWasmInitialized) {
19656                 throw new Error("initializeWasm() must be awaited first!");
19657         }
19658         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
19659         return nativeResponseValue;
19660 }
19661         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19662 /* @internal */
19663 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: number, val: number): void {
19664         if(!isWasmInitialized) {
19665                 throw new Error("initializeWasm() must be awaited first!");
19666         }
19667         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
19668         // debug statements here
19669 }
19670         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
19671 /* @internal */
19672 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): number {
19673         if(!isWasmInitialized) {
19674                 throw new Error("initializeWasm() must be awaited first!");
19675         }
19676         const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
19677         return nativeResponseValue;
19678 }
19679         // uintptr_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
19680 /* @internal */
19681 export function PhantomRouteHints_clone_ptr(arg: number): number {
19682         if(!isWasmInitialized) {
19683                 throw new Error("initializeWasm() must be awaited first!");
19684         }
19685         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
19686         return nativeResponseValue;
19687 }
19688         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
19689 /* @internal */
19690 export function PhantomRouteHints_clone(orig: number): number {
19691         if(!isWasmInitialized) {
19692                 throw new Error("initializeWasm() must be awaited first!");
19693         }
19694         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
19695         return nativeResponseValue;
19696 }
19697         // 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);
19698 /* @internal */
19699 export function ChannelManager_new(fee_est: number, chain_monitor: number, tx_broadcaster: number, logger: number, keys_manager: number, config: number, params: number): number {
19700         if(!isWasmInitialized) {
19701                 throw new Error("initializeWasm() must be awaited first!");
19702         }
19703         const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, logger, keys_manager, config, params);
19704         return nativeResponseValue;
19705 }
19706         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
19707 /* @internal */
19708 export function ChannelManager_get_current_default_configuration(this_arg: number): number {
19709         if(!isWasmInitialized) {
19710                 throw new Error("initializeWasm() must be awaited first!");
19711         }
19712         const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
19713         return nativeResponseValue;
19714 }
19715         // 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);
19716 /* @internal */
19717 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 {
19718         if(!isWasmInitialized) {
19719                 throw new Error("initializeWasm() must be awaited first!");
19720         }
19721         const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
19722         return nativeResponseValue;
19723 }
19724         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19725 /* @internal */
19726 export function ChannelManager_list_channels(this_arg: number): number {
19727         if(!isWasmInitialized) {
19728                 throw new Error("initializeWasm() must be awaited first!");
19729         }
19730         const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
19731         return nativeResponseValue;
19732 }
19733         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19734 /* @internal */
19735 export function ChannelManager_list_usable_channels(this_arg: number): number {
19736         if(!isWasmInitialized) {
19737                 throw new Error("initializeWasm() must be awaited first!");
19738         }
19739         const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
19740         return nativeResponseValue;
19741 }
19742         // 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);
19743 /* @internal */
19744 export function ChannelManager_close_channel(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19745         if(!isWasmInitialized) {
19746                 throw new Error("initializeWasm() must be awaited first!");
19747         }
19748         const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id);
19749         return nativeResponseValue;
19750 }
19751         // 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);
19752 /* @internal */
19753 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 {
19754         if(!isWasmInitialized) {
19755                 throw new Error("initializeWasm() must be awaited first!");
19756         }
19757         const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight);
19758         return nativeResponseValue;
19759 }
19760         // 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);
19761 /* @internal */
19762 export function ChannelManager_force_close_broadcasting_latest_txn(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19763         if(!isWasmInitialized) {
19764                 throw new Error("initializeWasm() must be awaited first!");
19765         }
19766         const nativeResponseValue = wasm.TS_ChannelManager_force_close_broadcasting_latest_txn(this_arg, channel_id, counterparty_node_id);
19767         return nativeResponseValue;
19768 }
19769         // 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);
19770 /* @internal */
19771 export function ChannelManager_force_close_without_broadcasting_txn(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19772         if(!isWasmInitialized) {
19773                 throw new Error("initializeWasm() must be awaited first!");
19774         }
19775         const nativeResponseValue = wasm.TS_ChannelManager_force_close_without_broadcasting_txn(this_arg, channel_id, counterparty_node_id);
19776         return nativeResponseValue;
19777 }
19778         // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
19779 /* @internal */
19780 export function ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg: number): void {
19781         if(!isWasmInitialized) {
19782                 throw new Error("initializeWasm() must be awaited first!");
19783         }
19784         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg);
19785         // debug statements here
19786 }
19787         // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
19788 /* @internal */
19789 export function ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg: number): void {
19790         if(!isWasmInitialized) {
19791                 throw new Error("initializeWasm() must be awaited first!");
19792         }
19793         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg);
19794         // debug statements here
19795 }
19796         // 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);
19797 /* @internal */
19798 export function ChannelManager_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
19799         if(!isWasmInitialized) {
19800                 throw new Error("initializeWasm() must be awaited first!");
19801         }
19802         const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, route, payment_hash, payment_secret);
19803         return nativeResponseValue;
19804 }
19805         // 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);
19806 /* @internal */
19807 export function ChannelManager_retry_payment(this_arg: number, route: number, payment_id: number): number {
19808         if(!isWasmInitialized) {
19809                 throw new Error("initializeWasm() must be awaited first!");
19810         }
19811         const nativeResponseValue = wasm.TS_ChannelManager_retry_payment(this_arg, route, payment_id);
19812         return nativeResponseValue;
19813 }
19814         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
19815 /* @internal */
19816 export function ChannelManager_abandon_payment(this_arg: number, payment_id: number): void {
19817         if(!isWasmInitialized) {
19818                 throw new Error("initializeWasm() must be awaited first!");
19819         }
19820         const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
19821         // debug statements here
19822 }
19823         // 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);
19824 /* @internal */
19825 export function ChannelManager_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
19826         if(!isWasmInitialized) {
19827                 throw new Error("initializeWasm() must be awaited first!");
19828         }
19829         const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage);
19830         return nativeResponseValue;
19831 }
19832         // 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);
19833 /* @internal */
19834 export function ChannelManager_funding_transaction_generated(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, funding_transaction: number): number {
19835         if(!isWasmInitialized) {
19836                 throw new Error("initializeWasm() must be awaited first!");
19837         }
19838         const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction);
19839         return nativeResponseValue;
19840 }
19841         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
19842 /* @internal */
19843 export function ChannelManager_broadcast_node_announcement(this_arg: number, rgb: number, alias: number, addresses: number): void {
19844         if(!isWasmInitialized) {
19845                 throw new Error("initializeWasm() must be awaited first!");
19846         }
19847         const nativeResponseValue = wasm.TS_ChannelManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
19848         // debug statements here
19849 }
19850         // 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);
19851 /* @internal */
19852 export function ChannelManager_update_channel_config(this_arg: number, counterparty_node_id: number, channel_ids: number, config: number): number {
19853         if(!isWasmInitialized) {
19854                 throw new Error("initializeWasm() must be awaited first!");
19855         }
19856         const nativeResponseValue = wasm.TS_ChannelManager_update_channel_config(this_arg, counterparty_node_id, channel_ids, config);
19857         return nativeResponseValue;
19858 }
19859         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
19860 /* @internal */
19861 export function ChannelManager_process_pending_htlc_forwards(this_arg: number): void {
19862         if(!isWasmInitialized) {
19863                 throw new Error("initializeWasm() must be awaited first!");
19864         }
19865         const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
19866         // debug statements here
19867 }
19868         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
19869 /* @internal */
19870 export function ChannelManager_timer_tick_occurred(this_arg: number): void {
19871         if(!isWasmInitialized) {
19872                 throw new Error("initializeWasm() must be awaited first!");
19873         }
19874         const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
19875         // debug statements here
19876 }
19877         // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
19878 /* @internal */
19879 export function ChannelManager_fail_htlc_backwards(this_arg: number, payment_hash: number): void {
19880         if(!isWasmInitialized) {
19881                 throw new Error("initializeWasm() must be awaited first!");
19882         }
19883         const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
19884         // debug statements here
19885 }
19886         // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
19887 /* @internal */
19888 export function ChannelManager_claim_funds(this_arg: number, payment_preimage: number): void {
19889         if(!isWasmInitialized) {
19890                 throw new Error("initializeWasm() must be awaited first!");
19891         }
19892         const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
19893         // debug statements here
19894 }
19895         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
19896 /* @internal */
19897 export function ChannelManager_get_our_node_id(this_arg: number): number {
19898         if(!isWasmInitialized) {
19899                 throw new Error("initializeWasm() must be awaited first!");
19900         }
19901         const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
19902         return nativeResponseValue;
19903 }
19904         // 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);
19905 /* @internal */
19906 export function ChannelManager_accept_inbound_channel(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: bigint): number {
19907         if(!isWasmInitialized) {
19908                 throw new Error("initializeWasm() must be awaited first!");
19909         }
19910         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
19911         return nativeResponseValue;
19912 }
19913         // 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);
19914 /* @internal */
19915 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 {
19916         if(!isWasmInitialized) {
19917                 throw new Error("initializeWasm() must be awaited first!");
19918         }
19919         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
19920         return nativeResponseValue;
19921 }
19922         // 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);
19923 /* @internal */
19924 export function ChannelManager_create_inbound_payment(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19925         if(!isWasmInitialized) {
19926                 throw new Error("initializeWasm() must be awaited first!");
19927         }
19928         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs);
19929         return nativeResponseValue;
19930 }
19931         // 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);
19932 /* @internal */
19933 export function ChannelManager_create_inbound_payment_legacy(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19934         if(!isWasmInitialized) {
19935                 throw new Error("initializeWasm() must be awaited first!");
19936         }
19937         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
19938         return nativeResponseValue;
19939 }
19940         // 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);
19941 /* @internal */
19942 export function ChannelManager_create_inbound_payment_for_hash(this_arg: number, payment_hash: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19943         if(!isWasmInitialized) {
19944                 throw new Error("initializeWasm() must be awaited first!");
19945         }
19946         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19947         return nativeResponseValue;
19948 }
19949         // 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);
19950 /* @internal */
19951 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 {
19952         if(!isWasmInitialized) {
19953                 throw new Error("initializeWasm() must be awaited first!");
19954         }
19955         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19956         return nativeResponseValue;
19957 }
19958         // 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);
19959 /* @internal */
19960 export function ChannelManager_get_payment_preimage(this_arg: number, payment_hash: number, payment_secret: number): number {
19961         if(!isWasmInitialized) {
19962                 throw new Error("initializeWasm() must be awaited first!");
19963         }
19964         const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
19965         return nativeResponseValue;
19966 }
19967         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
19968 /* @internal */
19969 export function ChannelManager_get_phantom_scid(this_arg: number): bigint {
19970         if(!isWasmInitialized) {
19971                 throw new Error("initializeWasm() must be awaited first!");
19972         }
19973         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
19974         return nativeResponseValue;
19975 }
19976         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
19977 /* @internal */
19978 export function ChannelManager_get_phantom_route_hints(this_arg: number): number {
19979         if(!isWasmInitialized) {
19980                 throw new Error("initializeWasm() must be awaited first!");
19981         }
19982         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
19983         return nativeResponseValue;
19984 }
19985         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19986 /* @internal */
19987 export function ChannelManager_as_MessageSendEventsProvider(this_arg: number): number {
19988         if(!isWasmInitialized) {
19989                 throw new Error("initializeWasm() must be awaited first!");
19990         }
19991         const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
19992         return nativeResponseValue;
19993 }
19994         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19995 /* @internal */
19996 export function ChannelManager_as_EventsProvider(this_arg: number): number {
19997         if(!isWasmInitialized) {
19998                 throw new Error("initializeWasm() must be awaited first!");
19999         }
20000         const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
20001         return nativeResponseValue;
20002 }
20003         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
20004 /* @internal */
20005 export function ChannelManager_as_Listen(this_arg: number): number {
20006         if(!isWasmInitialized) {
20007                 throw new Error("initializeWasm() must be awaited first!");
20008         }
20009         const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
20010         return nativeResponseValue;
20011 }
20012         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
20013 /* @internal */
20014 export function ChannelManager_as_Confirm(this_arg: number): number {
20015         if(!isWasmInitialized) {
20016                 throw new Error("initializeWasm() must be awaited first!");
20017         }
20018         const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
20019         return nativeResponseValue;
20020 }
20021         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
20022 /* @internal */
20023 export function ChannelManager_await_persistable_update(this_arg: number): void {
20024         if(!isWasmInitialized) {
20025                 throw new Error("initializeWasm() must be awaited first!");
20026         }
20027         const nativeResponseValue = wasm.TS_ChannelManager_await_persistable_update(this_arg);
20028         // debug statements here
20029 }
20030         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
20031 /* @internal */
20032 export function ChannelManager_current_best_block(this_arg: number): number {
20033         if(!isWasmInitialized) {
20034                 throw new Error("initializeWasm() must be awaited first!");
20035         }
20036         const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
20037         return nativeResponseValue;
20038 }
20039         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
20040 /* @internal */
20041 export function ChannelManager_as_ChannelMessageHandler(this_arg: number): number {
20042         if(!isWasmInitialized) {
20043                 throw new Error("initializeWasm() must be awaited first!");
20044         }
20045         const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
20046         return nativeResponseValue;
20047 }
20048         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
20049 /* @internal */
20050 export function CounterpartyForwardingInfo_write(obj: number): number {
20051         if(!isWasmInitialized) {
20052                 throw new Error("initializeWasm() must be awaited first!");
20053         }
20054         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
20055         return nativeResponseValue;
20056 }
20057         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
20058 /* @internal */
20059 export function CounterpartyForwardingInfo_read(ser: number): number {
20060         if(!isWasmInitialized) {
20061                 throw new Error("initializeWasm() must be awaited first!");
20062         }
20063         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
20064         return nativeResponseValue;
20065 }
20066         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
20067 /* @internal */
20068 export function ChannelCounterparty_write(obj: number): number {
20069         if(!isWasmInitialized) {
20070                 throw new Error("initializeWasm() must be awaited first!");
20071         }
20072         const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
20073         return nativeResponseValue;
20074 }
20075         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
20076 /* @internal */
20077 export function ChannelCounterparty_read(ser: number): number {
20078         if(!isWasmInitialized) {
20079                 throw new Error("initializeWasm() must be awaited first!");
20080         }
20081         const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
20082         return nativeResponseValue;
20083 }
20084         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
20085 /* @internal */
20086 export function ChannelDetails_write(obj: number): number {
20087         if(!isWasmInitialized) {
20088                 throw new Error("initializeWasm() must be awaited first!");
20089         }
20090         const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
20091         return nativeResponseValue;
20092 }
20093         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
20094 /* @internal */
20095 export function ChannelDetails_read(ser: number): number {
20096         if(!isWasmInitialized) {
20097                 throw new Error("initializeWasm() must be awaited first!");
20098         }
20099         const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
20100         return nativeResponseValue;
20101 }
20102         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
20103 /* @internal */
20104 export function PhantomRouteHints_write(obj: number): number {
20105         if(!isWasmInitialized) {
20106                 throw new Error("initializeWasm() must be awaited first!");
20107         }
20108         const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
20109         return nativeResponseValue;
20110 }
20111         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
20112 /* @internal */
20113 export function PhantomRouteHints_read(ser: number): number {
20114         if(!isWasmInitialized) {
20115                 throw new Error("initializeWasm() must be awaited first!");
20116         }
20117         const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
20118         return nativeResponseValue;
20119 }
20120         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
20121 /* @internal */
20122 export function ChannelManager_write(obj: number): number {
20123         if(!isWasmInitialized) {
20124                 throw new Error("initializeWasm() must be awaited first!");
20125         }
20126         const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
20127         return nativeResponseValue;
20128 }
20129         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
20130 /* @internal */
20131 export function ChannelManagerReadArgs_free(this_obj: number): void {
20132         if(!isWasmInitialized) {
20133                 throw new Error("initializeWasm() must be awaited first!");
20134         }
20135         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
20136         // debug statements here
20137 }
20138         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20139 /* @internal */
20140 export function ChannelManagerReadArgs_get_keys_manager(this_ptr: number): number {
20141         if(!isWasmInitialized) {
20142                 throw new Error("initializeWasm() must be awaited first!");
20143         }
20144         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_keys_manager(this_ptr);
20145         return nativeResponseValue;
20146 }
20147         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
20148 /* @internal */
20149 export function ChannelManagerReadArgs_set_keys_manager(this_ptr: number, val: number): void {
20150         if(!isWasmInitialized) {
20151                 throw new Error("initializeWasm() must be awaited first!");
20152         }
20153         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_keys_manager(this_ptr, val);
20154         // debug statements here
20155 }
20156         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20157 /* @internal */
20158 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: number): number {
20159         if(!isWasmInitialized) {
20160                 throw new Error("initializeWasm() must be awaited first!");
20161         }
20162         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
20163         return nativeResponseValue;
20164 }
20165         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
20166 /* @internal */
20167 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: number, val: number): void {
20168         if(!isWasmInitialized) {
20169                 throw new Error("initializeWasm() must be awaited first!");
20170         }
20171         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
20172         // debug statements here
20173 }
20174         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20175 /* @internal */
20176 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: number): number {
20177         if(!isWasmInitialized) {
20178                 throw new Error("initializeWasm() must be awaited first!");
20179         }
20180         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
20181         return nativeResponseValue;
20182 }
20183         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
20184 /* @internal */
20185 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: number, val: number): void {
20186         if(!isWasmInitialized) {
20187                 throw new Error("initializeWasm() must be awaited first!");
20188         }
20189         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
20190         // debug statements here
20191 }
20192         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20193 /* @internal */
20194 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: number): number {
20195         if(!isWasmInitialized) {
20196                 throw new Error("initializeWasm() must be awaited first!");
20197         }
20198         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
20199         return nativeResponseValue;
20200 }
20201         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
20202 /* @internal */
20203 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: number, val: number): void {
20204         if(!isWasmInitialized) {
20205                 throw new Error("initializeWasm() must be awaited first!");
20206         }
20207         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
20208         // debug statements here
20209 }
20210         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20211 /* @internal */
20212 export function ChannelManagerReadArgs_get_logger(this_ptr: number): number {
20213         if(!isWasmInitialized) {
20214                 throw new Error("initializeWasm() must be awaited first!");
20215         }
20216         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
20217         return nativeResponseValue;
20218 }
20219         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
20220 /* @internal */
20221 export function ChannelManagerReadArgs_set_logger(this_ptr: number, val: number): void {
20222         if(!isWasmInitialized) {
20223                 throw new Error("initializeWasm() must be awaited first!");
20224         }
20225         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
20226         // debug statements here
20227 }
20228         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20229 /* @internal */
20230 export function ChannelManagerReadArgs_get_default_config(this_ptr: number): number {
20231         if(!isWasmInitialized) {
20232                 throw new Error("initializeWasm() must be awaited first!");
20233         }
20234         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
20235         return nativeResponseValue;
20236 }
20237         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
20238 /* @internal */
20239 export function ChannelManagerReadArgs_set_default_config(this_ptr: number, val: number): void {
20240         if(!isWasmInitialized) {
20241                 throw new Error("initializeWasm() must be awaited first!");
20242         }
20243         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
20244         // debug statements here
20245 }
20246         // 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);
20247 /* @internal */
20248 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 {
20249         if(!isWasmInitialized) {
20250                 throw new Error("initializeWasm() must be awaited first!");
20251         }
20252         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(keys_manager, fee_estimator, chain_monitor, tx_broadcaster, logger, default_config, channel_monitors);
20253         return nativeResponseValue;
20254 }
20255         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
20256 /* @internal */
20257 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: number): number {
20258         if(!isWasmInitialized) {
20259                 throw new Error("initializeWasm() must be awaited first!");
20260         }
20261         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
20262         return nativeResponseValue;
20263 }
20264         // void ExpandedKey_free(struct LDKExpandedKey this_obj);
20265 /* @internal */
20266 export function ExpandedKey_free(this_obj: number): void {
20267         if(!isWasmInitialized) {
20268                 throw new Error("initializeWasm() must be awaited first!");
20269         }
20270         const nativeResponseValue = wasm.TS_ExpandedKey_free(this_obj);
20271         // debug statements here
20272 }
20273         // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
20274 /* @internal */
20275 export function ExpandedKey_new(key_material: number): number {
20276         if(!isWasmInitialized) {
20277                 throw new Error("initializeWasm() must be awaited first!");
20278         }
20279         const nativeResponseValue = wasm.TS_ExpandedKey_new(key_material);
20280         return nativeResponseValue;
20281 }
20282         // 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);
20283 /* @internal */
20284 export function create(keys: number, min_value_msat: number, invoice_expiry_delta_secs: number, keys_manager: number, current_time: bigint): number {
20285         if(!isWasmInitialized) {
20286                 throw new Error("initializeWasm() must be awaited first!");
20287         }
20288         const nativeResponseValue = wasm.TS_create(keys, min_value_msat, invoice_expiry_delta_secs, keys_manager, current_time);
20289         return nativeResponseValue;
20290 }
20291         // 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);
20292 /* @internal */
20293 export function create_from_hash(keys: number, min_value_msat: number, payment_hash: number, invoice_expiry_delta_secs: number, current_time: bigint): number {
20294         if(!isWasmInitialized) {
20295                 throw new Error("initializeWasm() must be awaited first!");
20296         }
20297         const nativeResponseValue = wasm.TS_create_from_hash(keys, min_value_msat, payment_hash, invoice_expiry_delta_secs, current_time);
20298         return nativeResponseValue;
20299 }
20300         // void DecodeError_free(struct LDKDecodeError this_obj);
20301 /* @internal */
20302 export function DecodeError_free(this_obj: number): void {
20303         if(!isWasmInitialized) {
20304                 throw new Error("initializeWasm() must be awaited first!");
20305         }
20306         const nativeResponseValue = wasm.TS_DecodeError_free(this_obj);
20307         // debug statements here
20308 }
20309         // uintptr_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
20310 /* @internal */
20311 export function DecodeError_clone_ptr(arg: number): number {
20312         if(!isWasmInitialized) {
20313                 throw new Error("initializeWasm() must be awaited first!");
20314         }
20315         const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
20316         return nativeResponseValue;
20317 }
20318         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
20319 /* @internal */
20320 export function DecodeError_clone(orig: number): number {
20321         if(!isWasmInitialized) {
20322                 throw new Error("initializeWasm() must be awaited first!");
20323         }
20324         const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
20325         return nativeResponseValue;
20326 }
20327         // void Init_free(struct LDKInit this_obj);
20328 /* @internal */
20329 export function Init_free(this_obj: number): void {
20330         if(!isWasmInitialized) {
20331                 throw new Error("initializeWasm() must be awaited first!");
20332         }
20333         const nativeResponseValue = wasm.TS_Init_free(this_obj);
20334         // debug statements here
20335 }
20336         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
20337 /* @internal */
20338 export function Init_get_features(this_ptr: number): number {
20339         if(!isWasmInitialized) {
20340                 throw new Error("initializeWasm() must be awaited first!");
20341         }
20342         const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
20343         return nativeResponseValue;
20344 }
20345         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
20346 /* @internal */
20347 export function Init_set_features(this_ptr: number, val: number): void {
20348         if(!isWasmInitialized) {
20349                 throw new Error("initializeWasm() must be awaited first!");
20350         }
20351         const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
20352         // debug statements here
20353 }
20354         // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
20355 /* @internal */
20356 export function Init_get_remote_network_address(this_ptr: number): number {
20357         if(!isWasmInitialized) {
20358                 throw new Error("initializeWasm() must be awaited first!");
20359         }
20360         const nativeResponseValue = wasm.TS_Init_get_remote_network_address(this_ptr);
20361         return nativeResponseValue;
20362 }
20363         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
20364 /* @internal */
20365 export function Init_set_remote_network_address(this_ptr: number, val: number): void {
20366         if(!isWasmInitialized) {
20367                 throw new Error("initializeWasm() must be awaited first!");
20368         }
20369         const nativeResponseValue = wasm.TS_Init_set_remote_network_address(this_ptr, val);
20370         // debug statements here
20371 }
20372         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
20373 /* @internal */
20374 export function Init_new(features_arg: number, remote_network_address_arg: number): number {
20375         if(!isWasmInitialized) {
20376                 throw new Error("initializeWasm() must be awaited first!");
20377         }
20378         const nativeResponseValue = wasm.TS_Init_new(features_arg, remote_network_address_arg);
20379         return nativeResponseValue;
20380 }
20381         // uintptr_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
20382 /* @internal */
20383 export function Init_clone_ptr(arg: number): number {
20384         if(!isWasmInitialized) {
20385                 throw new Error("initializeWasm() must be awaited first!");
20386         }
20387         const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
20388         return nativeResponseValue;
20389 }
20390         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
20391 /* @internal */
20392 export function Init_clone(orig: number): number {
20393         if(!isWasmInitialized) {
20394                 throw new Error("initializeWasm() must be awaited first!");
20395         }
20396         const nativeResponseValue = wasm.TS_Init_clone(orig);
20397         return nativeResponseValue;
20398 }
20399         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
20400 /* @internal */
20401 export function ErrorMessage_free(this_obj: number): void {
20402         if(!isWasmInitialized) {
20403                 throw new Error("initializeWasm() must be awaited first!");
20404         }
20405         const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
20406         // debug statements here
20407 }
20408         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
20409 /* @internal */
20410 export function ErrorMessage_get_channel_id(this_ptr: number): number {
20411         if(!isWasmInitialized) {
20412                 throw new Error("initializeWasm() must be awaited first!");
20413         }
20414         const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
20415         return nativeResponseValue;
20416 }
20417         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20418 /* @internal */
20419 export function ErrorMessage_set_channel_id(this_ptr: number, val: number): void {
20420         if(!isWasmInitialized) {
20421                 throw new Error("initializeWasm() must be awaited first!");
20422         }
20423         const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
20424         // debug statements here
20425 }
20426         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
20427 /* @internal */
20428 export function ErrorMessage_get_data(this_ptr: number): number {
20429         if(!isWasmInitialized) {
20430                 throw new Error("initializeWasm() must be awaited first!");
20431         }
20432         const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
20433         return nativeResponseValue;
20434 }
20435         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
20436 /* @internal */
20437 export function ErrorMessage_set_data(this_ptr: number, val: number): void {
20438         if(!isWasmInitialized) {
20439                 throw new Error("initializeWasm() must be awaited first!");
20440         }
20441         const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
20442         // debug statements here
20443 }
20444         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
20445 /* @internal */
20446 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): number {
20447         if(!isWasmInitialized) {
20448                 throw new Error("initializeWasm() must be awaited first!");
20449         }
20450         const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
20451         return nativeResponseValue;
20452 }
20453         // uintptr_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
20454 /* @internal */
20455 export function ErrorMessage_clone_ptr(arg: number): number {
20456         if(!isWasmInitialized) {
20457                 throw new Error("initializeWasm() must be awaited first!");
20458         }
20459         const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
20460         return nativeResponseValue;
20461 }
20462         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
20463 /* @internal */
20464 export function ErrorMessage_clone(orig: number): number {
20465         if(!isWasmInitialized) {
20466                 throw new Error("initializeWasm() must be awaited first!");
20467         }
20468         const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
20469         return nativeResponseValue;
20470 }
20471         // void WarningMessage_free(struct LDKWarningMessage this_obj);
20472 /* @internal */
20473 export function WarningMessage_free(this_obj: number): void {
20474         if(!isWasmInitialized) {
20475                 throw new Error("initializeWasm() must be awaited first!");
20476         }
20477         const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
20478         // debug statements here
20479 }
20480         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
20481 /* @internal */
20482 export function WarningMessage_get_channel_id(this_ptr: number): number {
20483         if(!isWasmInitialized) {
20484                 throw new Error("initializeWasm() must be awaited first!");
20485         }
20486         const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
20487         return nativeResponseValue;
20488 }
20489         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20490 /* @internal */
20491 export function WarningMessage_set_channel_id(this_ptr: number, val: number): void {
20492         if(!isWasmInitialized) {
20493                 throw new Error("initializeWasm() must be awaited first!");
20494         }
20495         const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
20496         // debug statements here
20497 }
20498         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
20499 /* @internal */
20500 export function WarningMessage_get_data(this_ptr: number): number {
20501         if(!isWasmInitialized) {
20502                 throw new Error("initializeWasm() must be awaited first!");
20503         }
20504         const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
20505         return nativeResponseValue;
20506 }
20507         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
20508 /* @internal */
20509 export function WarningMessage_set_data(this_ptr: number, val: number): void {
20510         if(!isWasmInitialized) {
20511                 throw new Error("initializeWasm() must be awaited first!");
20512         }
20513         const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
20514         // debug statements here
20515 }
20516         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
20517 /* @internal */
20518 export function WarningMessage_new(channel_id_arg: number, data_arg: number): number {
20519         if(!isWasmInitialized) {
20520                 throw new Error("initializeWasm() must be awaited first!");
20521         }
20522         const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
20523         return nativeResponseValue;
20524 }
20525         // uintptr_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
20526 /* @internal */
20527 export function WarningMessage_clone_ptr(arg: number): number {
20528         if(!isWasmInitialized) {
20529                 throw new Error("initializeWasm() must be awaited first!");
20530         }
20531         const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
20532         return nativeResponseValue;
20533 }
20534         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
20535 /* @internal */
20536 export function WarningMessage_clone(orig: number): number {
20537         if(!isWasmInitialized) {
20538                 throw new Error("initializeWasm() must be awaited first!");
20539         }
20540         const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
20541         return nativeResponseValue;
20542 }
20543         // void Ping_free(struct LDKPing this_obj);
20544 /* @internal */
20545 export function Ping_free(this_obj: number): void {
20546         if(!isWasmInitialized) {
20547                 throw new Error("initializeWasm() must be awaited first!");
20548         }
20549         const nativeResponseValue = wasm.TS_Ping_free(this_obj);
20550         // debug statements here
20551 }
20552         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
20553 /* @internal */
20554 export function Ping_get_ponglen(this_ptr: number): number {
20555         if(!isWasmInitialized) {
20556                 throw new Error("initializeWasm() must be awaited first!");
20557         }
20558         const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
20559         return nativeResponseValue;
20560 }
20561         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
20562 /* @internal */
20563 export function Ping_set_ponglen(this_ptr: number, val: number): void {
20564         if(!isWasmInitialized) {
20565                 throw new Error("initializeWasm() must be awaited first!");
20566         }
20567         const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
20568         // debug statements here
20569 }
20570         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
20571 /* @internal */
20572 export function Ping_get_byteslen(this_ptr: number): number {
20573         if(!isWasmInitialized) {
20574                 throw new Error("initializeWasm() must be awaited first!");
20575         }
20576         const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
20577         return nativeResponseValue;
20578 }
20579         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
20580 /* @internal */
20581 export function Ping_set_byteslen(this_ptr: number, val: number): void {
20582         if(!isWasmInitialized) {
20583                 throw new Error("initializeWasm() must be awaited first!");
20584         }
20585         const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
20586         // debug statements here
20587 }
20588         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
20589 /* @internal */
20590 export function Ping_new(ponglen_arg: number, byteslen_arg: number): number {
20591         if(!isWasmInitialized) {
20592                 throw new Error("initializeWasm() must be awaited first!");
20593         }
20594         const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
20595         return nativeResponseValue;
20596 }
20597         // uintptr_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
20598 /* @internal */
20599 export function Ping_clone_ptr(arg: number): number {
20600         if(!isWasmInitialized) {
20601                 throw new Error("initializeWasm() must be awaited first!");
20602         }
20603         const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
20604         return nativeResponseValue;
20605 }
20606         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
20607 /* @internal */
20608 export function Ping_clone(orig: number): number {
20609         if(!isWasmInitialized) {
20610                 throw new Error("initializeWasm() must be awaited first!");
20611         }
20612         const nativeResponseValue = wasm.TS_Ping_clone(orig);
20613         return nativeResponseValue;
20614 }
20615         // void Pong_free(struct LDKPong this_obj);
20616 /* @internal */
20617 export function Pong_free(this_obj: number): void {
20618         if(!isWasmInitialized) {
20619                 throw new Error("initializeWasm() must be awaited first!");
20620         }
20621         const nativeResponseValue = wasm.TS_Pong_free(this_obj);
20622         // debug statements here
20623 }
20624         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
20625 /* @internal */
20626 export function Pong_get_byteslen(this_ptr: number): number {
20627         if(!isWasmInitialized) {
20628                 throw new Error("initializeWasm() must be awaited first!");
20629         }
20630         const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
20631         return nativeResponseValue;
20632 }
20633         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
20634 /* @internal */
20635 export function Pong_set_byteslen(this_ptr: number, val: number): void {
20636         if(!isWasmInitialized) {
20637                 throw new Error("initializeWasm() must be awaited first!");
20638         }
20639         const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
20640         // debug statements here
20641 }
20642         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
20643 /* @internal */
20644 export function Pong_new(byteslen_arg: number): number {
20645         if(!isWasmInitialized) {
20646                 throw new Error("initializeWasm() must be awaited first!");
20647         }
20648         const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
20649         return nativeResponseValue;
20650 }
20651         // uintptr_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
20652 /* @internal */
20653 export function Pong_clone_ptr(arg: number): number {
20654         if(!isWasmInitialized) {
20655                 throw new Error("initializeWasm() must be awaited first!");
20656         }
20657         const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
20658         return nativeResponseValue;
20659 }
20660         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
20661 /* @internal */
20662 export function Pong_clone(orig: number): number {
20663         if(!isWasmInitialized) {
20664                 throw new Error("initializeWasm() must be awaited first!");
20665         }
20666         const nativeResponseValue = wasm.TS_Pong_clone(orig);
20667         return nativeResponseValue;
20668 }
20669         // void OpenChannel_free(struct LDKOpenChannel this_obj);
20670 /* @internal */
20671 export function OpenChannel_free(this_obj: number): void {
20672         if(!isWasmInitialized) {
20673                 throw new Error("initializeWasm() must be awaited first!");
20674         }
20675         const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
20676         // debug statements here
20677 }
20678         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
20679 /* @internal */
20680 export function OpenChannel_get_chain_hash(this_ptr: number): number {
20681         if(!isWasmInitialized) {
20682                 throw new Error("initializeWasm() must be awaited first!");
20683         }
20684         const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
20685         return nativeResponseValue;
20686 }
20687         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20688 /* @internal */
20689 export function OpenChannel_set_chain_hash(this_ptr: number, val: number): void {
20690         if(!isWasmInitialized) {
20691                 throw new Error("initializeWasm() must be awaited first!");
20692         }
20693         const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
20694         // debug statements here
20695 }
20696         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
20697 /* @internal */
20698 export function OpenChannel_get_temporary_channel_id(this_ptr: number): number {
20699         if(!isWasmInitialized) {
20700                 throw new Error("initializeWasm() must be awaited first!");
20701         }
20702         const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
20703         return nativeResponseValue;
20704 }
20705         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20706 /* @internal */
20707 export function OpenChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
20708         if(!isWasmInitialized) {
20709                 throw new Error("initializeWasm() must be awaited first!");
20710         }
20711         const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
20712         // debug statements here
20713 }
20714         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20715 /* @internal */
20716 export function OpenChannel_get_funding_satoshis(this_ptr: number): bigint {
20717         if(!isWasmInitialized) {
20718                 throw new Error("initializeWasm() must be awaited first!");
20719         }
20720         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
20721         return nativeResponseValue;
20722 }
20723         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20724 /* @internal */
20725 export function OpenChannel_set_funding_satoshis(this_ptr: number, val: bigint): void {
20726         if(!isWasmInitialized) {
20727                 throw new Error("initializeWasm() must be awaited first!");
20728         }
20729         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
20730         // debug statements here
20731 }
20732         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20733 /* @internal */
20734 export function OpenChannel_get_push_msat(this_ptr: number): bigint {
20735         if(!isWasmInitialized) {
20736                 throw new Error("initializeWasm() must be awaited first!");
20737         }
20738         const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
20739         return nativeResponseValue;
20740 }
20741         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20742 /* @internal */
20743 export function OpenChannel_set_push_msat(this_ptr: number, val: bigint): void {
20744         if(!isWasmInitialized) {
20745                 throw new Error("initializeWasm() must be awaited first!");
20746         }
20747         const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
20748         // debug statements here
20749 }
20750         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20751 /* @internal */
20752 export function OpenChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
20753         if(!isWasmInitialized) {
20754                 throw new Error("initializeWasm() must be awaited first!");
20755         }
20756         const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
20757         return nativeResponseValue;
20758 }
20759         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20760 /* @internal */
20761 export function OpenChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
20762         if(!isWasmInitialized) {
20763                 throw new Error("initializeWasm() must be awaited first!");
20764         }
20765         const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
20766         // debug statements here
20767 }
20768         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20769 /* @internal */
20770 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
20771         if(!isWasmInitialized) {
20772                 throw new Error("initializeWasm() must be awaited first!");
20773         }
20774         const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
20775         return nativeResponseValue;
20776 }
20777         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20778 /* @internal */
20779 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
20780         if(!isWasmInitialized) {
20781                 throw new Error("initializeWasm() must be awaited first!");
20782         }
20783         const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
20784         // debug statements here
20785 }
20786         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20787 /* @internal */
20788 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
20789         if(!isWasmInitialized) {
20790                 throw new Error("initializeWasm() must be awaited first!");
20791         }
20792         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
20793         return nativeResponseValue;
20794 }
20795         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20796 /* @internal */
20797 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
20798         if(!isWasmInitialized) {
20799                 throw new Error("initializeWasm() must be awaited first!");
20800         }
20801         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
20802         // debug statements here
20803 }
20804         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20805 /* @internal */
20806 export function OpenChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
20807         if(!isWasmInitialized) {
20808                 throw new Error("initializeWasm() must be awaited first!");
20809         }
20810         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
20811         return nativeResponseValue;
20812 }
20813         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20814 /* @internal */
20815 export function OpenChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
20816         if(!isWasmInitialized) {
20817                 throw new Error("initializeWasm() must be awaited first!");
20818         }
20819         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
20820         // debug statements here
20821 }
20822         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20823 /* @internal */
20824 export function OpenChannel_get_feerate_per_kw(this_ptr: number): number {
20825         if(!isWasmInitialized) {
20826                 throw new Error("initializeWasm() must be awaited first!");
20827         }
20828         const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
20829         return nativeResponseValue;
20830 }
20831         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
20832 /* @internal */
20833 export function OpenChannel_set_feerate_per_kw(this_ptr: number, val: number): void {
20834         if(!isWasmInitialized) {
20835                 throw new Error("initializeWasm() must be awaited first!");
20836         }
20837         const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
20838         // debug statements here
20839 }
20840         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20841 /* @internal */
20842 export function OpenChannel_get_to_self_delay(this_ptr: number): number {
20843         if(!isWasmInitialized) {
20844                 throw new Error("initializeWasm() must be awaited first!");
20845         }
20846         const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
20847         return nativeResponseValue;
20848 }
20849         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
20850 /* @internal */
20851 export function OpenChannel_set_to_self_delay(this_ptr: number, val: number): void {
20852         if(!isWasmInitialized) {
20853                 throw new Error("initializeWasm() must be awaited first!");
20854         }
20855         const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
20856         // debug statements here
20857 }
20858         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20859 /* @internal */
20860 export function OpenChannel_get_max_accepted_htlcs(this_ptr: number): number {
20861         if(!isWasmInitialized) {
20862                 throw new Error("initializeWasm() must be awaited first!");
20863         }
20864         const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
20865         return nativeResponseValue;
20866 }
20867         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
20868 /* @internal */
20869 export function OpenChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
20870         if(!isWasmInitialized) {
20871                 throw new Error("initializeWasm() must be awaited first!");
20872         }
20873         const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
20874         // debug statements here
20875 }
20876         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20877 /* @internal */
20878 export function OpenChannel_get_funding_pubkey(this_ptr: number): number {
20879         if(!isWasmInitialized) {
20880                 throw new Error("initializeWasm() must be awaited first!");
20881         }
20882         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
20883         return nativeResponseValue;
20884 }
20885         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20886 /* @internal */
20887 export function OpenChannel_set_funding_pubkey(this_ptr: number, val: number): void {
20888         if(!isWasmInitialized) {
20889                 throw new Error("initializeWasm() must be awaited first!");
20890         }
20891         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
20892         // debug statements here
20893 }
20894         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20895 /* @internal */
20896 export function OpenChannel_get_revocation_basepoint(this_ptr: number): number {
20897         if(!isWasmInitialized) {
20898                 throw new Error("initializeWasm() must be awaited first!");
20899         }
20900         const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
20901         return nativeResponseValue;
20902 }
20903         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20904 /* @internal */
20905 export function OpenChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
20906         if(!isWasmInitialized) {
20907                 throw new Error("initializeWasm() must be awaited first!");
20908         }
20909         const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
20910         // debug statements here
20911 }
20912         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20913 /* @internal */
20914 export function OpenChannel_get_payment_point(this_ptr: number): number {
20915         if(!isWasmInitialized) {
20916                 throw new Error("initializeWasm() must be awaited first!");
20917         }
20918         const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
20919         return nativeResponseValue;
20920 }
20921         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20922 /* @internal */
20923 export function OpenChannel_set_payment_point(this_ptr: number, val: number): void {
20924         if(!isWasmInitialized) {
20925                 throw new Error("initializeWasm() must be awaited first!");
20926         }
20927         const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
20928         // debug statements here
20929 }
20930         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20931 /* @internal */
20932 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20933         if(!isWasmInitialized) {
20934                 throw new Error("initializeWasm() must be awaited first!");
20935         }
20936         const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
20937         return nativeResponseValue;
20938 }
20939         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20940 /* @internal */
20941 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20942         if(!isWasmInitialized) {
20943                 throw new Error("initializeWasm() must be awaited first!");
20944         }
20945         const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
20946         // debug statements here
20947 }
20948         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20949 /* @internal */
20950 export function OpenChannel_get_htlc_basepoint(this_ptr: number): number {
20951         if(!isWasmInitialized) {
20952                 throw new Error("initializeWasm() must be awaited first!");
20953         }
20954         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
20955         return nativeResponseValue;
20956 }
20957         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20958 /* @internal */
20959 export function OpenChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20960         if(!isWasmInitialized) {
20961                 throw new Error("initializeWasm() must be awaited first!");
20962         }
20963         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
20964         // debug statements here
20965 }
20966         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20967 /* @internal */
20968 export function OpenChannel_get_first_per_commitment_point(this_ptr: number): number {
20969         if(!isWasmInitialized) {
20970                 throw new Error("initializeWasm() must be awaited first!");
20971         }
20972         const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
20973         return nativeResponseValue;
20974 }
20975         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20976 /* @internal */
20977 export function OpenChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
20978         if(!isWasmInitialized) {
20979                 throw new Error("initializeWasm() must be awaited first!");
20980         }
20981         const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
20982         // debug statements here
20983 }
20984         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20985 /* @internal */
20986 export function OpenChannel_get_channel_flags(this_ptr: number): number {
20987         if(!isWasmInitialized) {
20988                 throw new Error("initializeWasm() must be awaited first!");
20989         }
20990         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
20991         return nativeResponseValue;
20992 }
20993         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
20994 /* @internal */
20995 export function OpenChannel_set_channel_flags(this_ptr: number, val: number): void {
20996         if(!isWasmInitialized) {
20997                 throw new Error("initializeWasm() must be awaited first!");
20998         }
20999         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
21000         // debug statements here
21001 }
21002         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
21003 /* @internal */
21004 export function OpenChannel_get_channel_type(this_ptr: number): number {
21005         if(!isWasmInitialized) {
21006                 throw new Error("initializeWasm() must be awaited first!");
21007         }
21008         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
21009         return nativeResponseValue;
21010 }
21011         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
21012 /* @internal */
21013 export function OpenChannel_set_channel_type(this_ptr: number, val: number): void {
21014         if(!isWasmInitialized) {
21015                 throw new Error("initializeWasm() must be awaited first!");
21016         }
21017         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
21018         // debug statements here
21019 }
21020         // uintptr_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
21021 /* @internal */
21022 export function OpenChannel_clone_ptr(arg: number): number {
21023         if(!isWasmInitialized) {
21024                 throw new Error("initializeWasm() must be awaited first!");
21025         }
21026         const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
21027         return nativeResponseValue;
21028 }
21029         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
21030 /* @internal */
21031 export function OpenChannel_clone(orig: number): number {
21032         if(!isWasmInitialized) {
21033                 throw new Error("initializeWasm() must be awaited first!");
21034         }
21035         const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
21036         return nativeResponseValue;
21037 }
21038         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
21039 /* @internal */
21040 export function AcceptChannel_free(this_obj: number): void {
21041         if(!isWasmInitialized) {
21042                 throw new Error("initializeWasm() must be awaited first!");
21043         }
21044         const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
21045         // debug statements here
21046 }
21047         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
21048 /* @internal */
21049 export function AcceptChannel_get_temporary_channel_id(this_ptr: number): number {
21050         if(!isWasmInitialized) {
21051                 throw new Error("initializeWasm() must be awaited first!");
21052         }
21053         const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
21054         return nativeResponseValue;
21055 }
21056         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21057 /* @internal */
21058 export function AcceptChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
21059         if(!isWasmInitialized) {
21060                 throw new Error("initializeWasm() must be awaited first!");
21061         }
21062         const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
21063         // debug statements here
21064 }
21065         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21066 /* @internal */
21067 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
21068         if(!isWasmInitialized) {
21069                 throw new Error("initializeWasm() must be awaited first!");
21070         }
21071         const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
21072         return nativeResponseValue;
21073 }
21074         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21075 /* @internal */
21076 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
21077         if(!isWasmInitialized) {
21078                 throw new Error("initializeWasm() must be awaited first!");
21079         }
21080         const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
21081         // debug statements here
21082 }
21083         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21084 /* @internal */
21085 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
21086         if(!isWasmInitialized) {
21087                 throw new Error("initializeWasm() must be awaited first!");
21088         }
21089         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
21090         return nativeResponseValue;
21091 }
21092         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21093 /* @internal */
21094 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
21095         if(!isWasmInitialized) {
21096                 throw new Error("initializeWasm() must be awaited first!");
21097         }
21098         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
21099         // debug statements here
21100 }
21101         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21102 /* @internal */
21103 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
21104         if(!isWasmInitialized) {
21105                 throw new Error("initializeWasm() must be awaited first!");
21106         }
21107         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
21108         return nativeResponseValue;
21109 }
21110         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21111 /* @internal */
21112 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
21113         if(!isWasmInitialized) {
21114                 throw new Error("initializeWasm() must be awaited first!");
21115         }
21116         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
21117         // debug statements here
21118 }
21119         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21120 /* @internal */
21121 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
21122         if(!isWasmInitialized) {
21123                 throw new Error("initializeWasm() must be awaited first!");
21124         }
21125         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
21126         return nativeResponseValue;
21127 }
21128         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21129 /* @internal */
21130 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
21131         if(!isWasmInitialized) {
21132                 throw new Error("initializeWasm() must be awaited first!");
21133         }
21134         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
21135         // debug statements here
21136 }
21137         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21138 /* @internal */
21139 export function AcceptChannel_get_minimum_depth(this_ptr: number): number {
21140         if(!isWasmInitialized) {
21141                 throw new Error("initializeWasm() must be awaited first!");
21142         }
21143         const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
21144         return nativeResponseValue;
21145 }
21146         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
21147 /* @internal */
21148 export function AcceptChannel_set_minimum_depth(this_ptr: number, val: number): void {
21149         if(!isWasmInitialized) {
21150                 throw new Error("initializeWasm() must be awaited first!");
21151         }
21152         const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
21153         // debug statements here
21154 }
21155         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21156 /* @internal */
21157 export function AcceptChannel_get_to_self_delay(this_ptr: number): number {
21158         if(!isWasmInitialized) {
21159                 throw new Error("initializeWasm() must be awaited first!");
21160         }
21161         const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
21162         return nativeResponseValue;
21163 }
21164         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
21165 /* @internal */
21166 export function AcceptChannel_set_to_self_delay(this_ptr: number, val: number): void {
21167         if(!isWasmInitialized) {
21168                 throw new Error("initializeWasm() must be awaited first!");
21169         }
21170         const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
21171         // debug statements here
21172 }
21173         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21174 /* @internal */
21175 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: number): number {
21176         if(!isWasmInitialized) {
21177                 throw new Error("initializeWasm() must be awaited first!");
21178         }
21179         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
21180         return nativeResponseValue;
21181 }
21182         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
21183 /* @internal */
21184 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
21185         if(!isWasmInitialized) {
21186                 throw new Error("initializeWasm() must be awaited first!");
21187         }
21188         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
21189         // debug statements here
21190 }
21191         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21192 /* @internal */
21193 export function AcceptChannel_get_funding_pubkey(this_ptr: number): number {
21194         if(!isWasmInitialized) {
21195                 throw new Error("initializeWasm() must be awaited first!");
21196         }
21197         const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
21198         return nativeResponseValue;
21199 }
21200         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21201 /* @internal */
21202 export function AcceptChannel_set_funding_pubkey(this_ptr: number, val: number): void {
21203         if(!isWasmInitialized) {
21204                 throw new Error("initializeWasm() must be awaited first!");
21205         }
21206         const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
21207         // debug statements here
21208 }
21209         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21210 /* @internal */
21211 export function AcceptChannel_get_revocation_basepoint(this_ptr: number): number {
21212         if(!isWasmInitialized) {
21213                 throw new Error("initializeWasm() must be awaited first!");
21214         }
21215         const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
21216         return nativeResponseValue;
21217 }
21218         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21219 /* @internal */
21220 export function AcceptChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
21221         if(!isWasmInitialized) {
21222                 throw new Error("initializeWasm() must be awaited first!");
21223         }
21224         const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
21225         // debug statements here
21226 }
21227         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21228 /* @internal */
21229 export function AcceptChannel_get_payment_point(this_ptr: number): number {
21230         if(!isWasmInitialized) {
21231                 throw new Error("initializeWasm() must be awaited first!");
21232         }
21233         const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
21234         return nativeResponseValue;
21235 }
21236         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21237 /* @internal */
21238 export function AcceptChannel_set_payment_point(this_ptr: number, val: number): void {
21239         if(!isWasmInitialized) {
21240                 throw new Error("initializeWasm() must be awaited first!");
21241         }
21242         const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
21243         // debug statements here
21244 }
21245         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21246 /* @internal */
21247 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: number): number {
21248         if(!isWasmInitialized) {
21249                 throw new Error("initializeWasm() must be awaited first!");
21250         }
21251         const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
21252         return nativeResponseValue;
21253 }
21254         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21255 /* @internal */
21256 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
21257         if(!isWasmInitialized) {
21258                 throw new Error("initializeWasm() must be awaited first!");
21259         }
21260         const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
21261         // debug statements here
21262 }
21263         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21264 /* @internal */
21265 export function AcceptChannel_get_htlc_basepoint(this_ptr: number): number {
21266         if(!isWasmInitialized) {
21267                 throw new Error("initializeWasm() must be awaited first!");
21268         }
21269         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
21270         return nativeResponseValue;
21271 }
21272         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21273 /* @internal */
21274 export function AcceptChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
21275         if(!isWasmInitialized) {
21276                 throw new Error("initializeWasm() must be awaited first!");
21277         }
21278         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
21279         // debug statements here
21280 }
21281         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21282 /* @internal */
21283 export function AcceptChannel_get_first_per_commitment_point(this_ptr: number): number {
21284         if(!isWasmInitialized) {
21285                 throw new Error("initializeWasm() must be awaited first!");
21286         }
21287         const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
21288         return nativeResponseValue;
21289 }
21290         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21291 /* @internal */
21292 export function AcceptChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
21293         if(!isWasmInitialized) {
21294                 throw new Error("initializeWasm() must be awaited first!");
21295         }
21296         const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
21297         // debug statements here
21298 }
21299         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21300 /* @internal */
21301 export function AcceptChannel_get_channel_type(this_ptr: number): number {
21302         if(!isWasmInitialized) {
21303                 throw new Error("initializeWasm() must be awaited first!");
21304         }
21305         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
21306         return nativeResponseValue;
21307 }
21308         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
21309 /* @internal */
21310 export function AcceptChannel_set_channel_type(this_ptr: number, val: number): void {
21311         if(!isWasmInitialized) {
21312                 throw new Error("initializeWasm() must be awaited first!");
21313         }
21314         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
21315         // debug statements here
21316 }
21317         // uintptr_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
21318 /* @internal */
21319 export function AcceptChannel_clone_ptr(arg: number): number {
21320         if(!isWasmInitialized) {
21321                 throw new Error("initializeWasm() must be awaited first!");
21322         }
21323         const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
21324         return nativeResponseValue;
21325 }
21326         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
21327 /* @internal */
21328 export function AcceptChannel_clone(orig: number): number {
21329         if(!isWasmInitialized) {
21330                 throw new Error("initializeWasm() must be awaited first!");
21331         }
21332         const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
21333         return nativeResponseValue;
21334 }
21335         // void FundingCreated_free(struct LDKFundingCreated this_obj);
21336 /* @internal */
21337 export function FundingCreated_free(this_obj: number): void {
21338         if(!isWasmInitialized) {
21339                 throw new Error("initializeWasm() must be awaited first!");
21340         }
21341         const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
21342         // debug statements here
21343 }
21344         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
21345 /* @internal */
21346 export function FundingCreated_get_temporary_channel_id(this_ptr: number): number {
21347         if(!isWasmInitialized) {
21348                 throw new Error("initializeWasm() must be awaited first!");
21349         }
21350         const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
21351         return nativeResponseValue;
21352 }
21353         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21354 /* @internal */
21355 export function FundingCreated_set_temporary_channel_id(this_ptr: number, val: number): void {
21356         if(!isWasmInitialized) {
21357                 throw new Error("initializeWasm() must be awaited first!");
21358         }
21359         const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
21360         // debug statements here
21361 }
21362         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
21363 /* @internal */
21364 export function FundingCreated_get_funding_txid(this_ptr: number): number {
21365         if(!isWasmInitialized) {
21366                 throw new Error("initializeWasm() must be awaited first!");
21367         }
21368         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
21369         return nativeResponseValue;
21370 }
21371         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21372 /* @internal */
21373 export function FundingCreated_set_funding_txid(this_ptr: number, val: number): void {
21374         if(!isWasmInitialized) {
21375                 throw new Error("initializeWasm() must be awaited first!");
21376         }
21377         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
21378         // debug statements here
21379 }
21380         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
21381 /* @internal */
21382 export function FundingCreated_get_funding_output_index(this_ptr: number): number {
21383         if(!isWasmInitialized) {
21384                 throw new Error("initializeWasm() must be awaited first!");
21385         }
21386         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
21387         return nativeResponseValue;
21388 }
21389         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
21390 /* @internal */
21391 export function FundingCreated_set_funding_output_index(this_ptr: number, val: number): void {
21392         if(!isWasmInitialized) {
21393                 throw new Error("initializeWasm() must be awaited first!");
21394         }
21395         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
21396         // debug statements here
21397 }
21398         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
21399 /* @internal */
21400 export function FundingCreated_get_signature(this_ptr: number): number {
21401         if(!isWasmInitialized) {
21402                 throw new Error("initializeWasm() must be awaited first!");
21403         }
21404         const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
21405         return nativeResponseValue;
21406 }
21407         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
21408 /* @internal */
21409 export function FundingCreated_set_signature(this_ptr: number, val: number): void {
21410         if(!isWasmInitialized) {
21411                 throw new Error("initializeWasm() must be awaited first!");
21412         }
21413         const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
21414         // debug statements here
21415 }
21416         // 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);
21417 /* @internal */
21418 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): number {
21419         if(!isWasmInitialized) {
21420                 throw new Error("initializeWasm() must be awaited first!");
21421         }
21422         const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
21423         return nativeResponseValue;
21424 }
21425         // uintptr_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
21426 /* @internal */
21427 export function FundingCreated_clone_ptr(arg: number): number {
21428         if(!isWasmInitialized) {
21429                 throw new Error("initializeWasm() must be awaited first!");
21430         }
21431         const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
21432         return nativeResponseValue;
21433 }
21434         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
21435 /* @internal */
21436 export function FundingCreated_clone(orig: number): number {
21437         if(!isWasmInitialized) {
21438                 throw new Error("initializeWasm() must be awaited first!");
21439         }
21440         const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
21441         return nativeResponseValue;
21442 }
21443         // void FundingSigned_free(struct LDKFundingSigned this_obj);
21444 /* @internal */
21445 export function FundingSigned_free(this_obj: number): void {
21446         if(!isWasmInitialized) {
21447                 throw new Error("initializeWasm() must be awaited first!");
21448         }
21449         const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
21450         // debug statements here
21451 }
21452         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
21453 /* @internal */
21454 export function FundingSigned_get_channel_id(this_ptr: number): number {
21455         if(!isWasmInitialized) {
21456                 throw new Error("initializeWasm() must be awaited first!");
21457         }
21458         const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
21459         return nativeResponseValue;
21460 }
21461         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21462 /* @internal */
21463 export function FundingSigned_set_channel_id(this_ptr: number, val: number): void {
21464         if(!isWasmInitialized) {
21465                 throw new Error("initializeWasm() must be awaited first!");
21466         }
21467         const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
21468         // debug statements here
21469 }
21470         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
21471 /* @internal */
21472 export function FundingSigned_get_signature(this_ptr: number): number {
21473         if(!isWasmInitialized) {
21474                 throw new Error("initializeWasm() must be awaited first!");
21475         }
21476         const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
21477         return nativeResponseValue;
21478 }
21479         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21480 /* @internal */
21481 export function FundingSigned_set_signature(this_ptr: number, val: number): void {
21482         if(!isWasmInitialized) {
21483                 throw new Error("initializeWasm() must be awaited first!");
21484         }
21485         const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
21486         // debug statements here
21487 }
21488         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
21489 /* @internal */
21490 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): number {
21491         if(!isWasmInitialized) {
21492                 throw new Error("initializeWasm() must be awaited first!");
21493         }
21494         const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
21495         return nativeResponseValue;
21496 }
21497         // uintptr_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
21498 /* @internal */
21499 export function FundingSigned_clone_ptr(arg: number): number {
21500         if(!isWasmInitialized) {
21501                 throw new Error("initializeWasm() must be awaited first!");
21502         }
21503         const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
21504         return nativeResponseValue;
21505 }
21506         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
21507 /* @internal */
21508 export function FundingSigned_clone(orig: number): number {
21509         if(!isWasmInitialized) {
21510                 throw new Error("initializeWasm() must be awaited first!");
21511         }
21512         const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
21513         return nativeResponseValue;
21514 }
21515         // void ChannelReady_free(struct LDKChannelReady this_obj);
21516 /* @internal */
21517 export function ChannelReady_free(this_obj: number): void {
21518         if(!isWasmInitialized) {
21519                 throw new Error("initializeWasm() must be awaited first!");
21520         }
21521         const nativeResponseValue = wasm.TS_ChannelReady_free(this_obj);
21522         // debug statements here
21523 }
21524         // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
21525 /* @internal */
21526 export function ChannelReady_get_channel_id(this_ptr: number): number {
21527         if(!isWasmInitialized) {
21528                 throw new Error("initializeWasm() must be awaited first!");
21529         }
21530         const nativeResponseValue = wasm.TS_ChannelReady_get_channel_id(this_ptr);
21531         return nativeResponseValue;
21532 }
21533         // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21534 /* @internal */
21535 export function ChannelReady_set_channel_id(this_ptr: number, val: number): void {
21536         if(!isWasmInitialized) {
21537                 throw new Error("initializeWasm() must be awaited first!");
21538         }
21539         const nativeResponseValue = wasm.TS_ChannelReady_set_channel_id(this_ptr, val);
21540         // debug statements here
21541 }
21542         // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
21543 /* @internal */
21544 export function ChannelReady_get_next_per_commitment_point(this_ptr: number): number {
21545         if(!isWasmInitialized) {
21546                 throw new Error("initializeWasm() must be awaited first!");
21547         }
21548         const nativeResponseValue = wasm.TS_ChannelReady_get_next_per_commitment_point(this_ptr);
21549         return nativeResponseValue;
21550 }
21551         // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21552 /* @internal */
21553 export function ChannelReady_set_next_per_commitment_point(this_ptr: number, val: number): void {
21554         if(!isWasmInitialized) {
21555                 throw new Error("initializeWasm() must be awaited first!");
21556         }
21557         const nativeResponseValue = wasm.TS_ChannelReady_set_next_per_commitment_point(this_ptr, val);
21558         // debug statements here
21559 }
21560         // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
21561 /* @internal */
21562 export function ChannelReady_get_short_channel_id_alias(this_ptr: number): number {
21563         if(!isWasmInitialized) {
21564                 throw new Error("initializeWasm() must be awaited first!");
21565         }
21566         const nativeResponseValue = wasm.TS_ChannelReady_get_short_channel_id_alias(this_ptr);
21567         return nativeResponseValue;
21568 }
21569         // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
21570 /* @internal */
21571 export function ChannelReady_set_short_channel_id_alias(this_ptr: number, val: number): void {
21572         if(!isWasmInitialized) {
21573                 throw new Error("initializeWasm() must be awaited first!");
21574         }
21575         const nativeResponseValue = wasm.TS_ChannelReady_set_short_channel_id_alias(this_ptr, val);
21576         // debug statements here
21577 }
21578         // 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);
21579 /* @internal */
21580 export function ChannelReady_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: number): number {
21581         if(!isWasmInitialized) {
21582                 throw new Error("initializeWasm() must be awaited first!");
21583         }
21584         const nativeResponseValue = wasm.TS_ChannelReady_new(channel_id_arg, next_per_commitment_point_arg, short_channel_id_alias_arg);
21585         return nativeResponseValue;
21586 }
21587         // uintptr_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
21588 /* @internal */
21589 export function ChannelReady_clone_ptr(arg: number): number {
21590         if(!isWasmInitialized) {
21591                 throw new Error("initializeWasm() must be awaited first!");
21592         }
21593         const nativeResponseValue = wasm.TS_ChannelReady_clone_ptr(arg);
21594         return nativeResponseValue;
21595 }
21596         // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
21597 /* @internal */
21598 export function ChannelReady_clone(orig: number): number {
21599         if(!isWasmInitialized) {
21600                 throw new Error("initializeWasm() must be awaited first!");
21601         }
21602         const nativeResponseValue = wasm.TS_ChannelReady_clone(orig);
21603         return nativeResponseValue;
21604 }
21605         // void Shutdown_free(struct LDKShutdown this_obj);
21606 /* @internal */
21607 export function Shutdown_free(this_obj: number): void {
21608         if(!isWasmInitialized) {
21609                 throw new Error("initializeWasm() must be awaited first!");
21610         }
21611         const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
21612         // debug statements here
21613 }
21614         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
21615 /* @internal */
21616 export function Shutdown_get_channel_id(this_ptr: number): number {
21617         if(!isWasmInitialized) {
21618                 throw new Error("initializeWasm() must be awaited first!");
21619         }
21620         const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
21621         return nativeResponseValue;
21622 }
21623         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21624 /* @internal */
21625 export function Shutdown_set_channel_id(this_ptr: number, val: number): void {
21626         if(!isWasmInitialized) {
21627                 throw new Error("initializeWasm() must be awaited first!");
21628         }
21629         const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
21630         // debug statements here
21631 }
21632         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
21633 /* @internal */
21634 export function Shutdown_get_scriptpubkey(this_ptr: number): number {
21635         if(!isWasmInitialized) {
21636                 throw new Error("initializeWasm() must be awaited first!");
21637         }
21638         const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
21639         return nativeResponseValue;
21640 }
21641         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
21642 /* @internal */
21643 export function Shutdown_set_scriptpubkey(this_ptr: number, val: number): void {
21644         if(!isWasmInitialized) {
21645                 throw new Error("initializeWasm() must be awaited first!");
21646         }
21647         const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
21648         // debug statements here
21649 }
21650         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
21651 /* @internal */
21652 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): number {
21653         if(!isWasmInitialized) {
21654                 throw new Error("initializeWasm() must be awaited first!");
21655         }
21656         const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
21657         return nativeResponseValue;
21658 }
21659         // uintptr_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
21660 /* @internal */
21661 export function Shutdown_clone_ptr(arg: number): number {
21662         if(!isWasmInitialized) {
21663                 throw new Error("initializeWasm() must be awaited first!");
21664         }
21665         const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
21666         return nativeResponseValue;
21667 }
21668         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
21669 /* @internal */
21670 export function Shutdown_clone(orig: number): number {
21671         if(!isWasmInitialized) {
21672                 throw new Error("initializeWasm() must be awaited first!");
21673         }
21674         const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
21675         return nativeResponseValue;
21676 }
21677         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
21678 /* @internal */
21679 export function ClosingSignedFeeRange_free(this_obj: number): void {
21680         if(!isWasmInitialized) {
21681                 throw new Error("initializeWasm() must be awaited first!");
21682         }
21683         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
21684         // debug statements here
21685 }
21686         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
21687 /* @internal */
21688 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: number): bigint {
21689         if(!isWasmInitialized) {
21690                 throw new Error("initializeWasm() must be awaited first!");
21691         }
21692         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
21693         return nativeResponseValue;
21694 }
21695         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
21696 /* @internal */
21697 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: number, val: bigint): void {
21698         if(!isWasmInitialized) {
21699                 throw new Error("initializeWasm() must be awaited first!");
21700         }
21701         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
21702         // debug statements here
21703 }
21704         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
21705 /* @internal */
21706 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: number): bigint {
21707         if(!isWasmInitialized) {
21708                 throw new Error("initializeWasm() must be awaited first!");
21709         }
21710         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
21711         return nativeResponseValue;
21712 }
21713         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
21714 /* @internal */
21715 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: number, val: bigint): void {
21716         if(!isWasmInitialized) {
21717                 throw new Error("initializeWasm() must be awaited first!");
21718         }
21719         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
21720         // debug statements here
21721 }
21722         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
21723 /* @internal */
21724 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): number {
21725         if(!isWasmInitialized) {
21726                 throw new Error("initializeWasm() must be awaited first!");
21727         }
21728         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
21729         return nativeResponseValue;
21730 }
21731         // uintptr_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
21732 /* @internal */
21733 export function ClosingSignedFeeRange_clone_ptr(arg: number): number {
21734         if(!isWasmInitialized) {
21735                 throw new Error("initializeWasm() must be awaited first!");
21736         }
21737         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
21738         return nativeResponseValue;
21739 }
21740         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
21741 /* @internal */
21742 export function ClosingSignedFeeRange_clone(orig: number): number {
21743         if(!isWasmInitialized) {
21744                 throw new Error("initializeWasm() must be awaited first!");
21745         }
21746         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
21747         return nativeResponseValue;
21748 }
21749         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
21750 /* @internal */
21751 export function ClosingSigned_free(this_obj: number): void {
21752         if(!isWasmInitialized) {
21753                 throw new Error("initializeWasm() must be awaited first!");
21754         }
21755         const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
21756         // debug statements here
21757 }
21758         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
21759 /* @internal */
21760 export function ClosingSigned_get_channel_id(this_ptr: number): number {
21761         if(!isWasmInitialized) {
21762                 throw new Error("initializeWasm() must be awaited first!");
21763         }
21764         const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
21765         return nativeResponseValue;
21766 }
21767         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21768 /* @internal */
21769 export function ClosingSigned_set_channel_id(this_ptr: number, val: number): void {
21770         if(!isWasmInitialized) {
21771                 throw new Error("initializeWasm() must be awaited first!");
21772         }
21773         const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
21774         // debug statements here
21775 }
21776         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21777 /* @internal */
21778 export function ClosingSigned_get_fee_satoshis(this_ptr: number): bigint {
21779         if(!isWasmInitialized) {
21780                 throw new Error("initializeWasm() must be awaited first!");
21781         }
21782         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
21783         return nativeResponseValue;
21784 }
21785         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
21786 /* @internal */
21787 export function ClosingSigned_set_fee_satoshis(this_ptr: number, val: bigint): void {
21788         if(!isWasmInitialized) {
21789                 throw new Error("initializeWasm() must be awaited first!");
21790         }
21791         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
21792         // debug statements here
21793 }
21794         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21795 /* @internal */
21796 export function ClosingSigned_get_signature(this_ptr: number): number {
21797         if(!isWasmInitialized) {
21798                 throw new Error("initializeWasm() must be awaited first!");
21799         }
21800         const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
21801         return nativeResponseValue;
21802 }
21803         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21804 /* @internal */
21805 export function ClosingSigned_set_signature(this_ptr: number, val: number): void {
21806         if(!isWasmInitialized) {
21807                 throw new Error("initializeWasm() must be awaited first!");
21808         }
21809         const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
21810         // debug statements here
21811 }
21812         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21813 /* @internal */
21814 export function ClosingSigned_get_fee_range(this_ptr: number): number {
21815         if(!isWasmInitialized) {
21816                 throw new Error("initializeWasm() must be awaited first!");
21817         }
21818         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
21819         return nativeResponseValue;
21820 }
21821         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
21822 /* @internal */
21823 export function ClosingSigned_set_fee_range(this_ptr: number, val: number): void {
21824         if(!isWasmInitialized) {
21825                 throw new Error("initializeWasm() must be awaited first!");
21826         }
21827         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
21828         // debug statements here
21829 }
21830         // 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);
21831 /* @internal */
21832 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: number): number {
21833         if(!isWasmInitialized) {
21834                 throw new Error("initializeWasm() must be awaited first!");
21835         }
21836         const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
21837         return nativeResponseValue;
21838 }
21839         // uintptr_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
21840 /* @internal */
21841 export function ClosingSigned_clone_ptr(arg: number): number {
21842         if(!isWasmInitialized) {
21843                 throw new Error("initializeWasm() must be awaited first!");
21844         }
21845         const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
21846         return nativeResponseValue;
21847 }
21848         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
21849 /* @internal */
21850 export function ClosingSigned_clone(orig: number): number {
21851         if(!isWasmInitialized) {
21852                 throw new Error("initializeWasm() must be awaited first!");
21853         }
21854         const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
21855         return nativeResponseValue;
21856 }
21857         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
21858 /* @internal */
21859 export function UpdateAddHTLC_free(this_obj: number): void {
21860         if(!isWasmInitialized) {
21861                 throw new Error("initializeWasm() must be awaited first!");
21862         }
21863         const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
21864         // debug statements here
21865 }
21866         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21867 /* @internal */
21868 export function UpdateAddHTLC_get_channel_id(this_ptr: number): number {
21869         if(!isWasmInitialized) {
21870                 throw new Error("initializeWasm() must be awaited first!");
21871         }
21872         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
21873         return nativeResponseValue;
21874 }
21875         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21876 /* @internal */
21877 export function UpdateAddHTLC_set_channel_id(this_ptr: number, val: number): void {
21878         if(!isWasmInitialized) {
21879                 throw new Error("initializeWasm() must be awaited first!");
21880         }
21881         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
21882         // debug statements here
21883 }
21884         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21885 /* @internal */
21886 export function UpdateAddHTLC_get_htlc_id(this_ptr: number): bigint {
21887         if(!isWasmInitialized) {
21888                 throw new Error("initializeWasm() must be awaited first!");
21889         }
21890         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
21891         return nativeResponseValue;
21892 }
21893         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
21894 /* @internal */
21895 export function UpdateAddHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21896         if(!isWasmInitialized) {
21897                 throw new Error("initializeWasm() must be awaited first!");
21898         }
21899         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
21900         // debug statements here
21901 }
21902         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21903 /* @internal */
21904 export function UpdateAddHTLC_get_amount_msat(this_ptr: number): bigint {
21905         if(!isWasmInitialized) {
21906                 throw new Error("initializeWasm() must be awaited first!");
21907         }
21908         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
21909         return nativeResponseValue;
21910 }
21911         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
21912 /* @internal */
21913 export function UpdateAddHTLC_set_amount_msat(this_ptr: number, val: bigint): void {
21914         if(!isWasmInitialized) {
21915                 throw new Error("initializeWasm() must be awaited first!");
21916         }
21917         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
21918         // debug statements here
21919 }
21920         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21921 /* @internal */
21922 export function UpdateAddHTLC_get_payment_hash(this_ptr: number): number {
21923         if(!isWasmInitialized) {
21924                 throw new Error("initializeWasm() must be awaited first!");
21925         }
21926         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
21927         return nativeResponseValue;
21928 }
21929         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21930 /* @internal */
21931 export function UpdateAddHTLC_set_payment_hash(this_ptr: number, val: number): void {
21932         if(!isWasmInitialized) {
21933                 throw new Error("initializeWasm() must be awaited first!");
21934         }
21935         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
21936         // debug statements here
21937 }
21938         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21939 /* @internal */
21940 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: number): number {
21941         if(!isWasmInitialized) {
21942                 throw new Error("initializeWasm() must be awaited first!");
21943         }
21944         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
21945         return nativeResponseValue;
21946 }
21947         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
21948 /* @internal */
21949 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: number, val: number): void {
21950         if(!isWasmInitialized) {
21951                 throw new Error("initializeWasm() must be awaited first!");
21952         }
21953         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
21954         // debug statements here
21955 }
21956         // uintptr_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
21957 /* @internal */
21958 export function UpdateAddHTLC_clone_ptr(arg: number): number {
21959         if(!isWasmInitialized) {
21960                 throw new Error("initializeWasm() must be awaited first!");
21961         }
21962         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
21963         return nativeResponseValue;
21964 }
21965         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
21966 /* @internal */
21967 export function UpdateAddHTLC_clone(orig: number): number {
21968         if(!isWasmInitialized) {
21969                 throw new Error("initializeWasm() must be awaited first!");
21970         }
21971         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
21972         return nativeResponseValue;
21973 }
21974         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
21975 /* @internal */
21976 export function UpdateFulfillHTLC_free(this_obj: number): void {
21977         if(!isWasmInitialized) {
21978                 throw new Error("initializeWasm() must be awaited first!");
21979         }
21980         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
21981         // debug statements here
21982 }
21983         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21984 /* @internal */
21985 export function UpdateFulfillHTLC_get_channel_id(this_ptr: number): number {
21986         if(!isWasmInitialized) {
21987                 throw new Error("initializeWasm() must be awaited first!");
21988         }
21989         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
21990         return nativeResponseValue;
21991 }
21992         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21993 /* @internal */
21994 export function UpdateFulfillHTLC_set_channel_id(this_ptr: number, val: number): void {
21995         if(!isWasmInitialized) {
21996                 throw new Error("initializeWasm() must be awaited first!");
21997         }
21998         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
21999         // debug statements here
22000 }
22001         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
22002 /* @internal */
22003 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: number): bigint {
22004         if(!isWasmInitialized) {
22005                 throw new Error("initializeWasm() must be awaited first!");
22006         }
22007         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
22008         return nativeResponseValue;
22009 }
22010         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
22011 /* @internal */
22012 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
22013         if(!isWasmInitialized) {
22014                 throw new Error("initializeWasm() must be awaited first!");
22015         }
22016         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
22017         // debug statements here
22018 }
22019         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
22020 /* @internal */
22021 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: number): number {
22022         if(!isWasmInitialized) {
22023                 throw new Error("initializeWasm() must be awaited first!");
22024         }
22025         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
22026         return nativeResponseValue;
22027 }
22028         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22029 /* @internal */
22030 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: number, val: number): void {
22031         if(!isWasmInitialized) {
22032                 throw new Error("initializeWasm() must be awaited first!");
22033         }
22034         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
22035         // debug statements here
22036 }
22037         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
22038 /* @internal */
22039 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): number {
22040         if(!isWasmInitialized) {
22041                 throw new Error("initializeWasm() must be awaited first!");
22042         }
22043         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
22044         return nativeResponseValue;
22045 }
22046         // uintptr_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
22047 /* @internal */
22048 export function UpdateFulfillHTLC_clone_ptr(arg: number): number {
22049         if(!isWasmInitialized) {
22050                 throw new Error("initializeWasm() must be awaited first!");
22051         }
22052         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
22053         return nativeResponseValue;
22054 }
22055         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
22056 /* @internal */
22057 export function UpdateFulfillHTLC_clone(orig: number): number {
22058         if(!isWasmInitialized) {
22059                 throw new Error("initializeWasm() must be awaited first!");
22060         }
22061         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
22062         return nativeResponseValue;
22063 }
22064         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
22065 /* @internal */
22066 export function UpdateFailHTLC_free(this_obj: number): void {
22067         if(!isWasmInitialized) {
22068                 throw new Error("initializeWasm() must be awaited first!");
22069         }
22070         const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
22071         // debug statements here
22072 }
22073         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
22074 /* @internal */
22075 export function UpdateFailHTLC_get_channel_id(this_ptr: number): number {
22076         if(!isWasmInitialized) {
22077                 throw new Error("initializeWasm() must be awaited first!");
22078         }
22079         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
22080         return nativeResponseValue;
22081 }
22082         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22083 /* @internal */
22084 export function UpdateFailHTLC_set_channel_id(this_ptr: number, val: number): void {
22085         if(!isWasmInitialized) {
22086                 throw new Error("initializeWasm() must be awaited first!");
22087         }
22088         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
22089         // debug statements here
22090 }
22091         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
22092 /* @internal */
22093 export function UpdateFailHTLC_get_htlc_id(this_ptr: number): bigint {
22094         if(!isWasmInitialized) {
22095                 throw new Error("initializeWasm() must be awaited first!");
22096         }
22097         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
22098         return nativeResponseValue;
22099 }
22100         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
22101 /* @internal */
22102 export function UpdateFailHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
22103         if(!isWasmInitialized) {
22104                 throw new Error("initializeWasm() must be awaited first!");
22105         }
22106         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
22107         // debug statements here
22108 }
22109         // uintptr_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
22110 /* @internal */
22111 export function UpdateFailHTLC_clone_ptr(arg: number): number {
22112         if(!isWasmInitialized) {
22113                 throw new Error("initializeWasm() must be awaited first!");
22114         }
22115         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
22116         return nativeResponseValue;
22117 }
22118         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
22119 /* @internal */
22120 export function UpdateFailHTLC_clone(orig: number): number {
22121         if(!isWasmInitialized) {
22122                 throw new Error("initializeWasm() must be awaited first!");
22123         }
22124         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
22125         return nativeResponseValue;
22126 }
22127         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
22128 /* @internal */
22129 export function UpdateFailMalformedHTLC_free(this_obj: number): void {
22130         if(!isWasmInitialized) {
22131                 throw new Error("initializeWasm() must be awaited first!");
22132         }
22133         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
22134         // debug statements here
22135 }
22136         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
22137 /* @internal */
22138 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: number): number {
22139         if(!isWasmInitialized) {
22140                 throw new Error("initializeWasm() must be awaited first!");
22141         }
22142         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
22143         return nativeResponseValue;
22144 }
22145         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22146 /* @internal */
22147 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: number, val: number): void {
22148         if(!isWasmInitialized) {
22149                 throw new Error("initializeWasm() must be awaited first!");
22150         }
22151         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
22152         // debug statements here
22153 }
22154         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
22155 /* @internal */
22156 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: number): bigint {
22157         if(!isWasmInitialized) {
22158                 throw new Error("initializeWasm() must be awaited first!");
22159         }
22160         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
22161         return nativeResponseValue;
22162 }
22163         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
22164 /* @internal */
22165 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
22166         if(!isWasmInitialized) {
22167                 throw new Error("initializeWasm() must be awaited first!");
22168         }
22169         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
22170         // debug statements here
22171 }
22172         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
22173 /* @internal */
22174 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: number): number {
22175         if(!isWasmInitialized) {
22176                 throw new Error("initializeWasm() must be awaited first!");
22177         }
22178         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
22179         return nativeResponseValue;
22180 }
22181         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
22182 /* @internal */
22183 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: number, val: number): void {
22184         if(!isWasmInitialized) {
22185                 throw new Error("initializeWasm() must be awaited first!");
22186         }
22187         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
22188         // debug statements here
22189 }
22190         // uintptr_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
22191 /* @internal */
22192 export function UpdateFailMalformedHTLC_clone_ptr(arg: number): number {
22193         if(!isWasmInitialized) {
22194                 throw new Error("initializeWasm() must be awaited first!");
22195         }
22196         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
22197         return nativeResponseValue;
22198 }
22199         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
22200 /* @internal */
22201 export function UpdateFailMalformedHTLC_clone(orig: number): number {
22202         if(!isWasmInitialized) {
22203                 throw new Error("initializeWasm() must be awaited first!");
22204         }
22205         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
22206         return nativeResponseValue;
22207 }
22208         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
22209 /* @internal */
22210 export function CommitmentSigned_free(this_obj: number): void {
22211         if(!isWasmInitialized) {
22212                 throw new Error("initializeWasm() must be awaited first!");
22213         }
22214         const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
22215         // debug statements here
22216 }
22217         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
22218 /* @internal */
22219 export function CommitmentSigned_get_channel_id(this_ptr: number): number {
22220         if(!isWasmInitialized) {
22221                 throw new Error("initializeWasm() must be awaited first!");
22222         }
22223         const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
22224         return nativeResponseValue;
22225 }
22226         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22227 /* @internal */
22228 export function CommitmentSigned_set_channel_id(this_ptr: number, val: number): void {
22229         if(!isWasmInitialized) {
22230                 throw new Error("initializeWasm() must be awaited first!");
22231         }
22232         const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
22233         // debug statements here
22234 }
22235         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
22236 /* @internal */
22237 export function CommitmentSigned_get_signature(this_ptr: number): number {
22238         if(!isWasmInitialized) {
22239                 throw new Error("initializeWasm() must be awaited first!");
22240         }
22241         const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
22242         return nativeResponseValue;
22243 }
22244         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
22245 /* @internal */
22246 export function CommitmentSigned_set_signature(this_ptr: number, val: number): void {
22247         if(!isWasmInitialized) {
22248                 throw new Error("initializeWasm() must be awaited first!");
22249         }
22250         const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
22251         // debug statements here
22252 }
22253         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
22254 /* @internal */
22255 export function CommitmentSigned_set_htlc_signatures(this_ptr: number, val: number): void {
22256         if(!isWasmInitialized) {
22257                 throw new Error("initializeWasm() must be awaited first!");
22258         }
22259         const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
22260         // debug statements here
22261 }
22262         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
22263 /* @internal */
22264 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): number {
22265         if(!isWasmInitialized) {
22266                 throw new Error("initializeWasm() must be awaited first!");
22267         }
22268         const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
22269         return nativeResponseValue;
22270 }
22271         // uintptr_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
22272 /* @internal */
22273 export function CommitmentSigned_clone_ptr(arg: number): number {
22274         if(!isWasmInitialized) {
22275                 throw new Error("initializeWasm() must be awaited first!");
22276         }
22277         const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
22278         return nativeResponseValue;
22279 }
22280         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
22281 /* @internal */
22282 export function CommitmentSigned_clone(orig: number): number {
22283         if(!isWasmInitialized) {
22284                 throw new Error("initializeWasm() must be awaited first!");
22285         }
22286         const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
22287         return nativeResponseValue;
22288 }
22289         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
22290 /* @internal */
22291 export function RevokeAndACK_free(this_obj: number): void {
22292         if(!isWasmInitialized) {
22293                 throw new Error("initializeWasm() must be awaited first!");
22294         }
22295         const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
22296         // debug statements here
22297 }
22298         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
22299 /* @internal */
22300 export function RevokeAndACK_get_channel_id(this_ptr: number): number {
22301         if(!isWasmInitialized) {
22302                 throw new Error("initializeWasm() must be awaited first!");
22303         }
22304         const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
22305         return nativeResponseValue;
22306 }
22307         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22308 /* @internal */
22309 export function RevokeAndACK_set_channel_id(this_ptr: number, val: number): void {
22310         if(!isWasmInitialized) {
22311                 throw new Error("initializeWasm() must be awaited first!");
22312         }
22313         const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
22314         // debug statements here
22315 }
22316         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
22317 /* @internal */
22318 export function RevokeAndACK_get_per_commitment_secret(this_ptr: number): number {
22319         if(!isWasmInitialized) {
22320                 throw new Error("initializeWasm() must be awaited first!");
22321         }
22322         const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
22323         return nativeResponseValue;
22324 }
22325         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22326 /* @internal */
22327 export function RevokeAndACK_set_per_commitment_secret(this_ptr: number, val: number): void {
22328         if(!isWasmInitialized) {
22329                 throw new Error("initializeWasm() must be awaited first!");
22330         }
22331         const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
22332         // debug statements here
22333 }
22334         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
22335 /* @internal */
22336 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: number): number {
22337         if(!isWasmInitialized) {
22338                 throw new Error("initializeWasm() must be awaited first!");
22339         }
22340         const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
22341         return nativeResponseValue;
22342 }
22343         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22344 /* @internal */
22345 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: number, val: number): void {
22346         if(!isWasmInitialized) {
22347                 throw new Error("initializeWasm() must be awaited first!");
22348         }
22349         const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
22350         // debug statements here
22351 }
22352         // 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);
22353 /* @internal */
22354 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): number {
22355         if(!isWasmInitialized) {
22356                 throw new Error("initializeWasm() must be awaited first!");
22357         }
22358         const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
22359         return nativeResponseValue;
22360 }
22361         // uintptr_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
22362 /* @internal */
22363 export function RevokeAndACK_clone_ptr(arg: number): number {
22364         if(!isWasmInitialized) {
22365                 throw new Error("initializeWasm() must be awaited first!");
22366         }
22367         const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
22368         return nativeResponseValue;
22369 }
22370         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
22371 /* @internal */
22372 export function RevokeAndACK_clone(orig: number): number {
22373         if(!isWasmInitialized) {
22374                 throw new Error("initializeWasm() must be awaited first!");
22375         }
22376         const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
22377         return nativeResponseValue;
22378 }
22379         // void UpdateFee_free(struct LDKUpdateFee this_obj);
22380 /* @internal */
22381 export function UpdateFee_free(this_obj: number): void {
22382         if(!isWasmInitialized) {
22383                 throw new Error("initializeWasm() must be awaited first!");
22384         }
22385         const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
22386         // debug statements here
22387 }
22388         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
22389 /* @internal */
22390 export function UpdateFee_get_channel_id(this_ptr: number): number {
22391         if(!isWasmInitialized) {
22392                 throw new Error("initializeWasm() must be awaited first!");
22393         }
22394         const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
22395         return nativeResponseValue;
22396 }
22397         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22398 /* @internal */
22399 export function UpdateFee_set_channel_id(this_ptr: number, val: number): void {
22400         if(!isWasmInitialized) {
22401                 throw new Error("initializeWasm() must be awaited first!");
22402         }
22403         const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
22404         // debug statements here
22405 }
22406         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
22407 /* @internal */
22408 export function UpdateFee_get_feerate_per_kw(this_ptr: number): number {
22409         if(!isWasmInitialized) {
22410                 throw new Error("initializeWasm() must be awaited first!");
22411         }
22412         const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
22413         return nativeResponseValue;
22414 }
22415         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
22416 /* @internal */
22417 export function UpdateFee_set_feerate_per_kw(this_ptr: number, val: number): void {
22418         if(!isWasmInitialized) {
22419                 throw new Error("initializeWasm() must be awaited first!");
22420         }
22421         const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
22422         // debug statements here
22423 }
22424         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
22425 /* @internal */
22426 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): number {
22427         if(!isWasmInitialized) {
22428                 throw new Error("initializeWasm() must be awaited first!");
22429         }
22430         const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
22431         return nativeResponseValue;
22432 }
22433         // uintptr_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
22434 /* @internal */
22435 export function UpdateFee_clone_ptr(arg: number): number {
22436         if(!isWasmInitialized) {
22437                 throw new Error("initializeWasm() must be awaited first!");
22438         }
22439         const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
22440         return nativeResponseValue;
22441 }
22442         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
22443 /* @internal */
22444 export function UpdateFee_clone(orig: number): number {
22445         if(!isWasmInitialized) {
22446                 throw new Error("initializeWasm() must be awaited first!");
22447         }
22448         const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
22449         return nativeResponseValue;
22450 }
22451         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
22452 /* @internal */
22453 export function DataLossProtect_free(this_obj: number): void {
22454         if(!isWasmInitialized) {
22455                 throw new Error("initializeWasm() must be awaited first!");
22456         }
22457         const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
22458         // debug statements here
22459 }
22460         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
22461 /* @internal */
22462 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: number): number {
22463         if(!isWasmInitialized) {
22464                 throw new Error("initializeWasm() must be awaited first!");
22465         }
22466         const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
22467         return nativeResponseValue;
22468 }
22469         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22470 /* @internal */
22471 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: number, val: number): void {
22472         if(!isWasmInitialized) {
22473                 throw new Error("initializeWasm() must be awaited first!");
22474         }
22475         const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
22476         // debug statements here
22477 }
22478         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
22479 /* @internal */
22480 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: number): number {
22481         if(!isWasmInitialized) {
22482                 throw new Error("initializeWasm() must be awaited first!");
22483         }
22484         const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
22485         return nativeResponseValue;
22486 }
22487         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22488 /* @internal */
22489 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: number, val: number): void {
22490         if(!isWasmInitialized) {
22491                 throw new Error("initializeWasm() must be awaited first!");
22492         }
22493         const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
22494         // debug statements here
22495 }
22496         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
22497 /* @internal */
22498 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): number {
22499         if(!isWasmInitialized) {
22500                 throw new Error("initializeWasm() must be awaited first!");
22501         }
22502         const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
22503         return nativeResponseValue;
22504 }
22505         // uintptr_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
22506 /* @internal */
22507 export function DataLossProtect_clone_ptr(arg: number): number {
22508         if(!isWasmInitialized) {
22509                 throw new Error("initializeWasm() must be awaited first!");
22510         }
22511         const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
22512         return nativeResponseValue;
22513 }
22514         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
22515 /* @internal */
22516 export function DataLossProtect_clone(orig: number): number {
22517         if(!isWasmInitialized) {
22518                 throw new Error("initializeWasm() must be awaited first!");
22519         }
22520         const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
22521         return nativeResponseValue;
22522 }
22523         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
22524 /* @internal */
22525 export function ChannelReestablish_free(this_obj: number): void {
22526         if(!isWasmInitialized) {
22527                 throw new Error("initializeWasm() must be awaited first!");
22528         }
22529         const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
22530         // debug statements here
22531 }
22532         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
22533 /* @internal */
22534 export function ChannelReestablish_get_channel_id(this_ptr: number): number {
22535         if(!isWasmInitialized) {
22536                 throw new Error("initializeWasm() must be awaited first!");
22537         }
22538         const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
22539         return nativeResponseValue;
22540 }
22541         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22542 /* @internal */
22543 export function ChannelReestablish_set_channel_id(this_ptr: number, val: number): void {
22544         if(!isWasmInitialized) {
22545                 throw new Error("initializeWasm() must be awaited first!");
22546         }
22547         const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
22548         // debug statements here
22549 }
22550         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
22551 /* @internal */
22552 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: number): bigint {
22553         if(!isWasmInitialized) {
22554                 throw new Error("initializeWasm() must be awaited first!");
22555         }
22556         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
22557         return nativeResponseValue;
22558 }
22559         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
22560 /* @internal */
22561 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: number, val: bigint): void {
22562         if(!isWasmInitialized) {
22563                 throw new Error("initializeWasm() must be awaited first!");
22564         }
22565         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
22566         // debug statements here
22567 }
22568         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
22569 /* @internal */
22570 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: number): bigint {
22571         if(!isWasmInitialized) {
22572                 throw new Error("initializeWasm() must be awaited first!");
22573         }
22574         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
22575         return nativeResponseValue;
22576 }
22577         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
22578 /* @internal */
22579 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: number, val: bigint): void {
22580         if(!isWasmInitialized) {
22581                 throw new Error("initializeWasm() must be awaited first!");
22582         }
22583         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
22584         // debug statements here
22585 }
22586         // uintptr_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
22587 /* @internal */
22588 export function ChannelReestablish_clone_ptr(arg: number): number {
22589         if(!isWasmInitialized) {
22590                 throw new Error("initializeWasm() must be awaited first!");
22591         }
22592         const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
22593         return nativeResponseValue;
22594 }
22595         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
22596 /* @internal */
22597 export function ChannelReestablish_clone(orig: number): number {
22598         if(!isWasmInitialized) {
22599                 throw new Error("initializeWasm() must be awaited first!");
22600         }
22601         const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
22602         return nativeResponseValue;
22603 }
22604         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
22605 /* @internal */
22606 export function AnnouncementSignatures_free(this_obj: number): void {
22607         if(!isWasmInitialized) {
22608                 throw new Error("initializeWasm() must be awaited first!");
22609         }
22610         const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
22611         // debug statements here
22612 }
22613         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
22614 /* @internal */
22615 export function AnnouncementSignatures_get_channel_id(this_ptr: number): number {
22616         if(!isWasmInitialized) {
22617                 throw new Error("initializeWasm() must be awaited first!");
22618         }
22619         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
22620         return nativeResponseValue;
22621 }
22622         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22623 /* @internal */
22624 export function AnnouncementSignatures_set_channel_id(this_ptr: number, val: number): void {
22625         if(!isWasmInitialized) {
22626                 throw new Error("initializeWasm() must be awaited first!");
22627         }
22628         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
22629         // debug statements here
22630 }
22631         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22632 /* @internal */
22633 export function AnnouncementSignatures_get_short_channel_id(this_ptr: number): bigint {
22634         if(!isWasmInitialized) {
22635                 throw new Error("initializeWasm() must be awaited first!");
22636         }
22637         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
22638         return nativeResponseValue;
22639 }
22640         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
22641 /* @internal */
22642 export function AnnouncementSignatures_set_short_channel_id(this_ptr: number, val: bigint): void {
22643         if(!isWasmInitialized) {
22644                 throw new Error("initializeWasm() must be awaited first!");
22645         }
22646         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
22647         // debug statements here
22648 }
22649         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22650 /* @internal */
22651 export function AnnouncementSignatures_get_node_signature(this_ptr: number): number {
22652         if(!isWasmInitialized) {
22653                 throw new Error("initializeWasm() must be awaited first!");
22654         }
22655         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
22656         return nativeResponseValue;
22657 }
22658         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
22659 /* @internal */
22660 export function AnnouncementSignatures_set_node_signature(this_ptr: number, val: number): void {
22661         if(!isWasmInitialized) {
22662                 throw new Error("initializeWasm() must be awaited first!");
22663         }
22664         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
22665         // debug statements here
22666 }
22667         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22668 /* @internal */
22669 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: number): number {
22670         if(!isWasmInitialized) {
22671                 throw new Error("initializeWasm() must be awaited first!");
22672         }
22673         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
22674         return nativeResponseValue;
22675 }
22676         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
22677 /* @internal */
22678 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: number, val: number): void {
22679         if(!isWasmInitialized) {
22680                 throw new Error("initializeWasm() must be awaited first!");
22681         }
22682         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
22683         // debug statements here
22684 }
22685         // 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);
22686 /* @internal */
22687 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): number {
22688         if(!isWasmInitialized) {
22689                 throw new Error("initializeWasm() must be awaited first!");
22690         }
22691         const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
22692         return nativeResponseValue;
22693 }
22694         // uintptr_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
22695 /* @internal */
22696 export function AnnouncementSignatures_clone_ptr(arg: number): number {
22697         if(!isWasmInitialized) {
22698                 throw new Error("initializeWasm() must be awaited first!");
22699         }
22700         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
22701         return nativeResponseValue;
22702 }
22703         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
22704 /* @internal */
22705 export function AnnouncementSignatures_clone(orig: number): number {
22706         if(!isWasmInitialized) {
22707                 throw new Error("initializeWasm() must be awaited first!");
22708         }
22709         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
22710         return nativeResponseValue;
22711 }
22712         // void NetAddress_free(struct LDKNetAddress this_ptr);
22713 /* @internal */
22714 export function NetAddress_free(this_ptr: number): void {
22715         if(!isWasmInitialized) {
22716                 throw new Error("initializeWasm() must be awaited first!");
22717         }
22718         const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
22719         // debug statements here
22720 }
22721         // uintptr_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
22722 /* @internal */
22723 export function NetAddress_clone_ptr(arg: number): number {
22724         if(!isWasmInitialized) {
22725                 throw new Error("initializeWasm() must be awaited first!");
22726         }
22727         const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
22728         return nativeResponseValue;
22729 }
22730         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
22731 /* @internal */
22732 export function NetAddress_clone(orig: number): number {
22733         if(!isWasmInitialized) {
22734                 throw new Error("initializeWasm() must be awaited first!");
22735         }
22736         const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
22737         return nativeResponseValue;
22738 }
22739         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
22740 /* @internal */
22741 export function NetAddress_ipv4(addr: number, port: number): number {
22742         if(!isWasmInitialized) {
22743                 throw new Error("initializeWasm() must be awaited first!");
22744         }
22745         const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
22746         return nativeResponseValue;
22747 }
22748         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
22749 /* @internal */
22750 export function NetAddress_ipv6(addr: number, port: number): number {
22751         if(!isWasmInitialized) {
22752                 throw new Error("initializeWasm() must be awaited first!");
22753         }
22754         const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
22755         return nativeResponseValue;
22756 }
22757         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
22758 /* @internal */
22759 export function NetAddress_onion_v2(a: number): number {
22760         if(!isWasmInitialized) {
22761                 throw new Error("initializeWasm() must be awaited first!");
22762         }
22763         const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
22764         return nativeResponseValue;
22765 }
22766         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
22767 /* @internal */
22768 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): number {
22769         if(!isWasmInitialized) {
22770                 throw new Error("initializeWasm() must be awaited first!");
22771         }
22772         const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
22773         return nativeResponseValue;
22774 }
22775         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
22776 /* @internal */
22777 export function NetAddress_write(obj: number): number {
22778         if(!isWasmInitialized) {
22779                 throw new Error("initializeWasm() must be awaited first!");
22780         }
22781         const nativeResponseValue = wasm.TS_NetAddress_write(obj);
22782         return nativeResponseValue;
22783 }
22784         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
22785 /* @internal */
22786 export function NetAddress_read(ser: number): number {
22787         if(!isWasmInitialized) {
22788                 throw new Error("initializeWasm() must be awaited first!");
22789         }
22790         const nativeResponseValue = wasm.TS_NetAddress_read(ser);
22791         return nativeResponseValue;
22792 }
22793         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
22794 /* @internal */
22795 export function UnsignedNodeAnnouncement_free(this_obj: number): void {
22796         if(!isWasmInitialized) {
22797                 throw new Error("initializeWasm() must be awaited first!");
22798         }
22799         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
22800         // debug statements here
22801 }
22802         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22803 /* @internal */
22804 export function UnsignedNodeAnnouncement_get_features(this_ptr: number): number {
22805         if(!isWasmInitialized) {
22806                 throw new Error("initializeWasm() must be awaited first!");
22807         }
22808         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
22809         return nativeResponseValue;
22810 }
22811         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
22812 /* @internal */
22813 export function UnsignedNodeAnnouncement_set_features(this_ptr: number, val: number): void {
22814         if(!isWasmInitialized) {
22815                 throw new Error("initializeWasm() must be awaited first!");
22816         }
22817         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
22818         // debug statements here
22819 }
22820         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22821 /* @internal */
22822 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: number): number {
22823         if(!isWasmInitialized) {
22824                 throw new Error("initializeWasm() must be awaited first!");
22825         }
22826         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
22827         return nativeResponseValue;
22828 }
22829         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
22830 /* @internal */
22831 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: number, val: number): void {
22832         if(!isWasmInitialized) {
22833                 throw new Error("initializeWasm() must be awaited first!");
22834         }
22835         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
22836         // debug statements here
22837 }
22838         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22839 /* @internal */
22840 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: number): number {
22841         if(!isWasmInitialized) {
22842                 throw new Error("initializeWasm() must be awaited first!");
22843         }
22844         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
22845         return nativeResponseValue;
22846 }
22847         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22848 /* @internal */
22849 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: number, val: number): void {
22850         if(!isWasmInitialized) {
22851                 throw new Error("initializeWasm() must be awaited first!");
22852         }
22853         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
22854         // debug statements here
22855 }
22856         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
22857 /* @internal */
22858 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: number): number {
22859         if(!isWasmInitialized) {
22860                 throw new Error("initializeWasm() must be awaited first!");
22861         }
22862         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
22863         return nativeResponseValue;
22864 }
22865         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
22866 /* @internal */
22867 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: number, val: number): void {
22868         if(!isWasmInitialized) {
22869                 throw new Error("initializeWasm() must be awaited first!");
22870         }
22871         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
22872         // debug statements here
22873 }
22874         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
22875 /* @internal */
22876 export function UnsignedNodeAnnouncement_get_alias(this_ptr: number): number {
22877         if(!isWasmInitialized) {
22878                 throw new Error("initializeWasm() must be awaited first!");
22879         }
22880         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
22881         return nativeResponseValue;
22882 }
22883         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22884 /* @internal */
22885 export function UnsignedNodeAnnouncement_set_alias(this_ptr: number, val: number): void {
22886         if(!isWasmInitialized) {
22887                 throw new Error("initializeWasm() must be awaited first!");
22888         }
22889         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
22890         // debug statements here
22891 }
22892         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
22893 /* @internal */
22894 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: number, val: number): void {
22895         if(!isWasmInitialized) {
22896                 throw new Error("initializeWasm() must be awaited first!");
22897         }
22898         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
22899         // debug statements here
22900 }
22901         // uintptr_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
22902 /* @internal */
22903 export function UnsignedNodeAnnouncement_clone_ptr(arg: number): number {
22904         if(!isWasmInitialized) {
22905                 throw new Error("initializeWasm() must be awaited first!");
22906         }
22907         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
22908         return nativeResponseValue;
22909 }
22910         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
22911 /* @internal */
22912 export function UnsignedNodeAnnouncement_clone(orig: number): number {
22913         if(!isWasmInitialized) {
22914                 throw new Error("initializeWasm() must be awaited first!");
22915         }
22916         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
22917         return nativeResponseValue;
22918 }
22919         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
22920 /* @internal */
22921 export function NodeAnnouncement_free(this_obj: number): void {
22922         if(!isWasmInitialized) {
22923                 throw new Error("initializeWasm() must be awaited first!");
22924         }
22925         const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
22926         // debug statements here
22927 }
22928         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22929 /* @internal */
22930 export function NodeAnnouncement_get_signature(this_ptr: number): number {
22931         if(!isWasmInitialized) {
22932                 throw new Error("initializeWasm() must be awaited first!");
22933         }
22934         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
22935         return nativeResponseValue;
22936 }
22937         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22938 /* @internal */
22939 export function NodeAnnouncement_set_signature(this_ptr: number, val: number): void {
22940         if(!isWasmInitialized) {
22941                 throw new Error("initializeWasm() must be awaited first!");
22942         }
22943         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
22944         // debug statements here
22945 }
22946         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22947 /* @internal */
22948 export function NodeAnnouncement_get_contents(this_ptr: number): number {
22949         if(!isWasmInitialized) {
22950                 throw new Error("initializeWasm() must be awaited first!");
22951         }
22952         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
22953         return nativeResponseValue;
22954 }
22955         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
22956 /* @internal */
22957 export function NodeAnnouncement_set_contents(this_ptr: number, val: number): void {
22958         if(!isWasmInitialized) {
22959                 throw new Error("initializeWasm() must be awaited first!");
22960         }
22961         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
22962         // debug statements here
22963 }
22964         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
22965 /* @internal */
22966 export function NodeAnnouncement_new(signature_arg: number, contents_arg: number): number {
22967         if(!isWasmInitialized) {
22968                 throw new Error("initializeWasm() must be awaited first!");
22969         }
22970         const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
22971         return nativeResponseValue;
22972 }
22973         // uintptr_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
22974 /* @internal */
22975 export function NodeAnnouncement_clone_ptr(arg: number): number {
22976         if(!isWasmInitialized) {
22977                 throw new Error("initializeWasm() must be awaited first!");
22978         }
22979         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
22980         return nativeResponseValue;
22981 }
22982         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
22983 /* @internal */
22984 export function NodeAnnouncement_clone(orig: number): number {
22985         if(!isWasmInitialized) {
22986                 throw new Error("initializeWasm() must be awaited first!");
22987         }
22988         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
22989         return nativeResponseValue;
22990 }
22991         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
22992 /* @internal */
22993 export function UnsignedChannelAnnouncement_free(this_obj: number): void {
22994         if(!isWasmInitialized) {
22995                 throw new Error("initializeWasm() must be awaited first!");
22996         }
22997         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
22998         // debug statements here
22999 }
23000         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23001 /* @internal */
23002 export function UnsignedChannelAnnouncement_get_features(this_ptr: number): number {
23003         if(!isWasmInitialized) {
23004                 throw new Error("initializeWasm() must be awaited first!");
23005         }
23006         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
23007         return nativeResponseValue;
23008 }
23009         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
23010 /* @internal */
23011 export function UnsignedChannelAnnouncement_set_features(this_ptr: number, val: number): void {
23012         if(!isWasmInitialized) {
23013                 throw new Error("initializeWasm() must be awaited first!");
23014         }
23015         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
23016         // debug statements here
23017 }
23018         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
23019 /* @internal */
23020 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: number): number {
23021         if(!isWasmInitialized) {
23022                 throw new Error("initializeWasm() must be awaited first!");
23023         }
23024         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
23025         return nativeResponseValue;
23026 }
23027         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23028 /* @internal */
23029 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: number, val: number): void {
23030         if(!isWasmInitialized) {
23031                 throw new Error("initializeWasm() must be awaited first!");
23032         }
23033         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
23034         // debug statements here
23035 }
23036         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23037 /* @internal */
23038 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: number): bigint {
23039         if(!isWasmInitialized) {
23040                 throw new Error("initializeWasm() must be awaited first!");
23041         }
23042         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
23043         return nativeResponseValue;
23044 }
23045         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
23046 /* @internal */
23047 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: number, val: bigint): void {
23048         if(!isWasmInitialized) {
23049                 throw new Error("initializeWasm() must be awaited first!");
23050         }
23051         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
23052         // debug statements here
23053 }
23054         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23055 /* @internal */
23056 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: number): number {
23057         if(!isWasmInitialized) {
23058                 throw new Error("initializeWasm() must be awaited first!");
23059         }
23060         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
23061         return nativeResponseValue;
23062 }
23063         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23064 /* @internal */
23065 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: number, val: number): void {
23066         if(!isWasmInitialized) {
23067                 throw new Error("initializeWasm() must be awaited first!");
23068         }
23069         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
23070         // debug statements here
23071 }
23072         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23073 /* @internal */
23074 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: number): number {
23075         if(!isWasmInitialized) {
23076                 throw new Error("initializeWasm() must be awaited first!");
23077         }
23078         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
23079         return nativeResponseValue;
23080 }
23081         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23082 /* @internal */
23083 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: number, val: number): void {
23084         if(!isWasmInitialized) {
23085                 throw new Error("initializeWasm() must be awaited first!");
23086         }
23087         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
23088         // debug statements here
23089 }
23090         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23091 /* @internal */
23092 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: number): number {
23093         if(!isWasmInitialized) {
23094                 throw new Error("initializeWasm() must be awaited first!");
23095         }
23096         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
23097         return nativeResponseValue;
23098 }
23099         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23100 /* @internal */
23101 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: number, val: number): void {
23102         if(!isWasmInitialized) {
23103                 throw new Error("initializeWasm() must be awaited first!");
23104         }
23105         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
23106         // debug statements here
23107 }
23108         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23109 /* @internal */
23110 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: number): number {
23111         if(!isWasmInitialized) {
23112                 throw new Error("initializeWasm() must be awaited first!");
23113         }
23114         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
23115         return nativeResponseValue;
23116 }
23117         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23118 /* @internal */
23119 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: number, val: number): void {
23120         if(!isWasmInitialized) {
23121                 throw new Error("initializeWasm() must be awaited first!");
23122         }
23123         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
23124         // debug statements here
23125 }
23126         // uintptr_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
23127 /* @internal */
23128 export function UnsignedChannelAnnouncement_clone_ptr(arg: number): number {
23129         if(!isWasmInitialized) {
23130                 throw new Error("initializeWasm() must be awaited first!");
23131         }
23132         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
23133         return nativeResponseValue;
23134 }
23135         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
23136 /* @internal */
23137 export function UnsignedChannelAnnouncement_clone(orig: number): number {
23138         if(!isWasmInitialized) {
23139                 throw new Error("initializeWasm() must be awaited first!");
23140         }
23141         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
23142         return nativeResponseValue;
23143 }
23144         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
23145 /* @internal */
23146 export function ChannelAnnouncement_free(this_obj: number): void {
23147         if(!isWasmInitialized) {
23148                 throw new Error("initializeWasm() must be awaited first!");
23149         }
23150         const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
23151         // debug statements here
23152 }
23153         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23154 /* @internal */
23155 export function ChannelAnnouncement_get_node_signature_1(this_ptr: number): number {
23156         if(!isWasmInitialized) {
23157                 throw new Error("initializeWasm() must be awaited first!");
23158         }
23159         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
23160         return nativeResponseValue;
23161 }
23162         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23163 /* @internal */
23164 export function ChannelAnnouncement_set_node_signature_1(this_ptr: number, val: number): void {
23165         if(!isWasmInitialized) {
23166                 throw new Error("initializeWasm() must be awaited first!");
23167         }
23168         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
23169         // debug statements here
23170 }
23171         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23172 /* @internal */
23173 export function ChannelAnnouncement_get_node_signature_2(this_ptr: number): number {
23174         if(!isWasmInitialized) {
23175                 throw new Error("initializeWasm() must be awaited first!");
23176         }
23177         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
23178         return nativeResponseValue;
23179 }
23180         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23181 /* @internal */
23182 export function ChannelAnnouncement_set_node_signature_2(this_ptr: number, val: number): void {
23183         if(!isWasmInitialized) {
23184                 throw new Error("initializeWasm() must be awaited first!");
23185         }
23186         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
23187         // debug statements here
23188 }
23189         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23190 /* @internal */
23191 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: number): number {
23192         if(!isWasmInitialized) {
23193                 throw new Error("initializeWasm() must be awaited first!");
23194         }
23195         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
23196         return nativeResponseValue;
23197 }
23198         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23199 /* @internal */
23200 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: number, val: number): void {
23201         if(!isWasmInitialized) {
23202                 throw new Error("initializeWasm() must be awaited first!");
23203         }
23204         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
23205         // debug statements here
23206 }
23207         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23208 /* @internal */
23209 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: number): number {
23210         if(!isWasmInitialized) {
23211                 throw new Error("initializeWasm() must be awaited first!");
23212         }
23213         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
23214         return nativeResponseValue;
23215 }
23216         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23217 /* @internal */
23218 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: number, val: number): void {
23219         if(!isWasmInitialized) {
23220                 throw new Error("initializeWasm() must be awaited first!");
23221         }
23222         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
23223         // debug statements here
23224 }
23225         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23226 /* @internal */
23227 export function ChannelAnnouncement_get_contents(this_ptr: number): number {
23228         if(!isWasmInitialized) {
23229                 throw new Error("initializeWasm() must be awaited first!");
23230         }
23231         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
23232         return nativeResponseValue;
23233 }
23234         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
23235 /* @internal */
23236 export function ChannelAnnouncement_set_contents(this_ptr: number, val: number): void {
23237         if(!isWasmInitialized) {
23238                 throw new Error("initializeWasm() must be awaited first!");
23239         }
23240         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
23241         // debug statements here
23242 }
23243         // 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);
23244 /* @internal */
23245 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 {
23246         if(!isWasmInitialized) {
23247                 throw new Error("initializeWasm() must be awaited first!");
23248         }
23249         const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
23250         return nativeResponseValue;
23251 }
23252         // uintptr_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
23253 /* @internal */
23254 export function ChannelAnnouncement_clone_ptr(arg: number): number {
23255         if(!isWasmInitialized) {
23256                 throw new Error("initializeWasm() must be awaited first!");
23257         }
23258         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
23259         return nativeResponseValue;
23260 }
23261         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
23262 /* @internal */
23263 export function ChannelAnnouncement_clone(orig: number): number {
23264         if(!isWasmInitialized) {
23265                 throw new Error("initializeWasm() must be awaited first!");
23266         }
23267         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
23268         return nativeResponseValue;
23269 }
23270         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
23271 /* @internal */
23272 export function UnsignedChannelUpdate_free(this_obj: number): void {
23273         if(!isWasmInitialized) {
23274                 throw new Error("initializeWasm() must be awaited first!");
23275         }
23276         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
23277         // debug statements here
23278 }
23279         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
23280 /* @internal */
23281 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: number): number {
23282         if(!isWasmInitialized) {
23283                 throw new Error("initializeWasm() must be awaited first!");
23284         }
23285         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
23286         return nativeResponseValue;
23287 }
23288         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23289 /* @internal */
23290 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: number, val: number): void {
23291         if(!isWasmInitialized) {
23292                 throw new Error("initializeWasm() must be awaited first!");
23293         }
23294         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
23295         // debug statements here
23296 }
23297         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23298 /* @internal */
23299 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: number): bigint {
23300         if(!isWasmInitialized) {
23301                 throw new Error("initializeWasm() must be awaited first!");
23302         }
23303         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
23304         return nativeResponseValue;
23305 }
23306         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
23307 /* @internal */
23308 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: number, val: bigint): void {
23309         if(!isWasmInitialized) {
23310                 throw new Error("initializeWasm() must be awaited first!");
23311         }
23312         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
23313         // debug statements here
23314 }
23315         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23316 /* @internal */
23317 export function UnsignedChannelUpdate_get_timestamp(this_ptr: number): number {
23318         if(!isWasmInitialized) {
23319                 throw new Error("initializeWasm() must be awaited first!");
23320         }
23321         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
23322         return nativeResponseValue;
23323 }
23324         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23325 /* @internal */
23326 export function UnsignedChannelUpdate_set_timestamp(this_ptr: number, val: number): void {
23327         if(!isWasmInitialized) {
23328                 throw new Error("initializeWasm() must be awaited first!");
23329         }
23330         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
23331         // debug statements here
23332 }
23333         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23334 /* @internal */
23335 export function UnsignedChannelUpdate_get_flags(this_ptr: number): number {
23336         if(!isWasmInitialized) {
23337                 throw new Error("initializeWasm() must be awaited first!");
23338         }
23339         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
23340         return nativeResponseValue;
23341 }
23342         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
23343 /* @internal */
23344 export function UnsignedChannelUpdate_set_flags(this_ptr: number, val: number): void {
23345         if(!isWasmInitialized) {
23346                 throw new Error("initializeWasm() must be awaited first!");
23347         }
23348         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
23349         // debug statements here
23350 }
23351         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23352 /* @internal */
23353 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: number): number {
23354         if(!isWasmInitialized) {
23355                 throw new Error("initializeWasm() must be awaited first!");
23356         }
23357         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
23358         return nativeResponseValue;
23359 }
23360         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
23361 /* @internal */
23362 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: number, val: number): void {
23363         if(!isWasmInitialized) {
23364                 throw new Error("initializeWasm() must be awaited first!");
23365         }
23366         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
23367         // debug statements here
23368 }
23369         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23370 /* @internal */
23371 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: number): bigint {
23372         if(!isWasmInitialized) {
23373                 throw new Error("initializeWasm() must be awaited first!");
23374         }
23375         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
23376         return nativeResponseValue;
23377 }
23378         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
23379 /* @internal */
23380 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
23381         if(!isWasmInitialized) {
23382                 throw new Error("initializeWasm() must be awaited first!");
23383         }
23384         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
23385         // debug statements here
23386 }
23387         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23388 /* @internal */
23389 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: number): number {
23390         if(!isWasmInitialized) {
23391                 throw new Error("initializeWasm() must be awaited first!");
23392         }
23393         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
23394         return nativeResponseValue;
23395 }
23396         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23397 /* @internal */
23398 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: number, val: number): void {
23399         if(!isWasmInitialized) {
23400                 throw new Error("initializeWasm() must be awaited first!");
23401         }
23402         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
23403         // debug statements here
23404 }
23405         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23406 /* @internal */
23407 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: number): number {
23408         if(!isWasmInitialized) {
23409                 throw new Error("initializeWasm() must be awaited first!");
23410         }
23411         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
23412         return nativeResponseValue;
23413 }
23414         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23415 /* @internal */
23416 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: number, val: number): void {
23417         if(!isWasmInitialized) {
23418                 throw new Error("initializeWasm() must be awaited first!");
23419         }
23420         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
23421         // debug statements here
23422 }
23423         // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
23424 /* @internal */
23425 export function UnsignedChannelUpdate_set_excess_data(this_ptr: number, val: number): void {
23426         if(!isWasmInitialized) {
23427                 throw new Error("initializeWasm() must be awaited first!");
23428         }
23429         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_excess_data(this_ptr, val);
23430         // debug statements here
23431 }
23432         // uintptr_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
23433 /* @internal */
23434 export function UnsignedChannelUpdate_clone_ptr(arg: number): number {
23435         if(!isWasmInitialized) {
23436                 throw new Error("initializeWasm() must be awaited first!");
23437         }
23438         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
23439         return nativeResponseValue;
23440 }
23441         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
23442 /* @internal */
23443 export function UnsignedChannelUpdate_clone(orig: number): number {
23444         if(!isWasmInitialized) {
23445                 throw new Error("initializeWasm() must be awaited first!");
23446         }
23447         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
23448         return nativeResponseValue;
23449 }
23450         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
23451 /* @internal */
23452 export function ChannelUpdate_free(this_obj: number): void {
23453         if(!isWasmInitialized) {
23454                 throw new Error("initializeWasm() must be awaited first!");
23455         }
23456         const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
23457         // debug statements here
23458 }
23459         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
23460 /* @internal */
23461 export function ChannelUpdate_get_signature(this_ptr: number): number {
23462         if(!isWasmInitialized) {
23463                 throw new Error("initializeWasm() must be awaited first!");
23464         }
23465         const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
23466         return nativeResponseValue;
23467 }
23468         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
23469 /* @internal */
23470 export function ChannelUpdate_set_signature(this_ptr: number, val: number): void {
23471         if(!isWasmInitialized) {
23472                 throw new Error("initializeWasm() must be awaited first!");
23473         }
23474         const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
23475         // debug statements here
23476 }
23477         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
23478 /* @internal */
23479 export function ChannelUpdate_get_contents(this_ptr: number): number {
23480         if(!isWasmInitialized) {
23481                 throw new Error("initializeWasm() must be awaited first!");
23482         }
23483         const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
23484         return nativeResponseValue;
23485 }
23486         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
23487 /* @internal */
23488 export function ChannelUpdate_set_contents(this_ptr: number, val: number): void {
23489         if(!isWasmInitialized) {
23490                 throw new Error("initializeWasm() must be awaited first!");
23491         }
23492         const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
23493         // debug statements here
23494 }
23495         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
23496 /* @internal */
23497 export function ChannelUpdate_new(signature_arg: number, contents_arg: number): number {
23498         if(!isWasmInitialized) {
23499                 throw new Error("initializeWasm() must be awaited first!");
23500         }
23501         const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
23502         return nativeResponseValue;
23503 }
23504         // uintptr_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
23505 /* @internal */
23506 export function ChannelUpdate_clone_ptr(arg: number): number {
23507         if(!isWasmInitialized) {
23508                 throw new Error("initializeWasm() must be awaited first!");
23509         }
23510         const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
23511         return nativeResponseValue;
23512 }
23513         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
23514 /* @internal */
23515 export function ChannelUpdate_clone(orig: number): number {
23516         if(!isWasmInitialized) {
23517                 throw new Error("initializeWasm() must be awaited first!");
23518         }
23519         const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
23520         return nativeResponseValue;
23521 }
23522         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
23523 /* @internal */
23524 export function QueryChannelRange_free(this_obj: number): void {
23525         if(!isWasmInitialized) {
23526                 throw new Error("initializeWasm() must be awaited first!");
23527         }
23528         const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
23529         // debug statements here
23530 }
23531         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
23532 /* @internal */
23533 export function QueryChannelRange_get_chain_hash(this_ptr: number): number {
23534         if(!isWasmInitialized) {
23535                 throw new Error("initializeWasm() must be awaited first!");
23536         }
23537         const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
23538         return nativeResponseValue;
23539 }
23540         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23541 /* @internal */
23542 export function QueryChannelRange_set_chain_hash(this_ptr: number, val: number): void {
23543         if(!isWasmInitialized) {
23544                 throw new Error("initializeWasm() must be awaited first!");
23545         }
23546         const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
23547         // debug statements here
23548 }
23549         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
23550 /* @internal */
23551 export function QueryChannelRange_get_first_blocknum(this_ptr: number): number {
23552         if(!isWasmInitialized) {
23553                 throw new Error("initializeWasm() must be awaited first!");
23554         }
23555         const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
23556         return nativeResponseValue;
23557 }
23558         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23559 /* @internal */
23560 export function QueryChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
23561         if(!isWasmInitialized) {
23562                 throw new Error("initializeWasm() must be awaited first!");
23563         }
23564         const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
23565         // debug statements here
23566 }
23567         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
23568 /* @internal */
23569 export function QueryChannelRange_get_number_of_blocks(this_ptr: number): number {
23570         if(!isWasmInitialized) {
23571                 throw new Error("initializeWasm() must be awaited first!");
23572         }
23573         const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
23574         return nativeResponseValue;
23575 }
23576         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23577 /* @internal */
23578 export function QueryChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
23579         if(!isWasmInitialized) {
23580                 throw new Error("initializeWasm() must be awaited first!");
23581         }
23582         const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
23583         // debug statements here
23584 }
23585         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
23586 /* @internal */
23587 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): number {
23588         if(!isWasmInitialized) {
23589                 throw new Error("initializeWasm() must be awaited first!");
23590         }
23591         const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
23592         return nativeResponseValue;
23593 }
23594         // uintptr_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
23595 /* @internal */
23596 export function QueryChannelRange_clone_ptr(arg: number): number {
23597         if(!isWasmInitialized) {
23598                 throw new Error("initializeWasm() must be awaited first!");
23599         }
23600         const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
23601         return nativeResponseValue;
23602 }
23603         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
23604 /* @internal */
23605 export function QueryChannelRange_clone(orig: number): number {
23606         if(!isWasmInitialized) {
23607                 throw new Error("initializeWasm() must be awaited first!");
23608         }
23609         const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
23610         return nativeResponseValue;
23611 }
23612         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
23613 /* @internal */
23614 export function ReplyChannelRange_free(this_obj: number): void {
23615         if(!isWasmInitialized) {
23616                 throw new Error("initializeWasm() must be awaited first!");
23617         }
23618         const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
23619         // debug statements here
23620 }
23621         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
23622 /* @internal */
23623 export function ReplyChannelRange_get_chain_hash(this_ptr: number): number {
23624         if(!isWasmInitialized) {
23625                 throw new Error("initializeWasm() must be awaited first!");
23626         }
23627         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
23628         return nativeResponseValue;
23629 }
23630         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23631 /* @internal */
23632 export function ReplyChannelRange_set_chain_hash(this_ptr: number, val: number): void {
23633         if(!isWasmInitialized) {
23634                 throw new Error("initializeWasm() must be awaited first!");
23635         }
23636         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
23637         // debug statements here
23638 }
23639         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23640 /* @internal */
23641 export function ReplyChannelRange_get_first_blocknum(this_ptr: number): number {
23642         if(!isWasmInitialized) {
23643                 throw new Error("initializeWasm() must be awaited first!");
23644         }
23645         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
23646         return nativeResponseValue;
23647 }
23648         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23649 /* @internal */
23650 export function ReplyChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
23651         if(!isWasmInitialized) {
23652                 throw new Error("initializeWasm() must be awaited first!");
23653         }
23654         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
23655         // debug statements here
23656 }
23657         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23658 /* @internal */
23659 export function ReplyChannelRange_get_number_of_blocks(this_ptr: number): number {
23660         if(!isWasmInitialized) {
23661                 throw new Error("initializeWasm() must be awaited first!");
23662         }
23663         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
23664         return nativeResponseValue;
23665 }
23666         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23667 /* @internal */
23668 export function ReplyChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
23669         if(!isWasmInitialized) {
23670                 throw new Error("initializeWasm() must be awaited first!");
23671         }
23672         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
23673         // debug statements here
23674 }
23675         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23676 /* @internal */
23677 export function ReplyChannelRange_get_sync_complete(this_ptr: number): boolean {
23678         if(!isWasmInitialized) {
23679                 throw new Error("initializeWasm() must be awaited first!");
23680         }
23681         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
23682         return nativeResponseValue;
23683 }
23684         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
23685 /* @internal */
23686 export function ReplyChannelRange_set_sync_complete(this_ptr: number, val: boolean): void {
23687         if(!isWasmInitialized) {
23688                 throw new Error("initializeWasm() must be awaited first!");
23689         }
23690         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
23691         // debug statements here
23692 }
23693         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
23694 /* @internal */
23695 export function ReplyChannelRange_set_short_channel_ids(this_ptr: number, val: number): void {
23696         if(!isWasmInitialized) {
23697                 throw new Error("initializeWasm() must be awaited first!");
23698         }
23699         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
23700         // debug statements here
23701 }
23702         // 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);
23703 /* @internal */
23704 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 {
23705         if(!isWasmInitialized) {
23706                 throw new Error("initializeWasm() must be awaited first!");
23707         }
23708         const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
23709         return nativeResponseValue;
23710 }
23711         // uintptr_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
23712 /* @internal */
23713 export function ReplyChannelRange_clone_ptr(arg: number): number {
23714         if(!isWasmInitialized) {
23715                 throw new Error("initializeWasm() must be awaited first!");
23716         }
23717         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
23718         return nativeResponseValue;
23719 }
23720         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
23721 /* @internal */
23722 export function ReplyChannelRange_clone(orig: number): number {
23723         if(!isWasmInitialized) {
23724                 throw new Error("initializeWasm() must be awaited first!");
23725         }
23726         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
23727         return nativeResponseValue;
23728 }
23729         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
23730 /* @internal */
23731 export function QueryShortChannelIds_free(this_obj: number): void {
23732         if(!isWasmInitialized) {
23733                 throw new Error("initializeWasm() must be awaited first!");
23734         }
23735         const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
23736         // debug statements here
23737 }
23738         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
23739 /* @internal */
23740 export function QueryShortChannelIds_get_chain_hash(this_ptr: number): number {
23741         if(!isWasmInitialized) {
23742                 throw new Error("initializeWasm() must be awaited first!");
23743         }
23744         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
23745         return nativeResponseValue;
23746 }
23747         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23748 /* @internal */
23749 export function QueryShortChannelIds_set_chain_hash(this_ptr: number, val: number): void {
23750         if(!isWasmInitialized) {
23751                 throw new Error("initializeWasm() must be awaited first!");
23752         }
23753         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
23754         // debug statements here
23755 }
23756         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
23757 /* @internal */
23758 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: number, val: number): void {
23759         if(!isWasmInitialized) {
23760                 throw new Error("initializeWasm() must be awaited first!");
23761         }
23762         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
23763         // debug statements here
23764 }
23765         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
23766 /* @internal */
23767 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): number {
23768         if(!isWasmInitialized) {
23769                 throw new Error("initializeWasm() must be awaited first!");
23770         }
23771         const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
23772         return nativeResponseValue;
23773 }
23774         // uintptr_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
23775 /* @internal */
23776 export function QueryShortChannelIds_clone_ptr(arg: number): number {
23777         if(!isWasmInitialized) {
23778                 throw new Error("initializeWasm() must be awaited first!");
23779         }
23780         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
23781         return nativeResponseValue;
23782 }
23783         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
23784 /* @internal */
23785 export function QueryShortChannelIds_clone(orig: number): number {
23786         if(!isWasmInitialized) {
23787                 throw new Error("initializeWasm() must be awaited first!");
23788         }
23789         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
23790         return nativeResponseValue;
23791 }
23792         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
23793 /* @internal */
23794 export function ReplyShortChannelIdsEnd_free(this_obj: number): void {
23795         if(!isWasmInitialized) {
23796                 throw new Error("initializeWasm() must be awaited first!");
23797         }
23798         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
23799         // debug statements here
23800 }
23801         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
23802 /* @internal */
23803 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: number): number {
23804         if(!isWasmInitialized) {
23805                 throw new Error("initializeWasm() must be awaited first!");
23806         }
23807         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
23808         return nativeResponseValue;
23809 }
23810         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23811 /* @internal */
23812 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: number, val: number): void {
23813         if(!isWasmInitialized) {
23814                 throw new Error("initializeWasm() must be awaited first!");
23815         }
23816         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
23817         // debug statements here
23818 }
23819         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
23820 /* @internal */
23821 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: number): boolean {
23822         if(!isWasmInitialized) {
23823                 throw new Error("initializeWasm() must be awaited first!");
23824         }
23825         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
23826         return nativeResponseValue;
23827 }
23828         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
23829 /* @internal */
23830 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: number, val: boolean): void {
23831         if(!isWasmInitialized) {
23832                 throw new Error("initializeWasm() must be awaited first!");
23833         }
23834         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
23835         // debug statements here
23836 }
23837         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
23838 /* @internal */
23839 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): number {
23840         if(!isWasmInitialized) {
23841                 throw new Error("initializeWasm() must be awaited first!");
23842         }
23843         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
23844         return nativeResponseValue;
23845 }
23846         // uintptr_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
23847 /* @internal */
23848 export function ReplyShortChannelIdsEnd_clone_ptr(arg: number): number {
23849         if(!isWasmInitialized) {
23850                 throw new Error("initializeWasm() must be awaited first!");
23851         }
23852         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
23853         return nativeResponseValue;
23854 }
23855         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
23856 /* @internal */
23857 export function ReplyShortChannelIdsEnd_clone(orig: number): number {
23858         if(!isWasmInitialized) {
23859                 throw new Error("initializeWasm() must be awaited first!");
23860         }
23861         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
23862         return nativeResponseValue;
23863 }
23864         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
23865 /* @internal */
23866 export function GossipTimestampFilter_free(this_obj: number): void {
23867         if(!isWasmInitialized) {
23868                 throw new Error("initializeWasm() must be awaited first!");
23869         }
23870         const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
23871         // debug statements here
23872 }
23873         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
23874 /* @internal */
23875 export function GossipTimestampFilter_get_chain_hash(this_ptr: number): number {
23876         if(!isWasmInitialized) {
23877                 throw new Error("initializeWasm() must be awaited first!");
23878         }
23879         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
23880         return nativeResponseValue;
23881 }
23882         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23883 /* @internal */
23884 export function GossipTimestampFilter_set_chain_hash(this_ptr: number, val: number): void {
23885         if(!isWasmInitialized) {
23886                 throw new Error("initializeWasm() must be awaited first!");
23887         }
23888         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
23889         // debug statements here
23890 }
23891         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
23892 /* @internal */
23893 export function GossipTimestampFilter_get_first_timestamp(this_ptr: number): number {
23894         if(!isWasmInitialized) {
23895                 throw new Error("initializeWasm() must be awaited first!");
23896         }
23897         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
23898         return nativeResponseValue;
23899 }
23900         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
23901 /* @internal */
23902 export function GossipTimestampFilter_set_first_timestamp(this_ptr: number, val: number): void {
23903         if(!isWasmInitialized) {
23904                 throw new Error("initializeWasm() must be awaited first!");
23905         }
23906         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
23907         // debug statements here
23908 }
23909         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
23910 /* @internal */
23911 export function GossipTimestampFilter_get_timestamp_range(this_ptr: number): number {
23912         if(!isWasmInitialized) {
23913                 throw new Error("initializeWasm() must be awaited first!");
23914         }
23915         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
23916         return nativeResponseValue;
23917 }
23918         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
23919 /* @internal */
23920 export function GossipTimestampFilter_set_timestamp_range(this_ptr: number, val: number): void {
23921         if(!isWasmInitialized) {
23922                 throw new Error("initializeWasm() must be awaited first!");
23923         }
23924         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
23925         // debug statements here
23926 }
23927         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
23928 /* @internal */
23929 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): number {
23930         if(!isWasmInitialized) {
23931                 throw new Error("initializeWasm() must be awaited first!");
23932         }
23933         const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
23934         return nativeResponseValue;
23935 }
23936         // uintptr_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
23937 /* @internal */
23938 export function GossipTimestampFilter_clone_ptr(arg: number): number {
23939         if(!isWasmInitialized) {
23940                 throw new Error("initializeWasm() must be awaited first!");
23941         }
23942         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
23943         return nativeResponseValue;
23944 }
23945         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
23946 /* @internal */
23947 export function GossipTimestampFilter_clone(orig: number): number {
23948         if(!isWasmInitialized) {
23949                 throw new Error("initializeWasm() must be awaited first!");
23950         }
23951         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
23952         return nativeResponseValue;
23953 }
23954         // void ErrorAction_free(struct LDKErrorAction this_ptr);
23955 /* @internal */
23956 export function ErrorAction_free(this_ptr: number): void {
23957         if(!isWasmInitialized) {
23958                 throw new Error("initializeWasm() must be awaited first!");
23959         }
23960         const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
23961         // debug statements here
23962 }
23963         // uintptr_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
23964 /* @internal */
23965 export function ErrorAction_clone_ptr(arg: number): number {
23966         if(!isWasmInitialized) {
23967                 throw new Error("initializeWasm() must be awaited first!");
23968         }
23969         const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
23970         return nativeResponseValue;
23971 }
23972         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
23973 /* @internal */
23974 export function ErrorAction_clone(orig: number): number {
23975         if(!isWasmInitialized) {
23976                 throw new Error("initializeWasm() must be awaited first!");
23977         }
23978         const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
23979         return nativeResponseValue;
23980 }
23981         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
23982 /* @internal */
23983 export function ErrorAction_disconnect_peer(msg: number): number {
23984         if(!isWasmInitialized) {
23985                 throw new Error("initializeWasm() must be awaited first!");
23986         }
23987         const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
23988         return nativeResponseValue;
23989 }
23990         // struct LDKErrorAction ErrorAction_ignore_error(void);
23991 /* @internal */
23992 export function ErrorAction_ignore_error(): number {
23993         if(!isWasmInitialized) {
23994                 throw new Error("initializeWasm() must be awaited first!");
23995         }
23996         const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
23997         return nativeResponseValue;
23998 }
23999         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
24000 /* @internal */
24001 export function ErrorAction_ignore_and_log(a: Level): number {
24002         if(!isWasmInitialized) {
24003                 throw new Error("initializeWasm() must be awaited first!");
24004         }
24005         const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
24006         return nativeResponseValue;
24007 }
24008         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
24009 /* @internal */
24010 export function ErrorAction_ignore_duplicate_gossip(): number {
24011         if(!isWasmInitialized) {
24012                 throw new Error("initializeWasm() must be awaited first!");
24013         }
24014         const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
24015         return nativeResponseValue;
24016 }
24017         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
24018 /* @internal */
24019 export function ErrorAction_send_error_message(msg: number): number {
24020         if(!isWasmInitialized) {
24021                 throw new Error("initializeWasm() must be awaited first!");
24022         }
24023         const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
24024         return nativeResponseValue;
24025 }
24026         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
24027 /* @internal */
24028 export function ErrorAction_send_warning_message(msg: number, log_level: Level): number {
24029         if(!isWasmInitialized) {
24030                 throw new Error("initializeWasm() must be awaited first!");
24031         }
24032         const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
24033         return nativeResponseValue;
24034 }
24035         // void LightningError_free(struct LDKLightningError this_obj);
24036 /* @internal */
24037 export function LightningError_free(this_obj: number): void {
24038         if(!isWasmInitialized) {
24039                 throw new Error("initializeWasm() must be awaited first!");
24040         }
24041         const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
24042         // debug statements here
24043 }
24044         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
24045 /* @internal */
24046 export function LightningError_get_err(this_ptr: number): number {
24047         if(!isWasmInitialized) {
24048                 throw new Error("initializeWasm() must be awaited first!");
24049         }
24050         const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
24051         return nativeResponseValue;
24052 }
24053         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
24054 /* @internal */
24055 export function LightningError_set_err(this_ptr: number, val: number): void {
24056         if(!isWasmInitialized) {
24057                 throw new Error("initializeWasm() must be awaited first!");
24058         }
24059         const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
24060         // debug statements here
24061 }
24062         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
24063 /* @internal */
24064 export function LightningError_get_action(this_ptr: number): number {
24065         if(!isWasmInitialized) {
24066                 throw new Error("initializeWasm() must be awaited first!");
24067         }
24068         const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
24069         return nativeResponseValue;
24070 }
24071         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
24072 /* @internal */
24073 export function LightningError_set_action(this_ptr: number, val: number): void {
24074         if(!isWasmInitialized) {
24075                 throw new Error("initializeWasm() must be awaited first!");
24076         }
24077         const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
24078         // debug statements here
24079 }
24080         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
24081 /* @internal */
24082 export function LightningError_new(err_arg: number, action_arg: number): number {
24083         if(!isWasmInitialized) {
24084                 throw new Error("initializeWasm() must be awaited first!");
24085         }
24086         const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
24087         return nativeResponseValue;
24088 }
24089         // uintptr_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
24090 /* @internal */
24091 export function LightningError_clone_ptr(arg: number): number {
24092         if(!isWasmInitialized) {
24093                 throw new Error("initializeWasm() must be awaited first!");
24094         }
24095         const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
24096         return nativeResponseValue;
24097 }
24098         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
24099 /* @internal */
24100 export function LightningError_clone(orig: number): number {
24101         if(!isWasmInitialized) {
24102                 throw new Error("initializeWasm() must be awaited first!");
24103         }
24104         const nativeResponseValue = wasm.TS_LightningError_clone(orig);
24105         return nativeResponseValue;
24106 }
24107         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
24108 /* @internal */
24109 export function CommitmentUpdate_free(this_obj: number): void {
24110         if(!isWasmInitialized) {
24111                 throw new Error("initializeWasm() must be awaited first!");
24112         }
24113         const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
24114         // debug statements here
24115 }
24116         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24117 /* @internal */
24118 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: number): number {
24119         if(!isWasmInitialized) {
24120                 throw new Error("initializeWasm() must be awaited first!");
24121         }
24122         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
24123         return nativeResponseValue;
24124 }
24125         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
24126 /* @internal */
24127 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: number, val: number): void {
24128         if(!isWasmInitialized) {
24129                 throw new Error("initializeWasm() must be awaited first!");
24130         }
24131         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
24132         // debug statements here
24133 }
24134         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24135 /* @internal */
24136 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: number): number {
24137         if(!isWasmInitialized) {
24138                 throw new Error("initializeWasm() must be awaited first!");
24139         }
24140         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
24141         return nativeResponseValue;
24142 }
24143         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
24144 /* @internal */
24145 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: number, val: number): void {
24146         if(!isWasmInitialized) {
24147                 throw new Error("initializeWasm() must be awaited first!");
24148         }
24149         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
24150         // debug statements here
24151 }
24152         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24153 /* @internal */
24154 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: number): number {
24155         if(!isWasmInitialized) {
24156                 throw new Error("initializeWasm() must be awaited first!");
24157         }
24158         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
24159         return nativeResponseValue;
24160 }
24161         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
24162 /* @internal */
24163 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: number, val: number): void {
24164         if(!isWasmInitialized) {
24165                 throw new Error("initializeWasm() must be awaited first!");
24166         }
24167         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
24168         // debug statements here
24169 }
24170         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24171 /* @internal */
24172 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: number): number {
24173         if(!isWasmInitialized) {
24174                 throw new Error("initializeWasm() must be awaited first!");
24175         }
24176         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
24177         return nativeResponseValue;
24178 }
24179         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
24180 /* @internal */
24181 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: number, val: number): void {
24182         if(!isWasmInitialized) {
24183                 throw new Error("initializeWasm() must be awaited first!");
24184         }
24185         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
24186         // debug statements here
24187 }
24188         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24189 /* @internal */
24190 export function CommitmentUpdate_get_update_fee(this_ptr: number): number {
24191         if(!isWasmInitialized) {
24192                 throw new Error("initializeWasm() must be awaited first!");
24193         }
24194         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
24195         return nativeResponseValue;
24196 }
24197         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
24198 /* @internal */
24199 export function CommitmentUpdate_set_update_fee(this_ptr: number, val: number): void {
24200         if(!isWasmInitialized) {
24201                 throw new Error("initializeWasm() must be awaited first!");
24202         }
24203         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
24204         // debug statements here
24205 }
24206         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24207 /* @internal */
24208 export function CommitmentUpdate_get_commitment_signed(this_ptr: number): number {
24209         if(!isWasmInitialized) {
24210                 throw new Error("initializeWasm() must be awaited first!");
24211         }
24212         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
24213         return nativeResponseValue;
24214 }
24215         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
24216 /* @internal */
24217 export function CommitmentUpdate_set_commitment_signed(this_ptr: number, val: number): void {
24218         if(!isWasmInitialized) {
24219                 throw new Error("initializeWasm() must be awaited first!");
24220         }
24221         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
24222         // debug statements here
24223 }
24224         // 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);
24225 /* @internal */
24226 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 {
24227         if(!isWasmInitialized) {
24228                 throw new Error("initializeWasm() must be awaited first!");
24229         }
24230         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);
24231         return nativeResponseValue;
24232 }
24233         // uintptr_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
24234 /* @internal */
24235 export function CommitmentUpdate_clone_ptr(arg: number): number {
24236         if(!isWasmInitialized) {
24237                 throw new Error("initializeWasm() must be awaited first!");
24238         }
24239         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
24240         return nativeResponseValue;
24241 }
24242         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
24243 /* @internal */
24244 export function CommitmentUpdate_clone(orig: number): number {
24245         if(!isWasmInitialized) {
24246                 throw new Error("initializeWasm() must be awaited first!");
24247         }
24248         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
24249         return nativeResponseValue;
24250 }
24251         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
24252 /* @internal */
24253 export function ChannelMessageHandler_free(this_ptr: number): void {
24254         if(!isWasmInitialized) {
24255                 throw new Error("initializeWasm() must be awaited first!");
24256         }
24257         const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
24258         // debug statements here
24259 }
24260         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
24261 /* @internal */
24262 export function RoutingMessageHandler_free(this_ptr: number): void {
24263         if(!isWasmInitialized) {
24264                 throw new Error("initializeWasm() must be awaited first!");
24265         }
24266         const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
24267         // debug statements here
24268 }
24269         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
24270 /* @internal */
24271 export function AcceptChannel_write(obj: number): number {
24272         if(!isWasmInitialized) {
24273                 throw new Error("initializeWasm() must be awaited first!");
24274         }
24275         const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
24276         return nativeResponseValue;
24277 }
24278         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
24279 /* @internal */
24280 export function AcceptChannel_read(ser: number): number {
24281         if(!isWasmInitialized) {
24282                 throw new Error("initializeWasm() must be awaited first!");
24283         }
24284         const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
24285         return nativeResponseValue;
24286 }
24287         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
24288 /* @internal */
24289 export function AnnouncementSignatures_write(obj: number): number {
24290         if(!isWasmInitialized) {
24291                 throw new Error("initializeWasm() must be awaited first!");
24292         }
24293         const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
24294         return nativeResponseValue;
24295 }
24296         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
24297 /* @internal */
24298 export function AnnouncementSignatures_read(ser: number): number {
24299         if(!isWasmInitialized) {
24300                 throw new Error("initializeWasm() must be awaited first!");
24301         }
24302         const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
24303         return nativeResponseValue;
24304 }
24305         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
24306 /* @internal */
24307 export function ChannelReestablish_write(obj: number): number {
24308         if(!isWasmInitialized) {
24309                 throw new Error("initializeWasm() must be awaited first!");
24310         }
24311         const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
24312         return nativeResponseValue;
24313 }
24314         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
24315 /* @internal */
24316 export function ChannelReestablish_read(ser: number): number {
24317         if(!isWasmInitialized) {
24318                 throw new Error("initializeWasm() must be awaited first!");
24319         }
24320         const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
24321         return nativeResponseValue;
24322 }
24323         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
24324 /* @internal */
24325 export function ClosingSigned_write(obj: number): number {
24326         if(!isWasmInitialized) {
24327                 throw new Error("initializeWasm() must be awaited first!");
24328         }
24329         const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
24330         return nativeResponseValue;
24331 }
24332         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
24333 /* @internal */
24334 export function ClosingSigned_read(ser: number): number {
24335         if(!isWasmInitialized) {
24336                 throw new Error("initializeWasm() must be awaited first!");
24337         }
24338         const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
24339         return nativeResponseValue;
24340 }
24341         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
24342 /* @internal */
24343 export function ClosingSignedFeeRange_write(obj: number): number {
24344         if(!isWasmInitialized) {
24345                 throw new Error("initializeWasm() must be awaited first!");
24346         }
24347         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
24348         return nativeResponseValue;
24349 }
24350         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
24351 /* @internal */
24352 export function ClosingSignedFeeRange_read(ser: number): number {
24353         if(!isWasmInitialized) {
24354                 throw new Error("initializeWasm() must be awaited first!");
24355         }
24356         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
24357         return nativeResponseValue;
24358 }
24359         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
24360 /* @internal */
24361 export function CommitmentSigned_write(obj: number): number {
24362         if(!isWasmInitialized) {
24363                 throw new Error("initializeWasm() must be awaited first!");
24364         }
24365         const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
24366         return nativeResponseValue;
24367 }
24368         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
24369 /* @internal */
24370 export function CommitmentSigned_read(ser: number): number {
24371         if(!isWasmInitialized) {
24372                 throw new Error("initializeWasm() must be awaited first!");
24373         }
24374         const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
24375         return nativeResponseValue;
24376 }
24377         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
24378 /* @internal */
24379 export function FundingCreated_write(obj: number): number {
24380         if(!isWasmInitialized) {
24381                 throw new Error("initializeWasm() must be awaited first!");
24382         }
24383         const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
24384         return nativeResponseValue;
24385 }
24386         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
24387 /* @internal */
24388 export function FundingCreated_read(ser: number): number {
24389         if(!isWasmInitialized) {
24390                 throw new Error("initializeWasm() must be awaited first!");
24391         }
24392         const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
24393         return nativeResponseValue;
24394 }
24395         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
24396 /* @internal */
24397 export function FundingSigned_write(obj: number): number {
24398         if(!isWasmInitialized) {
24399                 throw new Error("initializeWasm() must be awaited first!");
24400         }
24401         const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
24402         return nativeResponseValue;
24403 }
24404         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
24405 /* @internal */
24406 export function FundingSigned_read(ser: number): number {
24407         if(!isWasmInitialized) {
24408                 throw new Error("initializeWasm() must be awaited first!");
24409         }
24410         const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
24411         return nativeResponseValue;
24412 }
24413         // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
24414 /* @internal */
24415 export function ChannelReady_write(obj: number): number {
24416         if(!isWasmInitialized) {
24417                 throw new Error("initializeWasm() must be awaited first!");
24418         }
24419         const nativeResponseValue = wasm.TS_ChannelReady_write(obj);
24420         return nativeResponseValue;
24421 }
24422         // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
24423 /* @internal */
24424 export function ChannelReady_read(ser: number): number {
24425         if(!isWasmInitialized) {
24426                 throw new Error("initializeWasm() must be awaited first!");
24427         }
24428         const nativeResponseValue = wasm.TS_ChannelReady_read(ser);
24429         return nativeResponseValue;
24430 }
24431         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
24432 /* @internal */
24433 export function Init_write(obj: number): number {
24434         if(!isWasmInitialized) {
24435                 throw new Error("initializeWasm() must be awaited first!");
24436         }
24437         const nativeResponseValue = wasm.TS_Init_write(obj);
24438         return nativeResponseValue;
24439 }
24440         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
24441 /* @internal */
24442 export function Init_read(ser: number): number {
24443         if(!isWasmInitialized) {
24444                 throw new Error("initializeWasm() must be awaited first!");
24445         }
24446         const nativeResponseValue = wasm.TS_Init_read(ser);
24447         return nativeResponseValue;
24448 }
24449         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
24450 /* @internal */
24451 export function OpenChannel_write(obj: number): number {
24452         if(!isWasmInitialized) {
24453                 throw new Error("initializeWasm() must be awaited first!");
24454         }
24455         const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
24456         return nativeResponseValue;
24457 }
24458         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
24459 /* @internal */
24460 export function OpenChannel_read(ser: number): number {
24461         if(!isWasmInitialized) {
24462                 throw new Error("initializeWasm() must be awaited first!");
24463         }
24464         const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
24465         return nativeResponseValue;
24466 }
24467         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
24468 /* @internal */
24469 export function RevokeAndACK_write(obj: number): number {
24470         if(!isWasmInitialized) {
24471                 throw new Error("initializeWasm() must be awaited first!");
24472         }
24473         const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
24474         return nativeResponseValue;
24475 }
24476         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
24477 /* @internal */
24478 export function RevokeAndACK_read(ser: number): number {
24479         if(!isWasmInitialized) {
24480                 throw new Error("initializeWasm() must be awaited first!");
24481         }
24482         const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
24483         return nativeResponseValue;
24484 }
24485         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
24486 /* @internal */
24487 export function Shutdown_write(obj: number): number {
24488         if(!isWasmInitialized) {
24489                 throw new Error("initializeWasm() must be awaited first!");
24490         }
24491         const nativeResponseValue = wasm.TS_Shutdown_write(obj);
24492         return nativeResponseValue;
24493 }
24494         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
24495 /* @internal */
24496 export function Shutdown_read(ser: number): number {
24497         if(!isWasmInitialized) {
24498                 throw new Error("initializeWasm() must be awaited first!");
24499         }
24500         const nativeResponseValue = wasm.TS_Shutdown_read(ser);
24501         return nativeResponseValue;
24502 }
24503         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
24504 /* @internal */
24505 export function UpdateFailHTLC_write(obj: number): number {
24506         if(!isWasmInitialized) {
24507                 throw new Error("initializeWasm() must be awaited first!");
24508         }
24509         const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
24510         return nativeResponseValue;
24511 }
24512         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
24513 /* @internal */
24514 export function UpdateFailHTLC_read(ser: number): number {
24515         if(!isWasmInitialized) {
24516                 throw new Error("initializeWasm() must be awaited first!");
24517         }
24518         const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
24519         return nativeResponseValue;
24520 }
24521         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
24522 /* @internal */
24523 export function UpdateFailMalformedHTLC_write(obj: number): number {
24524         if(!isWasmInitialized) {
24525                 throw new Error("initializeWasm() must be awaited first!");
24526         }
24527         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
24528         return nativeResponseValue;
24529 }
24530         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
24531 /* @internal */
24532 export function UpdateFailMalformedHTLC_read(ser: number): number {
24533         if(!isWasmInitialized) {
24534                 throw new Error("initializeWasm() must be awaited first!");
24535         }
24536         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
24537         return nativeResponseValue;
24538 }
24539         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
24540 /* @internal */
24541 export function UpdateFee_write(obj: number): number {
24542         if(!isWasmInitialized) {
24543                 throw new Error("initializeWasm() must be awaited first!");
24544         }
24545         const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
24546         return nativeResponseValue;
24547 }
24548         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
24549 /* @internal */
24550 export function UpdateFee_read(ser: number): number {
24551         if(!isWasmInitialized) {
24552                 throw new Error("initializeWasm() must be awaited first!");
24553         }
24554         const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
24555         return nativeResponseValue;
24556 }
24557         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
24558 /* @internal */
24559 export function UpdateFulfillHTLC_write(obj: number): number {
24560         if(!isWasmInitialized) {
24561                 throw new Error("initializeWasm() must be awaited first!");
24562         }
24563         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
24564         return nativeResponseValue;
24565 }
24566         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
24567 /* @internal */
24568 export function UpdateFulfillHTLC_read(ser: number): number {
24569         if(!isWasmInitialized) {
24570                 throw new Error("initializeWasm() must be awaited first!");
24571         }
24572         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
24573         return nativeResponseValue;
24574 }
24575         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
24576 /* @internal */
24577 export function UpdateAddHTLC_write(obj: number): number {
24578         if(!isWasmInitialized) {
24579                 throw new Error("initializeWasm() must be awaited first!");
24580         }
24581         const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
24582         return nativeResponseValue;
24583 }
24584         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
24585 /* @internal */
24586 export function UpdateAddHTLC_read(ser: number): number {
24587         if(!isWasmInitialized) {
24588                 throw new Error("initializeWasm() must be awaited first!");
24589         }
24590         const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
24591         return nativeResponseValue;
24592 }
24593         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
24594 /* @internal */
24595 export function Ping_write(obj: number): number {
24596         if(!isWasmInitialized) {
24597                 throw new Error("initializeWasm() must be awaited first!");
24598         }
24599         const nativeResponseValue = wasm.TS_Ping_write(obj);
24600         return nativeResponseValue;
24601 }
24602         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
24603 /* @internal */
24604 export function Ping_read(ser: number): number {
24605         if(!isWasmInitialized) {
24606                 throw new Error("initializeWasm() must be awaited first!");
24607         }
24608         const nativeResponseValue = wasm.TS_Ping_read(ser);
24609         return nativeResponseValue;
24610 }
24611         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
24612 /* @internal */
24613 export function Pong_write(obj: number): number {
24614         if(!isWasmInitialized) {
24615                 throw new Error("initializeWasm() must be awaited first!");
24616         }
24617         const nativeResponseValue = wasm.TS_Pong_write(obj);
24618         return nativeResponseValue;
24619 }
24620         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
24621 /* @internal */
24622 export function Pong_read(ser: number): number {
24623         if(!isWasmInitialized) {
24624                 throw new Error("initializeWasm() must be awaited first!");
24625         }
24626         const nativeResponseValue = wasm.TS_Pong_read(ser);
24627         return nativeResponseValue;
24628 }
24629         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
24630 /* @internal */
24631 export function UnsignedChannelAnnouncement_write(obj: number): number {
24632         if(!isWasmInitialized) {
24633                 throw new Error("initializeWasm() must be awaited first!");
24634         }
24635         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
24636         return nativeResponseValue;
24637 }
24638         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
24639 /* @internal */
24640 export function UnsignedChannelAnnouncement_read(ser: number): number {
24641         if(!isWasmInitialized) {
24642                 throw new Error("initializeWasm() must be awaited first!");
24643         }
24644         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
24645         return nativeResponseValue;
24646 }
24647         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
24648 /* @internal */
24649 export function ChannelAnnouncement_write(obj: number): number {
24650         if(!isWasmInitialized) {
24651                 throw new Error("initializeWasm() must be awaited first!");
24652         }
24653         const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
24654         return nativeResponseValue;
24655 }
24656         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
24657 /* @internal */
24658 export function ChannelAnnouncement_read(ser: number): number {
24659         if(!isWasmInitialized) {
24660                 throw new Error("initializeWasm() must be awaited first!");
24661         }
24662         const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
24663         return nativeResponseValue;
24664 }
24665         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
24666 /* @internal */
24667 export function UnsignedChannelUpdate_write(obj: number): number {
24668         if(!isWasmInitialized) {
24669                 throw new Error("initializeWasm() must be awaited first!");
24670         }
24671         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
24672         return nativeResponseValue;
24673 }
24674         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
24675 /* @internal */
24676 export function UnsignedChannelUpdate_read(ser: number): number {
24677         if(!isWasmInitialized) {
24678                 throw new Error("initializeWasm() must be awaited first!");
24679         }
24680         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
24681         return nativeResponseValue;
24682 }
24683         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
24684 /* @internal */
24685 export function ChannelUpdate_write(obj: number): number {
24686         if(!isWasmInitialized) {
24687                 throw new Error("initializeWasm() must be awaited first!");
24688         }
24689         const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
24690         return nativeResponseValue;
24691 }
24692         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
24693 /* @internal */
24694 export function ChannelUpdate_read(ser: number): number {
24695         if(!isWasmInitialized) {
24696                 throw new Error("initializeWasm() must be awaited first!");
24697         }
24698         const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
24699         return nativeResponseValue;
24700 }
24701         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
24702 /* @internal */
24703 export function ErrorMessage_write(obj: number): number {
24704         if(!isWasmInitialized) {
24705                 throw new Error("initializeWasm() must be awaited first!");
24706         }
24707         const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
24708         return nativeResponseValue;
24709 }
24710         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
24711 /* @internal */
24712 export function ErrorMessage_read(ser: number): number {
24713         if(!isWasmInitialized) {
24714                 throw new Error("initializeWasm() must be awaited first!");
24715         }
24716         const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
24717         return nativeResponseValue;
24718 }
24719         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
24720 /* @internal */
24721 export function WarningMessage_write(obj: number): number {
24722         if(!isWasmInitialized) {
24723                 throw new Error("initializeWasm() must be awaited first!");
24724         }
24725         const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
24726         return nativeResponseValue;
24727 }
24728         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
24729 /* @internal */
24730 export function WarningMessage_read(ser: number): number {
24731         if(!isWasmInitialized) {
24732                 throw new Error("initializeWasm() must be awaited first!");
24733         }
24734         const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
24735         return nativeResponseValue;
24736 }
24737         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
24738 /* @internal */
24739 export function UnsignedNodeAnnouncement_write(obj: number): number {
24740         if(!isWasmInitialized) {
24741                 throw new Error("initializeWasm() must be awaited first!");
24742         }
24743         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
24744         return nativeResponseValue;
24745 }
24746         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
24747 /* @internal */
24748 export function UnsignedNodeAnnouncement_read(ser: number): number {
24749         if(!isWasmInitialized) {
24750                 throw new Error("initializeWasm() must be awaited first!");
24751         }
24752         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
24753         return nativeResponseValue;
24754 }
24755         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
24756 /* @internal */
24757 export function NodeAnnouncement_write(obj: number): number {
24758         if(!isWasmInitialized) {
24759                 throw new Error("initializeWasm() must be awaited first!");
24760         }
24761         const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
24762         return nativeResponseValue;
24763 }
24764         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
24765 /* @internal */
24766 export function NodeAnnouncement_read(ser: number): number {
24767         if(!isWasmInitialized) {
24768                 throw new Error("initializeWasm() must be awaited first!");
24769         }
24770         const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
24771         return nativeResponseValue;
24772 }
24773         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
24774 /* @internal */
24775 export function QueryShortChannelIds_read(ser: number): number {
24776         if(!isWasmInitialized) {
24777                 throw new Error("initializeWasm() must be awaited first!");
24778         }
24779         const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
24780         return nativeResponseValue;
24781 }
24782         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
24783 /* @internal */
24784 export function QueryShortChannelIds_write(obj: number): number {
24785         if(!isWasmInitialized) {
24786                 throw new Error("initializeWasm() must be awaited first!");
24787         }
24788         const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
24789         return nativeResponseValue;
24790 }
24791         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
24792 /* @internal */
24793 export function ReplyShortChannelIdsEnd_write(obj: number): number {
24794         if(!isWasmInitialized) {
24795                 throw new Error("initializeWasm() must be awaited first!");
24796         }
24797         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
24798         return nativeResponseValue;
24799 }
24800         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
24801 /* @internal */
24802 export function ReplyShortChannelIdsEnd_read(ser: number): number {
24803         if(!isWasmInitialized) {
24804                 throw new Error("initializeWasm() must be awaited first!");
24805         }
24806         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
24807         return nativeResponseValue;
24808 }
24809         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
24810 /* @internal */
24811 export function QueryChannelRange_end_blocknum(this_arg: number): number {
24812         if(!isWasmInitialized) {
24813                 throw new Error("initializeWasm() must be awaited first!");
24814         }
24815         const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
24816         return nativeResponseValue;
24817 }
24818         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
24819 /* @internal */
24820 export function QueryChannelRange_write(obj: number): number {
24821         if(!isWasmInitialized) {
24822                 throw new Error("initializeWasm() must be awaited first!");
24823         }
24824         const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
24825         return nativeResponseValue;
24826 }
24827         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
24828 /* @internal */
24829 export function QueryChannelRange_read(ser: number): number {
24830         if(!isWasmInitialized) {
24831                 throw new Error("initializeWasm() must be awaited first!");
24832         }
24833         const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
24834         return nativeResponseValue;
24835 }
24836         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
24837 /* @internal */
24838 export function ReplyChannelRange_read(ser: number): number {
24839         if(!isWasmInitialized) {
24840                 throw new Error("initializeWasm() must be awaited first!");
24841         }
24842         const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
24843         return nativeResponseValue;
24844 }
24845         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
24846 /* @internal */
24847 export function ReplyChannelRange_write(obj: number): number {
24848         if(!isWasmInitialized) {
24849                 throw new Error("initializeWasm() must be awaited first!");
24850         }
24851         const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
24852         return nativeResponseValue;
24853 }
24854         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
24855 /* @internal */
24856 export function GossipTimestampFilter_write(obj: number): number {
24857         if(!isWasmInitialized) {
24858                 throw new Error("initializeWasm() must be awaited first!");
24859         }
24860         const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
24861         return nativeResponseValue;
24862 }
24863         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
24864 /* @internal */
24865 export function GossipTimestampFilter_read(ser: number): number {
24866         if(!isWasmInitialized) {
24867                 throw new Error("initializeWasm() must be awaited first!");
24868         }
24869         const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
24870         return nativeResponseValue;
24871 }
24872         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
24873 /* @internal */
24874 export function CustomMessageHandler_free(this_ptr: number): void {
24875         if(!isWasmInitialized) {
24876                 throw new Error("initializeWasm() must be awaited first!");
24877         }
24878         const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
24879         // debug statements here
24880 }
24881         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
24882 /* @internal */
24883 export function IgnoringMessageHandler_free(this_obj: number): void {
24884         if(!isWasmInitialized) {
24885                 throw new Error("initializeWasm() must be awaited first!");
24886         }
24887         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
24888         // debug statements here
24889 }
24890         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
24891 /* @internal */
24892 export function IgnoringMessageHandler_new(): number {
24893         if(!isWasmInitialized) {
24894                 throw new Error("initializeWasm() must be awaited first!");
24895         }
24896         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
24897         return nativeResponseValue;
24898 }
24899         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24900 /* @internal */
24901 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24902         if(!isWasmInitialized) {
24903                 throw new Error("initializeWasm() must be awaited first!");
24904         }
24905         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
24906         return nativeResponseValue;
24907 }
24908         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24909 /* @internal */
24910 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: number): number {
24911         if(!isWasmInitialized) {
24912                 throw new Error("initializeWasm() must be awaited first!");
24913         }
24914         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
24915         return nativeResponseValue;
24916 }
24917         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24918 /* @internal */
24919 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: number): number {
24920         if(!isWasmInitialized) {
24921                 throw new Error("initializeWasm() must be awaited first!");
24922         }
24923         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
24924         return nativeResponseValue;
24925 }
24926         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24927 /* @internal */
24928 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: number): number {
24929         if(!isWasmInitialized) {
24930                 throw new Error("initializeWasm() must be awaited first!");
24931         }
24932         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
24933         return nativeResponseValue;
24934 }
24935         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
24936 /* @internal */
24937 export function ErroringMessageHandler_free(this_obj: number): void {
24938         if(!isWasmInitialized) {
24939                 throw new Error("initializeWasm() must be awaited first!");
24940         }
24941         const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
24942         // debug statements here
24943 }
24944         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
24945 /* @internal */
24946 export function ErroringMessageHandler_new(): number {
24947         if(!isWasmInitialized) {
24948                 throw new Error("initializeWasm() must be awaited first!");
24949         }
24950         const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
24951         return nativeResponseValue;
24952 }
24953         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24954 /* @internal */
24955 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24956         if(!isWasmInitialized) {
24957                 throw new Error("initializeWasm() must be awaited first!");
24958         }
24959         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
24960         return nativeResponseValue;
24961 }
24962         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24963 /* @internal */
24964 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: number): number {
24965         if(!isWasmInitialized) {
24966                 throw new Error("initializeWasm() must be awaited first!");
24967         }
24968         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
24969         return nativeResponseValue;
24970 }
24971         // void MessageHandler_free(struct LDKMessageHandler this_obj);
24972 /* @internal */
24973 export function MessageHandler_free(this_obj: number): void {
24974         if(!isWasmInitialized) {
24975                 throw new Error("initializeWasm() must be awaited first!");
24976         }
24977         const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
24978         // debug statements here
24979 }
24980         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24981 /* @internal */
24982 export function MessageHandler_get_chan_handler(this_ptr: number): number {
24983         if(!isWasmInitialized) {
24984                 throw new Error("initializeWasm() must be awaited first!");
24985         }
24986         const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
24987         return nativeResponseValue;
24988 }
24989         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
24990 /* @internal */
24991 export function MessageHandler_set_chan_handler(this_ptr: number, val: number): void {
24992         if(!isWasmInitialized) {
24993                 throw new Error("initializeWasm() must be awaited first!");
24994         }
24995         const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
24996         // debug statements here
24997 }
24998         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24999 /* @internal */
25000 export function MessageHandler_get_route_handler(this_ptr: number): number {
25001         if(!isWasmInitialized) {
25002                 throw new Error("initializeWasm() must be awaited first!");
25003         }
25004         const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
25005         return nativeResponseValue;
25006 }
25007         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
25008 /* @internal */
25009 export function MessageHandler_set_route_handler(this_ptr: number, val: number): void {
25010         if(!isWasmInitialized) {
25011                 throw new Error("initializeWasm() must be awaited first!");
25012         }
25013         const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
25014         // debug statements here
25015 }
25016         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
25017 /* @internal */
25018 export function MessageHandler_new(chan_handler_arg: number, route_handler_arg: number): number {
25019         if(!isWasmInitialized) {
25020                 throw new Error("initializeWasm() must be awaited first!");
25021         }
25022         const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg);
25023         return nativeResponseValue;
25024 }
25025         // uintptr_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
25026 /* @internal */
25027 export function SocketDescriptor_clone_ptr(arg: number): number {
25028         if(!isWasmInitialized) {
25029                 throw new Error("initializeWasm() must be awaited first!");
25030         }
25031         const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
25032         return nativeResponseValue;
25033 }
25034         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
25035 /* @internal */
25036 export function SocketDescriptor_clone(orig: number): number {
25037         if(!isWasmInitialized) {
25038                 throw new Error("initializeWasm() must be awaited first!");
25039         }
25040         const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
25041         return nativeResponseValue;
25042 }
25043         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
25044 /* @internal */
25045 export function SocketDescriptor_free(this_ptr: number): void {
25046         if(!isWasmInitialized) {
25047                 throw new Error("initializeWasm() must be awaited first!");
25048         }
25049         const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
25050         // debug statements here
25051 }
25052         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
25053 /* @internal */
25054 export function PeerHandleError_free(this_obj: number): void {
25055         if(!isWasmInitialized) {
25056                 throw new Error("initializeWasm() must be awaited first!");
25057         }
25058         const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
25059         // debug statements here
25060 }
25061         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
25062 /* @internal */
25063 export function PeerHandleError_get_no_connection_possible(this_ptr: number): boolean {
25064         if(!isWasmInitialized) {
25065                 throw new Error("initializeWasm() must be awaited first!");
25066         }
25067         const nativeResponseValue = wasm.TS_PeerHandleError_get_no_connection_possible(this_ptr);
25068         return nativeResponseValue;
25069 }
25070         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
25071 /* @internal */
25072 export function PeerHandleError_set_no_connection_possible(this_ptr: number, val: boolean): void {
25073         if(!isWasmInitialized) {
25074                 throw new Error("initializeWasm() must be awaited first!");
25075         }
25076         const nativeResponseValue = wasm.TS_PeerHandleError_set_no_connection_possible(this_ptr, val);
25077         // debug statements here
25078 }
25079         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
25080 /* @internal */
25081 export function PeerHandleError_new(no_connection_possible_arg: boolean): number {
25082         if(!isWasmInitialized) {
25083                 throw new Error("initializeWasm() must be awaited first!");
25084         }
25085         const nativeResponseValue = wasm.TS_PeerHandleError_new(no_connection_possible_arg);
25086         return nativeResponseValue;
25087 }
25088         // uintptr_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
25089 /* @internal */
25090 export function PeerHandleError_clone_ptr(arg: number): number {
25091         if(!isWasmInitialized) {
25092                 throw new Error("initializeWasm() must be awaited first!");
25093         }
25094         const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
25095         return nativeResponseValue;
25096 }
25097         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
25098 /* @internal */
25099 export function PeerHandleError_clone(orig: number): number {
25100         if(!isWasmInitialized) {
25101                 throw new Error("initializeWasm() must be awaited first!");
25102         }
25103         const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
25104         return nativeResponseValue;
25105 }
25106         // void PeerManager_free(struct LDKPeerManager this_obj);
25107 /* @internal */
25108 export function PeerManager_free(this_obj: number): void {
25109         if(!isWasmInitialized) {
25110                 throw new Error("initializeWasm() must be awaited first!");
25111         }
25112         const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
25113         // debug statements here
25114 }
25115         // 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);
25116 /* @internal */
25117 export function PeerManager_new(message_handler: number, our_node_secret: number, ephemeral_random_data: number, logger: number, custom_message_handler: number): number {
25118         if(!isWasmInitialized) {
25119                 throw new Error("initializeWasm() must be awaited first!");
25120         }
25121         const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, our_node_secret, ephemeral_random_data, logger, custom_message_handler);
25122         return nativeResponseValue;
25123 }
25124         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
25125 /* @internal */
25126 export function PeerManager_get_peer_node_ids(this_arg: number): number {
25127         if(!isWasmInitialized) {
25128                 throw new Error("initializeWasm() must be awaited first!");
25129         }
25130         const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
25131         return nativeResponseValue;
25132 }
25133         // 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);
25134 /* @internal */
25135 export function PeerManager_new_outbound_connection(this_arg: number, their_node_id: number, descriptor: number, remote_network_address: number): number {
25136         if(!isWasmInitialized) {
25137                 throw new Error("initializeWasm() must be awaited first!");
25138         }
25139         const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor, remote_network_address);
25140         return nativeResponseValue;
25141 }
25142         // 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);
25143 /* @internal */
25144 export function PeerManager_new_inbound_connection(this_arg: number, descriptor: number, remote_network_address: number): number {
25145         if(!isWasmInitialized) {
25146                 throw new Error("initializeWasm() must be awaited first!");
25147         }
25148         const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor, remote_network_address);
25149         return nativeResponseValue;
25150 }
25151         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
25152 /* @internal */
25153 export function PeerManager_write_buffer_space_avail(this_arg: number, descriptor: number): number {
25154         if(!isWasmInitialized) {
25155                 throw new Error("initializeWasm() must be awaited first!");
25156         }
25157         const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
25158         return nativeResponseValue;
25159 }
25160         // 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);
25161 /* @internal */
25162 export function PeerManager_read_event(this_arg: number, peer_descriptor: number, data: number): number {
25163         if(!isWasmInitialized) {
25164                 throw new Error("initializeWasm() must be awaited first!");
25165         }
25166         const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
25167         return nativeResponseValue;
25168 }
25169         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
25170 /* @internal */
25171 export function PeerManager_process_events(this_arg: number): void {
25172         if(!isWasmInitialized) {
25173                 throw new Error("initializeWasm() must be awaited first!");
25174         }
25175         const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
25176         // debug statements here
25177 }
25178         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
25179 /* @internal */
25180 export function PeerManager_socket_disconnected(this_arg: number, descriptor: number): void {
25181         if(!isWasmInitialized) {
25182                 throw new Error("initializeWasm() must be awaited first!");
25183         }
25184         const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
25185         // debug statements here
25186 }
25187         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
25188 /* @internal */
25189 export function PeerManager_disconnect_by_node_id(this_arg: number, node_id: number, no_connection_possible: boolean): void {
25190         if(!isWasmInitialized) {
25191                 throw new Error("initializeWasm() must be awaited first!");
25192         }
25193         const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id, no_connection_possible);
25194         // debug statements here
25195 }
25196         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
25197 /* @internal */
25198 export function PeerManager_disconnect_all_peers(this_arg: number): void {
25199         if(!isWasmInitialized) {
25200                 throw new Error("initializeWasm() must be awaited first!");
25201         }
25202         const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
25203         // debug statements here
25204 }
25205         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
25206 /* @internal */
25207 export function PeerManager_timer_tick_occurred(this_arg: number): void {
25208         if(!isWasmInitialized) {
25209                 throw new Error("initializeWasm() must be awaited first!");
25210         }
25211         const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
25212         // debug statements here
25213 }
25214         // uint64_t htlc_success_tx_weight(bool opt_anchors);
25215 /* @internal */
25216 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
25217         if(!isWasmInitialized) {
25218                 throw new Error("initializeWasm() must be awaited first!");
25219         }
25220         const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
25221         return nativeResponseValue;
25222 }
25223         // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
25224 /* @internal */
25225 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
25226         if(!isWasmInitialized) {
25227                 throw new Error("initializeWasm() must be awaited first!");
25228         }
25229         const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
25230         return nativeResponseValue;
25231 }
25232         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
25233 /* @internal */
25234 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
25235         if(!isWasmInitialized) {
25236                 throw new Error("initializeWasm() must be awaited first!");
25237         }
25238         const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
25239         return nativeResponseValue;
25240 }
25241         // 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);
25242 /* @internal */
25243 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 {
25244         if(!isWasmInitialized) {
25245                 throw new Error("initializeWasm() must be awaited first!");
25246         }
25247         const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
25248         return nativeResponseValue;
25249 }
25250         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
25251 /* @internal */
25252 export function CounterpartyCommitmentSecrets_free(this_obj: number): void {
25253         if(!isWasmInitialized) {
25254                 throw new Error("initializeWasm() must be awaited first!");
25255         }
25256         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
25257         // debug statements here
25258 }
25259         // uintptr_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
25260 /* @internal */
25261 export function CounterpartyCommitmentSecrets_clone_ptr(arg: number): number {
25262         if(!isWasmInitialized) {
25263                 throw new Error("initializeWasm() must be awaited first!");
25264         }
25265         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
25266         return nativeResponseValue;
25267 }
25268         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
25269 /* @internal */
25270 export function CounterpartyCommitmentSecrets_clone(orig: number): number {
25271         if(!isWasmInitialized) {
25272                 throw new Error("initializeWasm() must be awaited first!");
25273         }
25274         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
25275         return nativeResponseValue;
25276 }
25277         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
25278 /* @internal */
25279 export function CounterpartyCommitmentSecrets_new(): number {
25280         if(!isWasmInitialized) {
25281                 throw new Error("initializeWasm() must be awaited first!");
25282         }
25283         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
25284         return nativeResponseValue;
25285 }
25286         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
25287 /* @internal */
25288 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: number): bigint {
25289         if(!isWasmInitialized) {
25290                 throw new Error("initializeWasm() must be awaited first!");
25291         }
25292         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
25293         return nativeResponseValue;
25294 }
25295         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
25296 /* @internal */
25297 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: number, idx: bigint, secret: number): number {
25298         if(!isWasmInitialized) {
25299                 throw new Error("initializeWasm() must be awaited first!");
25300         }
25301         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
25302         return nativeResponseValue;
25303 }
25304         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
25305 /* @internal */
25306 export function CounterpartyCommitmentSecrets_get_secret(this_arg: number, idx: bigint): number {
25307         if(!isWasmInitialized) {
25308                 throw new Error("initializeWasm() must be awaited first!");
25309         }
25310         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
25311         return nativeResponseValue;
25312 }
25313         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
25314 /* @internal */
25315 export function CounterpartyCommitmentSecrets_write(obj: number): number {
25316         if(!isWasmInitialized) {
25317                 throw new Error("initializeWasm() must be awaited first!");
25318         }
25319         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
25320         return nativeResponseValue;
25321 }
25322         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
25323 /* @internal */
25324 export function CounterpartyCommitmentSecrets_read(ser: number): number {
25325         if(!isWasmInitialized) {
25326                 throw new Error("initializeWasm() must be awaited first!");
25327         }
25328         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
25329         return nativeResponseValue;
25330 }
25331         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
25332 /* @internal */
25333 export function derive_private_key(per_commitment_point: number, base_secret: number): number {
25334         if(!isWasmInitialized) {
25335                 throw new Error("initializeWasm() must be awaited first!");
25336         }
25337         const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
25338         return nativeResponseValue;
25339 }
25340         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
25341 /* @internal */
25342 export function derive_public_key(per_commitment_point: number, base_point: number): number {
25343         if(!isWasmInitialized) {
25344                 throw new Error("initializeWasm() must be awaited first!");
25345         }
25346         const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
25347         return nativeResponseValue;
25348 }
25349         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
25350 /* @internal */
25351 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): number {
25352         if(!isWasmInitialized) {
25353                 throw new Error("initializeWasm() must be awaited first!");
25354         }
25355         const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
25356         return nativeResponseValue;
25357 }
25358         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
25359 /* @internal */
25360 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): number {
25361         if(!isWasmInitialized) {
25362                 throw new Error("initializeWasm() must be awaited first!");
25363         }
25364         const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
25365         return nativeResponseValue;
25366 }
25367         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
25368 /* @internal */
25369 export function TxCreationKeys_free(this_obj: number): void {
25370         if(!isWasmInitialized) {
25371                 throw new Error("initializeWasm() must be awaited first!");
25372         }
25373         const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
25374         // debug statements here
25375 }
25376         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25377 /* @internal */
25378 export function TxCreationKeys_get_per_commitment_point(this_ptr: number): number {
25379         if(!isWasmInitialized) {
25380                 throw new Error("initializeWasm() must be awaited first!");
25381         }
25382         const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
25383         return nativeResponseValue;
25384 }
25385         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25386 /* @internal */
25387 export function TxCreationKeys_set_per_commitment_point(this_ptr: number, val: number): void {
25388         if(!isWasmInitialized) {
25389                 throw new Error("initializeWasm() must be awaited first!");
25390         }
25391         const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
25392         // debug statements here
25393 }
25394         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25395 /* @internal */
25396 export function TxCreationKeys_get_revocation_key(this_ptr: number): number {
25397         if(!isWasmInitialized) {
25398                 throw new Error("initializeWasm() must be awaited first!");
25399         }
25400         const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
25401         return nativeResponseValue;
25402 }
25403         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25404 /* @internal */
25405 export function TxCreationKeys_set_revocation_key(this_ptr: number, val: number): void {
25406         if(!isWasmInitialized) {
25407                 throw new Error("initializeWasm() must be awaited first!");
25408         }
25409         const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
25410         // debug statements here
25411 }
25412         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25413 /* @internal */
25414 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: number): number {
25415         if(!isWasmInitialized) {
25416                 throw new Error("initializeWasm() must be awaited first!");
25417         }
25418         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
25419         return nativeResponseValue;
25420 }
25421         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25422 /* @internal */
25423 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: number, val: number): void {
25424         if(!isWasmInitialized) {
25425                 throw new Error("initializeWasm() must be awaited first!");
25426         }
25427         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
25428         // debug statements here
25429 }
25430         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25431 /* @internal */
25432 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: number): number {
25433         if(!isWasmInitialized) {
25434                 throw new Error("initializeWasm() must be awaited first!");
25435         }
25436         const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
25437         return nativeResponseValue;
25438 }
25439         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25440 /* @internal */
25441 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: number, val: number): void {
25442         if(!isWasmInitialized) {
25443                 throw new Error("initializeWasm() must be awaited first!");
25444         }
25445         const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
25446         // debug statements here
25447 }
25448         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25449 /* @internal */
25450 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: number): number {
25451         if(!isWasmInitialized) {
25452                 throw new Error("initializeWasm() must be awaited first!");
25453         }
25454         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
25455         return nativeResponseValue;
25456 }
25457         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25458 /* @internal */
25459 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: number, val: number): void {
25460         if(!isWasmInitialized) {
25461                 throw new Error("initializeWasm() must be awaited first!");
25462         }
25463         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
25464         // debug statements here
25465 }
25466         // 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);
25467 /* @internal */
25468 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 {
25469         if(!isWasmInitialized) {
25470                 throw new Error("initializeWasm() must be awaited first!");
25471         }
25472         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);
25473         return nativeResponseValue;
25474 }
25475         // uintptr_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
25476 /* @internal */
25477 export function TxCreationKeys_clone_ptr(arg: number): number {
25478         if(!isWasmInitialized) {
25479                 throw new Error("initializeWasm() must be awaited first!");
25480         }
25481         const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
25482         return nativeResponseValue;
25483 }
25484         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
25485 /* @internal */
25486 export function TxCreationKeys_clone(orig: number): number {
25487         if(!isWasmInitialized) {
25488                 throw new Error("initializeWasm() must be awaited first!");
25489         }
25490         const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
25491         return nativeResponseValue;
25492 }
25493         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
25494 /* @internal */
25495 export function TxCreationKeys_write(obj: number): number {
25496         if(!isWasmInitialized) {
25497                 throw new Error("initializeWasm() must be awaited first!");
25498         }
25499         const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
25500         return nativeResponseValue;
25501 }
25502         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
25503 /* @internal */
25504 export function TxCreationKeys_read(ser: number): number {
25505         if(!isWasmInitialized) {
25506                 throw new Error("initializeWasm() must be awaited first!");
25507         }
25508         const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
25509         return nativeResponseValue;
25510 }
25511         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
25512 /* @internal */
25513 export function ChannelPublicKeys_free(this_obj: number): void {
25514         if(!isWasmInitialized) {
25515                 throw new Error("initializeWasm() must be awaited first!");
25516         }
25517         const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
25518         // debug statements here
25519 }
25520         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25521 /* @internal */
25522 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: number): number {
25523         if(!isWasmInitialized) {
25524                 throw new Error("initializeWasm() must be awaited first!");
25525         }
25526         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
25527         return nativeResponseValue;
25528 }
25529         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25530 /* @internal */
25531 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: number, val: number): void {
25532         if(!isWasmInitialized) {
25533                 throw new Error("initializeWasm() must be awaited first!");
25534         }
25535         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
25536         // debug statements here
25537 }
25538         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25539 /* @internal */
25540 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: number): number {
25541         if(!isWasmInitialized) {
25542                 throw new Error("initializeWasm() must be awaited first!");
25543         }
25544         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
25545         return nativeResponseValue;
25546 }
25547         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25548 /* @internal */
25549 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: number, val: number): void {
25550         if(!isWasmInitialized) {
25551                 throw new Error("initializeWasm() must be awaited first!");
25552         }
25553         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
25554         // debug statements here
25555 }
25556         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25557 /* @internal */
25558 export function ChannelPublicKeys_get_payment_point(this_ptr: number): number {
25559         if(!isWasmInitialized) {
25560                 throw new Error("initializeWasm() must be awaited first!");
25561         }
25562         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
25563         return nativeResponseValue;
25564 }
25565         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25566 /* @internal */
25567 export function ChannelPublicKeys_set_payment_point(this_ptr: number, val: number): void {
25568         if(!isWasmInitialized) {
25569                 throw new Error("initializeWasm() must be awaited first!");
25570         }
25571         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
25572         // debug statements here
25573 }
25574         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25575 /* @internal */
25576 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: number): number {
25577         if(!isWasmInitialized) {
25578                 throw new Error("initializeWasm() must be awaited first!");
25579         }
25580         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
25581         return nativeResponseValue;
25582 }
25583         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25584 /* @internal */
25585 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
25586         if(!isWasmInitialized) {
25587                 throw new Error("initializeWasm() must be awaited first!");
25588         }
25589         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
25590         // debug statements here
25591 }
25592         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25593 /* @internal */
25594 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: number): number {
25595         if(!isWasmInitialized) {
25596                 throw new Error("initializeWasm() must be awaited first!");
25597         }
25598         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
25599         return nativeResponseValue;
25600 }
25601         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25602 /* @internal */
25603 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: number, val: number): void {
25604         if(!isWasmInitialized) {
25605                 throw new Error("initializeWasm() must be awaited first!");
25606         }
25607         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
25608         // debug statements here
25609 }
25610         // 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);
25611 /* @internal */
25612 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 {
25613         if(!isWasmInitialized) {
25614                 throw new Error("initializeWasm() must be awaited first!");
25615         }
25616         const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
25617         return nativeResponseValue;
25618 }
25619         // uintptr_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
25620 /* @internal */
25621 export function ChannelPublicKeys_clone_ptr(arg: number): number {
25622         if(!isWasmInitialized) {
25623                 throw new Error("initializeWasm() must be awaited first!");
25624         }
25625         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
25626         return nativeResponseValue;
25627 }
25628         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
25629 /* @internal */
25630 export function ChannelPublicKeys_clone(orig: number): number {
25631         if(!isWasmInitialized) {
25632                 throw new Error("initializeWasm() must be awaited first!");
25633         }
25634         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
25635         return nativeResponseValue;
25636 }
25637         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
25638 /* @internal */
25639 export function ChannelPublicKeys_write(obj: number): number {
25640         if(!isWasmInitialized) {
25641                 throw new Error("initializeWasm() must be awaited first!");
25642         }
25643         const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
25644         return nativeResponseValue;
25645 }
25646         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
25647 /* @internal */
25648 export function ChannelPublicKeys_read(ser: number): number {
25649         if(!isWasmInitialized) {
25650                 throw new Error("initializeWasm() must be awaited first!");
25651         }
25652         const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
25653         return nativeResponseValue;
25654 }
25655         // 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);
25656 /* @internal */
25657 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 {
25658         if(!isWasmInitialized) {
25659                 throw new Error("initializeWasm() must be awaited first!");
25660         }
25661         const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
25662         return nativeResponseValue;
25663 }
25664         // 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);
25665 /* @internal */
25666 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: number, countersignatory_keys: number): number {
25667         if(!isWasmInitialized) {
25668                 throw new Error("initializeWasm() must be awaited first!");
25669         }
25670         const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
25671         return nativeResponseValue;
25672 }
25673         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
25674 /* @internal */
25675 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
25676         if(!isWasmInitialized) {
25677                 throw new Error("initializeWasm() must be awaited first!");
25678         }
25679         const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
25680         return nativeResponseValue;
25681 }
25682         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
25683 /* @internal */
25684 export function HTLCOutputInCommitment_free(this_obj: number): void {
25685         if(!isWasmInitialized) {
25686                 throw new Error("initializeWasm() must be awaited first!");
25687         }
25688         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
25689         // debug statements here
25690 }
25691         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25692 /* @internal */
25693 export function HTLCOutputInCommitment_get_offered(this_ptr: number): boolean {
25694         if(!isWasmInitialized) {
25695                 throw new Error("initializeWasm() must be awaited first!");
25696         }
25697         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
25698         return nativeResponseValue;
25699 }
25700         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
25701 /* @internal */
25702 export function HTLCOutputInCommitment_set_offered(this_ptr: number, val: boolean): void {
25703         if(!isWasmInitialized) {
25704                 throw new Error("initializeWasm() must be awaited first!");
25705         }
25706         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
25707         // debug statements here
25708 }
25709         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25710 /* @internal */
25711 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: number): bigint {
25712         if(!isWasmInitialized) {
25713                 throw new Error("initializeWasm() must be awaited first!");
25714         }
25715         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
25716         return nativeResponseValue;
25717 }
25718         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
25719 /* @internal */
25720 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: number, val: bigint): void {
25721         if(!isWasmInitialized) {
25722                 throw new Error("initializeWasm() must be awaited first!");
25723         }
25724         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
25725         // debug statements here
25726 }
25727         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25728 /* @internal */
25729 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: number): number {
25730         if(!isWasmInitialized) {
25731                 throw new Error("initializeWasm() must be awaited first!");
25732         }
25733         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
25734         return nativeResponseValue;
25735 }
25736         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
25737 /* @internal */
25738 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: number, val: number): void {
25739         if(!isWasmInitialized) {
25740                 throw new Error("initializeWasm() must be awaited first!");
25741         }
25742         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
25743         // debug statements here
25744 }
25745         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
25746 /* @internal */
25747 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: number): number {
25748         if(!isWasmInitialized) {
25749                 throw new Error("initializeWasm() must be awaited first!");
25750         }
25751         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
25752         return nativeResponseValue;
25753 }
25754         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25755 /* @internal */
25756 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: number, val: number): void {
25757         if(!isWasmInitialized) {
25758                 throw new Error("initializeWasm() must be awaited first!");
25759         }
25760         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
25761         // debug statements here
25762 }
25763         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25764 /* @internal */
25765 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: number): number {
25766         if(!isWasmInitialized) {
25767                 throw new Error("initializeWasm() must be awaited first!");
25768         }
25769         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
25770         return nativeResponseValue;
25771 }
25772         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
25773 /* @internal */
25774 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: number, val: number): void {
25775         if(!isWasmInitialized) {
25776                 throw new Error("initializeWasm() must be awaited first!");
25777         }
25778         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
25779         // debug statements here
25780 }
25781         // 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);
25782 /* @internal */
25783 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 {
25784         if(!isWasmInitialized) {
25785                 throw new Error("initializeWasm() must be awaited first!");
25786         }
25787         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
25788         return nativeResponseValue;
25789 }
25790         // uintptr_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
25791 /* @internal */
25792 export function HTLCOutputInCommitment_clone_ptr(arg: number): number {
25793         if(!isWasmInitialized) {
25794                 throw new Error("initializeWasm() must be awaited first!");
25795         }
25796         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
25797         return nativeResponseValue;
25798 }
25799         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
25800 /* @internal */
25801 export function HTLCOutputInCommitment_clone(orig: number): number {
25802         if(!isWasmInitialized) {
25803                 throw new Error("initializeWasm() must be awaited first!");
25804         }
25805         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
25806         return nativeResponseValue;
25807 }
25808         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
25809 /* @internal */
25810 export function HTLCOutputInCommitment_write(obj: number): number {
25811         if(!isWasmInitialized) {
25812                 throw new Error("initializeWasm() must be awaited first!");
25813         }
25814         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
25815         return nativeResponseValue;
25816 }
25817         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
25818 /* @internal */
25819 export function HTLCOutputInCommitment_read(ser: number): number {
25820         if(!isWasmInitialized) {
25821                 throw new Error("initializeWasm() must be awaited first!");
25822         }
25823         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
25824         return nativeResponseValue;
25825 }
25826         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
25827 /* @internal */
25828 export function get_htlc_redeemscript(htlc: number, opt_anchors: boolean, keys: number): number {
25829         if(!isWasmInitialized) {
25830                 throw new Error("initializeWasm() must be awaited first!");
25831         }
25832         const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
25833         return nativeResponseValue;
25834 }
25835         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
25836 /* @internal */
25837 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
25838         if(!isWasmInitialized) {
25839                 throw new Error("initializeWasm() must be awaited first!");
25840         }
25841         const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
25842         return nativeResponseValue;
25843 }
25844         // 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);
25845 /* @internal */
25846 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 {
25847         if(!isWasmInitialized) {
25848                 throw new Error("initializeWasm() must be awaited first!");
25849         }
25850         const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, broadcaster_delayed_payment_key, revocation_key);
25851         return nativeResponseValue;
25852 }
25853         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
25854 /* @internal */
25855 export function get_anchor_redeemscript(funding_pubkey: number): number {
25856         if(!isWasmInitialized) {
25857                 throw new Error("initializeWasm() must be awaited first!");
25858         }
25859         const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
25860         return nativeResponseValue;
25861 }
25862         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
25863 /* @internal */
25864 export function ChannelTransactionParameters_free(this_obj: number): void {
25865         if(!isWasmInitialized) {
25866                 throw new Error("initializeWasm() must be awaited first!");
25867         }
25868         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
25869         // debug statements here
25870 }
25871         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25872 /* @internal */
25873 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: number): number {
25874         if(!isWasmInitialized) {
25875                 throw new Error("initializeWasm() must be awaited first!");
25876         }
25877         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
25878         return nativeResponseValue;
25879 }
25880         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
25881 /* @internal */
25882 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: number, val: number): void {
25883         if(!isWasmInitialized) {
25884                 throw new Error("initializeWasm() must be awaited first!");
25885         }
25886         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
25887         // debug statements here
25888 }
25889         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25890 /* @internal */
25891 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: number): number {
25892         if(!isWasmInitialized) {
25893                 throw new Error("initializeWasm() must be awaited first!");
25894         }
25895         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
25896         return nativeResponseValue;
25897 }
25898         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
25899 /* @internal */
25900 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: number, val: number): void {
25901         if(!isWasmInitialized) {
25902                 throw new Error("initializeWasm() must be awaited first!");
25903         }
25904         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
25905         // debug statements here
25906 }
25907         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25908 /* @internal */
25909 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: number): boolean {
25910         if(!isWasmInitialized) {
25911                 throw new Error("initializeWasm() must be awaited first!");
25912         }
25913         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
25914         return nativeResponseValue;
25915 }
25916         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
25917 /* @internal */
25918 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: number, val: boolean): void {
25919         if(!isWasmInitialized) {
25920                 throw new Error("initializeWasm() must be awaited first!");
25921         }
25922         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
25923         // debug statements here
25924 }
25925         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25926 /* @internal */
25927 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: number): number {
25928         if(!isWasmInitialized) {
25929                 throw new Error("initializeWasm() must be awaited first!");
25930         }
25931         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
25932         return nativeResponseValue;
25933 }
25934         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
25935 /* @internal */
25936 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: number, val: number): void {
25937         if(!isWasmInitialized) {
25938                 throw new Error("initializeWasm() must be awaited first!");
25939         }
25940         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
25941         // debug statements here
25942 }
25943         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25944 /* @internal */
25945 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: number): number {
25946         if(!isWasmInitialized) {
25947                 throw new Error("initializeWasm() must be awaited first!");
25948         }
25949         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
25950         return nativeResponseValue;
25951 }
25952         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
25953 /* @internal */
25954 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: number, val: number): void {
25955         if(!isWasmInitialized) {
25956                 throw new Error("initializeWasm() must be awaited first!");
25957         }
25958         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
25959         // debug statements here
25960 }
25961         // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25962 /* @internal */
25963 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: number): COption_NoneZ {
25964         if(!isWasmInitialized) {
25965                 throw new Error("initializeWasm() must be awaited first!");
25966         }
25967         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
25968         return nativeResponseValue;
25969 }
25970         // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
25971 /* @internal */
25972 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: number, val: COption_NoneZ): void {
25973         if(!isWasmInitialized) {
25974                 throw new Error("initializeWasm() must be awaited first!");
25975         }
25976         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
25977         // debug statements here
25978 }
25979         // 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);
25980 /* @internal */
25981 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 {
25982         if(!isWasmInitialized) {
25983                 throw new Error("initializeWasm() must be awaited first!");
25984         }
25985         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);
25986         return nativeResponseValue;
25987 }
25988         // uintptr_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
25989 /* @internal */
25990 export function ChannelTransactionParameters_clone_ptr(arg: number): number {
25991         if(!isWasmInitialized) {
25992                 throw new Error("initializeWasm() must be awaited first!");
25993         }
25994         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
25995         return nativeResponseValue;
25996 }
25997         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
25998 /* @internal */
25999 export function ChannelTransactionParameters_clone(orig: number): number {
26000         if(!isWasmInitialized) {
26001                 throw new Error("initializeWasm() must be awaited first!");
26002         }
26003         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
26004         return nativeResponseValue;
26005 }
26006         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
26007 /* @internal */
26008 export function CounterpartyChannelTransactionParameters_free(this_obj: number): void {
26009         if(!isWasmInitialized) {
26010                 throw new Error("initializeWasm() must be awaited first!");
26011         }
26012         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
26013         // debug statements here
26014 }
26015         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
26016 /* @internal */
26017 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: number): number {
26018         if(!isWasmInitialized) {
26019                 throw new Error("initializeWasm() must be awaited first!");
26020         }
26021         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
26022         return nativeResponseValue;
26023 }
26024         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
26025 /* @internal */
26026 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: number, val: number): void {
26027         if(!isWasmInitialized) {
26028                 throw new Error("initializeWasm() must be awaited first!");
26029         }
26030         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
26031         // debug statements here
26032 }
26033         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
26034 /* @internal */
26035 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: number): number {
26036         if(!isWasmInitialized) {
26037                 throw new Error("initializeWasm() must be awaited first!");
26038         }
26039         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
26040         return nativeResponseValue;
26041 }
26042         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
26043 /* @internal */
26044 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: number, val: number): void {
26045         if(!isWasmInitialized) {
26046                 throw new Error("initializeWasm() must be awaited first!");
26047         }
26048         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
26049         // debug statements here
26050 }
26051         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
26052 /* @internal */
26053 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: number, selected_contest_delay_arg: number): number {
26054         if(!isWasmInitialized) {
26055                 throw new Error("initializeWasm() must be awaited first!");
26056         }
26057         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
26058         return nativeResponseValue;
26059 }
26060         // uintptr_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
26061 /* @internal */
26062 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: number): number {
26063         if(!isWasmInitialized) {
26064                 throw new Error("initializeWasm() must be awaited first!");
26065         }
26066         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
26067         return nativeResponseValue;
26068 }
26069         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
26070 /* @internal */
26071 export function CounterpartyChannelTransactionParameters_clone(orig: number): number {
26072         if(!isWasmInitialized) {
26073                 throw new Error("initializeWasm() must be awaited first!");
26074         }
26075         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
26076         return nativeResponseValue;
26077 }
26078         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
26079 /* @internal */
26080 export function ChannelTransactionParameters_is_populated(this_arg: number): boolean {
26081         if(!isWasmInitialized) {
26082                 throw new Error("initializeWasm() must be awaited first!");
26083         }
26084         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
26085         return nativeResponseValue;
26086 }
26087         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
26088 /* @internal */
26089 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: number): number {
26090         if(!isWasmInitialized) {
26091                 throw new Error("initializeWasm() must be awaited first!");
26092         }
26093         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
26094         return nativeResponseValue;
26095 }
26096         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
26097 /* @internal */
26098 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: number): number {
26099         if(!isWasmInitialized) {
26100                 throw new Error("initializeWasm() must be awaited first!");
26101         }
26102         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
26103         return nativeResponseValue;
26104 }
26105         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
26106 /* @internal */
26107 export function CounterpartyChannelTransactionParameters_write(obj: number): number {
26108         if(!isWasmInitialized) {
26109                 throw new Error("initializeWasm() must be awaited first!");
26110         }
26111         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
26112         return nativeResponseValue;
26113 }
26114         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
26115 /* @internal */
26116 export function CounterpartyChannelTransactionParameters_read(ser: number): number {
26117         if(!isWasmInitialized) {
26118                 throw new Error("initializeWasm() must be awaited first!");
26119         }
26120         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
26121         return nativeResponseValue;
26122 }
26123         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
26124 /* @internal */
26125 export function ChannelTransactionParameters_write(obj: number): number {
26126         if(!isWasmInitialized) {
26127                 throw new Error("initializeWasm() must be awaited first!");
26128         }
26129         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
26130         return nativeResponseValue;
26131 }
26132         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
26133 /* @internal */
26134 export function ChannelTransactionParameters_read(ser: number): number {
26135         if(!isWasmInitialized) {
26136                 throw new Error("initializeWasm() must be awaited first!");
26137         }
26138         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
26139         return nativeResponseValue;
26140 }
26141         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
26142 /* @internal */
26143 export function DirectedChannelTransactionParameters_free(this_obj: number): void {
26144         if(!isWasmInitialized) {
26145                 throw new Error("initializeWasm() must be awaited first!");
26146         }
26147         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
26148         // debug statements here
26149 }
26150         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26151 /* @internal */
26152 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: number): number {
26153         if(!isWasmInitialized) {
26154                 throw new Error("initializeWasm() must be awaited first!");
26155         }
26156         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
26157         return nativeResponseValue;
26158 }
26159         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26160 /* @internal */
26161 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: number): number {
26162         if(!isWasmInitialized) {
26163                 throw new Error("initializeWasm() must be awaited first!");
26164         }
26165         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
26166         return nativeResponseValue;
26167 }
26168         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26169 /* @internal */
26170 export function DirectedChannelTransactionParameters_contest_delay(this_arg: number): number {
26171         if(!isWasmInitialized) {
26172                 throw new Error("initializeWasm() must be awaited first!");
26173         }
26174         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
26175         return nativeResponseValue;
26176 }
26177         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26178 /* @internal */
26179 export function DirectedChannelTransactionParameters_is_outbound(this_arg: number): boolean {
26180         if(!isWasmInitialized) {
26181                 throw new Error("initializeWasm() must be awaited first!");
26182         }
26183         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
26184         return nativeResponseValue;
26185 }
26186         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26187 /* @internal */
26188 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: number): number {
26189         if(!isWasmInitialized) {
26190                 throw new Error("initializeWasm() must be awaited first!");
26191         }
26192         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
26193         return nativeResponseValue;
26194 }
26195         // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26196 /* @internal */
26197 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: number): boolean {
26198         if(!isWasmInitialized) {
26199                 throw new Error("initializeWasm() must be awaited first!");
26200         }
26201         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
26202         return nativeResponseValue;
26203 }
26204         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
26205 /* @internal */
26206 export function HolderCommitmentTransaction_free(this_obj: number): void {
26207         if(!isWasmInitialized) {
26208                 throw new Error("initializeWasm() must be awaited first!");
26209         }
26210         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
26211         // debug statements here
26212 }
26213         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
26214 /* @internal */
26215 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: number): number {
26216         if(!isWasmInitialized) {
26217                 throw new Error("initializeWasm() must be awaited first!");
26218         }
26219         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
26220         return nativeResponseValue;
26221 }
26222         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
26223 /* @internal */
26224 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: number, val: number): void {
26225         if(!isWasmInitialized) {
26226                 throw new Error("initializeWasm() must be awaited first!");
26227         }
26228         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
26229         // debug statements here
26230 }
26231         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
26232 /* @internal */
26233 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: number, val: number): void {
26234         if(!isWasmInitialized) {
26235                 throw new Error("initializeWasm() must be awaited first!");
26236         }
26237         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
26238         // debug statements here
26239 }
26240         // uintptr_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
26241 /* @internal */
26242 export function HolderCommitmentTransaction_clone_ptr(arg: number): number {
26243         if(!isWasmInitialized) {
26244                 throw new Error("initializeWasm() must be awaited first!");
26245         }
26246         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
26247         return nativeResponseValue;
26248 }
26249         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
26250 /* @internal */
26251 export function HolderCommitmentTransaction_clone(orig: number): number {
26252         if(!isWasmInitialized) {
26253                 throw new Error("initializeWasm() must be awaited first!");
26254         }
26255         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
26256         return nativeResponseValue;
26257 }
26258         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
26259 /* @internal */
26260 export function HolderCommitmentTransaction_write(obj: number): number {
26261         if(!isWasmInitialized) {
26262                 throw new Error("initializeWasm() must be awaited first!");
26263         }
26264         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
26265         return nativeResponseValue;
26266 }
26267         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
26268 /* @internal */
26269 export function HolderCommitmentTransaction_read(ser: number): number {
26270         if(!isWasmInitialized) {
26271                 throw new Error("initializeWasm() must be awaited first!");
26272         }
26273         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
26274         return nativeResponseValue;
26275 }
26276         // 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);
26277 /* @internal */
26278 export function HolderCommitmentTransaction_new(commitment_tx: number, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): number {
26279         if(!isWasmInitialized) {
26280                 throw new Error("initializeWasm() must be awaited first!");
26281         }
26282         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
26283         return nativeResponseValue;
26284 }
26285         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
26286 /* @internal */
26287 export function BuiltCommitmentTransaction_free(this_obj: number): void {
26288         if(!isWasmInitialized) {
26289                 throw new Error("initializeWasm() must be awaited first!");
26290         }
26291         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
26292         // debug statements here
26293 }
26294         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
26295 /* @internal */
26296 export function BuiltCommitmentTransaction_get_transaction(this_ptr: number): number {
26297         if(!isWasmInitialized) {
26298                 throw new Error("initializeWasm() must be awaited first!");
26299         }
26300         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
26301         return nativeResponseValue;
26302 }
26303         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
26304 /* @internal */
26305 export function BuiltCommitmentTransaction_set_transaction(this_ptr: number, val: number): void {
26306         if(!isWasmInitialized) {
26307                 throw new Error("initializeWasm() must be awaited first!");
26308         }
26309         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
26310         // debug statements here
26311 }
26312         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
26313 /* @internal */
26314 export function BuiltCommitmentTransaction_get_txid(this_ptr: number): number {
26315         if(!isWasmInitialized) {
26316                 throw new Error("initializeWasm() must be awaited first!");
26317         }
26318         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
26319         return nativeResponseValue;
26320 }
26321         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26322 /* @internal */
26323 export function BuiltCommitmentTransaction_set_txid(this_ptr: number, val: number): void {
26324         if(!isWasmInitialized) {
26325                 throw new Error("initializeWasm() must be awaited first!");
26326         }
26327         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
26328         // debug statements here
26329 }
26330         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
26331 /* @internal */
26332 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): number {
26333         if(!isWasmInitialized) {
26334                 throw new Error("initializeWasm() must be awaited first!");
26335         }
26336         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
26337         return nativeResponseValue;
26338 }
26339         // uintptr_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
26340 /* @internal */
26341 export function BuiltCommitmentTransaction_clone_ptr(arg: number): number {
26342         if(!isWasmInitialized) {
26343                 throw new Error("initializeWasm() must be awaited first!");
26344         }
26345         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
26346         return nativeResponseValue;
26347 }
26348         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
26349 /* @internal */
26350 export function BuiltCommitmentTransaction_clone(orig: number): number {
26351         if(!isWasmInitialized) {
26352                 throw new Error("initializeWasm() must be awaited first!");
26353         }
26354         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
26355         return nativeResponseValue;
26356 }
26357         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
26358 /* @internal */
26359 export function BuiltCommitmentTransaction_write(obj: number): number {
26360         if(!isWasmInitialized) {
26361                 throw new Error("initializeWasm() must be awaited first!");
26362         }
26363         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
26364         return nativeResponseValue;
26365 }
26366         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
26367 /* @internal */
26368 export function BuiltCommitmentTransaction_read(ser: number): number {
26369         if(!isWasmInitialized) {
26370                 throw new Error("initializeWasm() must be awaited first!");
26371         }
26372         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
26373         return nativeResponseValue;
26374 }
26375         // 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);
26376 /* @internal */
26377 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26378         if(!isWasmInitialized) {
26379                 throw new Error("initializeWasm() must be awaited first!");
26380         }
26381         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
26382         return nativeResponseValue;
26383 }
26384         // 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);
26385 /* @internal */
26386 export function BuiltCommitmentTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26387         if(!isWasmInitialized) {
26388                 throw new Error("initializeWasm() must be awaited first!");
26389         }
26390         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
26391         return nativeResponseValue;
26392 }
26393         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
26394 /* @internal */
26395 export function ClosingTransaction_free(this_obj: number): void {
26396         if(!isWasmInitialized) {
26397                 throw new Error("initializeWasm() must be awaited first!");
26398         }
26399         const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
26400         // debug statements here
26401 }
26402         // uintptr_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
26403 /* @internal */
26404 export function ClosingTransaction_clone_ptr(arg: number): number {
26405         if(!isWasmInitialized) {
26406                 throw new Error("initializeWasm() must be awaited first!");
26407         }
26408         const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
26409         return nativeResponseValue;
26410 }
26411         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
26412 /* @internal */
26413 export function ClosingTransaction_clone(orig: number): number {
26414         if(!isWasmInitialized) {
26415                 throw new Error("initializeWasm() must be awaited first!");
26416         }
26417         const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
26418         return nativeResponseValue;
26419 }
26420         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
26421 /* @internal */
26422 export function ClosingTransaction_hash(o: number): bigint {
26423         if(!isWasmInitialized) {
26424                 throw new Error("initializeWasm() must be awaited first!");
26425         }
26426         const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
26427         return nativeResponseValue;
26428 }
26429         // 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);
26430 /* @internal */
26431 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 {
26432         if(!isWasmInitialized) {
26433                 throw new Error("initializeWasm() must be awaited first!");
26434         }
26435         const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
26436         return nativeResponseValue;
26437 }
26438         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26439 /* @internal */
26440 export function ClosingTransaction_trust(this_arg: number): number {
26441         if(!isWasmInitialized) {
26442                 throw new Error("initializeWasm() must be awaited first!");
26443         }
26444         const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
26445         return nativeResponseValue;
26446 }
26447         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
26448 /* @internal */
26449 export function ClosingTransaction_verify(this_arg: number, funding_outpoint: number): number {
26450         if(!isWasmInitialized) {
26451                 throw new Error("initializeWasm() must be awaited first!");
26452         }
26453         const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
26454         return nativeResponseValue;
26455 }
26456         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26457 /* @internal */
26458 export function ClosingTransaction_to_holder_value_sat(this_arg: number): bigint {
26459         if(!isWasmInitialized) {
26460                 throw new Error("initializeWasm() must be awaited first!");
26461         }
26462         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
26463         return nativeResponseValue;
26464 }
26465         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26466 /* @internal */
26467 export function ClosingTransaction_to_counterparty_value_sat(this_arg: number): bigint {
26468         if(!isWasmInitialized) {
26469                 throw new Error("initializeWasm() must be awaited first!");
26470         }
26471         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
26472         return nativeResponseValue;
26473 }
26474         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26475 /* @internal */
26476 export function ClosingTransaction_to_holder_script(this_arg: number): number {
26477         if(!isWasmInitialized) {
26478                 throw new Error("initializeWasm() must be awaited first!");
26479         }
26480         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
26481         return nativeResponseValue;
26482 }
26483         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26484 /* @internal */
26485 export function ClosingTransaction_to_counterparty_script(this_arg: number): number {
26486         if(!isWasmInitialized) {
26487                 throw new Error("initializeWasm() must be awaited first!");
26488         }
26489         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
26490         return nativeResponseValue;
26491 }
26492         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
26493 /* @internal */
26494 export function TrustedClosingTransaction_free(this_obj: number): void {
26495         if(!isWasmInitialized) {
26496                 throw new Error("initializeWasm() must be awaited first!");
26497         }
26498         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
26499         // debug statements here
26500 }
26501         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
26502 /* @internal */
26503 export function TrustedClosingTransaction_built_transaction(this_arg: number): number {
26504         if(!isWasmInitialized) {
26505                 throw new Error("initializeWasm() must be awaited first!");
26506         }
26507         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
26508         return nativeResponseValue;
26509 }
26510         // 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);
26511 /* @internal */
26512 export function TrustedClosingTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26513         if(!isWasmInitialized) {
26514                 throw new Error("initializeWasm() must be awaited first!");
26515         }
26516         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
26517         return nativeResponseValue;
26518 }
26519         // 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);
26520 /* @internal */
26521 export function TrustedClosingTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26522         if(!isWasmInitialized) {
26523                 throw new Error("initializeWasm() must be awaited first!");
26524         }
26525         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
26526         return nativeResponseValue;
26527 }
26528         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
26529 /* @internal */
26530 export function CommitmentTransaction_free(this_obj: number): void {
26531         if(!isWasmInitialized) {
26532                 throw new Error("initializeWasm() must be awaited first!");
26533         }
26534         const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
26535         // debug statements here
26536 }
26537         // uintptr_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
26538 /* @internal */
26539 export function CommitmentTransaction_clone_ptr(arg: number): number {
26540         if(!isWasmInitialized) {
26541                 throw new Error("initializeWasm() must be awaited first!");
26542         }
26543         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
26544         return nativeResponseValue;
26545 }
26546         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
26547 /* @internal */
26548 export function CommitmentTransaction_clone(orig: number): number {
26549         if(!isWasmInitialized) {
26550                 throw new Error("initializeWasm() must be awaited first!");
26551         }
26552         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
26553         return nativeResponseValue;
26554 }
26555         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
26556 /* @internal */
26557 export function CommitmentTransaction_write(obj: number): number {
26558         if(!isWasmInitialized) {
26559                 throw new Error("initializeWasm() must be awaited first!");
26560         }
26561         const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
26562         return nativeResponseValue;
26563 }
26564         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
26565 /* @internal */
26566 export function CommitmentTransaction_read(ser: number): number {
26567         if(!isWasmInitialized) {
26568                 throw new Error("initializeWasm() must be awaited first!");
26569         }
26570         const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
26571         return nativeResponseValue;
26572 }
26573         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26574 /* @internal */
26575 export function CommitmentTransaction_commitment_number(this_arg: number): bigint {
26576         if(!isWasmInitialized) {
26577                 throw new Error("initializeWasm() must be awaited first!");
26578         }
26579         const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
26580         return nativeResponseValue;
26581 }
26582         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26583 /* @internal */
26584 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: number): bigint {
26585         if(!isWasmInitialized) {
26586                 throw new Error("initializeWasm() must be awaited first!");
26587         }
26588         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
26589         return nativeResponseValue;
26590 }
26591         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26592 /* @internal */
26593 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: number): bigint {
26594         if(!isWasmInitialized) {
26595                 throw new Error("initializeWasm() must be awaited first!");
26596         }
26597         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
26598         return nativeResponseValue;
26599 }
26600         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26601 /* @internal */
26602 export function CommitmentTransaction_feerate_per_kw(this_arg: number): number {
26603         if(!isWasmInitialized) {
26604                 throw new Error("initializeWasm() must be awaited first!");
26605         }
26606         const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
26607         return nativeResponseValue;
26608 }
26609         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26610 /* @internal */
26611 export function CommitmentTransaction_trust(this_arg: number): number {
26612         if(!isWasmInitialized) {
26613                 throw new Error("initializeWasm() must be awaited first!");
26614         }
26615         const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
26616         return nativeResponseValue;
26617 }
26618         // 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);
26619 /* @internal */
26620 export function CommitmentTransaction_verify(this_arg: number, channel_parameters: number, broadcaster_keys: number, countersignatory_keys: number): number {
26621         if(!isWasmInitialized) {
26622                 throw new Error("initializeWasm() must be awaited first!");
26623         }
26624         const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
26625         return nativeResponseValue;
26626 }
26627         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
26628 /* @internal */
26629 export function TrustedCommitmentTransaction_free(this_obj: number): void {
26630         if(!isWasmInitialized) {
26631                 throw new Error("initializeWasm() must be awaited first!");
26632         }
26633         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
26634         // debug statements here
26635 }
26636         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26637 /* @internal */
26638 export function TrustedCommitmentTransaction_txid(this_arg: number): number {
26639         if(!isWasmInitialized) {
26640                 throw new Error("initializeWasm() must be awaited first!");
26641         }
26642         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
26643         return nativeResponseValue;
26644 }
26645         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26646 /* @internal */
26647 export function TrustedCommitmentTransaction_built_transaction(this_arg: number): number {
26648         if(!isWasmInitialized) {
26649                 throw new Error("initializeWasm() must be awaited first!");
26650         }
26651         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
26652         return nativeResponseValue;
26653 }
26654         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26655 /* @internal */
26656 export function TrustedCommitmentTransaction_keys(this_arg: number): number {
26657         if(!isWasmInitialized) {
26658                 throw new Error("initializeWasm() must be awaited first!");
26659         }
26660         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
26661         return nativeResponseValue;
26662 }
26663         // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26664 /* @internal */
26665 export function TrustedCommitmentTransaction_opt_anchors(this_arg: number): boolean {
26666         if(!isWasmInitialized) {
26667                 throw new Error("initializeWasm() must be awaited first!");
26668         }
26669         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
26670         return nativeResponseValue;
26671 }
26672         // 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);
26673 /* @internal */
26674 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: number, htlc_base_key: number, channel_parameters: number): number {
26675         if(!isWasmInitialized) {
26676                 throw new Error("initializeWasm() must be awaited first!");
26677         }
26678         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters);
26679         return nativeResponseValue;
26680 }
26681         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
26682 /* @internal */
26683 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
26684         if(!isWasmInitialized) {
26685                 throw new Error("initializeWasm() must be awaited first!");
26686         }
26687         const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
26688         return nativeResponseValue;
26689 }
26690         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
26691 /* @internal */
26692 export function InitFeatures_eq(a: number, b: number): boolean {
26693         if(!isWasmInitialized) {
26694                 throw new Error("initializeWasm() must be awaited first!");
26695         }
26696         const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
26697         return nativeResponseValue;
26698 }
26699         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
26700 /* @internal */
26701 export function NodeFeatures_eq(a: number, b: number): boolean {
26702         if(!isWasmInitialized) {
26703                 throw new Error("initializeWasm() must be awaited first!");
26704         }
26705         const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
26706         return nativeResponseValue;
26707 }
26708         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
26709 /* @internal */
26710 export function ChannelFeatures_eq(a: number, b: number): boolean {
26711         if(!isWasmInitialized) {
26712                 throw new Error("initializeWasm() must be awaited first!");
26713         }
26714         const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
26715         return nativeResponseValue;
26716 }
26717         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
26718 /* @internal */
26719 export function InvoiceFeatures_eq(a: number, b: number): boolean {
26720         if(!isWasmInitialized) {
26721                 throw new Error("initializeWasm() must be awaited first!");
26722         }
26723         const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
26724         return nativeResponseValue;
26725 }
26726         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
26727 /* @internal */
26728 export function ChannelTypeFeatures_eq(a: number, b: number): boolean {
26729         if(!isWasmInitialized) {
26730                 throw new Error("initializeWasm() must be awaited first!");
26731         }
26732         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
26733         return nativeResponseValue;
26734 }
26735         // uintptr_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
26736 /* @internal */
26737 export function InitFeatures_clone_ptr(arg: number): number {
26738         if(!isWasmInitialized) {
26739                 throw new Error("initializeWasm() must be awaited first!");
26740         }
26741         const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
26742         return nativeResponseValue;
26743 }
26744         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
26745 /* @internal */
26746 export function InitFeatures_clone(orig: number): number {
26747         if(!isWasmInitialized) {
26748                 throw new Error("initializeWasm() must be awaited first!");
26749         }
26750         const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
26751         return nativeResponseValue;
26752 }
26753         // uintptr_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
26754 /* @internal */
26755 export function NodeFeatures_clone_ptr(arg: number): number {
26756         if(!isWasmInitialized) {
26757                 throw new Error("initializeWasm() must be awaited first!");
26758         }
26759         const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
26760         return nativeResponseValue;
26761 }
26762         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
26763 /* @internal */
26764 export function NodeFeatures_clone(orig: number): number {
26765         if(!isWasmInitialized) {
26766                 throw new Error("initializeWasm() must be awaited first!");
26767         }
26768         const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
26769         return nativeResponseValue;
26770 }
26771         // uintptr_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
26772 /* @internal */
26773 export function ChannelFeatures_clone_ptr(arg: number): number {
26774         if(!isWasmInitialized) {
26775                 throw new Error("initializeWasm() must be awaited first!");
26776         }
26777         const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
26778         return nativeResponseValue;
26779 }
26780         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
26781 /* @internal */
26782 export function ChannelFeatures_clone(orig: number): number {
26783         if(!isWasmInitialized) {
26784                 throw new Error("initializeWasm() must be awaited first!");
26785         }
26786         const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
26787         return nativeResponseValue;
26788 }
26789         // uintptr_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
26790 /* @internal */
26791 export function InvoiceFeatures_clone_ptr(arg: number): number {
26792         if(!isWasmInitialized) {
26793                 throw new Error("initializeWasm() must be awaited first!");
26794         }
26795         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
26796         return nativeResponseValue;
26797 }
26798         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
26799 /* @internal */
26800 export function InvoiceFeatures_clone(orig: number): number {
26801         if(!isWasmInitialized) {
26802                 throw new Error("initializeWasm() must be awaited first!");
26803         }
26804         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
26805         return nativeResponseValue;
26806 }
26807         // uintptr_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
26808 /* @internal */
26809 export function ChannelTypeFeatures_clone_ptr(arg: number): number {
26810         if(!isWasmInitialized) {
26811                 throw new Error("initializeWasm() must be awaited first!");
26812         }
26813         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
26814         return nativeResponseValue;
26815 }
26816         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
26817 /* @internal */
26818 export function ChannelTypeFeatures_clone(orig: number): number {
26819         if(!isWasmInitialized) {
26820                 throw new Error("initializeWasm() must be awaited first!");
26821         }
26822         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
26823         return nativeResponseValue;
26824 }
26825         // void InitFeatures_free(struct LDKInitFeatures this_obj);
26826 /* @internal */
26827 export function InitFeatures_free(this_obj: number): void {
26828         if(!isWasmInitialized) {
26829                 throw new Error("initializeWasm() must be awaited first!");
26830         }
26831         const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
26832         // debug statements here
26833 }
26834         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
26835 /* @internal */
26836 export function NodeFeatures_free(this_obj: number): void {
26837         if(!isWasmInitialized) {
26838                 throw new Error("initializeWasm() must be awaited first!");
26839         }
26840         const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
26841         // debug statements here
26842 }
26843         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
26844 /* @internal */
26845 export function ChannelFeatures_free(this_obj: number): void {
26846         if(!isWasmInitialized) {
26847                 throw new Error("initializeWasm() must be awaited first!");
26848         }
26849         const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
26850         // debug statements here
26851 }
26852         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
26853 /* @internal */
26854 export function InvoiceFeatures_free(this_obj: number): void {
26855         if(!isWasmInitialized) {
26856                 throw new Error("initializeWasm() must be awaited first!");
26857         }
26858         const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
26859         // debug statements here
26860 }
26861         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
26862 /* @internal */
26863 export function ChannelTypeFeatures_free(this_obj: number): void {
26864         if(!isWasmInitialized) {
26865                 throw new Error("initializeWasm() must be awaited first!");
26866         }
26867         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
26868         // debug statements here
26869 }
26870         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
26871 /* @internal */
26872 export function InitFeatures_empty(): number {
26873         if(!isWasmInitialized) {
26874                 throw new Error("initializeWasm() must be awaited first!");
26875         }
26876         const nativeResponseValue = wasm.TS_InitFeatures_empty();
26877         return nativeResponseValue;
26878 }
26879         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
26880 /* @internal */
26881 export function InitFeatures_known(): number {
26882         if(!isWasmInitialized) {
26883                 throw new Error("initializeWasm() must be awaited first!");
26884         }
26885         const nativeResponseValue = wasm.TS_InitFeatures_known();
26886         return nativeResponseValue;
26887 }
26888         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26889 /* @internal */
26890 export function InitFeatures_requires_unknown_bits(this_arg: number): boolean {
26891         if(!isWasmInitialized) {
26892                 throw new Error("initializeWasm() must be awaited first!");
26893         }
26894         const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
26895         return nativeResponseValue;
26896 }
26897         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
26898 /* @internal */
26899 export function NodeFeatures_empty(): number {
26900         if(!isWasmInitialized) {
26901                 throw new Error("initializeWasm() must be awaited first!");
26902         }
26903         const nativeResponseValue = wasm.TS_NodeFeatures_empty();
26904         return nativeResponseValue;
26905 }
26906         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
26907 /* @internal */
26908 export function NodeFeatures_known(): number {
26909         if(!isWasmInitialized) {
26910                 throw new Error("initializeWasm() must be awaited first!");
26911         }
26912         const nativeResponseValue = wasm.TS_NodeFeatures_known();
26913         return nativeResponseValue;
26914 }
26915         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26916 /* @internal */
26917 export function NodeFeatures_requires_unknown_bits(this_arg: number): boolean {
26918         if(!isWasmInitialized) {
26919                 throw new Error("initializeWasm() must be awaited first!");
26920         }
26921         const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
26922         return nativeResponseValue;
26923 }
26924         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
26925 /* @internal */
26926 export function ChannelFeatures_empty(): number {
26927         if(!isWasmInitialized) {
26928                 throw new Error("initializeWasm() must be awaited first!");
26929         }
26930         const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
26931         return nativeResponseValue;
26932 }
26933         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
26934 /* @internal */
26935 export function ChannelFeatures_known(): number {
26936         if(!isWasmInitialized) {
26937                 throw new Error("initializeWasm() must be awaited first!");
26938         }
26939         const nativeResponseValue = wasm.TS_ChannelFeatures_known();
26940         return nativeResponseValue;
26941 }
26942         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
26943 /* @internal */
26944 export function ChannelFeatures_requires_unknown_bits(this_arg: number): boolean {
26945         if(!isWasmInitialized) {
26946                 throw new Error("initializeWasm() must be awaited first!");
26947         }
26948         const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
26949         return nativeResponseValue;
26950 }
26951         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
26952 /* @internal */
26953 export function InvoiceFeatures_empty(): number {
26954         if(!isWasmInitialized) {
26955                 throw new Error("initializeWasm() must be awaited first!");
26956         }
26957         const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
26958         return nativeResponseValue;
26959 }
26960         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
26961 /* @internal */
26962 export function InvoiceFeatures_known(): number {
26963         if(!isWasmInitialized) {
26964                 throw new Error("initializeWasm() must be awaited first!");
26965         }
26966         const nativeResponseValue = wasm.TS_InvoiceFeatures_known();
26967         return nativeResponseValue;
26968 }
26969         // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
26970 /* @internal */
26971 export function InvoiceFeatures_requires_unknown_bits(this_arg: number): boolean {
26972         if(!isWasmInitialized) {
26973                 throw new Error("initializeWasm() must be awaited first!");
26974         }
26975         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
26976         return nativeResponseValue;
26977 }
26978         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
26979 /* @internal */
26980 export function ChannelTypeFeatures_empty(): number {
26981         if(!isWasmInitialized) {
26982                 throw new Error("initializeWasm() must be awaited first!");
26983         }
26984         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
26985         return nativeResponseValue;
26986 }
26987         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
26988 /* @internal */
26989 export function ChannelTypeFeatures_known(): number {
26990         if(!isWasmInitialized) {
26991                 throw new Error("initializeWasm() must be awaited first!");
26992         }
26993         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_known();
26994         return nativeResponseValue;
26995 }
26996         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
26997 /* @internal */
26998 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: number): boolean {
26999         if(!isWasmInitialized) {
27000                 throw new Error("initializeWasm() must be awaited first!");
27001         }
27002         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
27003         return nativeResponseValue;
27004 }
27005         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
27006 /* @internal */
27007 export function InitFeatures_write(obj: number): number {
27008         if(!isWasmInitialized) {
27009                 throw new Error("initializeWasm() must be awaited first!");
27010         }
27011         const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
27012         return nativeResponseValue;
27013 }
27014         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
27015 /* @internal */
27016 export function InitFeatures_read(ser: number): number {
27017         if(!isWasmInitialized) {
27018                 throw new Error("initializeWasm() must be awaited first!");
27019         }
27020         const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
27021         return nativeResponseValue;
27022 }
27023         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
27024 /* @internal */
27025 export function ChannelFeatures_write(obj: number): number {
27026         if(!isWasmInitialized) {
27027                 throw new Error("initializeWasm() must be awaited first!");
27028         }
27029         const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
27030         return nativeResponseValue;
27031 }
27032         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
27033 /* @internal */
27034 export function ChannelFeatures_read(ser: number): number {
27035         if(!isWasmInitialized) {
27036                 throw new Error("initializeWasm() must be awaited first!");
27037         }
27038         const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
27039         return nativeResponseValue;
27040 }
27041         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
27042 /* @internal */
27043 export function NodeFeatures_write(obj: number): number {
27044         if(!isWasmInitialized) {
27045                 throw new Error("initializeWasm() must be awaited first!");
27046         }
27047         const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
27048         return nativeResponseValue;
27049 }
27050         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
27051 /* @internal */
27052 export function NodeFeatures_read(ser: number): number {
27053         if(!isWasmInitialized) {
27054                 throw new Error("initializeWasm() must be awaited first!");
27055         }
27056         const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
27057         return nativeResponseValue;
27058 }
27059         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
27060 /* @internal */
27061 export function InvoiceFeatures_write(obj: number): number {
27062         if(!isWasmInitialized) {
27063                 throw new Error("initializeWasm() must be awaited first!");
27064         }
27065         const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
27066         return nativeResponseValue;
27067 }
27068         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
27069 /* @internal */
27070 export function InvoiceFeatures_read(ser: number): number {
27071         if(!isWasmInitialized) {
27072                 throw new Error("initializeWasm() must be awaited first!");
27073         }
27074         const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
27075         return nativeResponseValue;
27076 }
27077         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
27078 /* @internal */
27079 export function ChannelTypeFeatures_write(obj: number): number {
27080         if(!isWasmInitialized) {
27081                 throw new Error("initializeWasm() must be awaited first!");
27082         }
27083         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
27084         return nativeResponseValue;
27085 }
27086         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
27087 /* @internal */
27088 export function ChannelTypeFeatures_read(ser: number): number {
27089         if(!isWasmInitialized) {
27090                 throw new Error("initializeWasm() must be awaited first!");
27091         }
27092         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
27093         return nativeResponseValue;
27094 }
27095         // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27096 /* @internal */
27097 export function InitFeatures_set_data_loss_protect_optional(this_arg: number): void {
27098         if(!isWasmInitialized) {
27099                 throw new Error("initializeWasm() must be awaited first!");
27100         }
27101         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_optional(this_arg);
27102         // debug statements here
27103 }
27104         // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27105 /* @internal */
27106 export function InitFeatures_set_data_loss_protect_required(this_arg: number): void {
27107         if(!isWasmInitialized) {
27108                 throw new Error("initializeWasm() must be awaited first!");
27109         }
27110         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_required(this_arg);
27111         // debug statements here
27112 }
27113         // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27114 /* @internal */
27115 export function InitFeatures_supports_data_loss_protect(this_arg: number): boolean {
27116         if(!isWasmInitialized) {
27117                 throw new Error("initializeWasm() must be awaited first!");
27118         }
27119         const nativeResponseValue = wasm.TS_InitFeatures_supports_data_loss_protect(this_arg);
27120         return nativeResponseValue;
27121 }
27122         // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27123 /* @internal */
27124 export function NodeFeatures_set_data_loss_protect_optional(this_arg: number): void {
27125         if(!isWasmInitialized) {
27126                 throw new Error("initializeWasm() must be awaited first!");
27127         }
27128         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_optional(this_arg);
27129         // debug statements here
27130 }
27131         // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27132 /* @internal */
27133 export function NodeFeatures_set_data_loss_protect_required(this_arg: number): void {
27134         if(!isWasmInitialized) {
27135                 throw new Error("initializeWasm() must be awaited first!");
27136         }
27137         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_required(this_arg);
27138         // debug statements here
27139 }
27140         // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27141 /* @internal */
27142 export function NodeFeatures_supports_data_loss_protect(this_arg: number): boolean {
27143         if(!isWasmInitialized) {
27144                 throw new Error("initializeWasm() must be awaited first!");
27145         }
27146         const nativeResponseValue = wasm.TS_NodeFeatures_supports_data_loss_protect(this_arg);
27147         return nativeResponseValue;
27148 }
27149         // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27150 /* @internal */
27151 export function InitFeatures_requires_data_loss_protect(this_arg: number): boolean {
27152         if(!isWasmInitialized) {
27153                 throw new Error("initializeWasm() must be awaited first!");
27154         }
27155         const nativeResponseValue = wasm.TS_InitFeatures_requires_data_loss_protect(this_arg);
27156         return nativeResponseValue;
27157 }
27158         // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27159 /* @internal */
27160 export function NodeFeatures_requires_data_loss_protect(this_arg: number): boolean {
27161         if(!isWasmInitialized) {
27162                 throw new Error("initializeWasm() must be awaited first!");
27163         }
27164         const nativeResponseValue = wasm.TS_NodeFeatures_requires_data_loss_protect(this_arg);
27165         return nativeResponseValue;
27166 }
27167         // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27168 /* @internal */
27169 export function InitFeatures_set_initial_routing_sync_optional(this_arg: number): void {
27170         if(!isWasmInitialized) {
27171                 throw new Error("initializeWasm() must be awaited first!");
27172         }
27173         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_optional(this_arg);
27174         // debug statements here
27175 }
27176         // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27177 /* @internal */
27178 export function InitFeatures_set_initial_routing_sync_required(this_arg: number): void {
27179         if(!isWasmInitialized) {
27180                 throw new Error("initializeWasm() must be awaited first!");
27181         }
27182         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_required(this_arg);
27183         // debug statements here
27184 }
27185         // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27186 /* @internal */
27187 export function InitFeatures_initial_routing_sync(this_arg: number): boolean {
27188         if(!isWasmInitialized) {
27189                 throw new Error("initializeWasm() must be awaited first!");
27190         }
27191         const nativeResponseValue = wasm.TS_InitFeatures_initial_routing_sync(this_arg);
27192         return nativeResponseValue;
27193 }
27194         // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27195 /* @internal */
27196 export function InitFeatures_set_upfront_shutdown_script_optional(this_arg: number): void {
27197         if(!isWasmInitialized) {
27198                 throw new Error("initializeWasm() must be awaited first!");
27199         }
27200         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_optional(this_arg);
27201         // debug statements here
27202 }
27203         // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27204 /* @internal */
27205 export function InitFeatures_set_upfront_shutdown_script_required(this_arg: number): void {
27206         if(!isWasmInitialized) {
27207                 throw new Error("initializeWasm() must be awaited first!");
27208         }
27209         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_required(this_arg);
27210         // debug statements here
27211 }
27212         // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27213 /* @internal */
27214 export function InitFeatures_supports_upfront_shutdown_script(this_arg: number): boolean {
27215         if(!isWasmInitialized) {
27216                 throw new Error("initializeWasm() must be awaited first!");
27217         }
27218         const nativeResponseValue = wasm.TS_InitFeatures_supports_upfront_shutdown_script(this_arg);
27219         return nativeResponseValue;
27220 }
27221         // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27222 /* @internal */
27223 export function NodeFeatures_set_upfront_shutdown_script_optional(this_arg: number): void {
27224         if(!isWasmInitialized) {
27225                 throw new Error("initializeWasm() must be awaited first!");
27226         }
27227         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_optional(this_arg);
27228         // debug statements here
27229 }
27230         // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27231 /* @internal */
27232 export function NodeFeatures_set_upfront_shutdown_script_required(this_arg: number): void {
27233         if(!isWasmInitialized) {
27234                 throw new Error("initializeWasm() must be awaited first!");
27235         }
27236         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_required(this_arg);
27237         // debug statements here
27238 }
27239         // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27240 /* @internal */
27241 export function NodeFeatures_supports_upfront_shutdown_script(this_arg: number): boolean {
27242         if(!isWasmInitialized) {
27243                 throw new Error("initializeWasm() must be awaited first!");
27244         }
27245         const nativeResponseValue = wasm.TS_NodeFeatures_supports_upfront_shutdown_script(this_arg);
27246         return nativeResponseValue;
27247 }
27248         // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27249 /* @internal */
27250 export function InitFeatures_requires_upfront_shutdown_script(this_arg: number): boolean {
27251         if(!isWasmInitialized) {
27252                 throw new Error("initializeWasm() must be awaited first!");
27253         }
27254         const nativeResponseValue = wasm.TS_InitFeatures_requires_upfront_shutdown_script(this_arg);
27255         return nativeResponseValue;
27256 }
27257         // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27258 /* @internal */
27259 export function NodeFeatures_requires_upfront_shutdown_script(this_arg: number): boolean {
27260         if(!isWasmInitialized) {
27261                 throw new Error("initializeWasm() must be awaited first!");
27262         }
27263         const nativeResponseValue = wasm.TS_NodeFeatures_requires_upfront_shutdown_script(this_arg);
27264         return nativeResponseValue;
27265 }
27266         // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27267 /* @internal */
27268 export function InitFeatures_set_gossip_queries_optional(this_arg: number): void {
27269         if(!isWasmInitialized) {
27270                 throw new Error("initializeWasm() must be awaited first!");
27271         }
27272         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_optional(this_arg);
27273         // debug statements here
27274 }
27275         // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27276 /* @internal */
27277 export function InitFeatures_set_gossip_queries_required(this_arg: number): void {
27278         if(!isWasmInitialized) {
27279                 throw new Error("initializeWasm() must be awaited first!");
27280         }
27281         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_required(this_arg);
27282         // debug statements here
27283 }
27284         // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27285 /* @internal */
27286 export function InitFeatures_supports_gossip_queries(this_arg: number): boolean {
27287         if(!isWasmInitialized) {
27288                 throw new Error("initializeWasm() must be awaited first!");
27289         }
27290         const nativeResponseValue = wasm.TS_InitFeatures_supports_gossip_queries(this_arg);
27291         return nativeResponseValue;
27292 }
27293         // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27294 /* @internal */
27295 export function NodeFeatures_set_gossip_queries_optional(this_arg: number): void {
27296         if(!isWasmInitialized) {
27297                 throw new Error("initializeWasm() must be awaited first!");
27298         }
27299         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_optional(this_arg);
27300         // debug statements here
27301 }
27302         // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27303 /* @internal */
27304 export function NodeFeatures_set_gossip_queries_required(this_arg: number): void {
27305         if(!isWasmInitialized) {
27306                 throw new Error("initializeWasm() must be awaited first!");
27307         }
27308         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_required(this_arg);
27309         // debug statements here
27310 }
27311         // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27312 /* @internal */
27313 export function NodeFeatures_supports_gossip_queries(this_arg: number): boolean {
27314         if(!isWasmInitialized) {
27315                 throw new Error("initializeWasm() must be awaited first!");
27316         }
27317         const nativeResponseValue = wasm.TS_NodeFeatures_supports_gossip_queries(this_arg);
27318         return nativeResponseValue;
27319 }
27320         // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27321 /* @internal */
27322 export function InitFeatures_requires_gossip_queries(this_arg: number): boolean {
27323         if(!isWasmInitialized) {
27324                 throw new Error("initializeWasm() must be awaited first!");
27325         }
27326         const nativeResponseValue = wasm.TS_InitFeatures_requires_gossip_queries(this_arg);
27327         return nativeResponseValue;
27328 }
27329         // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27330 /* @internal */
27331 export function NodeFeatures_requires_gossip_queries(this_arg: number): boolean {
27332         if(!isWasmInitialized) {
27333                 throw new Error("initializeWasm() must be awaited first!");
27334         }
27335         const nativeResponseValue = wasm.TS_NodeFeatures_requires_gossip_queries(this_arg);
27336         return nativeResponseValue;
27337 }
27338         // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27339 /* @internal */
27340 export function InitFeatures_set_variable_length_onion_optional(this_arg: number): void {
27341         if(!isWasmInitialized) {
27342                 throw new Error("initializeWasm() must be awaited first!");
27343         }
27344         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_optional(this_arg);
27345         // debug statements here
27346 }
27347         // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27348 /* @internal */
27349 export function InitFeatures_set_variable_length_onion_required(this_arg: number): void {
27350         if(!isWasmInitialized) {
27351                 throw new Error("initializeWasm() must be awaited first!");
27352         }
27353         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_required(this_arg);
27354         // debug statements here
27355 }
27356         // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27357 /* @internal */
27358 export function InitFeatures_supports_variable_length_onion(this_arg: number): boolean {
27359         if(!isWasmInitialized) {
27360                 throw new Error("initializeWasm() must be awaited first!");
27361         }
27362         const nativeResponseValue = wasm.TS_InitFeatures_supports_variable_length_onion(this_arg);
27363         return nativeResponseValue;
27364 }
27365         // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27366 /* @internal */
27367 export function NodeFeatures_set_variable_length_onion_optional(this_arg: number): void {
27368         if(!isWasmInitialized) {
27369                 throw new Error("initializeWasm() must be awaited first!");
27370         }
27371         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_optional(this_arg);
27372         // debug statements here
27373 }
27374         // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27375 /* @internal */
27376 export function NodeFeatures_set_variable_length_onion_required(this_arg: number): void {
27377         if(!isWasmInitialized) {
27378                 throw new Error("initializeWasm() must be awaited first!");
27379         }
27380         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_required(this_arg);
27381         // debug statements here
27382 }
27383         // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27384 /* @internal */
27385 export function NodeFeatures_supports_variable_length_onion(this_arg: number): boolean {
27386         if(!isWasmInitialized) {
27387                 throw new Error("initializeWasm() must be awaited first!");
27388         }
27389         const nativeResponseValue = wasm.TS_NodeFeatures_supports_variable_length_onion(this_arg);
27390         return nativeResponseValue;
27391 }
27392         // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27393 /* @internal */
27394 export function InvoiceFeatures_set_variable_length_onion_optional(this_arg: number): void {
27395         if(!isWasmInitialized) {
27396                 throw new Error("initializeWasm() must be awaited first!");
27397         }
27398         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_optional(this_arg);
27399         // debug statements here
27400 }
27401         // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27402 /* @internal */
27403 export function InvoiceFeatures_set_variable_length_onion_required(this_arg: number): void {
27404         if(!isWasmInitialized) {
27405                 throw new Error("initializeWasm() must be awaited first!");
27406         }
27407         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_required(this_arg);
27408         // debug statements here
27409 }
27410         // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27411 /* @internal */
27412 export function InvoiceFeatures_supports_variable_length_onion(this_arg: number): boolean {
27413         if(!isWasmInitialized) {
27414                 throw new Error("initializeWasm() must be awaited first!");
27415         }
27416         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_variable_length_onion(this_arg);
27417         return nativeResponseValue;
27418 }
27419         // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27420 /* @internal */
27421 export function InitFeatures_requires_variable_length_onion(this_arg: number): boolean {
27422         if(!isWasmInitialized) {
27423                 throw new Error("initializeWasm() must be awaited first!");
27424         }
27425         const nativeResponseValue = wasm.TS_InitFeatures_requires_variable_length_onion(this_arg);
27426         return nativeResponseValue;
27427 }
27428         // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27429 /* @internal */
27430 export function NodeFeatures_requires_variable_length_onion(this_arg: number): boolean {
27431         if(!isWasmInitialized) {
27432                 throw new Error("initializeWasm() must be awaited first!");
27433         }
27434         const nativeResponseValue = wasm.TS_NodeFeatures_requires_variable_length_onion(this_arg);
27435         return nativeResponseValue;
27436 }
27437         // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27438 /* @internal */
27439 export function InvoiceFeatures_requires_variable_length_onion(this_arg: number): boolean {
27440         if(!isWasmInitialized) {
27441                 throw new Error("initializeWasm() must be awaited first!");
27442         }
27443         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_variable_length_onion(this_arg);
27444         return nativeResponseValue;
27445 }
27446         // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27447 /* @internal */
27448 export function InitFeatures_set_static_remote_key_optional(this_arg: number): void {
27449         if(!isWasmInitialized) {
27450                 throw new Error("initializeWasm() must be awaited first!");
27451         }
27452         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_optional(this_arg);
27453         // debug statements here
27454 }
27455         // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27456 /* @internal */
27457 export function InitFeatures_set_static_remote_key_required(this_arg: number): void {
27458         if(!isWasmInitialized) {
27459                 throw new Error("initializeWasm() must be awaited first!");
27460         }
27461         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_required(this_arg);
27462         // debug statements here
27463 }
27464         // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27465 /* @internal */
27466 export function InitFeatures_supports_static_remote_key(this_arg: number): boolean {
27467         if(!isWasmInitialized) {
27468                 throw new Error("initializeWasm() must be awaited first!");
27469         }
27470         const nativeResponseValue = wasm.TS_InitFeatures_supports_static_remote_key(this_arg);
27471         return nativeResponseValue;
27472 }
27473         // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27474 /* @internal */
27475 export function NodeFeatures_set_static_remote_key_optional(this_arg: number): void {
27476         if(!isWasmInitialized) {
27477                 throw new Error("initializeWasm() must be awaited first!");
27478         }
27479         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_optional(this_arg);
27480         // debug statements here
27481 }
27482         // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27483 /* @internal */
27484 export function NodeFeatures_set_static_remote_key_required(this_arg: number): void {
27485         if(!isWasmInitialized) {
27486                 throw new Error("initializeWasm() must be awaited first!");
27487         }
27488         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_required(this_arg);
27489         // debug statements here
27490 }
27491         // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27492 /* @internal */
27493 export function NodeFeatures_supports_static_remote_key(this_arg: number): boolean {
27494         if(!isWasmInitialized) {
27495                 throw new Error("initializeWasm() must be awaited first!");
27496         }
27497         const nativeResponseValue = wasm.TS_NodeFeatures_supports_static_remote_key(this_arg);
27498         return nativeResponseValue;
27499 }
27500         // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27501 /* @internal */
27502 export function ChannelTypeFeatures_set_static_remote_key_optional(this_arg: number): void {
27503         if(!isWasmInitialized) {
27504                 throw new Error("initializeWasm() must be awaited first!");
27505         }
27506         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_optional(this_arg);
27507         // debug statements here
27508 }
27509         // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27510 /* @internal */
27511 export function ChannelTypeFeatures_set_static_remote_key_required(this_arg: number): void {
27512         if(!isWasmInitialized) {
27513                 throw new Error("initializeWasm() must be awaited first!");
27514         }
27515         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_required(this_arg);
27516         // debug statements here
27517 }
27518         // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27519 /* @internal */
27520 export function ChannelTypeFeatures_supports_static_remote_key(this_arg: number): boolean {
27521         if(!isWasmInitialized) {
27522                 throw new Error("initializeWasm() must be awaited first!");
27523         }
27524         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_static_remote_key(this_arg);
27525         return nativeResponseValue;
27526 }
27527         // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27528 /* @internal */
27529 export function InitFeatures_requires_static_remote_key(this_arg: number): boolean {
27530         if(!isWasmInitialized) {
27531                 throw new Error("initializeWasm() must be awaited first!");
27532         }
27533         const nativeResponseValue = wasm.TS_InitFeatures_requires_static_remote_key(this_arg);
27534         return nativeResponseValue;
27535 }
27536         // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27537 /* @internal */
27538 export function NodeFeatures_requires_static_remote_key(this_arg: number): boolean {
27539         if(!isWasmInitialized) {
27540                 throw new Error("initializeWasm() must be awaited first!");
27541         }
27542         const nativeResponseValue = wasm.TS_NodeFeatures_requires_static_remote_key(this_arg);
27543         return nativeResponseValue;
27544 }
27545         // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27546 /* @internal */
27547 export function ChannelTypeFeatures_requires_static_remote_key(this_arg: number): boolean {
27548         if(!isWasmInitialized) {
27549                 throw new Error("initializeWasm() must be awaited first!");
27550         }
27551         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_static_remote_key(this_arg);
27552         return nativeResponseValue;
27553 }
27554         // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27555 /* @internal */
27556 export function InitFeatures_set_payment_secret_optional(this_arg: number): void {
27557         if(!isWasmInitialized) {
27558                 throw new Error("initializeWasm() must be awaited first!");
27559         }
27560         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_optional(this_arg);
27561         // debug statements here
27562 }
27563         // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27564 /* @internal */
27565 export function InitFeatures_set_payment_secret_required(this_arg: number): void {
27566         if(!isWasmInitialized) {
27567                 throw new Error("initializeWasm() must be awaited first!");
27568         }
27569         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_required(this_arg);
27570         // debug statements here
27571 }
27572         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27573 /* @internal */
27574 export function InitFeatures_supports_payment_secret(this_arg: number): boolean {
27575         if(!isWasmInitialized) {
27576                 throw new Error("initializeWasm() must be awaited first!");
27577         }
27578         const nativeResponseValue = wasm.TS_InitFeatures_supports_payment_secret(this_arg);
27579         return nativeResponseValue;
27580 }
27581         // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27582 /* @internal */
27583 export function NodeFeatures_set_payment_secret_optional(this_arg: number): void {
27584         if(!isWasmInitialized) {
27585                 throw new Error("initializeWasm() must be awaited first!");
27586         }
27587         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_optional(this_arg);
27588         // debug statements here
27589 }
27590         // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27591 /* @internal */
27592 export function NodeFeatures_set_payment_secret_required(this_arg: number): void {
27593         if(!isWasmInitialized) {
27594                 throw new Error("initializeWasm() must be awaited first!");
27595         }
27596         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_required(this_arg);
27597         // debug statements here
27598 }
27599         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27600 /* @internal */
27601 export function NodeFeatures_supports_payment_secret(this_arg: number): boolean {
27602         if(!isWasmInitialized) {
27603                 throw new Error("initializeWasm() must be awaited first!");
27604         }
27605         const nativeResponseValue = wasm.TS_NodeFeatures_supports_payment_secret(this_arg);
27606         return nativeResponseValue;
27607 }
27608         // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27609 /* @internal */
27610 export function InvoiceFeatures_set_payment_secret_optional(this_arg: number): void {
27611         if(!isWasmInitialized) {
27612                 throw new Error("initializeWasm() must be awaited first!");
27613         }
27614         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_optional(this_arg);
27615         // debug statements here
27616 }
27617         // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27618 /* @internal */
27619 export function InvoiceFeatures_set_payment_secret_required(this_arg: number): void {
27620         if(!isWasmInitialized) {
27621                 throw new Error("initializeWasm() must be awaited first!");
27622         }
27623         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_required(this_arg);
27624         // debug statements here
27625 }
27626         // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27627 /* @internal */
27628 export function InvoiceFeatures_supports_payment_secret(this_arg: number): boolean {
27629         if(!isWasmInitialized) {
27630                 throw new Error("initializeWasm() must be awaited first!");
27631         }
27632         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_payment_secret(this_arg);
27633         return nativeResponseValue;
27634 }
27635         // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27636 /* @internal */
27637 export function InitFeatures_requires_payment_secret(this_arg: number): boolean {
27638         if(!isWasmInitialized) {
27639                 throw new Error("initializeWasm() must be awaited first!");
27640         }
27641         const nativeResponseValue = wasm.TS_InitFeatures_requires_payment_secret(this_arg);
27642         return nativeResponseValue;
27643 }
27644         // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27645 /* @internal */
27646 export function NodeFeatures_requires_payment_secret(this_arg: number): boolean {
27647         if(!isWasmInitialized) {
27648                 throw new Error("initializeWasm() must be awaited first!");
27649         }
27650         const nativeResponseValue = wasm.TS_NodeFeatures_requires_payment_secret(this_arg);
27651         return nativeResponseValue;
27652 }
27653         // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27654 /* @internal */
27655 export function InvoiceFeatures_requires_payment_secret(this_arg: number): boolean {
27656         if(!isWasmInitialized) {
27657                 throw new Error("initializeWasm() must be awaited first!");
27658         }
27659         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_payment_secret(this_arg);
27660         return nativeResponseValue;
27661 }
27662         // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27663 /* @internal */
27664 export function InitFeatures_set_basic_mpp_optional(this_arg: number): void {
27665         if(!isWasmInitialized) {
27666                 throw new Error("initializeWasm() must be awaited first!");
27667         }
27668         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_optional(this_arg);
27669         // debug statements here
27670 }
27671         // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27672 /* @internal */
27673 export function InitFeatures_set_basic_mpp_required(this_arg: number): void {
27674         if(!isWasmInitialized) {
27675                 throw new Error("initializeWasm() must be awaited first!");
27676         }
27677         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_required(this_arg);
27678         // debug statements here
27679 }
27680         // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27681 /* @internal */
27682 export function InitFeatures_supports_basic_mpp(this_arg: number): boolean {
27683         if(!isWasmInitialized) {
27684                 throw new Error("initializeWasm() must be awaited first!");
27685         }
27686         const nativeResponseValue = wasm.TS_InitFeatures_supports_basic_mpp(this_arg);
27687         return nativeResponseValue;
27688 }
27689         // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27690 /* @internal */
27691 export function NodeFeatures_set_basic_mpp_optional(this_arg: number): void {
27692         if(!isWasmInitialized) {
27693                 throw new Error("initializeWasm() must be awaited first!");
27694         }
27695         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_optional(this_arg);
27696         // debug statements here
27697 }
27698         // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27699 /* @internal */
27700 export function NodeFeatures_set_basic_mpp_required(this_arg: number): void {
27701         if(!isWasmInitialized) {
27702                 throw new Error("initializeWasm() must be awaited first!");
27703         }
27704         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_required(this_arg);
27705         // debug statements here
27706 }
27707         // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27708 /* @internal */
27709 export function NodeFeatures_supports_basic_mpp(this_arg: number): boolean {
27710         if(!isWasmInitialized) {
27711                 throw new Error("initializeWasm() must be awaited first!");
27712         }
27713         const nativeResponseValue = wasm.TS_NodeFeatures_supports_basic_mpp(this_arg);
27714         return nativeResponseValue;
27715 }
27716         // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27717 /* @internal */
27718 export function InvoiceFeatures_set_basic_mpp_optional(this_arg: number): void {
27719         if(!isWasmInitialized) {
27720                 throw new Error("initializeWasm() must be awaited first!");
27721         }
27722         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_optional(this_arg);
27723         // debug statements here
27724 }
27725         // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27726 /* @internal */
27727 export function InvoiceFeatures_set_basic_mpp_required(this_arg: number): void {
27728         if(!isWasmInitialized) {
27729                 throw new Error("initializeWasm() must be awaited first!");
27730         }
27731         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_required(this_arg);
27732         // debug statements here
27733 }
27734         // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27735 /* @internal */
27736 export function InvoiceFeatures_supports_basic_mpp(this_arg: number): boolean {
27737         if(!isWasmInitialized) {
27738                 throw new Error("initializeWasm() must be awaited first!");
27739         }
27740         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_basic_mpp(this_arg);
27741         return nativeResponseValue;
27742 }
27743         // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27744 /* @internal */
27745 export function InitFeatures_requires_basic_mpp(this_arg: number): boolean {
27746         if(!isWasmInitialized) {
27747                 throw new Error("initializeWasm() must be awaited first!");
27748         }
27749         const nativeResponseValue = wasm.TS_InitFeatures_requires_basic_mpp(this_arg);
27750         return nativeResponseValue;
27751 }
27752         // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27753 /* @internal */
27754 export function NodeFeatures_requires_basic_mpp(this_arg: number): boolean {
27755         if(!isWasmInitialized) {
27756                 throw new Error("initializeWasm() must be awaited first!");
27757         }
27758         const nativeResponseValue = wasm.TS_NodeFeatures_requires_basic_mpp(this_arg);
27759         return nativeResponseValue;
27760 }
27761         // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27762 /* @internal */
27763 export function InvoiceFeatures_requires_basic_mpp(this_arg: number): boolean {
27764         if(!isWasmInitialized) {
27765                 throw new Error("initializeWasm() must be awaited first!");
27766         }
27767         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_basic_mpp(this_arg);
27768         return nativeResponseValue;
27769 }
27770         // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27771 /* @internal */
27772 export function InitFeatures_set_wumbo_optional(this_arg: number): void {
27773         if(!isWasmInitialized) {
27774                 throw new Error("initializeWasm() must be awaited first!");
27775         }
27776         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_optional(this_arg);
27777         // debug statements here
27778 }
27779         // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27780 /* @internal */
27781 export function InitFeatures_set_wumbo_required(this_arg: number): void {
27782         if(!isWasmInitialized) {
27783                 throw new Error("initializeWasm() must be awaited first!");
27784         }
27785         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_required(this_arg);
27786         // debug statements here
27787 }
27788         // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27789 /* @internal */
27790 export function InitFeatures_supports_wumbo(this_arg: number): boolean {
27791         if(!isWasmInitialized) {
27792                 throw new Error("initializeWasm() must be awaited first!");
27793         }
27794         const nativeResponseValue = wasm.TS_InitFeatures_supports_wumbo(this_arg);
27795         return nativeResponseValue;
27796 }
27797         // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27798 /* @internal */
27799 export function NodeFeatures_set_wumbo_optional(this_arg: number): void {
27800         if(!isWasmInitialized) {
27801                 throw new Error("initializeWasm() must be awaited first!");
27802         }
27803         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_optional(this_arg);
27804         // debug statements here
27805 }
27806         // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27807 /* @internal */
27808 export function NodeFeatures_set_wumbo_required(this_arg: number): void {
27809         if(!isWasmInitialized) {
27810                 throw new Error("initializeWasm() must be awaited first!");
27811         }
27812         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_required(this_arg);
27813         // debug statements here
27814 }
27815         // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27816 /* @internal */
27817 export function NodeFeatures_supports_wumbo(this_arg: number): boolean {
27818         if(!isWasmInitialized) {
27819                 throw new Error("initializeWasm() must be awaited first!");
27820         }
27821         const nativeResponseValue = wasm.TS_NodeFeatures_supports_wumbo(this_arg);
27822         return nativeResponseValue;
27823 }
27824         // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27825 /* @internal */
27826 export function InitFeatures_requires_wumbo(this_arg: number): boolean {
27827         if(!isWasmInitialized) {
27828                 throw new Error("initializeWasm() must be awaited first!");
27829         }
27830         const nativeResponseValue = wasm.TS_InitFeatures_requires_wumbo(this_arg);
27831         return nativeResponseValue;
27832 }
27833         // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27834 /* @internal */
27835 export function NodeFeatures_requires_wumbo(this_arg: number): boolean {
27836         if(!isWasmInitialized) {
27837                 throw new Error("initializeWasm() must be awaited first!");
27838         }
27839         const nativeResponseValue = wasm.TS_NodeFeatures_requires_wumbo(this_arg);
27840         return nativeResponseValue;
27841 }
27842         // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27843 /* @internal */
27844 export function InitFeatures_set_shutdown_any_segwit_optional(this_arg: number): void {
27845         if(!isWasmInitialized) {
27846                 throw new Error("initializeWasm() must be awaited first!");
27847         }
27848         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_optional(this_arg);
27849         // debug statements here
27850 }
27851         // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27852 /* @internal */
27853 export function InitFeatures_set_shutdown_any_segwit_required(this_arg: number): void {
27854         if(!isWasmInitialized) {
27855                 throw new Error("initializeWasm() must be awaited first!");
27856         }
27857         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_required(this_arg);
27858         // debug statements here
27859 }
27860         // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27861 /* @internal */
27862 export function InitFeatures_supports_shutdown_anysegwit(this_arg: number): boolean {
27863         if(!isWasmInitialized) {
27864                 throw new Error("initializeWasm() must be awaited first!");
27865         }
27866         const nativeResponseValue = wasm.TS_InitFeatures_supports_shutdown_anysegwit(this_arg);
27867         return nativeResponseValue;
27868 }
27869         // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27870 /* @internal */
27871 export function NodeFeatures_set_shutdown_any_segwit_optional(this_arg: number): void {
27872         if(!isWasmInitialized) {
27873                 throw new Error("initializeWasm() must be awaited first!");
27874         }
27875         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_optional(this_arg);
27876         // debug statements here
27877 }
27878         // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27879 /* @internal */
27880 export function NodeFeatures_set_shutdown_any_segwit_required(this_arg: number): void {
27881         if(!isWasmInitialized) {
27882                 throw new Error("initializeWasm() must be awaited first!");
27883         }
27884         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_required(this_arg);
27885         // debug statements here
27886 }
27887         // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27888 /* @internal */
27889 export function NodeFeatures_supports_shutdown_anysegwit(this_arg: number): boolean {
27890         if(!isWasmInitialized) {
27891                 throw new Error("initializeWasm() must be awaited first!");
27892         }
27893         const nativeResponseValue = wasm.TS_NodeFeatures_supports_shutdown_anysegwit(this_arg);
27894         return nativeResponseValue;
27895 }
27896         // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27897 /* @internal */
27898 export function InitFeatures_requires_shutdown_anysegwit(this_arg: number): boolean {
27899         if(!isWasmInitialized) {
27900                 throw new Error("initializeWasm() must be awaited first!");
27901         }
27902         const nativeResponseValue = wasm.TS_InitFeatures_requires_shutdown_anysegwit(this_arg);
27903         return nativeResponseValue;
27904 }
27905         // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27906 /* @internal */
27907 export function NodeFeatures_requires_shutdown_anysegwit(this_arg: number): boolean {
27908         if(!isWasmInitialized) {
27909                 throw new Error("initializeWasm() must be awaited first!");
27910         }
27911         const nativeResponseValue = wasm.TS_NodeFeatures_requires_shutdown_anysegwit(this_arg);
27912         return nativeResponseValue;
27913 }
27914         // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27915 /* @internal */
27916 export function InitFeatures_set_channel_type_optional(this_arg: number): void {
27917         if(!isWasmInitialized) {
27918                 throw new Error("initializeWasm() must be awaited first!");
27919         }
27920         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_optional(this_arg);
27921         // debug statements here
27922 }
27923         // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27924 /* @internal */
27925 export function InitFeatures_set_channel_type_required(this_arg: number): void {
27926         if(!isWasmInitialized) {
27927                 throw new Error("initializeWasm() must be awaited first!");
27928         }
27929         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_required(this_arg);
27930         // debug statements here
27931 }
27932         // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27933 /* @internal */
27934 export function InitFeatures_supports_channel_type(this_arg: number): boolean {
27935         if(!isWasmInitialized) {
27936                 throw new Error("initializeWasm() must be awaited first!");
27937         }
27938         const nativeResponseValue = wasm.TS_InitFeatures_supports_channel_type(this_arg);
27939         return nativeResponseValue;
27940 }
27941         // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27942 /* @internal */
27943 export function NodeFeatures_set_channel_type_optional(this_arg: number): void {
27944         if(!isWasmInitialized) {
27945                 throw new Error("initializeWasm() must be awaited first!");
27946         }
27947         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_optional(this_arg);
27948         // debug statements here
27949 }
27950         // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27951 /* @internal */
27952 export function NodeFeatures_set_channel_type_required(this_arg: number): void {
27953         if(!isWasmInitialized) {
27954                 throw new Error("initializeWasm() must be awaited first!");
27955         }
27956         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_required(this_arg);
27957         // debug statements here
27958 }
27959         // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27960 /* @internal */
27961 export function NodeFeatures_supports_channel_type(this_arg: number): boolean {
27962         if(!isWasmInitialized) {
27963                 throw new Error("initializeWasm() must be awaited first!");
27964         }
27965         const nativeResponseValue = wasm.TS_NodeFeatures_supports_channel_type(this_arg);
27966         return nativeResponseValue;
27967 }
27968         // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27969 /* @internal */
27970 export function InitFeatures_requires_channel_type(this_arg: number): boolean {
27971         if(!isWasmInitialized) {
27972                 throw new Error("initializeWasm() must be awaited first!");
27973         }
27974         const nativeResponseValue = wasm.TS_InitFeatures_requires_channel_type(this_arg);
27975         return nativeResponseValue;
27976 }
27977         // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27978 /* @internal */
27979 export function NodeFeatures_requires_channel_type(this_arg: number): boolean {
27980         if(!isWasmInitialized) {
27981                 throw new Error("initializeWasm() must be awaited first!");
27982         }
27983         const nativeResponseValue = wasm.TS_NodeFeatures_requires_channel_type(this_arg);
27984         return nativeResponseValue;
27985 }
27986         // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27987 /* @internal */
27988 export function InitFeatures_set_scid_privacy_optional(this_arg: number): void {
27989         if(!isWasmInitialized) {
27990                 throw new Error("initializeWasm() must be awaited first!");
27991         }
27992         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_optional(this_arg);
27993         // debug statements here
27994 }
27995         // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27996 /* @internal */
27997 export function InitFeatures_set_scid_privacy_required(this_arg: number): void {
27998         if(!isWasmInitialized) {
27999                 throw new Error("initializeWasm() must be awaited first!");
28000         }
28001         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_required(this_arg);
28002         // debug statements here
28003 }
28004         // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28005 /* @internal */
28006 export function InitFeatures_supports_scid_privacy(this_arg: number): boolean {
28007         if(!isWasmInitialized) {
28008                 throw new Error("initializeWasm() must be awaited first!");
28009         }
28010         const nativeResponseValue = wasm.TS_InitFeatures_supports_scid_privacy(this_arg);
28011         return nativeResponseValue;
28012 }
28013         // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28014 /* @internal */
28015 export function NodeFeatures_set_scid_privacy_optional(this_arg: number): void {
28016         if(!isWasmInitialized) {
28017                 throw new Error("initializeWasm() must be awaited first!");
28018         }
28019         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_optional(this_arg);
28020         // debug statements here
28021 }
28022         // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28023 /* @internal */
28024 export function NodeFeatures_set_scid_privacy_required(this_arg: number): void {
28025         if(!isWasmInitialized) {
28026                 throw new Error("initializeWasm() must be awaited first!");
28027         }
28028         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_required(this_arg);
28029         // debug statements here
28030 }
28031         // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28032 /* @internal */
28033 export function NodeFeatures_supports_scid_privacy(this_arg: number): boolean {
28034         if(!isWasmInitialized) {
28035                 throw new Error("initializeWasm() must be awaited first!");
28036         }
28037         const nativeResponseValue = wasm.TS_NodeFeatures_supports_scid_privacy(this_arg);
28038         return nativeResponseValue;
28039 }
28040         // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28041 /* @internal */
28042 export function ChannelTypeFeatures_set_scid_privacy_optional(this_arg: number): void {
28043         if(!isWasmInitialized) {
28044                 throw new Error("initializeWasm() must be awaited first!");
28045         }
28046         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_optional(this_arg);
28047         // debug statements here
28048 }
28049         // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28050 /* @internal */
28051 export function ChannelTypeFeatures_set_scid_privacy_required(this_arg: number): void {
28052         if(!isWasmInitialized) {
28053                 throw new Error("initializeWasm() must be awaited first!");
28054         }
28055         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_required(this_arg);
28056         // debug statements here
28057 }
28058         // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28059 /* @internal */
28060 export function ChannelTypeFeatures_supports_scid_privacy(this_arg: number): boolean {
28061         if(!isWasmInitialized) {
28062                 throw new Error("initializeWasm() must be awaited first!");
28063         }
28064         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_scid_privacy(this_arg);
28065         return nativeResponseValue;
28066 }
28067         // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28068 /* @internal */
28069 export function InitFeatures_requires_scid_privacy(this_arg: number): boolean {
28070         if(!isWasmInitialized) {
28071                 throw new Error("initializeWasm() must be awaited first!");
28072         }
28073         const nativeResponseValue = wasm.TS_InitFeatures_requires_scid_privacy(this_arg);
28074         return nativeResponseValue;
28075 }
28076         // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28077 /* @internal */
28078 export function NodeFeatures_requires_scid_privacy(this_arg: number): boolean {
28079         if(!isWasmInitialized) {
28080                 throw new Error("initializeWasm() must be awaited first!");
28081         }
28082         const nativeResponseValue = wasm.TS_NodeFeatures_requires_scid_privacy(this_arg);
28083         return nativeResponseValue;
28084 }
28085         // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28086 /* @internal */
28087 export function ChannelTypeFeatures_requires_scid_privacy(this_arg: number): boolean {
28088         if(!isWasmInitialized) {
28089                 throw new Error("initializeWasm() must be awaited first!");
28090         }
28091         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_scid_privacy(this_arg);
28092         return nativeResponseValue;
28093 }
28094         // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
28095 /* @internal */
28096 export function InitFeatures_set_zero_conf_optional(this_arg: number): void {
28097         if(!isWasmInitialized) {
28098                 throw new Error("initializeWasm() must be awaited first!");
28099         }
28100         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_optional(this_arg);
28101         // debug statements here
28102 }
28103         // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
28104 /* @internal */
28105 export function InitFeatures_set_zero_conf_required(this_arg: number): void {
28106         if(!isWasmInitialized) {
28107                 throw new Error("initializeWasm() must be awaited first!");
28108         }
28109         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_required(this_arg);
28110         // debug statements here
28111 }
28112         // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28113 /* @internal */
28114 export function InitFeatures_supports_zero_conf(this_arg: number): boolean {
28115         if(!isWasmInitialized) {
28116                 throw new Error("initializeWasm() must be awaited first!");
28117         }
28118         const nativeResponseValue = wasm.TS_InitFeatures_supports_zero_conf(this_arg);
28119         return nativeResponseValue;
28120 }
28121         // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28122 /* @internal */
28123 export function NodeFeatures_set_zero_conf_optional(this_arg: number): void {
28124         if(!isWasmInitialized) {
28125                 throw new Error("initializeWasm() must be awaited first!");
28126         }
28127         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_optional(this_arg);
28128         // debug statements here
28129 }
28130         // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28131 /* @internal */
28132 export function NodeFeatures_set_zero_conf_required(this_arg: number): void {
28133         if(!isWasmInitialized) {
28134                 throw new Error("initializeWasm() must be awaited first!");
28135         }
28136         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_required(this_arg);
28137         // debug statements here
28138 }
28139         // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28140 /* @internal */
28141 export function NodeFeatures_supports_zero_conf(this_arg: number): boolean {
28142         if(!isWasmInitialized) {
28143                 throw new Error("initializeWasm() must be awaited first!");
28144         }
28145         const nativeResponseValue = wasm.TS_NodeFeatures_supports_zero_conf(this_arg);
28146         return nativeResponseValue;
28147 }
28148         // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28149 /* @internal */
28150 export function ChannelTypeFeatures_set_zero_conf_optional(this_arg: number): void {
28151         if(!isWasmInitialized) {
28152                 throw new Error("initializeWasm() must be awaited first!");
28153         }
28154         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_optional(this_arg);
28155         // debug statements here
28156 }
28157         // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28158 /* @internal */
28159 export function ChannelTypeFeatures_set_zero_conf_required(this_arg: number): void {
28160         if(!isWasmInitialized) {
28161                 throw new Error("initializeWasm() must be awaited first!");
28162         }
28163         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_required(this_arg);
28164         // debug statements here
28165 }
28166         // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28167 /* @internal */
28168 export function ChannelTypeFeatures_supports_zero_conf(this_arg: number): boolean {
28169         if(!isWasmInitialized) {
28170                 throw new Error("initializeWasm() must be awaited first!");
28171         }
28172         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_zero_conf(this_arg);
28173         return nativeResponseValue;
28174 }
28175         // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28176 /* @internal */
28177 export function InitFeatures_requires_zero_conf(this_arg: number): boolean {
28178         if(!isWasmInitialized) {
28179                 throw new Error("initializeWasm() must be awaited first!");
28180         }
28181         const nativeResponseValue = wasm.TS_InitFeatures_requires_zero_conf(this_arg);
28182         return nativeResponseValue;
28183 }
28184         // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28185 /* @internal */
28186 export function NodeFeatures_requires_zero_conf(this_arg: number): boolean {
28187         if(!isWasmInitialized) {
28188                 throw new Error("initializeWasm() must be awaited first!");
28189         }
28190         const nativeResponseValue = wasm.TS_NodeFeatures_requires_zero_conf(this_arg);
28191         return nativeResponseValue;
28192 }
28193         // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28194 /* @internal */
28195 export function ChannelTypeFeatures_requires_zero_conf(this_arg: number): boolean {
28196         if(!isWasmInitialized) {
28197                 throw new Error("initializeWasm() must be awaited first!");
28198         }
28199         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_zero_conf(this_arg);
28200         return nativeResponseValue;
28201 }
28202         // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28203 /* @internal */
28204 export function NodeFeatures_set_keysend_optional(this_arg: number): void {
28205         if(!isWasmInitialized) {
28206                 throw new Error("initializeWasm() must be awaited first!");
28207         }
28208         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_optional(this_arg);
28209         // debug statements here
28210 }
28211         // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28212 /* @internal */
28213 export function NodeFeatures_set_keysend_required(this_arg: number): void {
28214         if(!isWasmInitialized) {
28215                 throw new Error("initializeWasm() must be awaited first!");
28216         }
28217         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_required(this_arg);
28218         // debug statements here
28219 }
28220         // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28221 /* @internal */
28222 export function NodeFeatures_supports_keysend(this_arg: number): boolean {
28223         if(!isWasmInitialized) {
28224                 throw new Error("initializeWasm() must be awaited first!");
28225         }
28226         const nativeResponseValue = wasm.TS_NodeFeatures_supports_keysend(this_arg);
28227         return nativeResponseValue;
28228 }
28229         // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28230 /* @internal */
28231 export function NodeFeatures_requires_keysend(this_arg: number): boolean {
28232         if(!isWasmInitialized) {
28233                 throw new Error("initializeWasm() must be awaited first!");
28234         }
28235         const nativeResponseValue = wasm.TS_NodeFeatures_requires_keysend(this_arg);
28236         return nativeResponseValue;
28237 }
28238         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
28239 /* @internal */
28240 export function ShutdownScript_free(this_obj: number): void {
28241         if(!isWasmInitialized) {
28242                 throw new Error("initializeWasm() must be awaited first!");
28243         }
28244         const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
28245         // debug statements here
28246 }
28247         // uintptr_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
28248 /* @internal */
28249 export function ShutdownScript_clone_ptr(arg: number): number {
28250         if(!isWasmInitialized) {
28251                 throw new Error("initializeWasm() must be awaited first!");
28252         }
28253         const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
28254         return nativeResponseValue;
28255 }
28256         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
28257 /* @internal */
28258 export function ShutdownScript_clone(orig: number): number {
28259         if(!isWasmInitialized) {
28260                 throw new Error("initializeWasm() must be awaited first!");
28261         }
28262         const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
28263         return nativeResponseValue;
28264 }
28265         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
28266 /* @internal */
28267 export function InvalidShutdownScript_free(this_obj: number): void {
28268         if(!isWasmInitialized) {
28269                 throw new Error("initializeWasm() must be awaited first!");
28270         }
28271         const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
28272         // debug statements here
28273 }
28274         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
28275 /* @internal */
28276 export function InvalidShutdownScript_get_script(this_ptr: number): number {
28277         if(!isWasmInitialized) {
28278                 throw new Error("initializeWasm() must be awaited first!");
28279         }
28280         const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
28281         return nativeResponseValue;
28282 }
28283         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
28284 /* @internal */
28285 export function InvalidShutdownScript_set_script(this_ptr: number, val: number): void {
28286         if(!isWasmInitialized) {
28287                 throw new Error("initializeWasm() must be awaited first!");
28288         }
28289         const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
28290         // debug statements here
28291 }
28292         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
28293 /* @internal */
28294 export function InvalidShutdownScript_new(script_arg: number): number {
28295         if(!isWasmInitialized) {
28296                 throw new Error("initializeWasm() must be awaited first!");
28297         }
28298         const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
28299         return nativeResponseValue;
28300 }
28301         // uintptr_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
28302 /* @internal */
28303 export function InvalidShutdownScript_clone_ptr(arg: number): number {
28304         if(!isWasmInitialized) {
28305                 throw new Error("initializeWasm() must be awaited first!");
28306         }
28307         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
28308         return nativeResponseValue;
28309 }
28310         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
28311 /* @internal */
28312 export function InvalidShutdownScript_clone(orig: number): number {
28313         if(!isWasmInitialized) {
28314                 throw new Error("initializeWasm() must be awaited first!");
28315         }
28316         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
28317         return nativeResponseValue;
28318 }
28319         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
28320 /* @internal */
28321 export function ShutdownScript_write(obj: number): number {
28322         if(!isWasmInitialized) {
28323                 throw new Error("initializeWasm() must be awaited first!");
28324         }
28325         const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
28326         return nativeResponseValue;
28327 }
28328         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
28329 /* @internal */
28330 export function ShutdownScript_read(ser: number): number {
28331         if(!isWasmInitialized) {
28332                 throw new Error("initializeWasm() must be awaited first!");
28333         }
28334         const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
28335         return nativeResponseValue;
28336 }
28337         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
28338 /* @internal */
28339 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): number {
28340         if(!isWasmInitialized) {
28341                 throw new Error("initializeWasm() must be awaited first!");
28342         }
28343         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
28344         return nativeResponseValue;
28345 }
28346         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
28347 /* @internal */
28348 export function ShutdownScript_new_p2wsh(script_hash: number): number {
28349         if(!isWasmInitialized) {
28350                 throw new Error("initializeWasm() must be awaited first!");
28351         }
28352         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
28353         return nativeResponseValue;
28354 }
28355         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
28356 /* @internal */
28357 export function ShutdownScript_new_witness_program(version: number, program: number): number {
28358         if(!isWasmInitialized) {
28359                 throw new Error("initializeWasm() must be awaited first!");
28360         }
28361         const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
28362         return nativeResponseValue;
28363 }
28364         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
28365 /* @internal */
28366 export function ShutdownScript_into_inner(this_arg: number): number {
28367         if(!isWasmInitialized) {
28368                 throw new Error("initializeWasm() must be awaited first!");
28369         }
28370         const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
28371         return nativeResponseValue;
28372 }
28373         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
28374 /* @internal */
28375 export function ShutdownScript_as_legacy_pubkey(this_arg: number): number {
28376         if(!isWasmInitialized) {
28377                 throw new Error("initializeWasm() must be awaited first!");
28378         }
28379         const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
28380         return nativeResponseValue;
28381 }
28382         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
28383 /* @internal */
28384 export function ShutdownScript_is_compatible(this_arg: number, features: number): boolean {
28385         if(!isWasmInitialized) {
28386                 throw new Error("initializeWasm() must be awaited first!");
28387         }
28388         const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
28389         return nativeResponseValue;
28390 }
28391         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
28392 /* @internal */
28393 export function CustomMessageReader_free(this_ptr: number): void {
28394         if(!isWasmInitialized) {
28395                 throw new Error("initializeWasm() must be awaited first!");
28396         }
28397         const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
28398         // debug statements here
28399 }
28400         // uintptr_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
28401 /* @internal */
28402 export function Type_clone_ptr(arg: number): number {
28403         if(!isWasmInitialized) {
28404                 throw new Error("initializeWasm() must be awaited first!");
28405         }
28406         const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
28407         return nativeResponseValue;
28408 }
28409         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
28410 /* @internal */
28411 export function Type_clone(orig: number): number {
28412         if(!isWasmInitialized) {
28413                 throw new Error("initializeWasm() must be awaited first!");
28414         }
28415         const nativeResponseValue = wasm.TS_Type_clone(orig);
28416         return nativeResponseValue;
28417 }
28418         // void Type_free(struct LDKType this_ptr);
28419 /* @internal */
28420 export function Type_free(this_ptr: number): void {
28421         if(!isWasmInitialized) {
28422                 throw new Error("initializeWasm() must be awaited first!");
28423         }
28424         const nativeResponseValue = wasm.TS_Type_free(this_ptr);
28425         // debug statements here
28426 }
28427         // void NodeId_free(struct LDKNodeId this_obj);
28428 /* @internal */
28429 export function NodeId_free(this_obj: number): void {
28430         if(!isWasmInitialized) {
28431                 throw new Error("initializeWasm() must be awaited first!");
28432         }
28433         const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
28434         // debug statements here
28435 }
28436         // uintptr_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
28437 /* @internal */
28438 export function NodeId_clone_ptr(arg: number): number {
28439         if(!isWasmInitialized) {
28440                 throw new Error("initializeWasm() must be awaited first!");
28441         }
28442         const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
28443         return nativeResponseValue;
28444 }
28445         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
28446 /* @internal */
28447 export function NodeId_clone(orig: number): number {
28448         if(!isWasmInitialized) {
28449                 throw new Error("initializeWasm() must be awaited first!");
28450         }
28451         const nativeResponseValue = wasm.TS_NodeId_clone(orig);
28452         return nativeResponseValue;
28453 }
28454         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
28455 /* @internal */
28456 export function NodeId_from_pubkey(pubkey: number): number {
28457         if(!isWasmInitialized) {
28458                 throw new Error("initializeWasm() must be awaited first!");
28459         }
28460         const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
28461         return nativeResponseValue;
28462 }
28463         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
28464 /* @internal */
28465 export function NodeId_as_slice(this_arg: number): number {
28466         if(!isWasmInitialized) {
28467                 throw new Error("initializeWasm() must be awaited first!");
28468         }
28469         const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
28470         return nativeResponseValue;
28471 }
28472         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
28473 /* @internal */
28474 export function NodeId_hash(o: number): bigint {
28475         if(!isWasmInitialized) {
28476                 throw new Error("initializeWasm() must be awaited first!");
28477         }
28478         const nativeResponseValue = wasm.TS_NodeId_hash(o);
28479         return nativeResponseValue;
28480 }
28481         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
28482 /* @internal */
28483 export function NodeId_write(obj: number): number {
28484         if(!isWasmInitialized) {
28485                 throw new Error("initializeWasm() must be awaited first!");
28486         }
28487         const nativeResponseValue = wasm.TS_NodeId_write(obj);
28488         return nativeResponseValue;
28489 }
28490         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
28491 /* @internal */
28492 export function NodeId_read(ser: number): number {
28493         if(!isWasmInitialized) {
28494                 throw new Error("initializeWasm() must be awaited first!");
28495         }
28496         const nativeResponseValue = wasm.TS_NodeId_read(ser);
28497         return nativeResponseValue;
28498 }
28499         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
28500 /* @internal */
28501 export function NetworkGraph_free(this_obj: number): void {
28502         if(!isWasmInitialized) {
28503                 throw new Error("initializeWasm() must be awaited first!");
28504         }
28505         const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
28506         // debug statements here
28507 }
28508         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
28509 /* @internal */
28510 export function ReadOnlyNetworkGraph_free(this_obj: number): void {
28511         if(!isWasmInitialized) {
28512                 throw new Error("initializeWasm() must be awaited first!");
28513         }
28514         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
28515         // debug statements here
28516 }
28517         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
28518 /* @internal */
28519 export function NetworkUpdate_free(this_ptr: number): void {
28520         if(!isWasmInitialized) {
28521                 throw new Error("initializeWasm() must be awaited first!");
28522         }
28523         const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
28524         // debug statements here
28525 }
28526         // uintptr_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
28527 /* @internal */
28528 export function NetworkUpdate_clone_ptr(arg: number): number {
28529         if(!isWasmInitialized) {
28530                 throw new Error("initializeWasm() must be awaited first!");
28531         }
28532         const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
28533         return nativeResponseValue;
28534 }
28535         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
28536 /* @internal */
28537 export function NetworkUpdate_clone(orig: number): number {
28538         if(!isWasmInitialized) {
28539                 throw new Error("initializeWasm() must be awaited first!");
28540         }
28541         const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
28542         return nativeResponseValue;
28543 }
28544         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
28545 /* @internal */
28546 export function NetworkUpdate_channel_update_message(msg: number): number {
28547         if(!isWasmInitialized) {
28548                 throw new Error("initializeWasm() must be awaited first!");
28549         }
28550         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
28551         return nativeResponseValue;
28552 }
28553         // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
28554 /* @internal */
28555 export function NetworkUpdate_channel_failure(short_channel_id: bigint, is_permanent: boolean): number {
28556         if(!isWasmInitialized) {
28557                 throw new Error("initializeWasm() must be awaited first!");
28558         }
28559         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_failure(short_channel_id, is_permanent);
28560         return nativeResponseValue;
28561 }
28562         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
28563 /* @internal */
28564 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): number {
28565         if(!isWasmInitialized) {
28566                 throw new Error("initializeWasm() must be awaited first!");
28567         }
28568         const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
28569         return nativeResponseValue;
28570 }
28571         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
28572 /* @internal */
28573 export function NetworkUpdate_write(obj: number): number {
28574         if(!isWasmInitialized) {
28575                 throw new Error("initializeWasm() must be awaited first!");
28576         }
28577         const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
28578         return nativeResponseValue;
28579 }
28580         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
28581 /* @internal */
28582 export function NetworkUpdate_read(ser: number): number {
28583         if(!isWasmInitialized) {
28584                 throw new Error("initializeWasm() must be awaited first!");
28585         }
28586         const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
28587         return nativeResponseValue;
28588 }
28589         // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
28590 /* @internal */
28591 export function P2PGossipSync_free(this_obj: number): void {
28592         if(!isWasmInitialized) {
28593                 throw new Error("initializeWasm() must be awaited first!");
28594         }
28595         const nativeResponseValue = wasm.TS_P2PGossipSync_free(this_obj);
28596         // debug statements here
28597 }
28598         // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
28599 /* @internal */
28600 export function P2PGossipSync_new(network_graph: number, chain_access: number, logger: number): number {
28601         if(!isWasmInitialized) {
28602                 throw new Error("initializeWasm() must be awaited first!");
28603         }
28604         const nativeResponseValue = wasm.TS_P2PGossipSync_new(network_graph, chain_access, logger);
28605         return nativeResponseValue;
28606 }
28607         // void P2PGossipSync_add_chain_access(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
28608 /* @internal */
28609 export function P2PGossipSync_add_chain_access(this_arg: number, chain_access: number): void {
28610         if(!isWasmInitialized) {
28611                 throw new Error("initializeWasm() must be awaited first!");
28612         }
28613         const nativeResponseValue = wasm.TS_P2PGossipSync_add_chain_access(this_arg, chain_access);
28614         // debug statements here
28615 }
28616         // struct LDKEventHandler NetworkGraph_as_EventHandler(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
28617 /* @internal */
28618 export function NetworkGraph_as_EventHandler(this_arg: number): number {
28619         if(!isWasmInitialized) {
28620                 throw new Error("initializeWasm() must be awaited first!");
28621         }
28622         const nativeResponseValue = wasm.TS_NetworkGraph_as_EventHandler(this_arg);
28623         return nativeResponseValue;
28624 }
28625         // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
28626 /* @internal */
28627 export function P2PGossipSync_as_RoutingMessageHandler(this_arg: number): number {
28628         if(!isWasmInitialized) {
28629                 throw new Error("initializeWasm() must be awaited first!");
28630         }
28631         const nativeResponseValue = wasm.TS_P2PGossipSync_as_RoutingMessageHandler(this_arg);
28632         return nativeResponseValue;
28633 }
28634         // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
28635 /* @internal */
28636 export function P2PGossipSync_as_MessageSendEventsProvider(this_arg: number): number {
28637         if(!isWasmInitialized) {
28638                 throw new Error("initializeWasm() must be awaited first!");
28639         }
28640         const nativeResponseValue = wasm.TS_P2PGossipSync_as_MessageSendEventsProvider(this_arg);
28641         return nativeResponseValue;
28642 }
28643         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
28644 /* @internal */
28645 export function ChannelUpdateInfo_free(this_obj: number): void {
28646         if(!isWasmInitialized) {
28647                 throw new Error("initializeWasm() must be awaited first!");
28648         }
28649         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
28650         // debug statements here
28651 }
28652         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28653 /* @internal */
28654 export function ChannelUpdateInfo_get_last_update(this_ptr: number): number {
28655         if(!isWasmInitialized) {
28656                 throw new Error("initializeWasm() must be awaited first!");
28657         }
28658         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
28659         return nativeResponseValue;
28660 }
28661         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
28662 /* @internal */
28663 export function ChannelUpdateInfo_set_last_update(this_ptr: number, val: number): void {
28664         if(!isWasmInitialized) {
28665                 throw new Error("initializeWasm() must be awaited first!");
28666         }
28667         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
28668         // debug statements here
28669 }
28670         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28671 /* @internal */
28672 export function ChannelUpdateInfo_get_enabled(this_ptr: number): boolean {
28673         if(!isWasmInitialized) {
28674                 throw new Error("initializeWasm() must be awaited first!");
28675         }
28676         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
28677         return nativeResponseValue;
28678 }
28679         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
28680 /* @internal */
28681 export function ChannelUpdateInfo_set_enabled(this_ptr: number, val: boolean): void {
28682         if(!isWasmInitialized) {
28683                 throw new Error("initializeWasm() must be awaited first!");
28684         }
28685         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
28686         // debug statements here
28687 }
28688         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28689 /* @internal */
28690 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: number): number {
28691         if(!isWasmInitialized) {
28692                 throw new Error("initializeWasm() must be awaited first!");
28693         }
28694         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
28695         return nativeResponseValue;
28696 }
28697         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
28698 /* @internal */
28699 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
28700         if(!isWasmInitialized) {
28701                 throw new Error("initializeWasm() must be awaited first!");
28702         }
28703         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
28704         // debug statements here
28705 }
28706         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28707 /* @internal */
28708 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: number): bigint {
28709         if(!isWasmInitialized) {
28710                 throw new Error("initializeWasm() must be awaited first!");
28711         }
28712         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
28713         return nativeResponseValue;
28714 }
28715         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
28716 /* @internal */
28717 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
28718         if(!isWasmInitialized) {
28719                 throw new Error("initializeWasm() must be awaited first!");
28720         }
28721         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
28722         // debug statements here
28723 }
28724         // struct LDKCOption_u64Z ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28725 /* @internal */
28726 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: number): number {
28727         if(!isWasmInitialized) {
28728                 throw new Error("initializeWasm() must be awaited first!");
28729         }
28730         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
28731         return nativeResponseValue;
28732 }
28733         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28734 /* @internal */
28735 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: number, val: number): void {
28736         if(!isWasmInitialized) {
28737                 throw new Error("initializeWasm() must be awaited first!");
28738         }
28739         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
28740         // debug statements here
28741 }
28742         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28743 /* @internal */
28744 export function ChannelUpdateInfo_get_fees(this_ptr: number): number {
28745         if(!isWasmInitialized) {
28746                 throw new Error("initializeWasm() must be awaited first!");
28747         }
28748         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
28749         return nativeResponseValue;
28750 }
28751         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
28752 /* @internal */
28753 export function ChannelUpdateInfo_set_fees(this_ptr: number, val: number): void {
28754         if(!isWasmInitialized) {
28755                 throw new Error("initializeWasm() must be awaited first!");
28756         }
28757         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
28758         // debug statements here
28759 }
28760         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28761 /* @internal */
28762 export function ChannelUpdateInfo_get_last_update_message(this_ptr: number): number {
28763         if(!isWasmInitialized) {
28764                 throw new Error("initializeWasm() must be awaited first!");
28765         }
28766         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
28767         return nativeResponseValue;
28768 }
28769         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
28770 /* @internal */
28771 export function ChannelUpdateInfo_set_last_update_message(this_ptr: number, val: number): void {
28772         if(!isWasmInitialized) {
28773                 throw new Error("initializeWasm() must be awaited first!");
28774         }
28775         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
28776         // debug statements here
28777 }
28778         // 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);
28779 /* @internal */
28780 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 {
28781         if(!isWasmInitialized) {
28782                 throw new Error("initializeWasm() must be awaited first!");
28783         }
28784         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);
28785         return nativeResponseValue;
28786 }
28787         // uintptr_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
28788 /* @internal */
28789 export function ChannelUpdateInfo_clone_ptr(arg: number): number {
28790         if(!isWasmInitialized) {
28791                 throw new Error("initializeWasm() must be awaited first!");
28792         }
28793         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
28794         return nativeResponseValue;
28795 }
28796         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
28797 /* @internal */
28798 export function ChannelUpdateInfo_clone(orig: number): number {
28799         if(!isWasmInitialized) {
28800                 throw new Error("initializeWasm() must be awaited first!");
28801         }
28802         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
28803         return nativeResponseValue;
28804 }
28805         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
28806 /* @internal */
28807 export function ChannelUpdateInfo_write(obj: number): number {
28808         if(!isWasmInitialized) {
28809                 throw new Error("initializeWasm() must be awaited first!");
28810         }
28811         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
28812         return nativeResponseValue;
28813 }
28814         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
28815 /* @internal */
28816 export function ChannelUpdateInfo_read(ser: number): number {
28817         if(!isWasmInitialized) {
28818                 throw new Error("initializeWasm() must be awaited first!");
28819         }
28820         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
28821         return nativeResponseValue;
28822 }
28823         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
28824 /* @internal */
28825 export function ChannelInfo_free(this_obj: number): void {
28826         if(!isWasmInitialized) {
28827                 throw new Error("initializeWasm() must be awaited first!");
28828         }
28829         const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
28830         // debug statements here
28831 }
28832         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28833 /* @internal */
28834 export function ChannelInfo_get_features(this_ptr: number): number {
28835         if(!isWasmInitialized) {
28836                 throw new Error("initializeWasm() must be awaited first!");
28837         }
28838         const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
28839         return nativeResponseValue;
28840 }
28841         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
28842 /* @internal */
28843 export function ChannelInfo_set_features(this_ptr: number, val: number): void {
28844         if(!isWasmInitialized) {
28845                 throw new Error("initializeWasm() must be awaited first!");
28846         }
28847         const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
28848         // debug statements here
28849 }
28850         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28851 /* @internal */
28852 export function ChannelInfo_get_node_one(this_ptr: number): number {
28853         if(!isWasmInitialized) {
28854                 throw new Error("initializeWasm() must be awaited first!");
28855         }
28856         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
28857         return nativeResponseValue;
28858 }
28859         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
28860 /* @internal */
28861 export function ChannelInfo_set_node_one(this_ptr: number, val: number): void {
28862         if(!isWasmInitialized) {
28863                 throw new Error("initializeWasm() must be awaited first!");
28864         }
28865         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
28866         // debug statements here
28867 }
28868         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28869 /* @internal */
28870 export function ChannelInfo_get_one_to_two(this_ptr: number): number {
28871         if(!isWasmInitialized) {
28872                 throw new Error("initializeWasm() must be awaited first!");
28873         }
28874         const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
28875         return nativeResponseValue;
28876 }
28877         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
28878 /* @internal */
28879 export function ChannelInfo_set_one_to_two(this_ptr: number, val: number): void {
28880         if(!isWasmInitialized) {
28881                 throw new Error("initializeWasm() must be awaited first!");
28882         }
28883         const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
28884         // debug statements here
28885 }
28886         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28887 /* @internal */
28888 export function ChannelInfo_get_node_two(this_ptr: number): number {
28889         if(!isWasmInitialized) {
28890                 throw new Error("initializeWasm() must be awaited first!");
28891         }
28892         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
28893         return nativeResponseValue;
28894 }
28895         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
28896 /* @internal */
28897 export function ChannelInfo_set_node_two(this_ptr: number, val: number): void {
28898         if(!isWasmInitialized) {
28899                 throw new Error("initializeWasm() must be awaited first!");
28900         }
28901         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
28902         // debug statements here
28903 }
28904         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28905 /* @internal */
28906 export function ChannelInfo_get_two_to_one(this_ptr: number): number {
28907         if(!isWasmInitialized) {
28908                 throw new Error("initializeWasm() must be awaited first!");
28909         }
28910         const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
28911         return nativeResponseValue;
28912 }
28913         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
28914 /* @internal */
28915 export function ChannelInfo_set_two_to_one(this_ptr: number, val: number): void {
28916         if(!isWasmInitialized) {
28917                 throw new Error("initializeWasm() must be awaited first!");
28918         }
28919         const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
28920         // debug statements here
28921 }
28922         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28923 /* @internal */
28924 export function ChannelInfo_get_capacity_sats(this_ptr: number): number {
28925         if(!isWasmInitialized) {
28926                 throw new Error("initializeWasm() must be awaited first!");
28927         }
28928         const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
28929         return nativeResponseValue;
28930 }
28931         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28932 /* @internal */
28933 export function ChannelInfo_set_capacity_sats(this_ptr: number, val: number): void {
28934         if(!isWasmInitialized) {
28935                 throw new Error("initializeWasm() must be awaited first!");
28936         }
28937         const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
28938         // debug statements here
28939 }
28940         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28941 /* @internal */
28942 export function ChannelInfo_get_announcement_message(this_ptr: number): number {
28943         if(!isWasmInitialized) {
28944                 throw new Error("initializeWasm() must be awaited first!");
28945         }
28946         const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
28947         return nativeResponseValue;
28948 }
28949         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
28950 /* @internal */
28951 export function ChannelInfo_set_announcement_message(this_ptr: number, val: number): void {
28952         if(!isWasmInitialized) {
28953                 throw new Error("initializeWasm() must be awaited first!");
28954         }
28955         const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
28956         // debug statements here
28957 }
28958         // uintptr_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
28959 /* @internal */
28960 export function ChannelInfo_clone_ptr(arg: number): number {
28961         if(!isWasmInitialized) {
28962                 throw new Error("initializeWasm() must be awaited first!");
28963         }
28964         const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
28965         return nativeResponseValue;
28966 }
28967         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
28968 /* @internal */
28969 export function ChannelInfo_clone(orig: number): number {
28970         if(!isWasmInitialized) {
28971                 throw new Error("initializeWasm() must be awaited first!");
28972         }
28973         const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
28974         return nativeResponseValue;
28975 }
28976         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
28977 /* @internal */
28978 export function ChannelInfo_get_directional_info(this_arg: number, channel_flags: number): number {
28979         if(!isWasmInitialized) {
28980                 throw new Error("initializeWasm() must be awaited first!");
28981         }
28982         const nativeResponseValue = wasm.TS_ChannelInfo_get_directional_info(this_arg, channel_flags);
28983         return nativeResponseValue;
28984 }
28985         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
28986 /* @internal */
28987 export function ChannelInfo_write(obj: number): number {
28988         if(!isWasmInitialized) {
28989                 throw new Error("initializeWasm() must be awaited first!");
28990         }
28991         const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
28992         return nativeResponseValue;
28993 }
28994         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
28995 /* @internal */
28996 export function ChannelInfo_read(ser: number): number {
28997         if(!isWasmInitialized) {
28998                 throw new Error("initializeWasm() must be awaited first!");
28999         }
29000         const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
29001         return nativeResponseValue;
29002 }
29003         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
29004 /* @internal */
29005 export function DirectedChannelInfo_free(this_obj: number): void {
29006         if(!isWasmInitialized) {
29007                 throw new Error("initializeWasm() must be awaited first!");
29008         }
29009         const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
29010         // debug statements here
29011 }
29012         // uintptr_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
29013 /* @internal */
29014 export function DirectedChannelInfo_clone_ptr(arg: number): number {
29015         if(!isWasmInitialized) {
29016                 throw new Error("initializeWasm() must be awaited first!");
29017         }
29018         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
29019         return nativeResponseValue;
29020 }
29021         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
29022 /* @internal */
29023 export function DirectedChannelInfo_clone(orig: number): number {
29024         if(!isWasmInitialized) {
29025                 throw new Error("initializeWasm() must be awaited first!");
29026         }
29027         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
29028         return nativeResponseValue;
29029 }
29030         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29031 /* @internal */
29032 export function DirectedChannelInfo_channel(this_arg: number): number {
29033         if(!isWasmInitialized) {
29034                 throw new Error("initializeWasm() must be awaited first!");
29035         }
29036         const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
29037         return nativeResponseValue;
29038 }
29039         // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29040 /* @internal */
29041 export function DirectedChannelInfo_direction(this_arg: number): number {
29042         if(!isWasmInitialized) {
29043                 throw new Error("initializeWasm() must be awaited first!");
29044         }
29045         const nativeResponseValue = wasm.TS_DirectedChannelInfo_direction(this_arg);
29046         return nativeResponseValue;
29047 }
29048         // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29049 /* @internal */
29050 export function DirectedChannelInfo_htlc_maximum_msat(this_arg: number): bigint {
29051         if(!isWasmInitialized) {
29052                 throw new Error("initializeWasm() must be awaited first!");
29053         }
29054         const nativeResponseValue = wasm.TS_DirectedChannelInfo_htlc_maximum_msat(this_arg);
29055         return nativeResponseValue;
29056 }
29057         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29058 /* @internal */
29059 export function DirectedChannelInfo_effective_capacity(this_arg: number): number {
29060         if(!isWasmInitialized) {
29061                 throw new Error("initializeWasm() must be awaited first!");
29062         }
29063         const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
29064         return nativeResponseValue;
29065 }
29066         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
29067 /* @internal */
29068 export function EffectiveCapacity_free(this_ptr: number): void {
29069         if(!isWasmInitialized) {
29070                 throw new Error("initializeWasm() must be awaited first!");
29071         }
29072         const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
29073         // debug statements here
29074 }
29075         // uintptr_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
29076 /* @internal */
29077 export function EffectiveCapacity_clone_ptr(arg: number): number {
29078         if(!isWasmInitialized) {
29079                 throw new Error("initializeWasm() must be awaited first!");
29080         }
29081         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
29082         return nativeResponseValue;
29083 }
29084         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
29085 /* @internal */
29086 export function EffectiveCapacity_clone(orig: number): number {
29087         if(!isWasmInitialized) {
29088                 throw new Error("initializeWasm() must be awaited first!");
29089         }
29090         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
29091         return nativeResponseValue;
29092 }
29093         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
29094 /* @internal */
29095 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): number {
29096         if(!isWasmInitialized) {
29097                 throw new Error("initializeWasm() must be awaited first!");
29098         }
29099         const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
29100         return nativeResponseValue;
29101 }
29102         // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
29103 /* @internal */
29104 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): number {
29105         if(!isWasmInitialized) {
29106                 throw new Error("initializeWasm() must be awaited first!");
29107         }
29108         const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
29109         return nativeResponseValue;
29110 }
29111         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, struct LDKCOption_u64Z htlc_maximum_msat);
29112 /* @internal */
29113 export function EffectiveCapacity_total(capacity_msat: bigint, htlc_maximum_msat: number): number {
29114         if(!isWasmInitialized) {
29115                 throw new Error("initializeWasm() must be awaited first!");
29116         }
29117         const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat, htlc_maximum_msat);
29118         return nativeResponseValue;
29119 }
29120         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
29121 /* @internal */
29122 export function EffectiveCapacity_infinite(): number {
29123         if(!isWasmInitialized) {
29124                 throw new Error("initializeWasm() must be awaited first!");
29125         }
29126         const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
29127         return nativeResponseValue;
29128 }
29129         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
29130 /* @internal */
29131 export function EffectiveCapacity_unknown(): number {
29132         if(!isWasmInitialized) {
29133                 throw new Error("initializeWasm() must be awaited first!");
29134         }
29135         const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
29136         return nativeResponseValue;
29137 }
29138         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
29139 /* @internal */
29140 export function EffectiveCapacity_as_msat(this_arg: number): bigint {
29141         if(!isWasmInitialized) {
29142                 throw new Error("initializeWasm() must be awaited first!");
29143         }
29144         const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
29145         return nativeResponseValue;
29146 }
29147         // void RoutingFees_free(struct LDKRoutingFees this_obj);
29148 /* @internal */
29149 export function RoutingFees_free(this_obj: number): void {
29150         if(!isWasmInitialized) {
29151                 throw new Error("initializeWasm() must be awaited first!");
29152         }
29153         const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
29154         // debug statements here
29155 }
29156         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
29157 /* @internal */
29158 export function RoutingFees_get_base_msat(this_ptr: number): number {
29159         if(!isWasmInitialized) {
29160                 throw new Error("initializeWasm() must be awaited first!");
29161         }
29162         const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
29163         return nativeResponseValue;
29164 }
29165         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
29166 /* @internal */
29167 export function RoutingFees_set_base_msat(this_ptr: number, val: number): void {
29168         if(!isWasmInitialized) {
29169                 throw new Error("initializeWasm() must be awaited first!");
29170         }
29171         const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
29172         // debug statements here
29173 }
29174         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
29175 /* @internal */
29176 export function RoutingFees_get_proportional_millionths(this_ptr: number): number {
29177         if(!isWasmInitialized) {
29178                 throw new Error("initializeWasm() must be awaited first!");
29179         }
29180         const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
29181         return nativeResponseValue;
29182 }
29183         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
29184 /* @internal */
29185 export function RoutingFees_set_proportional_millionths(this_ptr: number, val: number): void {
29186         if(!isWasmInitialized) {
29187                 throw new Error("initializeWasm() must be awaited first!");
29188         }
29189         const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
29190         // debug statements here
29191 }
29192         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
29193 /* @internal */
29194 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): number {
29195         if(!isWasmInitialized) {
29196                 throw new Error("initializeWasm() must be awaited first!");
29197         }
29198         const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
29199         return nativeResponseValue;
29200 }
29201         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
29202 /* @internal */
29203 export function RoutingFees_eq(a: number, b: number): boolean {
29204         if(!isWasmInitialized) {
29205                 throw new Error("initializeWasm() must be awaited first!");
29206         }
29207         const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
29208         return nativeResponseValue;
29209 }
29210         // uintptr_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
29211 /* @internal */
29212 export function RoutingFees_clone_ptr(arg: number): number {
29213         if(!isWasmInitialized) {
29214                 throw new Error("initializeWasm() must be awaited first!");
29215         }
29216         const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
29217         return nativeResponseValue;
29218 }
29219         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
29220 /* @internal */
29221 export function RoutingFees_clone(orig: number): number {
29222         if(!isWasmInitialized) {
29223                 throw new Error("initializeWasm() must be awaited first!");
29224         }
29225         const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
29226         return nativeResponseValue;
29227 }
29228         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
29229 /* @internal */
29230 export function RoutingFees_hash(o: number): bigint {
29231         if(!isWasmInitialized) {
29232                 throw new Error("initializeWasm() must be awaited first!");
29233         }
29234         const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
29235         return nativeResponseValue;
29236 }
29237         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
29238 /* @internal */
29239 export function RoutingFees_write(obj: number): number {
29240         if(!isWasmInitialized) {
29241                 throw new Error("initializeWasm() must be awaited first!");
29242         }
29243         const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
29244         return nativeResponseValue;
29245 }
29246         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
29247 /* @internal */
29248 export function RoutingFees_read(ser: number): number {
29249         if(!isWasmInitialized) {
29250                 throw new Error("initializeWasm() must be awaited first!");
29251         }
29252         const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
29253         return nativeResponseValue;
29254 }
29255         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
29256 /* @internal */
29257 export function NodeAnnouncementInfo_free(this_obj: number): void {
29258         if(!isWasmInitialized) {
29259                 throw new Error("initializeWasm() must be awaited first!");
29260         }
29261         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
29262         // debug statements here
29263 }
29264         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29265 /* @internal */
29266 export function NodeAnnouncementInfo_get_features(this_ptr: number): number {
29267         if(!isWasmInitialized) {
29268                 throw new Error("initializeWasm() must be awaited first!");
29269         }
29270         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
29271         return nativeResponseValue;
29272 }
29273         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
29274 /* @internal */
29275 export function NodeAnnouncementInfo_set_features(this_ptr: number, val: number): void {
29276         if(!isWasmInitialized) {
29277                 throw new Error("initializeWasm() must be awaited first!");
29278         }
29279         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
29280         // debug statements here
29281 }
29282         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29283 /* @internal */
29284 export function NodeAnnouncementInfo_get_last_update(this_ptr: number): number {
29285         if(!isWasmInitialized) {
29286                 throw new Error("initializeWasm() must be awaited first!");
29287         }
29288         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
29289         return nativeResponseValue;
29290 }
29291         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
29292 /* @internal */
29293 export function NodeAnnouncementInfo_set_last_update(this_ptr: number, val: number): void {
29294         if(!isWasmInitialized) {
29295                 throw new Error("initializeWasm() must be awaited first!");
29296         }
29297         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
29298         // debug statements here
29299 }
29300         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
29301 /* @internal */
29302 export function NodeAnnouncementInfo_get_rgb(this_ptr: number): number {
29303         if(!isWasmInitialized) {
29304                 throw new Error("initializeWasm() must be awaited first!");
29305         }
29306         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
29307         return nativeResponseValue;
29308 }
29309         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
29310 /* @internal */
29311 export function NodeAnnouncementInfo_set_rgb(this_ptr: number, val: number): void {
29312         if(!isWasmInitialized) {
29313                 throw new Error("initializeWasm() must be awaited first!");
29314         }
29315         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
29316         // debug statements here
29317 }
29318         // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29319 /* @internal */
29320 export function NodeAnnouncementInfo_get_alias(this_ptr: number): number {
29321         if(!isWasmInitialized) {
29322                 throw new Error("initializeWasm() must be awaited first!");
29323         }
29324         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
29325         return nativeResponseValue;
29326 }
29327         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
29328 /* @internal */
29329 export function NodeAnnouncementInfo_set_alias(this_ptr: number, val: number): void {
29330         if(!isWasmInitialized) {
29331                 throw new Error("initializeWasm() must be awaited first!");
29332         }
29333         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
29334         // debug statements here
29335 }
29336         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
29337 /* @internal */
29338 export function NodeAnnouncementInfo_set_addresses(this_ptr: number, val: number): void {
29339         if(!isWasmInitialized) {
29340                 throw new Error("initializeWasm() must be awaited first!");
29341         }
29342         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_addresses(this_ptr, val);
29343         // debug statements here
29344 }
29345         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29346 /* @internal */
29347 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: number): number {
29348         if(!isWasmInitialized) {
29349                 throw new Error("initializeWasm() must be awaited first!");
29350         }
29351         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
29352         return nativeResponseValue;
29353 }
29354         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
29355 /* @internal */
29356 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: number, val: number): void {
29357         if(!isWasmInitialized) {
29358                 throw new Error("initializeWasm() must be awaited first!");
29359         }
29360         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
29361         // debug statements here
29362 }
29363         // 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);
29364 /* @internal */
29365 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 {
29366         if(!isWasmInitialized) {
29367                 throw new Error("initializeWasm() must be awaited first!");
29368         }
29369         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, addresses_arg, announcement_message_arg);
29370         return nativeResponseValue;
29371 }
29372         // uintptr_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
29373 /* @internal */
29374 export function NodeAnnouncementInfo_clone_ptr(arg: number): number {
29375         if(!isWasmInitialized) {
29376                 throw new Error("initializeWasm() must be awaited first!");
29377         }
29378         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
29379         return nativeResponseValue;
29380 }
29381         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
29382 /* @internal */
29383 export function NodeAnnouncementInfo_clone(orig: number): number {
29384         if(!isWasmInitialized) {
29385                 throw new Error("initializeWasm() must be awaited first!");
29386         }
29387         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
29388         return nativeResponseValue;
29389 }
29390         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
29391 /* @internal */
29392 export function NodeAnnouncementInfo_write(obj: number): number {
29393         if(!isWasmInitialized) {
29394                 throw new Error("initializeWasm() must be awaited first!");
29395         }
29396         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
29397         return nativeResponseValue;
29398 }
29399         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
29400 /* @internal */
29401 export function NodeAnnouncementInfo_read(ser: number): number {
29402         if(!isWasmInitialized) {
29403                 throw new Error("initializeWasm() must be awaited first!");
29404         }
29405         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
29406         return nativeResponseValue;
29407 }
29408         // void NodeAlias_free(struct LDKNodeAlias this_obj);
29409 /* @internal */
29410 export function NodeAlias_free(this_obj: number): void {
29411         if(!isWasmInitialized) {
29412                 throw new Error("initializeWasm() must be awaited first!");
29413         }
29414         const nativeResponseValue = wasm.TS_NodeAlias_free(this_obj);
29415         // debug statements here
29416 }
29417         // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
29418 /* @internal */
29419 export function NodeAlias_get_a(this_ptr: number): number {
29420         if(!isWasmInitialized) {
29421                 throw new Error("initializeWasm() must be awaited first!");
29422         }
29423         const nativeResponseValue = wasm.TS_NodeAlias_get_a(this_ptr);
29424         return nativeResponseValue;
29425 }
29426         // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
29427 /* @internal */
29428 export function NodeAlias_set_a(this_ptr: number, val: number): void {
29429         if(!isWasmInitialized) {
29430                 throw new Error("initializeWasm() must be awaited first!");
29431         }
29432         const nativeResponseValue = wasm.TS_NodeAlias_set_a(this_ptr, val);
29433         // debug statements here
29434 }
29435         // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
29436 /* @internal */
29437 export function NodeAlias_new(a_arg: number): number {
29438         if(!isWasmInitialized) {
29439                 throw new Error("initializeWasm() must be awaited first!");
29440         }
29441         const nativeResponseValue = wasm.TS_NodeAlias_new(a_arg);
29442         return nativeResponseValue;
29443 }
29444         // uintptr_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
29445 /* @internal */
29446 export function NodeAlias_clone_ptr(arg: number): number {
29447         if(!isWasmInitialized) {
29448                 throw new Error("initializeWasm() must be awaited first!");
29449         }
29450         const nativeResponseValue = wasm.TS_NodeAlias_clone_ptr(arg);
29451         return nativeResponseValue;
29452 }
29453         // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
29454 /* @internal */
29455 export function NodeAlias_clone(orig: number): number {
29456         if(!isWasmInitialized) {
29457                 throw new Error("initializeWasm() must be awaited first!");
29458         }
29459         const nativeResponseValue = wasm.TS_NodeAlias_clone(orig);
29460         return nativeResponseValue;
29461 }
29462         // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
29463 /* @internal */
29464 export function NodeAlias_write(obj: number): number {
29465         if(!isWasmInitialized) {
29466                 throw new Error("initializeWasm() must be awaited first!");
29467         }
29468         const nativeResponseValue = wasm.TS_NodeAlias_write(obj);
29469         return nativeResponseValue;
29470 }
29471         // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
29472 /* @internal */
29473 export function NodeAlias_read(ser: number): number {
29474         if(!isWasmInitialized) {
29475                 throw new Error("initializeWasm() must be awaited first!");
29476         }
29477         const nativeResponseValue = wasm.TS_NodeAlias_read(ser);
29478         return nativeResponseValue;
29479 }
29480         // void NodeInfo_free(struct LDKNodeInfo this_obj);
29481 /* @internal */
29482 export function NodeInfo_free(this_obj: number): void {
29483         if(!isWasmInitialized) {
29484                 throw new Error("initializeWasm() must be awaited first!");
29485         }
29486         const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
29487         // debug statements here
29488 }
29489         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
29490 /* @internal */
29491 export function NodeInfo_set_channels(this_ptr: number, val: number): void {
29492         if(!isWasmInitialized) {
29493                 throw new Error("initializeWasm() must be awaited first!");
29494         }
29495         const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
29496         // debug statements here
29497 }
29498         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
29499 /* @internal */
29500 export function NodeInfo_get_lowest_inbound_channel_fees(this_ptr: number): number {
29501         if(!isWasmInitialized) {
29502                 throw new Error("initializeWasm() must be awaited first!");
29503         }
29504         const nativeResponseValue = wasm.TS_NodeInfo_get_lowest_inbound_channel_fees(this_ptr);
29505         return nativeResponseValue;
29506 }
29507         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
29508 /* @internal */
29509 export function NodeInfo_set_lowest_inbound_channel_fees(this_ptr: number, val: number): void {
29510         if(!isWasmInitialized) {
29511                 throw new Error("initializeWasm() must be awaited first!");
29512         }
29513         const nativeResponseValue = wasm.TS_NodeInfo_set_lowest_inbound_channel_fees(this_ptr, val);
29514         // debug statements here
29515 }
29516         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
29517 /* @internal */
29518 export function NodeInfo_get_announcement_info(this_ptr: number): number {
29519         if(!isWasmInitialized) {
29520                 throw new Error("initializeWasm() must be awaited first!");
29521         }
29522         const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
29523         return nativeResponseValue;
29524 }
29525         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
29526 /* @internal */
29527 export function NodeInfo_set_announcement_info(this_ptr: number, val: number): void {
29528         if(!isWasmInitialized) {
29529                 throw new Error("initializeWasm() must be awaited first!");
29530         }
29531         const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
29532         // debug statements here
29533 }
29534         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
29535 /* @internal */
29536 export function NodeInfo_new(channels_arg: number, lowest_inbound_channel_fees_arg: number, announcement_info_arg: number): number {
29537         if(!isWasmInitialized) {
29538                 throw new Error("initializeWasm() must be awaited first!");
29539         }
29540         const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg, announcement_info_arg);
29541         return nativeResponseValue;
29542 }
29543         // uintptr_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
29544 /* @internal */
29545 export function NodeInfo_clone_ptr(arg: number): number {
29546         if(!isWasmInitialized) {
29547                 throw new Error("initializeWasm() must be awaited first!");
29548         }
29549         const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
29550         return nativeResponseValue;
29551 }
29552         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
29553 /* @internal */
29554 export function NodeInfo_clone(orig: number): number {
29555         if(!isWasmInitialized) {
29556                 throw new Error("initializeWasm() must be awaited first!");
29557         }
29558         const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
29559         return nativeResponseValue;
29560 }
29561         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
29562 /* @internal */
29563 export function NodeInfo_write(obj: number): number {
29564         if(!isWasmInitialized) {
29565                 throw new Error("initializeWasm() must be awaited first!");
29566         }
29567         const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
29568         return nativeResponseValue;
29569 }
29570         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
29571 /* @internal */
29572 export function NodeInfo_read(ser: number): number {
29573         if(!isWasmInitialized) {
29574                 throw new Error("initializeWasm() must be awaited first!");
29575         }
29576         const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
29577         return nativeResponseValue;
29578 }
29579         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
29580 /* @internal */
29581 export function NetworkGraph_write(obj: number): number {
29582         if(!isWasmInitialized) {
29583                 throw new Error("initializeWasm() must be awaited first!");
29584         }
29585         const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
29586         return nativeResponseValue;
29587 }
29588         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
29589 /* @internal */
29590 export function NetworkGraph_read(ser: number, arg: number): number {
29591         if(!isWasmInitialized) {
29592                 throw new Error("initializeWasm() must be awaited first!");
29593         }
29594         const nativeResponseValue = wasm.TS_NetworkGraph_read(ser, arg);
29595         return nativeResponseValue;
29596 }
29597         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKLogger logger);
29598 /* @internal */
29599 export function NetworkGraph_new(genesis_hash: number, logger: number): number {
29600         if(!isWasmInitialized) {
29601                 throw new Error("initializeWasm() must be awaited first!");
29602         }
29603         const nativeResponseValue = wasm.TS_NetworkGraph_new(genesis_hash, logger);
29604         return nativeResponseValue;
29605 }
29606         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
29607 /* @internal */
29608 export function NetworkGraph_read_only(this_arg: number): number {
29609         if(!isWasmInitialized) {
29610                 throw new Error("initializeWasm() must be awaited first!");
29611         }
29612         const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
29613         return nativeResponseValue;
29614 }
29615         // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
29616 /* @internal */
29617 export function NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg: number): number {
29618         if(!isWasmInitialized) {
29619                 throw new Error("initializeWasm() must be awaited first!");
29620         }
29621         const nativeResponseValue = wasm.TS_NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg);
29622         return nativeResponseValue;
29623 }
29624         // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
29625 /* @internal */
29626 export function NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg: number, last_rapid_gossip_sync_timestamp: number): void {
29627         if(!isWasmInitialized) {
29628                 throw new Error("initializeWasm() must be awaited first!");
29629         }
29630         const nativeResponseValue = wasm.TS_NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg, last_rapid_gossip_sync_timestamp);
29631         // debug statements here
29632 }
29633         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
29634 /* @internal */
29635 export function NetworkGraph_update_node_from_announcement(this_arg: number, msg: number): number {
29636         if(!isWasmInitialized) {
29637                 throw new Error("initializeWasm() must be awaited first!");
29638         }
29639         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
29640         return nativeResponseValue;
29641 }
29642         // 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);
29643 /* @internal */
29644 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: number, msg: number): number {
29645         if(!isWasmInitialized) {
29646                 throw new Error("initializeWasm() must be awaited first!");
29647         }
29648         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
29649         return nativeResponseValue;
29650 }
29651         // 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);
29652 /* @internal */
29653 export function NetworkGraph_update_channel_from_announcement(this_arg: number, msg: number, chain_access: number): number {
29654         if(!isWasmInitialized) {
29655                 throw new Error("initializeWasm() must be awaited first!");
29656         }
29657         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, chain_access);
29658         return nativeResponseValue;
29659 }
29660         // 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);
29661 /* @internal */
29662 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: number, msg: number, chain_access: number): number {
29663         if(!isWasmInitialized) {
29664                 throw new Error("initializeWasm() must be awaited first!");
29665         }
29666         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, chain_access);
29667         return nativeResponseValue;
29668 }
29669         // 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);
29670 /* @internal */
29671 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 {
29672         if(!isWasmInitialized) {
29673                 throw new Error("initializeWasm() must be awaited first!");
29674         }
29675         const nativeResponseValue = wasm.TS_NetworkGraph_add_channel_from_partial_announcement(this_arg, short_channel_id, timestamp, features, node_id_1, node_id_2);
29676         return nativeResponseValue;
29677 }
29678         // void NetworkGraph_channel_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
29679 /* @internal */
29680 export function NetworkGraph_channel_failed(this_arg: number, short_channel_id: bigint, is_permanent: boolean): void {
29681         if(!isWasmInitialized) {
29682                 throw new Error("initializeWasm() must be awaited first!");
29683         }
29684         const nativeResponseValue = wasm.TS_NetworkGraph_channel_failed(this_arg, short_channel_id, is_permanent);
29685         // debug statements here
29686 }
29687         // void NetworkGraph_node_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
29688 /* @internal */
29689 export function NetworkGraph_node_failed(this_arg: number, _node_id: number, is_permanent: boolean): void {
29690         if(!isWasmInitialized) {
29691                 throw new Error("initializeWasm() must be awaited first!");
29692         }
29693         const nativeResponseValue = wasm.TS_NetworkGraph_node_failed(this_arg, _node_id, is_permanent);
29694         // debug statements here
29695 }
29696         // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
29697 /* @internal */
29698 export function NetworkGraph_remove_stale_channels_with_time(this_arg: number, current_time_unix: bigint): void {
29699         if(!isWasmInitialized) {
29700                 throw new Error("initializeWasm() must be awaited first!");
29701         }
29702         const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_with_time(this_arg, current_time_unix);
29703         // debug statements here
29704 }
29705         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
29706 /* @internal */
29707 export function NetworkGraph_update_channel(this_arg: number, msg: number): number {
29708         if(!isWasmInitialized) {
29709                 throw new Error("initializeWasm() must be awaited first!");
29710         }
29711         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
29712         return nativeResponseValue;
29713 }
29714         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
29715 /* @internal */
29716 export function NetworkGraph_update_channel_unsigned(this_arg: number, msg: number): number {
29717         if(!isWasmInitialized) {
29718                 throw new Error("initializeWasm() must be awaited first!");
29719         }
29720         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
29721         return nativeResponseValue;
29722 }
29723         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
29724 /* @internal */
29725 export function ReadOnlyNetworkGraph_get_addresses(this_arg: number, pubkey: number): number {
29726         if(!isWasmInitialized) {
29727                 throw new Error("initializeWasm() must be awaited first!");
29728         }
29729         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
29730         return nativeResponseValue;
29731 }
29732         // void RouteHop_free(struct LDKRouteHop this_obj);
29733 /* @internal */
29734 export function RouteHop_free(this_obj: number): void {
29735         if(!isWasmInitialized) {
29736                 throw new Error("initializeWasm() must be awaited first!");
29737         }
29738         const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
29739         // debug statements here
29740 }
29741         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29742 /* @internal */
29743 export function RouteHop_get_pubkey(this_ptr: number): number {
29744         if(!isWasmInitialized) {
29745                 throw new Error("initializeWasm() must be awaited first!");
29746         }
29747         const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
29748         return nativeResponseValue;
29749 }
29750         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29751 /* @internal */
29752 export function RouteHop_set_pubkey(this_ptr: number, val: number): void {
29753         if(!isWasmInitialized) {
29754                 throw new Error("initializeWasm() must be awaited first!");
29755         }
29756         const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
29757         // debug statements here
29758 }
29759         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29760 /* @internal */
29761 export function RouteHop_get_node_features(this_ptr: number): number {
29762         if(!isWasmInitialized) {
29763                 throw new Error("initializeWasm() must be awaited first!");
29764         }
29765         const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
29766         return nativeResponseValue;
29767 }
29768         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
29769 /* @internal */
29770 export function RouteHop_set_node_features(this_ptr: number, val: number): void {
29771         if(!isWasmInitialized) {
29772                 throw new Error("initializeWasm() must be awaited first!");
29773         }
29774         const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
29775         // debug statements here
29776 }
29777         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29778 /* @internal */
29779 export function RouteHop_get_short_channel_id(this_ptr: number): bigint {
29780         if(!isWasmInitialized) {
29781                 throw new Error("initializeWasm() must be awaited first!");
29782         }
29783         const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
29784         return nativeResponseValue;
29785 }
29786         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
29787 /* @internal */
29788 export function RouteHop_set_short_channel_id(this_ptr: number, val: bigint): void {
29789         if(!isWasmInitialized) {
29790                 throw new Error("initializeWasm() must be awaited first!");
29791         }
29792         const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
29793         // debug statements here
29794 }
29795         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29796 /* @internal */
29797 export function RouteHop_get_channel_features(this_ptr: number): number {
29798         if(!isWasmInitialized) {
29799                 throw new Error("initializeWasm() must be awaited first!");
29800         }
29801         const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
29802         return nativeResponseValue;
29803 }
29804         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
29805 /* @internal */
29806 export function RouteHop_set_channel_features(this_ptr: number, val: number): void {
29807         if(!isWasmInitialized) {
29808                 throw new Error("initializeWasm() must be awaited first!");
29809         }
29810         const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
29811         // debug statements here
29812 }
29813         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29814 /* @internal */
29815 export function RouteHop_get_fee_msat(this_ptr: number): bigint {
29816         if(!isWasmInitialized) {
29817                 throw new Error("initializeWasm() must be awaited first!");
29818         }
29819         const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
29820         return nativeResponseValue;
29821 }
29822         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
29823 /* @internal */
29824 export function RouteHop_set_fee_msat(this_ptr: number, val: bigint): void {
29825         if(!isWasmInitialized) {
29826                 throw new Error("initializeWasm() must be awaited first!");
29827         }
29828         const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
29829         // debug statements here
29830 }
29831         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29832 /* @internal */
29833 export function RouteHop_get_cltv_expiry_delta(this_ptr: number): number {
29834         if(!isWasmInitialized) {
29835                 throw new Error("initializeWasm() must be awaited first!");
29836         }
29837         const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
29838         return nativeResponseValue;
29839 }
29840         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
29841 /* @internal */
29842 export function RouteHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
29843         if(!isWasmInitialized) {
29844                 throw new Error("initializeWasm() must be awaited first!");
29845         }
29846         const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
29847         // debug statements here
29848 }
29849         // 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);
29850 /* @internal */
29851 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 {
29852         if(!isWasmInitialized) {
29853                 throw new Error("initializeWasm() must be awaited first!");
29854         }
29855         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);
29856         return nativeResponseValue;
29857 }
29858         // uintptr_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
29859 /* @internal */
29860 export function RouteHop_clone_ptr(arg: number): number {
29861         if(!isWasmInitialized) {
29862                 throw new Error("initializeWasm() must be awaited first!");
29863         }
29864         const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
29865         return nativeResponseValue;
29866 }
29867         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
29868 /* @internal */
29869 export function RouteHop_clone(orig: number): number {
29870         if(!isWasmInitialized) {
29871                 throw new Error("initializeWasm() must be awaited first!");
29872         }
29873         const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
29874         return nativeResponseValue;
29875 }
29876         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
29877 /* @internal */
29878 export function RouteHop_hash(o: number): bigint {
29879         if(!isWasmInitialized) {
29880                 throw new Error("initializeWasm() must be awaited first!");
29881         }
29882         const nativeResponseValue = wasm.TS_RouteHop_hash(o);
29883         return nativeResponseValue;
29884 }
29885         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
29886 /* @internal */
29887 export function RouteHop_eq(a: number, b: number): boolean {
29888         if(!isWasmInitialized) {
29889                 throw new Error("initializeWasm() must be awaited first!");
29890         }
29891         const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
29892         return nativeResponseValue;
29893 }
29894         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
29895 /* @internal */
29896 export function RouteHop_write(obj: number): number {
29897         if(!isWasmInitialized) {
29898                 throw new Error("initializeWasm() must be awaited first!");
29899         }
29900         const nativeResponseValue = wasm.TS_RouteHop_write(obj);
29901         return nativeResponseValue;
29902 }
29903         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
29904 /* @internal */
29905 export function RouteHop_read(ser: number): number {
29906         if(!isWasmInitialized) {
29907                 throw new Error("initializeWasm() must be awaited first!");
29908         }
29909         const nativeResponseValue = wasm.TS_RouteHop_read(ser);
29910         return nativeResponseValue;
29911 }
29912         // void Route_free(struct LDKRoute this_obj);
29913 /* @internal */
29914 export function Route_free(this_obj: number): void {
29915         if(!isWasmInitialized) {
29916                 throw new Error("initializeWasm() must be awaited first!");
29917         }
29918         const nativeResponseValue = wasm.TS_Route_free(this_obj);
29919         // debug statements here
29920 }
29921         // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
29922 /* @internal */
29923 export function Route_get_paths(this_ptr: number): number {
29924         if(!isWasmInitialized) {
29925                 throw new Error("initializeWasm() must be awaited first!");
29926         }
29927         const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
29928         return nativeResponseValue;
29929 }
29930         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
29931 /* @internal */
29932 export function Route_set_paths(this_ptr: number, val: number): void {
29933         if(!isWasmInitialized) {
29934                 throw new Error("initializeWasm() must be awaited first!");
29935         }
29936         const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
29937         // debug statements here
29938 }
29939         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
29940 /* @internal */
29941 export function Route_get_payment_params(this_ptr: number): number {
29942         if(!isWasmInitialized) {
29943                 throw new Error("initializeWasm() must be awaited first!");
29944         }
29945         const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
29946         return nativeResponseValue;
29947 }
29948         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
29949 /* @internal */
29950 export function Route_set_payment_params(this_ptr: number, val: number): void {
29951         if(!isWasmInitialized) {
29952                 throw new Error("initializeWasm() must be awaited first!");
29953         }
29954         const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
29955         // debug statements here
29956 }
29957         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
29958 /* @internal */
29959 export function Route_new(paths_arg: number, payment_params_arg: number): number {
29960         if(!isWasmInitialized) {
29961                 throw new Error("initializeWasm() must be awaited first!");
29962         }
29963         const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
29964         return nativeResponseValue;
29965 }
29966         // uintptr_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
29967 /* @internal */
29968 export function Route_clone_ptr(arg: number): number {
29969         if(!isWasmInitialized) {
29970                 throw new Error("initializeWasm() must be awaited first!");
29971         }
29972         const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
29973         return nativeResponseValue;
29974 }
29975         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
29976 /* @internal */
29977 export function Route_clone(orig: number): number {
29978         if(!isWasmInitialized) {
29979                 throw new Error("initializeWasm() must be awaited first!");
29980         }
29981         const nativeResponseValue = wasm.TS_Route_clone(orig);
29982         return nativeResponseValue;
29983 }
29984         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
29985 /* @internal */
29986 export function Route_hash(o: number): bigint {
29987         if(!isWasmInitialized) {
29988                 throw new Error("initializeWasm() must be awaited first!");
29989         }
29990         const nativeResponseValue = wasm.TS_Route_hash(o);
29991         return nativeResponseValue;
29992 }
29993         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
29994 /* @internal */
29995 export function Route_eq(a: number, b: number): boolean {
29996         if(!isWasmInitialized) {
29997                 throw new Error("initializeWasm() must be awaited first!");
29998         }
29999         const nativeResponseValue = wasm.TS_Route_eq(a, b);
30000         return nativeResponseValue;
30001 }
30002         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
30003 /* @internal */
30004 export function Route_get_total_fees(this_arg: number): bigint {
30005         if(!isWasmInitialized) {
30006                 throw new Error("initializeWasm() must be awaited first!");
30007         }
30008         const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
30009         return nativeResponseValue;
30010 }
30011         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
30012 /* @internal */
30013 export function Route_get_total_amount(this_arg: number): bigint {
30014         if(!isWasmInitialized) {
30015                 throw new Error("initializeWasm() must be awaited first!");
30016         }
30017         const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
30018         return nativeResponseValue;
30019 }
30020         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
30021 /* @internal */
30022 export function Route_write(obj: number): number {
30023         if(!isWasmInitialized) {
30024                 throw new Error("initializeWasm() must be awaited first!");
30025         }
30026         const nativeResponseValue = wasm.TS_Route_write(obj);
30027         return nativeResponseValue;
30028 }
30029         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
30030 /* @internal */
30031 export function Route_read(ser: number): number {
30032         if(!isWasmInitialized) {
30033                 throw new Error("initializeWasm() must be awaited first!");
30034         }
30035         const nativeResponseValue = wasm.TS_Route_read(ser);
30036         return nativeResponseValue;
30037 }
30038         // void RouteParameters_free(struct LDKRouteParameters this_obj);
30039 /* @internal */
30040 export function RouteParameters_free(this_obj: number): void {
30041         if(!isWasmInitialized) {
30042                 throw new Error("initializeWasm() must be awaited first!");
30043         }
30044         const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
30045         // debug statements here
30046 }
30047         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
30048 /* @internal */
30049 export function RouteParameters_get_payment_params(this_ptr: number): number {
30050         if(!isWasmInitialized) {
30051                 throw new Error("initializeWasm() must be awaited first!");
30052         }
30053         const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
30054         return nativeResponseValue;
30055 }
30056         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
30057 /* @internal */
30058 export function RouteParameters_set_payment_params(this_ptr: number, val: number): void {
30059         if(!isWasmInitialized) {
30060                 throw new Error("initializeWasm() must be awaited first!");
30061         }
30062         const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
30063         // debug statements here
30064 }
30065         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
30066 /* @internal */
30067 export function RouteParameters_get_final_value_msat(this_ptr: number): bigint {
30068         if(!isWasmInitialized) {
30069                 throw new Error("initializeWasm() must be awaited first!");
30070         }
30071         const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
30072         return nativeResponseValue;
30073 }
30074         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
30075 /* @internal */
30076 export function RouteParameters_set_final_value_msat(this_ptr: number, val: bigint): void {
30077         if(!isWasmInitialized) {
30078                 throw new Error("initializeWasm() must be awaited first!");
30079         }
30080         const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
30081         // debug statements here
30082 }
30083         // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
30084 /* @internal */
30085 export function RouteParameters_get_final_cltv_expiry_delta(this_ptr: number): number {
30086         if(!isWasmInitialized) {
30087                 throw new Error("initializeWasm() must be awaited first!");
30088         }
30089         const nativeResponseValue = wasm.TS_RouteParameters_get_final_cltv_expiry_delta(this_ptr);
30090         return nativeResponseValue;
30091 }
30092         // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
30093 /* @internal */
30094 export function RouteParameters_set_final_cltv_expiry_delta(this_ptr: number, val: number): void {
30095         if(!isWasmInitialized) {
30096                 throw new Error("initializeWasm() must be awaited first!");
30097         }
30098         const nativeResponseValue = wasm.TS_RouteParameters_set_final_cltv_expiry_delta(this_ptr, val);
30099         // debug statements here
30100 }
30101         // 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);
30102 /* @internal */
30103 export function RouteParameters_new(payment_params_arg: number, final_value_msat_arg: bigint, final_cltv_expiry_delta_arg: number): number {
30104         if(!isWasmInitialized) {
30105                 throw new Error("initializeWasm() must be awaited first!");
30106         }
30107         const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg, final_cltv_expiry_delta_arg);
30108         return nativeResponseValue;
30109 }
30110         // uintptr_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
30111 /* @internal */
30112 export function RouteParameters_clone_ptr(arg: number): number {
30113         if(!isWasmInitialized) {
30114                 throw new Error("initializeWasm() must be awaited first!");
30115         }
30116         const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
30117         return nativeResponseValue;
30118 }
30119         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
30120 /* @internal */
30121 export function RouteParameters_clone(orig: number): number {
30122         if(!isWasmInitialized) {
30123                 throw new Error("initializeWasm() must be awaited first!");
30124         }
30125         const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
30126         return nativeResponseValue;
30127 }
30128         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
30129 /* @internal */
30130 export function RouteParameters_write(obj: number): number {
30131         if(!isWasmInitialized) {
30132                 throw new Error("initializeWasm() must be awaited first!");
30133         }
30134         const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
30135         return nativeResponseValue;
30136 }
30137         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
30138 /* @internal */
30139 export function RouteParameters_read(ser: number): number {
30140         if(!isWasmInitialized) {
30141                 throw new Error("initializeWasm() must be awaited first!");
30142         }
30143         const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
30144         return nativeResponseValue;
30145 }
30146         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
30147 /* @internal */
30148 export function PaymentParameters_free(this_obj: number): void {
30149         if(!isWasmInitialized) {
30150                 throw new Error("initializeWasm() must be awaited first!");
30151         }
30152         const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
30153         // debug statements here
30154 }
30155         // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30156 /* @internal */
30157 export function PaymentParameters_get_payee_pubkey(this_ptr: number): number {
30158         if(!isWasmInitialized) {
30159                 throw new Error("initializeWasm() must be awaited first!");
30160         }
30161         const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
30162         return nativeResponseValue;
30163 }
30164         // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
30165 /* @internal */
30166 export function PaymentParameters_set_payee_pubkey(this_ptr: number, val: number): void {
30167         if(!isWasmInitialized) {
30168                 throw new Error("initializeWasm() must be awaited first!");
30169         }
30170         const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
30171         // debug statements here
30172 }
30173         // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30174 /* @internal */
30175 export function PaymentParameters_get_features(this_ptr: number): number {
30176         if(!isWasmInitialized) {
30177                 throw new Error("initializeWasm() must be awaited first!");
30178         }
30179         const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
30180         return nativeResponseValue;
30181 }
30182         // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
30183 /* @internal */
30184 export function PaymentParameters_set_features(this_ptr: number, val: number): void {
30185         if(!isWasmInitialized) {
30186                 throw new Error("initializeWasm() must be awaited first!");
30187         }
30188         const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
30189         // debug statements here
30190 }
30191         // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30192 /* @internal */
30193 export function PaymentParameters_get_route_hints(this_ptr: number): number {
30194         if(!isWasmInitialized) {
30195                 throw new Error("initializeWasm() must be awaited first!");
30196         }
30197         const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
30198         return nativeResponseValue;
30199 }
30200         // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
30201 /* @internal */
30202 export function PaymentParameters_set_route_hints(this_ptr: number, val: number): void {
30203         if(!isWasmInitialized) {
30204                 throw new Error("initializeWasm() must be awaited first!");
30205         }
30206         const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
30207         // debug statements here
30208 }
30209         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30210 /* @internal */
30211 export function PaymentParameters_get_expiry_time(this_ptr: number): number {
30212         if(!isWasmInitialized) {
30213                 throw new Error("initializeWasm() must be awaited first!");
30214         }
30215         const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
30216         return nativeResponseValue;
30217 }
30218         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30219 /* @internal */
30220 export function PaymentParameters_set_expiry_time(this_ptr: number, val: number): void {
30221         if(!isWasmInitialized) {
30222                 throw new Error("initializeWasm() must be awaited first!");
30223         }
30224         const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
30225         // debug statements here
30226 }
30227         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30228 /* @internal */
30229 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: number): number {
30230         if(!isWasmInitialized) {
30231                 throw new Error("initializeWasm() must be awaited first!");
30232         }
30233         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
30234         return nativeResponseValue;
30235 }
30236         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
30237 /* @internal */
30238 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: number, val: number): void {
30239         if(!isWasmInitialized) {
30240                 throw new Error("initializeWasm() must be awaited first!");
30241         }
30242         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
30243         // debug statements here
30244 }
30245         // uint8_t PaymentParameters_get_max_mpp_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30246 /* @internal */
30247 export function PaymentParameters_get_max_mpp_path_count(this_ptr: number): number {
30248         if(!isWasmInitialized) {
30249                 throw new Error("initializeWasm() must be awaited first!");
30250         }
30251         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_mpp_path_count(this_ptr);
30252         return nativeResponseValue;
30253 }
30254         // void PaymentParameters_set_max_mpp_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
30255 /* @internal */
30256 export function PaymentParameters_set_max_mpp_path_count(this_ptr: number, val: number): void {
30257         if(!isWasmInitialized) {
30258                 throw new Error("initializeWasm() must be awaited first!");
30259         }
30260         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_mpp_path_count(this_ptr, val);
30261         // debug statements here
30262 }
30263         // 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);
30264 /* @internal */
30265 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 {
30266         if(!isWasmInitialized) {
30267                 throw new Error("initializeWasm() must be awaited first!");
30268         }
30269         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);
30270         return nativeResponseValue;
30271 }
30272         // uintptr_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
30273 /* @internal */
30274 export function PaymentParameters_clone_ptr(arg: number): number {
30275         if(!isWasmInitialized) {
30276                 throw new Error("initializeWasm() must be awaited first!");
30277         }
30278         const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
30279         return nativeResponseValue;
30280 }
30281         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
30282 /* @internal */
30283 export function PaymentParameters_clone(orig: number): number {
30284         if(!isWasmInitialized) {
30285                 throw new Error("initializeWasm() must be awaited first!");
30286         }
30287         const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
30288         return nativeResponseValue;
30289 }
30290         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
30291 /* @internal */
30292 export function PaymentParameters_hash(o: number): bigint {
30293         if(!isWasmInitialized) {
30294                 throw new Error("initializeWasm() must be awaited first!");
30295         }
30296         const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
30297         return nativeResponseValue;
30298 }
30299         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
30300 /* @internal */
30301 export function PaymentParameters_eq(a: number, b: number): boolean {
30302         if(!isWasmInitialized) {
30303                 throw new Error("initializeWasm() must be awaited first!");
30304         }
30305         const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
30306         return nativeResponseValue;
30307 }
30308         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
30309 /* @internal */
30310 export function PaymentParameters_write(obj: number): number {
30311         if(!isWasmInitialized) {
30312                 throw new Error("initializeWasm() must be awaited first!");
30313         }
30314         const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
30315         return nativeResponseValue;
30316 }
30317         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
30318 /* @internal */
30319 export function PaymentParameters_read(ser: number): number {
30320         if(!isWasmInitialized) {
30321                 throw new Error("initializeWasm() must be awaited first!");
30322         }
30323         const nativeResponseValue = wasm.TS_PaymentParameters_read(ser);
30324         return nativeResponseValue;
30325 }
30326         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
30327 /* @internal */
30328 export function PaymentParameters_from_node_id(payee_pubkey: number): number {
30329         if(!isWasmInitialized) {
30330                 throw new Error("initializeWasm() must be awaited first!");
30331         }
30332         const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey);
30333         return nativeResponseValue;
30334 }
30335         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
30336 /* @internal */
30337 export function PaymentParameters_for_keysend(payee_pubkey: number): number {
30338         if(!isWasmInitialized) {
30339                 throw new Error("initializeWasm() must be awaited first!");
30340         }
30341         const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey);
30342         return nativeResponseValue;
30343 }
30344         // void RouteHint_free(struct LDKRouteHint this_obj);
30345 /* @internal */
30346 export function RouteHint_free(this_obj: number): void {
30347         if(!isWasmInitialized) {
30348                 throw new Error("initializeWasm() must be awaited first!");
30349         }
30350         const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
30351         // debug statements here
30352 }
30353         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
30354 /* @internal */
30355 export function RouteHint_get_a(this_ptr: number): number {
30356         if(!isWasmInitialized) {
30357                 throw new Error("initializeWasm() must be awaited first!");
30358         }
30359         const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
30360         return nativeResponseValue;
30361 }
30362         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
30363 /* @internal */
30364 export function RouteHint_set_a(this_ptr: number, val: number): void {
30365         if(!isWasmInitialized) {
30366                 throw new Error("initializeWasm() must be awaited first!");
30367         }
30368         const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
30369         // debug statements here
30370 }
30371         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
30372 /* @internal */
30373 export function RouteHint_new(a_arg: number): number {
30374         if(!isWasmInitialized) {
30375                 throw new Error("initializeWasm() must be awaited first!");
30376         }
30377         const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
30378         return nativeResponseValue;
30379 }
30380         // uintptr_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
30381 /* @internal */
30382 export function RouteHint_clone_ptr(arg: number): number {
30383         if(!isWasmInitialized) {
30384                 throw new Error("initializeWasm() must be awaited first!");
30385         }
30386         const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
30387         return nativeResponseValue;
30388 }
30389         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
30390 /* @internal */
30391 export function RouteHint_clone(orig: number): number {
30392         if(!isWasmInitialized) {
30393                 throw new Error("initializeWasm() must be awaited first!");
30394         }
30395         const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
30396         return nativeResponseValue;
30397 }
30398         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
30399 /* @internal */
30400 export function RouteHint_hash(o: number): bigint {
30401         if(!isWasmInitialized) {
30402                 throw new Error("initializeWasm() must be awaited first!");
30403         }
30404         const nativeResponseValue = wasm.TS_RouteHint_hash(o);
30405         return nativeResponseValue;
30406 }
30407         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
30408 /* @internal */
30409 export function RouteHint_eq(a: number, b: number): boolean {
30410         if(!isWasmInitialized) {
30411                 throw new Error("initializeWasm() must be awaited first!");
30412         }
30413         const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
30414         return nativeResponseValue;
30415 }
30416         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
30417 /* @internal */
30418 export function RouteHint_write(obj: number): number {
30419         if(!isWasmInitialized) {
30420                 throw new Error("initializeWasm() must be awaited first!");
30421         }
30422         const nativeResponseValue = wasm.TS_RouteHint_write(obj);
30423         return nativeResponseValue;
30424 }
30425         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
30426 /* @internal */
30427 export function RouteHint_read(ser: number): number {
30428         if(!isWasmInitialized) {
30429                 throw new Error("initializeWasm() must be awaited first!");
30430         }
30431         const nativeResponseValue = wasm.TS_RouteHint_read(ser);
30432         return nativeResponseValue;
30433 }
30434         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
30435 /* @internal */
30436 export function RouteHintHop_free(this_obj: number): void {
30437         if(!isWasmInitialized) {
30438                 throw new Error("initializeWasm() must be awaited first!");
30439         }
30440         const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
30441         // debug statements here
30442 }
30443         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30444 /* @internal */
30445 export function RouteHintHop_get_src_node_id(this_ptr: number): number {
30446         if(!isWasmInitialized) {
30447                 throw new Error("initializeWasm() must be awaited first!");
30448         }
30449         const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
30450         return nativeResponseValue;
30451 }
30452         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
30453 /* @internal */
30454 export function RouteHintHop_set_src_node_id(this_ptr: number, val: number): void {
30455         if(!isWasmInitialized) {
30456                 throw new Error("initializeWasm() must be awaited first!");
30457         }
30458         const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
30459         // debug statements here
30460 }
30461         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30462 /* @internal */
30463 export function RouteHintHop_get_short_channel_id(this_ptr: number): bigint {
30464         if(!isWasmInitialized) {
30465                 throw new Error("initializeWasm() must be awaited first!");
30466         }
30467         const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
30468         return nativeResponseValue;
30469 }
30470         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
30471 /* @internal */
30472 export function RouteHintHop_set_short_channel_id(this_ptr: number, val: bigint): void {
30473         if(!isWasmInitialized) {
30474                 throw new Error("initializeWasm() must be awaited first!");
30475         }
30476         const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
30477         // debug statements here
30478 }
30479         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30480 /* @internal */
30481 export function RouteHintHop_get_fees(this_ptr: number): number {
30482         if(!isWasmInitialized) {
30483                 throw new Error("initializeWasm() must be awaited first!");
30484         }
30485         const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
30486         return nativeResponseValue;
30487 }
30488         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
30489 /* @internal */
30490 export function RouteHintHop_set_fees(this_ptr: number, val: number): void {
30491         if(!isWasmInitialized) {
30492                 throw new Error("initializeWasm() must be awaited first!");
30493         }
30494         const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
30495         // debug statements here
30496 }
30497         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30498 /* @internal */
30499 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: number): number {
30500         if(!isWasmInitialized) {
30501                 throw new Error("initializeWasm() must be awaited first!");
30502         }
30503         const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
30504         return nativeResponseValue;
30505 }
30506         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
30507 /* @internal */
30508 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
30509         if(!isWasmInitialized) {
30510                 throw new Error("initializeWasm() must be awaited first!");
30511         }
30512         const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
30513         // debug statements here
30514 }
30515         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30516 /* @internal */
30517 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: number): number {
30518         if(!isWasmInitialized) {
30519                 throw new Error("initializeWasm() must be awaited first!");
30520         }
30521         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
30522         return nativeResponseValue;
30523 }
30524         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30525 /* @internal */
30526 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: number, val: number): void {
30527         if(!isWasmInitialized) {
30528                 throw new Error("initializeWasm() must be awaited first!");
30529         }
30530         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
30531         // debug statements here
30532 }
30533         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30534 /* @internal */
30535 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: number): number {
30536         if(!isWasmInitialized) {
30537                 throw new Error("initializeWasm() must be awaited first!");
30538         }
30539         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
30540         return nativeResponseValue;
30541 }
30542         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30543 /* @internal */
30544 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: number, val: number): void {
30545         if(!isWasmInitialized) {
30546                 throw new Error("initializeWasm() must be awaited first!");
30547         }
30548         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
30549         // debug statements here
30550 }
30551         // 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);
30552 /* @internal */
30553 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 {
30554         if(!isWasmInitialized) {
30555                 throw new Error("initializeWasm() must be awaited first!");
30556         }
30557         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);
30558         return nativeResponseValue;
30559 }
30560         // uintptr_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
30561 /* @internal */
30562 export function RouteHintHop_clone_ptr(arg: number): number {
30563         if(!isWasmInitialized) {
30564                 throw new Error("initializeWasm() must be awaited first!");
30565         }
30566         const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
30567         return nativeResponseValue;
30568 }
30569         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
30570 /* @internal */
30571 export function RouteHintHop_clone(orig: number): number {
30572         if(!isWasmInitialized) {
30573                 throw new Error("initializeWasm() must be awaited first!");
30574         }
30575         const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
30576         return nativeResponseValue;
30577 }
30578         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
30579 /* @internal */
30580 export function RouteHintHop_hash(o: number): bigint {
30581         if(!isWasmInitialized) {
30582                 throw new Error("initializeWasm() must be awaited first!");
30583         }
30584         const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
30585         return nativeResponseValue;
30586 }
30587         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
30588 /* @internal */
30589 export function RouteHintHop_eq(a: number, b: number): boolean {
30590         if(!isWasmInitialized) {
30591                 throw new Error("initializeWasm() must be awaited first!");
30592         }
30593         const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
30594         return nativeResponseValue;
30595 }
30596         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
30597 /* @internal */
30598 export function RouteHintHop_write(obj: number): number {
30599         if(!isWasmInitialized) {
30600                 throw new Error("initializeWasm() must be awaited first!");
30601         }
30602         const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
30603         return nativeResponseValue;
30604 }
30605         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
30606 /* @internal */
30607 export function RouteHintHop_read(ser: number): number {
30608         if(!isWasmInitialized) {
30609                 throw new Error("initializeWasm() must be awaited first!");
30610         }
30611         const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
30612         return nativeResponseValue;
30613 }
30614         // 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]);
30615 /* @internal */
30616 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 {
30617         if(!isWasmInitialized) {
30618                 throw new Error("initializeWasm() must be awaited first!");
30619         }
30620         const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network_graph, first_hops, logger, scorer, random_seed_bytes);
30621         return nativeResponseValue;
30622 }
30623         // 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]);
30624 /* @internal */
30625 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 {
30626         if(!isWasmInitialized) {
30627                 throw new Error("initializeWasm() must be awaited first!");
30628         }
30629         const nativeResponseValue = wasm.TS_build_route_from_hops(our_node_pubkey, hops, route_params, network_graph, logger, random_seed_bytes);
30630         return nativeResponseValue;
30631 }
30632         // void Score_free(struct LDKScore this_ptr);
30633 /* @internal */
30634 export function Score_free(this_ptr: number): void {
30635         if(!isWasmInitialized) {
30636                 throw new Error("initializeWasm() must be awaited first!");
30637         }
30638         const nativeResponseValue = wasm.TS_Score_free(this_ptr);
30639         // debug statements here
30640 }
30641         // void LockableScore_free(struct LDKLockableScore this_ptr);
30642 /* @internal */
30643 export function LockableScore_free(this_ptr: number): void {
30644         if(!isWasmInitialized) {
30645                 throw new Error("initializeWasm() must be awaited first!");
30646         }
30647         const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
30648         // debug statements here
30649 }
30650         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
30651 /* @internal */
30652 export function MultiThreadedLockableScore_free(this_obj: number): void {
30653         if(!isWasmInitialized) {
30654                 throw new Error("initializeWasm() must be awaited first!");
30655         }
30656         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
30657         // debug statements here
30658 }
30659         // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
30660 /* @internal */
30661 export function MultiThreadedLockableScore_write(obj: number): number {
30662         if(!isWasmInitialized) {
30663                 throw new Error("initializeWasm() must be awaited first!");
30664         }
30665         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_write(obj);
30666         return nativeResponseValue;
30667 }
30668         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
30669 /* @internal */
30670 export function MultiThreadedLockableScore_new(score: number): number {
30671         if(!isWasmInitialized) {
30672                 throw new Error("initializeWasm() must be awaited first!");
30673         }
30674         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
30675         return nativeResponseValue;
30676 }
30677         // void ChannelUsage_free(struct LDKChannelUsage this_obj);
30678 /* @internal */
30679 export function ChannelUsage_free(this_obj: number): void {
30680         if(!isWasmInitialized) {
30681                 throw new Error("initializeWasm() must be awaited first!");
30682         }
30683         const nativeResponseValue = wasm.TS_ChannelUsage_free(this_obj);
30684         // debug statements here
30685 }
30686         // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30687 /* @internal */
30688 export function ChannelUsage_get_amount_msat(this_ptr: number): bigint {
30689         if(!isWasmInitialized) {
30690                 throw new Error("initializeWasm() must be awaited first!");
30691         }
30692         const nativeResponseValue = wasm.TS_ChannelUsage_get_amount_msat(this_ptr);
30693         return nativeResponseValue;
30694 }
30695         // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
30696 /* @internal */
30697 export function ChannelUsage_set_amount_msat(this_ptr: number, val: bigint): void {
30698         if(!isWasmInitialized) {
30699                 throw new Error("initializeWasm() must be awaited first!");
30700         }
30701         const nativeResponseValue = wasm.TS_ChannelUsage_set_amount_msat(this_ptr, val);
30702         // debug statements here
30703 }
30704         // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30705 /* @internal */
30706 export function ChannelUsage_get_inflight_htlc_msat(this_ptr: number): bigint {
30707         if(!isWasmInitialized) {
30708                 throw new Error("initializeWasm() must be awaited first!");
30709         }
30710         const nativeResponseValue = wasm.TS_ChannelUsage_get_inflight_htlc_msat(this_ptr);
30711         return nativeResponseValue;
30712 }
30713         // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
30714 /* @internal */
30715 export function ChannelUsage_set_inflight_htlc_msat(this_ptr: number, val: bigint): void {
30716         if(!isWasmInitialized) {
30717                 throw new Error("initializeWasm() must be awaited first!");
30718         }
30719         const nativeResponseValue = wasm.TS_ChannelUsage_set_inflight_htlc_msat(this_ptr, val);
30720         // debug statements here
30721 }
30722         // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30723 /* @internal */
30724 export function ChannelUsage_get_effective_capacity(this_ptr: number): number {
30725         if(!isWasmInitialized) {
30726                 throw new Error("initializeWasm() must be awaited first!");
30727         }
30728         const nativeResponseValue = wasm.TS_ChannelUsage_get_effective_capacity(this_ptr);
30729         return nativeResponseValue;
30730 }
30731         // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
30732 /* @internal */
30733 export function ChannelUsage_set_effective_capacity(this_ptr: number, val: number): void {
30734         if(!isWasmInitialized) {
30735                 throw new Error("initializeWasm() must be awaited first!");
30736         }
30737         const nativeResponseValue = wasm.TS_ChannelUsage_set_effective_capacity(this_ptr, val);
30738         // debug statements here
30739 }
30740         // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
30741 /* @internal */
30742 export function ChannelUsage_new(amount_msat_arg: bigint, inflight_htlc_msat_arg: bigint, effective_capacity_arg: number): number {
30743         if(!isWasmInitialized) {
30744                 throw new Error("initializeWasm() must be awaited first!");
30745         }
30746         const nativeResponseValue = wasm.TS_ChannelUsage_new(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg);
30747         return nativeResponseValue;
30748 }
30749         // uintptr_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
30750 /* @internal */
30751 export function ChannelUsage_clone_ptr(arg: number): number {
30752         if(!isWasmInitialized) {
30753                 throw new Error("initializeWasm() must be awaited first!");
30754         }
30755         const nativeResponseValue = wasm.TS_ChannelUsage_clone_ptr(arg);
30756         return nativeResponseValue;
30757 }
30758         // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
30759 /* @internal */
30760 export function ChannelUsage_clone(orig: number): number {
30761         if(!isWasmInitialized) {
30762                 throw new Error("initializeWasm() must be awaited first!");
30763         }
30764         const nativeResponseValue = wasm.TS_ChannelUsage_clone(orig);
30765         return nativeResponseValue;
30766 }
30767         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
30768 /* @internal */
30769 export function FixedPenaltyScorer_free(this_obj: number): void {
30770         if(!isWasmInitialized) {
30771                 throw new Error("initializeWasm() must be awaited first!");
30772         }
30773         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
30774         // debug statements here
30775 }
30776         // uintptr_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
30777 /* @internal */
30778 export function FixedPenaltyScorer_clone_ptr(arg: number): number {
30779         if(!isWasmInitialized) {
30780                 throw new Error("initializeWasm() must be awaited first!");
30781         }
30782         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
30783         return nativeResponseValue;
30784 }
30785         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
30786 /* @internal */
30787 export function FixedPenaltyScorer_clone(orig: number): number {
30788         if(!isWasmInitialized) {
30789                 throw new Error("initializeWasm() must be awaited first!");
30790         }
30791         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
30792         return nativeResponseValue;
30793 }
30794         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
30795 /* @internal */
30796 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): number {
30797         if(!isWasmInitialized) {
30798                 throw new Error("initializeWasm() must be awaited first!");
30799         }
30800         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
30801         return nativeResponseValue;
30802 }
30803         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
30804 /* @internal */
30805 export function FixedPenaltyScorer_as_Score(this_arg: number): number {
30806         if(!isWasmInitialized) {
30807                 throw new Error("initializeWasm() must be awaited first!");
30808         }
30809         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
30810         return nativeResponseValue;
30811 }
30812         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
30813 /* @internal */
30814 export function FixedPenaltyScorer_write(obj: number): number {
30815         if(!isWasmInitialized) {
30816                 throw new Error("initializeWasm() must be awaited first!");
30817         }
30818         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
30819         return nativeResponseValue;
30820 }
30821         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
30822 /* @internal */
30823 export function FixedPenaltyScorer_read(ser: number, arg: bigint): number {
30824         if(!isWasmInitialized) {
30825                 throw new Error("initializeWasm() must be awaited first!");
30826         }
30827         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser, arg);
30828         return nativeResponseValue;
30829 }
30830         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
30831 /* @internal */
30832 export function ProbabilisticScorer_free(this_obj: number): void {
30833         if(!isWasmInitialized) {
30834                 throw new Error("initializeWasm() must be awaited first!");
30835         }
30836         const nativeResponseValue = wasm.TS_ProbabilisticScorer_free(this_obj);
30837         // debug statements here
30838 }
30839         // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
30840 /* @internal */
30841 export function ProbabilisticScoringParameters_free(this_obj: number): void {
30842         if(!isWasmInitialized) {
30843                 throw new Error("initializeWasm() must be awaited first!");
30844         }
30845         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
30846         // debug statements here
30847 }
30848         // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30849 /* @internal */
30850 export function ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr: number): bigint {
30851         if(!isWasmInitialized) {
30852                 throw new Error("initializeWasm() must be awaited first!");
30853         }
30854         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr);
30855         return nativeResponseValue;
30856 }
30857         // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30858 /* @internal */
30859 export function ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr: number, val: bigint): void {
30860         if(!isWasmInitialized) {
30861                 throw new Error("initializeWasm() must be awaited first!");
30862         }
30863         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr, val);
30864         // debug statements here
30865 }
30866         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30867 /* @internal */
30868 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: number): bigint {
30869         if(!isWasmInitialized) {
30870                 throw new Error("initializeWasm() must be awaited first!");
30871         }
30872         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
30873         return nativeResponseValue;
30874 }
30875         // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30876 /* @internal */
30877 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
30878         if(!isWasmInitialized) {
30879                 throw new Error("initializeWasm() must be awaited first!");
30880         }
30881         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
30882         // debug statements here
30883 }
30884         // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30885 /* @internal */
30886 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: number): bigint {
30887         if(!isWasmInitialized) {
30888                 throw new Error("initializeWasm() must be awaited first!");
30889         }
30890         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
30891         return nativeResponseValue;
30892 }
30893         // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30894 /* @internal */
30895 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: number, val: bigint): void {
30896         if(!isWasmInitialized) {
30897                 throw new Error("initializeWasm() must be awaited first!");
30898         }
30899         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
30900         // debug statements here
30901 }
30902         // uint64_t ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30903 /* @internal */
30904 export function ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr: number): bigint {
30905         if(!isWasmInitialized) {
30906                 throw new Error("initializeWasm() must be awaited first!");
30907         }
30908         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr);
30909         return nativeResponseValue;
30910 }
30911         // void ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30912 /* @internal */
30913 export function ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
30914         if(!isWasmInitialized) {
30915                 throw new Error("initializeWasm() must be awaited first!");
30916         }
30917         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr, val);
30918         // debug statements here
30919 }
30920         // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30921 /* @internal */
30922 export function ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr: number): bigint {
30923         if(!isWasmInitialized) {
30924                 throw new Error("initializeWasm() must be awaited first!");
30925         }
30926         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr);
30927         return nativeResponseValue;
30928 }
30929         // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30930 /* @internal */
30931 export function ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr: number, val: bigint): void {
30932         if(!isWasmInitialized) {
30933                 throw new Error("initializeWasm() must be awaited first!");
30934         }
30935         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr, val);
30936         // debug statements here
30937 }
30938         // uintptr_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
30939 /* @internal */
30940 export function ProbabilisticScoringParameters_clone_ptr(arg: number): number {
30941         if(!isWasmInitialized) {
30942                 throw new Error("initializeWasm() must be awaited first!");
30943         }
30944         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
30945         return nativeResponseValue;
30946 }
30947         // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
30948 /* @internal */
30949 export function ProbabilisticScoringParameters_clone(orig: number): number {
30950         if(!isWasmInitialized) {
30951                 throw new Error("initializeWasm() must be awaited first!");
30952         }
30953         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
30954         return nativeResponseValue;
30955 }
30956         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
30957 /* @internal */
30958 export function ProbabilisticScorer_new(params: number, network_graph: number, logger: number): number {
30959         if(!isWasmInitialized) {
30960                 throw new Error("initializeWasm() must be awaited first!");
30961         }
30962         const nativeResponseValue = wasm.TS_ProbabilisticScorer_new(params, network_graph, logger);
30963         return nativeResponseValue;
30964 }
30965         // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
30966 /* @internal */
30967 export function ProbabilisticScorer_debug_log_liquidity_stats(this_arg: number): void {
30968         if(!isWasmInitialized) {
30969                 throw new Error("initializeWasm() must be awaited first!");
30970         }
30971         const nativeResponseValue = wasm.TS_ProbabilisticScorer_debug_log_liquidity_stats(this_arg);
30972         // debug statements here
30973 }
30974         // 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);
30975 /* @internal */
30976 export function ProbabilisticScorer_estimated_channel_liquidity_range(this_arg: number, scid: bigint, target: number): number {
30977         if(!isWasmInitialized) {
30978                 throw new Error("initializeWasm() must be awaited first!");
30979         }
30980         const nativeResponseValue = wasm.TS_ProbabilisticScorer_estimated_channel_liquidity_range(this_arg, scid, target);
30981         return nativeResponseValue;
30982 }
30983         // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
30984 /* @internal */
30985 export function ProbabilisticScorer_add_banned(this_arg: number, node_id: number): void {
30986         if(!isWasmInitialized) {
30987                 throw new Error("initializeWasm() must be awaited first!");
30988         }
30989         const nativeResponseValue = wasm.TS_ProbabilisticScorer_add_banned(this_arg, node_id);
30990         // debug statements here
30991 }
30992         // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
30993 /* @internal */
30994 export function ProbabilisticScorer_remove_banned(this_arg: number, node_id: number): void {
30995         if(!isWasmInitialized) {
30996                 throw new Error("initializeWasm() must be awaited first!");
30997         }
30998         const nativeResponseValue = wasm.TS_ProbabilisticScorer_remove_banned(this_arg, node_id);
30999         // debug statements here
31000 }
31001         // void ProbabilisticScorer_clear_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
31002 /* @internal */
31003 export function ProbabilisticScorer_clear_banned(this_arg: number): void {
31004         if(!isWasmInitialized) {
31005                 throw new Error("initializeWasm() must be awaited first!");
31006         }
31007         const nativeResponseValue = wasm.TS_ProbabilisticScorer_clear_banned(this_arg);
31008         // debug statements here
31009 }
31010         // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
31011 /* @internal */
31012 export function ProbabilisticScoringParameters_add_banned_from_list(this_arg: number, node_ids: number): void {
31013         if(!isWasmInitialized) {
31014                 throw new Error("initializeWasm() must be awaited first!");
31015         }
31016         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_add_banned_from_list(this_arg, node_ids);
31017         // debug statements here
31018 }
31019         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
31020 /* @internal */
31021 export function ProbabilisticScoringParameters_default(): number {
31022         if(!isWasmInitialized) {
31023                 throw new Error("initializeWasm() must be awaited first!");
31024         }
31025         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
31026         return nativeResponseValue;
31027 }
31028         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
31029 /* @internal */
31030 export function ProbabilisticScorer_as_Score(this_arg: number): number {
31031         if(!isWasmInitialized) {
31032                 throw new Error("initializeWasm() must be awaited first!");
31033         }
31034         const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
31035         return nativeResponseValue;
31036 }
31037         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
31038 /* @internal */
31039 export function ProbabilisticScorer_write(obj: number): number {
31040         if(!isWasmInitialized) {
31041                 throw new Error("initializeWasm() must be awaited first!");
31042         }
31043         const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
31044         return nativeResponseValue;
31045 }
31046         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
31047 /* @internal */
31048 export function ProbabilisticScorer_read(ser: number, arg_a: number, arg_b: number, arg_c: number): number {
31049         if(!isWasmInitialized) {
31050                 throw new Error("initializeWasm() must be awaited first!");
31051         }
31052         const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b, arg_c);
31053         return nativeResponseValue;
31054 }
31055         // void ParseError_free(struct LDKParseError this_ptr);
31056 /* @internal */
31057 export function ParseError_free(this_ptr: number): void {
31058         if(!isWasmInitialized) {
31059                 throw new Error("initializeWasm() must be awaited first!");
31060         }
31061         const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
31062         // debug statements here
31063 }
31064         // uintptr_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
31065 /* @internal */
31066 export function ParseError_clone_ptr(arg: number): number {
31067         if(!isWasmInitialized) {
31068                 throw new Error("initializeWasm() must be awaited first!");
31069         }
31070         const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
31071         return nativeResponseValue;
31072 }
31073         // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
31074 /* @internal */
31075 export function ParseError_clone(orig: number): number {
31076         if(!isWasmInitialized) {
31077                 throw new Error("initializeWasm() must be awaited first!");
31078         }
31079         const nativeResponseValue = wasm.TS_ParseError_clone(orig);
31080         return nativeResponseValue;
31081 }
31082         // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
31083 /* @internal */
31084 export function ParseError_bech32_error(a: number): number {
31085         if(!isWasmInitialized) {
31086                 throw new Error("initializeWasm() must be awaited first!");
31087         }
31088         const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
31089         return nativeResponseValue;
31090 }
31091         // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
31092 /* @internal */
31093 export function ParseError_parse_amount_error(a: number): number {
31094         if(!isWasmInitialized) {
31095                 throw new Error("initializeWasm() must be awaited first!");
31096         }
31097         const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
31098         return nativeResponseValue;
31099 }
31100         // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
31101 /* @internal */
31102 export function ParseError_malformed_signature(a: Secp256k1Error): number {
31103         if(!isWasmInitialized) {
31104                 throw new Error("initializeWasm() must be awaited first!");
31105         }
31106         const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
31107         return nativeResponseValue;
31108 }
31109         // struct LDKParseError ParseError_bad_prefix(void);
31110 /* @internal */
31111 export function ParseError_bad_prefix(): number {
31112         if(!isWasmInitialized) {
31113                 throw new Error("initializeWasm() must be awaited first!");
31114         }
31115         const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
31116         return nativeResponseValue;
31117 }
31118         // struct LDKParseError ParseError_unknown_currency(void);
31119 /* @internal */
31120 export function ParseError_unknown_currency(): number {
31121         if(!isWasmInitialized) {
31122                 throw new Error("initializeWasm() must be awaited first!");
31123         }
31124         const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
31125         return nativeResponseValue;
31126 }
31127         // struct LDKParseError ParseError_unknown_si_prefix(void);
31128 /* @internal */
31129 export function ParseError_unknown_si_prefix(): number {
31130         if(!isWasmInitialized) {
31131                 throw new Error("initializeWasm() must be awaited first!");
31132         }
31133         const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
31134         return nativeResponseValue;
31135 }
31136         // struct LDKParseError ParseError_malformed_hrp(void);
31137 /* @internal */
31138 export function ParseError_malformed_hrp(): number {
31139         if(!isWasmInitialized) {
31140                 throw new Error("initializeWasm() must be awaited first!");
31141         }
31142         const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
31143         return nativeResponseValue;
31144 }
31145         // struct LDKParseError ParseError_too_short_data_part(void);
31146 /* @internal */
31147 export function ParseError_too_short_data_part(): number {
31148         if(!isWasmInitialized) {
31149                 throw new Error("initializeWasm() must be awaited first!");
31150         }
31151         const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
31152         return nativeResponseValue;
31153 }
31154         // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
31155 /* @internal */
31156 export function ParseError_unexpected_end_of_tagged_fields(): number {
31157         if(!isWasmInitialized) {
31158                 throw new Error("initializeWasm() must be awaited first!");
31159         }
31160         const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
31161         return nativeResponseValue;
31162 }
31163         // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
31164 /* @internal */
31165 export function ParseError_description_decode_error(a: number): number {
31166         if(!isWasmInitialized) {
31167                 throw new Error("initializeWasm() must be awaited first!");
31168         }
31169         const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
31170         return nativeResponseValue;
31171 }
31172         // struct LDKParseError ParseError_padding_error(void);
31173 /* @internal */
31174 export function ParseError_padding_error(): number {
31175         if(!isWasmInitialized) {
31176                 throw new Error("initializeWasm() must be awaited first!");
31177         }
31178         const nativeResponseValue = wasm.TS_ParseError_padding_error();
31179         return nativeResponseValue;
31180 }
31181         // struct LDKParseError ParseError_integer_overflow_error(void);
31182 /* @internal */
31183 export function ParseError_integer_overflow_error(): number {
31184         if(!isWasmInitialized) {
31185                 throw new Error("initializeWasm() must be awaited first!");
31186         }
31187         const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
31188         return nativeResponseValue;
31189 }
31190         // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
31191 /* @internal */
31192 export function ParseError_invalid_seg_wit_program_length(): number {
31193         if(!isWasmInitialized) {
31194                 throw new Error("initializeWasm() must be awaited first!");
31195         }
31196         const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
31197         return nativeResponseValue;
31198 }
31199         // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
31200 /* @internal */
31201 export function ParseError_invalid_pub_key_hash_length(): number {
31202         if(!isWasmInitialized) {
31203                 throw new Error("initializeWasm() must be awaited first!");
31204         }
31205         const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
31206         return nativeResponseValue;
31207 }
31208         // struct LDKParseError ParseError_invalid_script_hash_length(void);
31209 /* @internal */
31210 export function ParseError_invalid_script_hash_length(): number {
31211         if(!isWasmInitialized) {
31212                 throw new Error("initializeWasm() must be awaited first!");
31213         }
31214         const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
31215         return nativeResponseValue;
31216 }
31217         // struct LDKParseError ParseError_invalid_recovery_id(void);
31218 /* @internal */
31219 export function ParseError_invalid_recovery_id(): number {
31220         if(!isWasmInitialized) {
31221                 throw new Error("initializeWasm() must be awaited first!");
31222         }
31223         const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
31224         return nativeResponseValue;
31225 }
31226         // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
31227 /* @internal */
31228 export function ParseError_invalid_slice_length(a: number): number {
31229         if(!isWasmInitialized) {
31230                 throw new Error("initializeWasm() must be awaited first!");
31231         }
31232         const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
31233         return nativeResponseValue;
31234 }
31235         // struct LDKParseError ParseError_skip(void);
31236 /* @internal */
31237 export function ParseError_skip(): number {
31238         if(!isWasmInitialized) {
31239                 throw new Error("initializeWasm() must be awaited first!");
31240         }
31241         const nativeResponseValue = wasm.TS_ParseError_skip();
31242         return nativeResponseValue;
31243 }
31244         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
31245 /* @internal */
31246 export function ParseOrSemanticError_free(this_ptr: number): void {
31247         if(!isWasmInitialized) {
31248                 throw new Error("initializeWasm() must be awaited first!");
31249         }
31250         const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
31251         // debug statements here
31252 }
31253         // uintptr_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
31254 /* @internal */
31255 export function ParseOrSemanticError_clone_ptr(arg: number): number {
31256         if(!isWasmInitialized) {
31257                 throw new Error("initializeWasm() must be awaited first!");
31258         }
31259         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
31260         return nativeResponseValue;
31261 }
31262         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
31263 /* @internal */
31264 export function ParseOrSemanticError_clone(orig: number): number {
31265         if(!isWasmInitialized) {
31266                 throw new Error("initializeWasm() must be awaited first!");
31267         }
31268         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
31269         return nativeResponseValue;
31270 }
31271         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
31272 /* @internal */
31273 export function ParseOrSemanticError_parse_error(a: number): number {
31274         if(!isWasmInitialized) {
31275                 throw new Error("initializeWasm() must be awaited first!");
31276         }
31277         const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
31278         return nativeResponseValue;
31279 }
31280         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
31281 /* @internal */
31282 export function ParseOrSemanticError_semantic_error(a: SemanticError): number {
31283         if(!isWasmInitialized) {
31284                 throw new Error("initializeWasm() must be awaited first!");
31285         }
31286         const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);
31287         return nativeResponseValue;
31288 }
31289         // void Invoice_free(struct LDKInvoice this_obj);
31290 /* @internal */
31291 export function Invoice_free(this_obj: number): void {
31292         if(!isWasmInitialized) {
31293                 throw new Error("initializeWasm() must be awaited first!");
31294         }
31295         const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
31296         // debug statements here
31297 }
31298         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
31299 /* @internal */
31300 export function Invoice_eq(a: number, b: number): boolean {
31301         if(!isWasmInitialized) {
31302                 throw new Error("initializeWasm() must be awaited first!");
31303         }
31304         const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
31305         return nativeResponseValue;
31306 }
31307         // uintptr_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
31308 /* @internal */
31309 export function Invoice_clone_ptr(arg: number): number {
31310         if(!isWasmInitialized) {
31311                 throw new Error("initializeWasm() must be awaited first!");
31312         }
31313         const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
31314         return nativeResponseValue;
31315 }
31316         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
31317 /* @internal */
31318 export function Invoice_clone(orig: number): number {
31319         if(!isWasmInitialized) {
31320                 throw new Error("initializeWasm() must be awaited first!");
31321         }
31322         const nativeResponseValue = wasm.TS_Invoice_clone(orig);
31323         return nativeResponseValue;
31324 }
31325         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
31326 /* @internal */
31327 export function SignedRawInvoice_free(this_obj: number): void {
31328         if(!isWasmInitialized) {
31329                 throw new Error("initializeWasm() must be awaited first!");
31330         }
31331         const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
31332         // debug statements here
31333 }
31334         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
31335 /* @internal */
31336 export function SignedRawInvoice_eq(a: number, b: number): boolean {
31337         if(!isWasmInitialized) {
31338                 throw new Error("initializeWasm() must be awaited first!");
31339         }
31340         const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
31341         return nativeResponseValue;
31342 }
31343         // uintptr_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
31344 /* @internal */
31345 export function SignedRawInvoice_clone_ptr(arg: number): number {
31346         if(!isWasmInitialized) {
31347                 throw new Error("initializeWasm() must be awaited first!");
31348         }
31349         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
31350         return nativeResponseValue;
31351 }
31352         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
31353 /* @internal */
31354 export function SignedRawInvoice_clone(orig: number): number {
31355         if(!isWasmInitialized) {
31356                 throw new Error("initializeWasm() must be awaited first!");
31357         }
31358         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
31359         return nativeResponseValue;
31360 }
31361         // void RawInvoice_free(struct LDKRawInvoice this_obj);
31362 /* @internal */
31363 export function RawInvoice_free(this_obj: number): void {
31364         if(!isWasmInitialized) {
31365                 throw new Error("initializeWasm() must be awaited first!");
31366         }
31367         const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
31368         // debug statements here
31369 }
31370         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
31371 /* @internal */
31372 export function RawInvoice_get_data(this_ptr: number): number {
31373         if(!isWasmInitialized) {
31374                 throw new Error("initializeWasm() must be awaited first!");
31375         }
31376         const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
31377         return nativeResponseValue;
31378 }
31379         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
31380 /* @internal */
31381 export function RawInvoice_set_data(this_ptr: number, val: number): void {
31382         if(!isWasmInitialized) {
31383                 throw new Error("initializeWasm() must be awaited first!");
31384         }
31385         const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
31386         // debug statements here
31387 }
31388         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
31389 /* @internal */
31390 export function RawInvoice_eq(a: number, b: number): boolean {
31391         if(!isWasmInitialized) {
31392                 throw new Error("initializeWasm() must be awaited first!");
31393         }
31394         const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
31395         return nativeResponseValue;
31396 }
31397         // uintptr_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
31398 /* @internal */
31399 export function RawInvoice_clone_ptr(arg: number): number {
31400         if(!isWasmInitialized) {
31401                 throw new Error("initializeWasm() must be awaited first!");
31402         }
31403         const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
31404         return nativeResponseValue;
31405 }
31406         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
31407 /* @internal */
31408 export function RawInvoice_clone(orig: number): number {
31409         if(!isWasmInitialized) {
31410                 throw new Error("initializeWasm() must be awaited first!");
31411         }
31412         const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
31413         return nativeResponseValue;
31414 }
31415         // void RawDataPart_free(struct LDKRawDataPart this_obj);
31416 /* @internal */
31417 export function RawDataPart_free(this_obj: number): void {
31418         if(!isWasmInitialized) {
31419                 throw new Error("initializeWasm() must be awaited first!");
31420         }
31421         const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
31422         // debug statements here
31423 }
31424         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
31425 /* @internal */
31426 export function RawDataPart_get_timestamp(this_ptr: number): number {
31427         if(!isWasmInitialized) {
31428                 throw new Error("initializeWasm() must be awaited first!");
31429         }
31430         const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
31431         return nativeResponseValue;
31432 }
31433         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
31434 /* @internal */
31435 export function RawDataPart_set_timestamp(this_ptr: number, val: number): void {
31436         if(!isWasmInitialized) {
31437                 throw new Error("initializeWasm() must be awaited first!");
31438         }
31439         const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
31440         // debug statements here
31441 }
31442         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
31443 /* @internal */
31444 export function RawDataPart_eq(a: number, b: number): boolean {
31445         if(!isWasmInitialized) {
31446                 throw new Error("initializeWasm() must be awaited first!");
31447         }
31448         const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
31449         return nativeResponseValue;
31450 }
31451         // uintptr_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
31452 /* @internal */
31453 export function RawDataPart_clone_ptr(arg: number): number {
31454         if(!isWasmInitialized) {
31455                 throw new Error("initializeWasm() must be awaited first!");
31456         }
31457         const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
31458         return nativeResponseValue;
31459 }
31460         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
31461 /* @internal */
31462 export function RawDataPart_clone(orig: number): number {
31463         if(!isWasmInitialized) {
31464                 throw new Error("initializeWasm() must be awaited first!");
31465         }
31466         const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
31467         return nativeResponseValue;
31468 }
31469         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
31470 /* @internal */
31471 export function PositiveTimestamp_free(this_obj: number): void {
31472         if(!isWasmInitialized) {
31473                 throw new Error("initializeWasm() must be awaited first!");
31474         }
31475         const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
31476         // debug statements here
31477 }
31478         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
31479 /* @internal */
31480 export function PositiveTimestamp_eq(a: number, b: number): boolean {
31481         if(!isWasmInitialized) {
31482                 throw new Error("initializeWasm() must be awaited first!");
31483         }
31484         const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
31485         return nativeResponseValue;
31486 }
31487         // uintptr_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
31488 /* @internal */
31489 export function PositiveTimestamp_clone_ptr(arg: number): number {
31490         if(!isWasmInitialized) {
31491                 throw new Error("initializeWasm() must be awaited first!");
31492         }
31493         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
31494         return nativeResponseValue;
31495 }
31496         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
31497 /* @internal */
31498 export function PositiveTimestamp_clone(orig: number): number {
31499         if(!isWasmInitialized) {
31500                 throw new Error("initializeWasm() must be awaited first!");
31501         }
31502         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
31503         return nativeResponseValue;
31504 }
31505         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
31506 /* @internal */
31507 export function SiPrefix_clone(orig: number): SiPrefix {
31508         if(!isWasmInitialized) {
31509                 throw new Error("initializeWasm() must be awaited first!");
31510         }
31511         const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
31512         return nativeResponseValue;
31513 }
31514         // enum LDKSiPrefix SiPrefix_milli(void);
31515 /* @internal */
31516 export function SiPrefix_milli(): SiPrefix {
31517         if(!isWasmInitialized) {
31518                 throw new Error("initializeWasm() must be awaited first!");
31519         }
31520         const nativeResponseValue = wasm.TS_SiPrefix_milli();
31521         return nativeResponseValue;
31522 }
31523         // enum LDKSiPrefix SiPrefix_micro(void);
31524 /* @internal */
31525 export function SiPrefix_micro(): SiPrefix {
31526         if(!isWasmInitialized) {
31527                 throw new Error("initializeWasm() must be awaited first!");
31528         }
31529         const nativeResponseValue = wasm.TS_SiPrefix_micro();
31530         return nativeResponseValue;
31531 }
31532         // enum LDKSiPrefix SiPrefix_nano(void);
31533 /* @internal */
31534 export function SiPrefix_nano(): SiPrefix {
31535         if(!isWasmInitialized) {
31536                 throw new Error("initializeWasm() must be awaited first!");
31537         }
31538         const nativeResponseValue = wasm.TS_SiPrefix_nano();
31539         return nativeResponseValue;
31540 }
31541         // enum LDKSiPrefix SiPrefix_pico(void);
31542 /* @internal */
31543 export function SiPrefix_pico(): SiPrefix {
31544         if(!isWasmInitialized) {
31545                 throw new Error("initializeWasm() must be awaited first!");
31546         }
31547         const nativeResponseValue = wasm.TS_SiPrefix_pico();
31548         return nativeResponseValue;
31549 }
31550         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
31551 /* @internal */
31552 export function SiPrefix_eq(a: number, b: number): boolean {
31553         if(!isWasmInitialized) {
31554                 throw new Error("initializeWasm() must be awaited first!");
31555         }
31556         const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
31557         return nativeResponseValue;
31558 }
31559         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
31560 /* @internal */
31561 export function SiPrefix_multiplier(this_arg: number): bigint {
31562         if(!isWasmInitialized) {
31563                 throw new Error("initializeWasm() must be awaited first!");
31564         }
31565         const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
31566         return nativeResponseValue;
31567 }
31568         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
31569 /* @internal */
31570 export function Currency_clone(orig: number): Currency {
31571         if(!isWasmInitialized) {
31572                 throw new Error("initializeWasm() must be awaited first!");
31573         }
31574         const nativeResponseValue = wasm.TS_Currency_clone(orig);
31575         return nativeResponseValue;
31576 }
31577         // enum LDKCurrency Currency_bitcoin(void);
31578 /* @internal */
31579 export function Currency_bitcoin(): Currency {
31580         if(!isWasmInitialized) {
31581                 throw new Error("initializeWasm() must be awaited first!");
31582         }
31583         const nativeResponseValue = wasm.TS_Currency_bitcoin();
31584         return nativeResponseValue;
31585 }
31586         // enum LDKCurrency Currency_bitcoin_testnet(void);
31587 /* @internal */
31588 export function Currency_bitcoin_testnet(): Currency {
31589         if(!isWasmInitialized) {
31590                 throw new Error("initializeWasm() must be awaited first!");
31591         }
31592         const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
31593         return nativeResponseValue;
31594 }
31595         // enum LDKCurrency Currency_regtest(void);
31596 /* @internal */
31597 export function Currency_regtest(): Currency {
31598         if(!isWasmInitialized) {
31599                 throw new Error("initializeWasm() must be awaited first!");
31600         }
31601         const nativeResponseValue = wasm.TS_Currency_regtest();
31602         return nativeResponseValue;
31603 }
31604         // enum LDKCurrency Currency_simnet(void);
31605 /* @internal */
31606 export function Currency_simnet(): Currency {
31607         if(!isWasmInitialized) {
31608                 throw new Error("initializeWasm() must be awaited first!");
31609         }
31610         const nativeResponseValue = wasm.TS_Currency_simnet();
31611         return nativeResponseValue;
31612 }
31613         // enum LDKCurrency Currency_signet(void);
31614 /* @internal */
31615 export function Currency_signet(): Currency {
31616         if(!isWasmInitialized) {
31617                 throw new Error("initializeWasm() must be awaited first!");
31618         }
31619         const nativeResponseValue = wasm.TS_Currency_signet();
31620         return nativeResponseValue;
31621 }
31622         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
31623 /* @internal */
31624 export function Currency_hash(o: number): bigint {
31625         if(!isWasmInitialized) {
31626                 throw new Error("initializeWasm() must be awaited first!");
31627         }
31628         const nativeResponseValue = wasm.TS_Currency_hash(o);
31629         return nativeResponseValue;
31630 }
31631         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
31632 /* @internal */
31633 export function Currency_eq(a: number, b: number): boolean {
31634         if(!isWasmInitialized) {
31635                 throw new Error("initializeWasm() must be awaited first!");
31636         }
31637         const nativeResponseValue = wasm.TS_Currency_eq(a, b);
31638         return nativeResponseValue;
31639 }
31640         // void Sha256_free(struct LDKSha256 this_obj);
31641 /* @internal */
31642 export function Sha256_free(this_obj: number): void {
31643         if(!isWasmInitialized) {
31644                 throw new Error("initializeWasm() must be awaited first!");
31645         }
31646         const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
31647         // debug statements here
31648 }
31649         // uintptr_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
31650 /* @internal */
31651 export function Sha256_clone_ptr(arg: number): number {
31652         if(!isWasmInitialized) {
31653                 throw new Error("initializeWasm() must be awaited first!");
31654         }
31655         const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
31656         return nativeResponseValue;
31657 }
31658         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
31659 /* @internal */
31660 export function Sha256_clone(orig: number): number {
31661         if(!isWasmInitialized) {
31662                 throw new Error("initializeWasm() must be awaited first!");
31663         }
31664         const nativeResponseValue = wasm.TS_Sha256_clone(orig);
31665         return nativeResponseValue;
31666 }
31667         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
31668 /* @internal */
31669 export function Sha256_hash(o: number): bigint {
31670         if(!isWasmInitialized) {
31671                 throw new Error("initializeWasm() must be awaited first!");
31672         }
31673         const nativeResponseValue = wasm.TS_Sha256_hash(o);
31674         return nativeResponseValue;
31675 }
31676         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
31677 /* @internal */
31678 export function Sha256_eq(a: number, b: number): boolean {
31679         if(!isWasmInitialized) {
31680                 throw new Error("initializeWasm() must be awaited first!");
31681         }
31682         const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
31683         return nativeResponseValue;
31684 }
31685         // void Description_free(struct LDKDescription this_obj);
31686 /* @internal */
31687 export function Description_free(this_obj: number): void {
31688         if(!isWasmInitialized) {
31689                 throw new Error("initializeWasm() must be awaited first!");
31690         }
31691         const nativeResponseValue = wasm.TS_Description_free(this_obj);
31692         // debug statements here
31693 }
31694         // uintptr_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
31695 /* @internal */
31696 export function Description_clone_ptr(arg: number): number {
31697         if(!isWasmInitialized) {
31698                 throw new Error("initializeWasm() must be awaited first!");
31699         }
31700         const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
31701         return nativeResponseValue;
31702 }
31703         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
31704 /* @internal */
31705 export function Description_clone(orig: number): number {
31706         if(!isWasmInitialized) {
31707                 throw new Error("initializeWasm() must be awaited first!");
31708         }
31709         const nativeResponseValue = wasm.TS_Description_clone(orig);
31710         return nativeResponseValue;
31711 }
31712         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
31713 /* @internal */
31714 export function Description_hash(o: number): bigint {
31715         if(!isWasmInitialized) {
31716                 throw new Error("initializeWasm() must be awaited first!");
31717         }
31718         const nativeResponseValue = wasm.TS_Description_hash(o);
31719         return nativeResponseValue;
31720 }
31721         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
31722 /* @internal */
31723 export function Description_eq(a: number, b: number): boolean {
31724         if(!isWasmInitialized) {
31725                 throw new Error("initializeWasm() must be awaited first!");
31726         }
31727         const nativeResponseValue = wasm.TS_Description_eq(a, b);
31728         return nativeResponseValue;
31729 }
31730         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
31731 /* @internal */
31732 export function PayeePubKey_free(this_obj: number): void {
31733         if(!isWasmInitialized) {
31734                 throw new Error("initializeWasm() must be awaited first!");
31735         }
31736         const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
31737         // debug statements here
31738 }
31739         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
31740 /* @internal */
31741 export function PayeePubKey_get_a(this_ptr: number): number {
31742         if(!isWasmInitialized) {
31743                 throw new Error("initializeWasm() must be awaited first!");
31744         }
31745         const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
31746         return nativeResponseValue;
31747 }
31748         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
31749 /* @internal */
31750 export function PayeePubKey_set_a(this_ptr: number, val: number): void {
31751         if(!isWasmInitialized) {
31752                 throw new Error("initializeWasm() must be awaited first!");
31753         }
31754         const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
31755         // debug statements here
31756 }
31757         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
31758 /* @internal */
31759 export function PayeePubKey_new(a_arg: number): number {
31760         if(!isWasmInitialized) {
31761                 throw new Error("initializeWasm() must be awaited first!");
31762         }
31763         const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
31764         return nativeResponseValue;
31765 }
31766         // uintptr_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
31767 /* @internal */
31768 export function PayeePubKey_clone_ptr(arg: number): number {
31769         if(!isWasmInitialized) {
31770                 throw new Error("initializeWasm() must be awaited first!");
31771         }
31772         const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
31773         return nativeResponseValue;
31774 }
31775         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
31776 /* @internal */
31777 export function PayeePubKey_clone(orig: number): number {
31778         if(!isWasmInitialized) {
31779                 throw new Error("initializeWasm() must be awaited first!");
31780         }
31781         const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
31782         return nativeResponseValue;
31783 }
31784         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
31785 /* @internal */
31786 export function PayeePubKey_hash(o: number): bigint {
31787         if(!isWasmInitialized) {
31788                 throw new Error("initializeWasm() must be awaited first!");
31789         }
31790         const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
31791         return nativeResponseValue;
31792 }
31793         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
31794 /* @internal */
31795 export function PayeePubKey_eq(a: number, b: number): boolean {
31796         if(!isWasmInitialized) {
31797                 throw new Error("initializeWasm() must be awaited first!");
31798         }
31799         const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
31800         return nativeResponseValue;
31801 }
31802         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
31803 /* @internal */
31804 export function ExpiryTime_free(this_obj: number): void {
31805         if(!isWasmInitialized) {
31806                 throw new Error("initializeWasm() must be awaited first!");
31807         }
31808         const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
31809         // debug statements here
31810 }
31811         // uintptr_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
31812 /* @internal */
31813 export function ExpiryTime_clone_ptr(arg: number): number {
31814         if(!isWasmInitialized) {
31815                 throw new Error("initializeWasm() must be awaited first!");
31816         }
31817         const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
31818         return nativeResponseValue;
31819 }
31820         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
31821 /* @internal */
31822 export function ExpiryTime_clone(orig: number): number {
31823         if(!isWasmInitialized) {
31824                 throw new Error("initializeWasm() must be awaited first!");
31825         }
31826         const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
31827         return nativeResponseValue;
31828 }
31829         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
31830 /* @internal */
31831 export function ExpiryTime_hash(o: number): bigint {
31832         if(!isWasmInitialized) {
31833                 throw new Error("initializeWasm() must be awaited first!");
31834         }
31835         const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
31836         return nativeResponseValue;
31837 }
31838         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
31839 /* @internal */
31840 export function ExpiryTime_eq(a: number, b: number): boolean {
31841         if(!isWasmInitialized) {
31842                 throw new Error("initializeWasm() must be awaited first!");
31843         }
31844         const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
31845         return nativeResponseValue;
31846 }
31847         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
31848 /* @internal */
31849 export function MinFinalCltvExpiry_free(this_obj: number): void {
31850         if(!isWasmInitialized) {
31851                 throw new Error("initializeWasm() must be awaited first!");
31852         }
31853         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_free(this_obj);
31854         // debug statements here
31855 }
31856         // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
31857 /* @internal */
31858 export function MinFinalCltvExpiry_get_a(this_ptr: number): bigint {
31859         if(!isWasmInitialized) {
31860                 throw new Error("initializeWasm() must be awaited first!");
31861         }
31862         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_get_a(this_ptr);
31863         return nativeResponseValue;
31864 }
31865         // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
31866 /* @internal */
31867 export function MinFinalCltvExpiry_set_a(this_ptr: number, val: bigint): void {
31868         if(!isWasmInitialized) {
31869                 throw new Error("initializeWasm() must be awaited first!");
31870         }
31871         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_set_a(this_ptr, val);
31872         // debug statements here
31873 }
31874         // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
31875 /* @internal */
31876 export function MinFinalCltvExpiry_new(a_arg: bigint): number {
31877         if(!isWasmInitialized) {
31878                 throw new Error("initializeWasm() must be awaited first!");
31879         }
31880         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_new(a_arg);
31881         return nativeResponseValue;
31882 }
31883         // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
31884 /* @internal */
31885 export function MinFinalCltvExpiry_clone_ptr(arg: number): number {
31886         if(!isWasmInitialized) {
31887                 throw new Error("initializeWasm() must be awaited first!");
31888         }
31889         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone_ptr(arg);
31890         return nativeResponseValue;
31891 }
31892         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
31893 /* @internal */
31894 export function MinFinalCltvExpiry_clone(orig: number): number {
31895         if(!isWasmInitialized) {
31896                 throw new Error("initializeWasm() must be awaited first!");
31897         }
31898         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone(orig);
31899         return nativeResponseValue;
31900 }
31901         // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
31902 /* @internal */
31903 export function MinFinalCltvExpiry_hash(o: number): bigint {
31904         if(!isWasmInitialized) {
31905                 throw new Error("initializeWasm() must be awaited first!");
31906         }
31907         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_hash(o);
31908         return nativeResponseValue;
31909 }
31910         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
31911 /* @internal */
31912 export function MinFinalCltvExpiry_eq(a: number, b: number): boolean {
31913         if(!isWasmInitialized) {
31914                 throw new Error("initializeWasm() must be awaited first!");
31915         }
31916         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_eq(a, b);
31917         return nativeResponseValue;
31918 }
31919         // void Fallback_free(struct LDKFallback this_ptr);
31920 /* @internal */
31921 export function Fallback_free(this_ptr: number): void {
31922         if(!isWasmInitialized) {
31923                 throw new Error("initializeWasm() must be awaited first!");
31924         }
31925         const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
31926         // debug statements here
31927 }
31928         // uintptr_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
31929 /* @internal */
31930 export function Fallback_clone_ptr(arg: number): number {
31931         if(!isWasmInitialized) {
31932                 throw new Error("initializeWasm() must be awaited first!");
31933         }
31934         const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
31935         return nativeResponseValue;
31936 }
31937         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
31938 /* @internal */
31939 export function Fallback_clone(orig: number): number {
31940         if(!isWasmInitialized) {
31941                 throw new Error("initializeWasm() must be awaited first!");
31942         }
31943         const nativeResponseValue = wasm.TS_Fallback_clone(orig);
31944         return nativeResponseValue;
31945 }
31946         // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
31947 /* @internal */
31948 export function Fallback_seg_wit_program(version: number, program: number): number {
31949         if(!isWasmInitialized) {
31950                 throw new Error("initializeWasm() must be awaited first!");
31951         }
31952         const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
31953         return nativeResponseValue;
31954 }
31955         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
31956 /* @internal */
31957 export function Fallback_pub_key_hash(a: number): number {
31958         if(!isWasmInitialized) {
31959                 throw new Error("initializeWasm() must be awaited first!");
31960         }
31961         const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
31962         return nativeResponseValue;
31963 }
31964         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
31965 /* @internal */
31966 export function Fallback_script_hash(a: number): number {
31967         if(!isWasmInitialized) {
31968                 throw new Error("initializeWasm() must be awaited first!");
31969         }
31970         const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
31971         return nativeResponseValue;
31972 }
31973         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
31974 /* @internal */
31975 export function Fallback_hash(o: number): bigint {
31976         if(!isWasmInitialized) {
31977                 throw new Error("initializeWasm() must be awaited first!");
31978         }
31979         const nativeResponseValue = wasm.TS_Fallback_hash(o);
31980         return nativeResponseValue;
31981 }
31982         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
31983 /* @internal */
31984 export function Fallback_eq(a: number, b: number): boolean {
31985         if(!isWasmInitialized) {
31986                 throw new Error("initializeWasm() must be awaited first!");
31987         }
31988         const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
31989         return nativeResponseValue;
31990 }
31991         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
31992 /* @internal */
31993 export function InvoiceSignature_free(this_obj: number): void {
31994         if(!isWasmInitialized) {
31995                 throw new Error("initializeWasm() must be awaited first!");
31996         }
31997         const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
31998         // debug statements here
31999 }
32000         // uintptr_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
32001 /* @internal */
32002 export function InvoiceSignature_clone_ptr(arg: number): number {
32003         if(!isWasmInitialized) {
32004                 throw new Error("initializeWasm() must be awaited first!");
32005         }
32006         const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
32007         return nativeResponseValue;
32008 }
32009         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
32010 /* @internal */
32011 export function InvoiceSignature_clone(orig: number): number {
32012         if(!isWasmInitialized) {
32013                 throw new Error("initializeWasm() must be awaited first!");
32014         }
32015         const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
32016         return nativeResponseValue;
32017 }
32018         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
32019 /* @internal */
32020 export function InvoiceSignature_eq(a: number, b: number): boolean {
32021         if(!isWasmInitialized) {
32022                 throw new Error("initializeWasm() must be awaited first!");
32023         }
32024         const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
32025         return nativeResponseValue;
32026 }
32027         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
32028 /* @internal */
32029 export function PrivateRoute_free(this_obj: number): void {
32030         if(!isWasmInitialized) {
32031                 throw new Error("initializeWasm() must be awaited first!");
32032         }
32033         const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
32034         // debug statements here
32035 }
32036         // uintptr_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
32037 /* @internal */
32038 export function PrivateRoute_clone_ptr(arg: number): number {
32039         if(!isWasmInitialized) {
32040                 throw new Error("initializeWasm() must be awaited first!");
32041         }
32042         const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
32043         return nativeResponseValue;
32044 }
32045         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
32046 /* @internal */
32047 export function PrivateRoute_clone(orig: number): number {
32048         if(!isWasmInitialized) {
32049                 throw new Error("initializeWasm() must be awaited first!");
32050         }
32051         const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
32052         return nativeResponseValue;
32053 }
32054         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
32055 /* @internal */
32056 export function PrivateRoute_hash(o: number): bigint {
32057         if(!isWasmInitialized) {
32058                 throw new Error("initializeWasm() must be awaited first!");
32059         }
32060         const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
32061         return nativeResponseValue;
32062 }
32063         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
32064 /* @internal */
32065 export function PrivateRoute_eq(a: number, b: number): boolean {
32066         if(!isWasmInitialized) {
32067                 throw new Error("initializeWasm() must be awaited first!");
32068         }
32069         const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
32070         return nativeResponseValue;
32071 }
32072         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
32073 /* @internal */
32074 export function SignedRawInvoice_into_parts(this_arg: number): number {
32075         if(!isWasmInitialized) {
32076                 throw new Error("initializeWasm() must be awaited first!");
32077         }
32078         const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
32079         return nativeResponseValue;
32080 }
32081         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32082 /* @internal */
32083 export function SignedRawInvoice_raw_invoice(this_arg: number): number {
32084         if(!isWasmInitialized) {
32085                 throw new Error("initializeWasm() must be awaited first!");
32086         }
32087         const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
32088         return nativeResponseValue;
32089 }
32090         // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
32091 /* @internal */
32092 export function SignedRawInvoice_hash(this_arg: number): number {
32093         if(!isWasmInitialized) {
32094                 throw new Error("initializeWasm() must be awaited first!");
32095         }
32096         const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(this_arg);
32097         return nativeResponseValue;
32098 }
32099         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32100 /* @internal */
32101 export function SignedRawInvoice_signature(this_arg: number): number {
32102         if(!isWasmInitialized) {
32103                 throw new Error("initializeWasm() must be awaited first!");
32104         }
32105         const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
32106         return nativeResponseValue;
32107 }
32108         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32109 /* @internal */
32110 export function SignedRawInvoice_recover_payee_pub_key(this_arg: number): number {
32111         if(!isWasmInitialized) {
32112                 throw new Error("initializeWasm() must be awaited first!");
32113         }
32114         const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
32115         return nativeResponseValue;
32116 }
32117         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32118 /* @internal */
32119 export function SignedRawInvoice_check_signature(this_arg: number): boolean {
32120         if(!isWasmInitialized) {
32121                 throw new Error("initializeWasm() must be awaited first!");
32122         }
32123         const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
32124         return nativeResponseValue;
32125 }
32126         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32127 /* @internal */
32128 export function RawInvoice_hash(this_arg: number): number {
32129         if(!isWasmInitialized) {
32130                 throw new Error("initializeWasm() must be awaited first!");
32131         }
32132         const nativeResponseValue = wasm.TS_RawInvoice_hash(this_arg);
32133         return nativeResponseValue;
32134 }
32135         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32136 /* @internal */
32137 export function RawInvoice_payment_hash(this_arg: number): number {
32138         if(!isWasmInitialized) {
32139                 throw new Error("initializeWasm() must be awaited first!");
32140         }
32141         const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
32142         return nativeResponseValue;
32143 }
32144         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32145 /* @internal */
32146 export function RawInvoice_description(this_arg: number): number {
32147         if(!isWasmInitialized) {
32148                 throw new Error("initializeWasm() must be awaited first!");
32149         }
32150         const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
32151         return nativeResponseValue;
32152 }
32153         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32154 /* @internal */
32155 export function RawInvoice_payee_pub_key(this_arg: number): number {
32156         if(!isWasmInitialized) {
32157                 throw new Error("initializeWasm() must be awaited first!");
32158         }
32159         const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
32160         return nativeResponseValue;
32161 }
32162         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32163 /* @internal */
32164 export function RawInvoice_description_hash(this_arg: number): number {
32165         if(!isWasmInitialized) {
32166                 throw new Error("initializeWasm() must be awaited first!");
32167         }
32168         const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
32169         return nativeResponseValue;
32170 }
32171         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32172 /* @internal */
32173 export function RawInvoice_expiry_time(this_arg: number): number {
32174         if(!isWasmInitialized) {
32175                 throw new Error("initializeWasm() must be awaited first!");
32176         }
32177         const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
32178         return nativeResponseValue;
32179 }
32180         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32181 /* @internal */
32182 export function RawInvoice_min_final_cltv_expiry(this_arg: number): number {
32183         if(!isWasmInitialized) {
32184                 throw new Error("initializeWasm() must be awaited first!");
32185         }
32186         const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry(this_arg);
32187         return nativeResponseValue;
32188 }
32189         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32190 /* @internal */
32191 export function RawInvoice_payment_secret(this_arg: number): number {
32192         if(!isWasmInitialized) {
32193                 throw new Error("initializeWasm() must be awaited first!");
32194         }
32195         const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
32196         return nativeResponseValue;
32197 }
32198         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32199 /* @internal */
32200 export function RawInvoice_features(this_arg: number): number {
32201         if(!isWasmInitialized) {
32202                 throw new Error("initializeWasm() must be awaited first!");
32203         }
32204         const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
32205         return nativeResponseValue;
32206 }
32207         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32208 /* @internal */
32209 export function RawInvoice_private_routes(this_arg: number): number {
32210         if(!isWasmInitialized) {
32211                 throw new Error("initializeWasm() must be awaited first!");
32212         }
32213         const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
32214         return nativeResponseValue;
32215 }
32216         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32217 /* @internal */
32218 export function RawInvoice_amount_pico_btc(this_arg: number): number {
32219         if(!isWasmInitialized) {
32220                 throw new Error("initializeWasm() must be awaited first!");
32221         }
32222         const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
32223         return nativeResponseValue;
32224 }
32225         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32226 /* @internal */
32227 export function RawInvoice_currency(this_arg: number): Currency {
32228         if(!isWasmInitialized) {
32229                 throw new Error("initializeWasm() must be awaited first!");
32230         }
32231         const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
32232         return nativeResponseValue;
32233 }
32234         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
32235 /* @internal */
32236 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): number {
32237         if(!isWasmInitialized) {
32238                 throw new Error("initializeWasm() must be awaited first!");
32239         }
32240         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
32241         return nativeResponseValue;
32242 }
32243         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
32244 /* @internal */
32245 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): number {
32246         if(!isWasmInitialized) {
32247                 throw new Error("initializeWasm() must be awaited first!");
32248         }
32249         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
32250         return nativeResponseValue;
32251 }
32252         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
32253 /* @internal */
32254 export function PositiveTimestamp_as_unix_timestamp(this_arg: number): bigint {
32255         if(!isWasmInitialized) {
32256                 throw new Error("initializeWasm() must be awaited first!");
32257         }
32258         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
32259         return nativeResponseValue;
32260 }
32261         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
32262 /* @internal */
32263 export function PositiveTimestamp_as_duration_since_epoch(this_arg: number): bigint {
32264         if(!isWasmInitialized) {
32265                 throw new Error("initializeWasm() must be awaited first!");
32266         }
32267         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
32268         return nativeResponseValue;
32269 }
32270         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
32271 /* @internal */
32272 export function Invoice_into_signed_raw(this_arg: number): number {
32273         if(!isWasmInitialized) {
32274                 throw new Error("initializeWasm() must be awaited first!");
32275         }
32276         const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
32277         return nativeResponseValue;
32278 }
32279         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
32280 /* @internal */
32281 export function Invoice_check_signature(this_arg: number): number {
32282         if(!isWasmInitialized) {
32283                 throw new Error("initializeWasm() must be awaited first!");
32284         }
32285         const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
32286         return nativeResponseValue;
32287 }
32288         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
32289 /* @internal */
32290 export function Invoice_from_signed(signed_invoice: number): number {
32291         if(!isWasmInitialized) {
32292                 throw new Error("initializeWasm() must be awaited first!");
32293         }
32294         const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
32295         return nativeResponseValue;
32296 }
32297         // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
32298 /* @internal */
32299 export function Invoice_duration_since_epoch(this_arg: number): bigint {
32300         if(!isWasmInitialized) {
32301                 throw new Error("initializeWasm() must be awaited first!");
32302         }
32303         const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
32304         return nativeResponseValue;
32305 }
32306         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
32307 /* @internal */
32308 export function Invoice_payment_hash(this_arg: number): number {
32309         if(!isWasmInitialized) {
32310                 throw new Error("initializeWasm() must be awaited first!");
32311         }
32312         const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
32313         return nativeResponseValue;
32314 }
32315         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
32316 /* @internal */
32317 export function Invoice_payee_pub_key(this_arg: number): number {
32318         if(!isWasmInitialized) {
32319                 throw new Error("initializeWasm() must be awaited first!");
32320         }
32321         const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
32322         return nativeResponseValue;
32323 }
32324         // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
32325 /* @internal */
32326 export function Invoice_payment_secret(this_arg: number): number {
32327         if(!isWasmInitialized) {
32328                 throw new Error("initializeWasm() must be awaited first!");
32329         }
32330         const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
32331         return nativeResponseValue;
32332 }
32333         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
32334 /* @internal */
32335 export function Invoice_features(this_arg: number): number {
32336         if(!isWasmInitialized) {
32337                 throw new Error("initializeWasm() must be awaited first!");
32338         }
32339         const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
32340         return nativeResponseValue;
32341 }
32342         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
32343 /* @internal */
32344 export function Invoice_recover_payee_pub_key(this_arg: number): number {
32345         if(!isWasmInitialized) {
32346                 throw new Error("initializeWasm() must be awaited first!");
32347         }
32348         const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
32349         return nativeResponseValue;
32350 }
32351         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
32352 /* @internal */
32353 export function Invoice_expiry_time(this_arg: number): bigint {
32354         if(!isWasmInitialized) {
32355                 throw new Error("initializeWasm() must be awaited first!");
32356         }
32357         const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
32358         return nativeResponseValue;
32359 }
32360         // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
32361 /* @internal */
32362 export function Invoice_would_expire(this_arg: number, at_time: bigint): boolean {
32363         if(!isWasmInitialized) {
32364                 throw new Error("initializeWasm() must be awaited first!");
32365         }
32366         const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
32367         return nativeResponseValue;
32368 }
32369         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
32370 /* @internal */
32371 export function Invoice_min_final_cltv_expiry(this_arg: number): bigint {
32372         if(!isWasmInitialized) {
32373                 throw new Error("initializeWasm() must be awaited first!");
32374         }
32375         const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry(this_arg);
32376         return nativeResponseValue;
32377 }
32378         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
32379 /* @internal */
32380 export function Invoice_private_routes(this_arg: number): number {
32381         if(!isWasmInitialized) {
32382                 throw new Error("initializeWasm() must be awaited first!");
32383         }
32384         const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
32385         return nativeResponseValue;
32386 }
32387         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
32388 /* @internal */
32389 export function Invoice_route_hints(this_arg: number): number {
32390         if(!isWasmInitialized) {
32391                 throw new Error("initializeWasm() must be awaited first!");
32392         }
32393         const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
32394         return nativeResponseValue;
32395 }
32396         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
32397 /* @internal */
32398 export function Invoice_currency(this_arg: number): Currency {
32399         if(!isWasmInitialized) {
32400                 throw new Error("initializeWasm() must be awaited first!");
32401         }
32402         const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
32403         return nativeResponseValue;
32404 }
32405         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
32406 /* @internal */
32407 export function Invoice_amount_milli_satoshis(this_arg: number): number {
32408         if(!isWasmInitialized) {
32409                 throw new Error("initializeWasm() must be awaited first!");
32410         }
32411         const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
32412         return nativeResponseValue;
32413 }
32414         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
32415 /* @internal */
32416 export function Description_new(description: number): number {
32417         if(!isWasmInitialized) {
32418                 throw new Error("initializeWasm() must be awaited first!");
32419         }
32420         const nativeResponseValue = wasm.TS_Description_new(description);
32421         return nativeResponseValue;
32422 }
32423         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
32424 /* @internal */
32425 export function Description_into_inner(this_arg: number): number {
32426         if(!isWasmInitialized) {
32427                 throw new Error("initializeWasm() must be awaited first!");
32428         }
32429         const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
32430         return nativeResponseValue;
32431 }
32432         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
32433 /* @internal */
32434 export function ExpiryTime_from_seconds(seconds: bigint): number {
32435         if(!isWasmInitialized) {
32436                 throw new Error("initializeWasm() must be awaited first!");
32437         }
32438         const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
32439         return nativeResponseValue;
32440 }
32441         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
32442 /* @internal */
32443 export function ExpiryTime_from_duration(duration: bigint): number {
32444         if(!isWasmInitialized) {
32445                 throw new Error("initializeWasm() must be awaited first!");
32446         }
32447         const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
32448         return nativeResponseValue;
32449 }
32450         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
32451 /* @internal */
32452 export function ExpiryTime_as_seconds(this_arg: number): bigint {
32453         if(!isWasmInitialized) {
32454                 throw new Error("initializeWasm() must be awaited first!");
32455         }
32456         const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
32457         return nativeResponseValue;
32458 }
32459         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
32460 /* @internal */
32461 export function ExpiryTime_as_duration(this_arg: number): bigint {
32462         if(!isWasmInitialized) {
32463                 throw new Error("initializeWasm() must be awaited first!");
32464         }
32465         const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
32466         return nativeResponseValue;
32467 }
32468         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
32469 /* @internal */
32470 export function PrivateRoute_new(hops: number): number {
32471         if(!isWasmInitialized) {
32472                 throw new Error("initializeWasm() must be awaited first!");
32473         }
32474         const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
32475         return nativeResponseValue;
32476 }
32477         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
32478 /* @internal */
32479 export function PrivateRoute_into_inner(this_arg: number): number {
32480         if(!isWasmInitialized) {
32481                 throw new Error("initializeWasm() must be awaited first!");
32482         }
32483         const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
32484         return nativeResponseValue;
32485 }
32486         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
32487 /* @internal */
32488 export function CreationError_clone(orig: number): CreationError {
32489         if(!isWasmInitialized) {
32490                 throw new Error("initializeWasm() must be awaited first!");
32491         }
32492         const nativeResponseValue = wasm.TS_CreationError_clone(orig);
32493         return nativeResponseValue;
32494 }
32495         // enum LDKCreationError CreationError_description_too_long(void);
32496 /* @internal */
32497 export function CreationError_description_too_long(): CreationError {
32498         if(!isWasmInitialized) {
32499                 throw new Error("initializeWasm() must be awaited first!");
32500         }
32501         const nativeResponseValue = wasm.TS_CreationError_description_too_long();
32502         return nativeResponseValue;
32503 }
32504         // enum LDKCreationError CreationError_route_too_long(void);
32505 /* @internal */
32506 export function CreationError_route_too_long(): CreationError {
32507         if(!isWasmInitialized) {
32508                 throw new Error("initializeWasm() must be awaited first!");
32509         }
32510         const nativeResponseValue = wasm.TS_CreationError_route_too_long();
32511         return nativeResponseValue;
32512 }
32513         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
32514 /* @internal */
32515 export function CreationError_timestamp_out_of_bounds(): CreationError {
32516         if(!isWasmInitialized) {
32517                 throw new Error("initializeWasm() must be awaited first!");
32518         }
32519         const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
32520         return nativeResponseValue;
32521 }
32522         // enum LDKCreationError CreationError_invalid_amount(void);
32523 /* @internal */
32524 export function CreationError_invalid_amount(): CreationError {
32525         if(!isWasmInitialized) {
32526                 throw new Error("initializeWasm() must be awaited first!");
32527         }
32528         const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
32529         return nativeResponseValue;
32530 }
32531         // enum LDKCreationError CreationError_missing_route_hints(void);
32532 /* @internal */
32533 export function CreationError_missing_route_hints(): CreationError {
32534         if(!isWasmInitialized) {
32535                 throw new Error("initializeWasm() must be awaited first!");
32536         }
32537         const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
32538         return nativeResponseValue;
32539 }
32540         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
32541 /* @internal */
32542 export function CreationError_eq(a: number, b: number): boolean {
32543         if(!isWasmInitialized) {
32544                 throw new Error("initializeWasm() must be awaited first!");
32545         }
32546         const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
32547         return nativeResponseValue;
32548 }
32549         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
32550 /* @internal */
32551 export function CreationError_to_str(o: number): number {
32552         if(!isWasmInitialized) {
32553                 throw new Error("initializeWasm() must be awaited first!");
32554         }
32555         const nativeResponseValue = wasm.TS_CreationError_to_str(o);
32556         return nativeResponseValue;
32557 }
32558         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
32559 /* @internal */
32560 export function SemanticError_clone(orig: number): SemanticError {
32561         if(!isWasmInitialized) {
32562                 throw new Error("initializeWasm() must be awaited first!");
32563         }
32564         const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
32565         return nativeResponseValue;
32566 }
32567         // enum LDKSemanticError SemanticError_no_payment_hash(void);
32568 /* @internal */
32569 export function SemanticError_no_payment_hash(): SemanticError {
32570         if(!isWasmInitialized) {
32571                 throw new Error("initializeWasm() must be awaited first!");
32572         }
32573         const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
32574         return nativeResponseValue;
32575 }
32576         // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
32577 /* @internal */
32578 export function SemanticError_multiple_payment_hashes(): SemanticError {
32579         if(!isWasmInitialized) {
32580                 throw new Error("initializeWasm() must be awaited first!");
32581         }
32582         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
32583         return nativeResponseValue;
32584 }
32585         // enum LDKSemanticError SemanticError_no_description(void);
32586 /* @internal */
32587 export function SemanticError_no_description(): SemanticError {
32588         if(!isWasmInitialized) {
32589                 throw new Error("initializeWasm() must be awaited first!");
32590         }
32591         const nativeResponseValue = wasm.TS_SemanticError_no_description();
32592         return nativeResponseValue;
32593 }
32594         // enum LDKSemanticError SemanticError_multiple_descriptions(void);
32595 /* @internal */
32596 export function SemanticError_multiple_descriptions(): SemanticError {
32597         if(!isWasmInitialized) {
32598                 throw new Error("initializeWasm() must be awaited first!");
32599         }
32600         const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
32601         return nativeResponseValue;
32602 }
32603         // enum LDKSemanticError SemanticError_no_payment_secret(void);
32604 /* @internal */
32605 export function SemanticError_no_payment_secret(): SemanticError {
32606         if(!isWasmInitialized) {
32607                 throw new Error("initializeWasm() must be awaited first!");
32608         }
32609         const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
32610         return nativeResponseValue;
32611 }
32612         // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
32613 /* @internal */
32614 export function SemanticError_multiple_payment_secrets(): SemanticError {
32615         if(!isWasmInitialized) {
32616                 throw new Error("initializeWasm() must be awaited first!");
32617         }
32618         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
32619         return nativeResponseValue;
32620 }
32621         // enum LDKSemanticError SemanticError_invalid_features(void);
32622 /* @internal */
32623 export function SemanticError_invalid_features(): SemanticError {
32624         if(!isWasmInitialized) {
32625                 throw new Error("initializeWasm() must be awaited first!");
32626         }
32627         const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
32628         return nativeResponseValue;
32629 }
32630         // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
32631 /* @internal */
32632 export function SemanticError_invalid_recovery_id(): SemanticError {
32633         if(!isWasmInitialized) {
32634                 throw new Error("initializeWasm() must be awaited first!");
32635         }
32636         const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
32637         return nativeResponseValue;
32638 }
32639         // enum LDKSemanticError SemanticError_invalid_signature(void);
32640 /* @internal */
32641 export function SemanticError_invalid_signature(): SemanticError {
32642         if(!isWasmInitialized) {
32643                 throw new Error("initializeWasm() must be awaited first!");
32644         }
32645         const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
32646         return nativeResponseValue;
32647 }
32648         // enum LDKSemanticError SemanticError_imprecise_amount(void);
32649 /* @internal */
32650 export function SemanticError_imprecise_amount(): SemanticError {
32651         if(!isWasmInitialized) {
32652                 throw new Error("initializeWasm() must be awaited first!");
32653         }
32654         const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
32655         return nativeResponseValue;
32656 }
32657         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
32658 /* @internal */
32659 export function SemanticError_eq(a: number, b: number): boolean {
32660         if(!isWasmInitialized) {
32661                 throw new Error("initializeWasm() must be awaited first!");
32662         }
32663         const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
32664         return nativeResponseValue;
32665 }
32666         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
32667 /* @internal */
32668 export function SemanticError_to_str(o: number): number {
32669         if(!isWasmInitialized) {
32670                 throw new Error("initializeWasm() must be awaited first!");
32671         }
32672         const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
32673         return nativeResponseValue;
32674 }
32675         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
32676 /* @internal */
32677 export function SignOrCreationError_free(this_ptr: number): void {
32678         if(!isWasmInitialized) {
32679                 throw new Error("initializeWasm() must be awaited first!");
32680         }
32681         const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
32682         // debug statements here
32683 }
32684         // uintptr_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
32685 /* @internal */
32686 export function SignOrCreationError_clone_ptr(arg: number): number {
32687         if(!isWasmInitialized) {
32688                 throw new Error("initializeWasm() must be awaited first!");
32689         }
32690         const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
32691         return nativeResponseValue;
32692 }
32693         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
32694 /* @internal */
32695 export function SignOrCreationError_clone(orig: number): number {
32696         if(!isWasmInitialized) {
32697                 throw new Error("initializeWasm() must be awaited first!");
32698         }
32699         const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
32700         return nativeResponseValue;
32701 }
32702         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
32703 /* @internal */
32704 export function SignOrCreationError_sign_error(): number {
32705         if(!isWasmInitialized) {
32706                 throw new Error("initializeWasm() must be awaited first!");
32707         }
32708         const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
32709         return nativeResponseValue;
32710 }
32711         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
32712 /* @internal */
32713 export function SignOrCreationError_creation_error(a: CreationError): number {
32714         if(!isWasmInitialized) {
32715                 throw new Error("initializeWasm() must be awaited first!");
32716         }
32717         const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
32718         return nativeResponseValue;
32719 }
32720         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
32721 /* @internal */
32722 export function SignOrCreationError_eq(a: number, b: number): boolean {
32723         if(!isWasmInitialized) {
32724                 throw new Error("initializeWasm() must be awaited first!");
32725         }
32726         const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
32727         return nativeResponseValue;
32728 }
32729         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
32730 /* @internal */
32731 export function SignOrCreationError_to_str(o: number): number {
32732         if(!isWasmInitialized) {
32733                 throw new Error("initializeWasm() must be awaited first!");
32734         }
32735         const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
32736         return nativeResponseValue;
32737 }
32738         // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
32739 /* @internal */
32740 export function InvoicePayer_free(this_obj: number): void {
32741         if(!isWasmInitialized) {
32742                 throw new Error("initializeWasm() must be awaited first!");
32743         }
32744         const nativeResponseValue = wasm.TS_InvoicePayer_free(this_obj);
32745         // debug statements here
32746 }
32747         // void Payer_free(struct LDKPayer this_ptr);
32748 /* @internal */
32749 export function Payer_free(this_ptr: number): void {
32750         if(!isWasmInitialized) {
32751                 throw new Error("initializeWasm() must be awaited first!");
32752         }
32753         const nativeResponseValue = wasm.TS_Payer_free(this_ptr);
32754         // debug statements here
32755 }
32756         // void Router_free(struct LDKRouter this_ptr);
32757 /* @internal */
32758 export function Router_free(this_ptr: number): void {
32759         if(!isWasmInitialized) {
32760                 throw new Error("initializeWasm() must be awaited first!");
32761         }
32762         const nativeResponseValue = wasm.TS_Router_free(this_ptr);
32763         // debug statements here
32764 }
32765         // void Retry_free(struct LDKRetry this_ptr);
32766 /* @internal */
32767 export function Retry_free(this_ptr: number): void {
32768         if(!isWasmInitialized) {
32769                 throw new Error("initializeWasm() must be awaited first!");
32770         }
32771         const nativeResponseValue = wasm.TS_Retry_free(this_ptr);
32772         // debug statements here
32773 }
32774         // uintptr_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
32775 /* @internal */
32776 export function Retry_clone_ptr(arg: number): number {
32777         if(!isWasmInitialized) {
32778                 throw new Error("initializeWasm() must be awaited first!");
32779         }
32780         const nativeResponseValue = wasm.TS_Retry_clone_ptr(arg);
32781         return nativeResponseValue;
32782 }
32783         // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
32784 /* @internal */
32785 export function Retry_clone(orig: number): number {
32786         if(!isWasmInitialized) {
32787                 throw new Error("initializeWasm() must be awaited first!");
32788         }
32789         const nativeResponseValue = wasm.TS_Retry_clone(orig);
32790         return nativeResponseValue;
32791 }
32792         // struct LDKRetry Retry_attempts(uintptr_t a);
32793 /* @internal */
32794 export function Retry_attempts(a: number): number {
32795         if(!isWasmInitialized) {
32796                 throw new Error("initializeWasm() must be awaited first!");
32797         }
32798         const nativeResponseValue = wasm.TS_Retry_attempts(a);
32799         return nativeResponseValue;
32800 }
32801         // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
32802 /* @internal */
32803 export function Retry_eq(a: number, b: number): boolean {
32804         if(!isWasmInitialized) {
32805                 throw new Error("initializeWasm() must be awaited first!");
32806         }
32807         const nativeResponseValue = wasm.TS_Retry_eq(a, b);
32808         return nativeResponseValue;
32809 }
32810         // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
32811 /* @internal */
32812 export function Retry_hash(o: number): bigint {
32813         if(!isWasmInitialized) {
32814                 throw new Error("initializeWasm() must be awaited first!");
32815         }
32816         const nativeResponseValue = wasm.TS_Retry_hash(o);
32817         return nativeResponseValue;
32818 }
32819         // void PaymentError_free(struct LDKPaymentError this_ptr);
32820 /* @internal */
32821 export function PaymentError_free(this_ptr: number): void {
32822         if(!isWasmInitialized) {
32823                 throw new Error("initializeWasm() must be awaited first!");
32824         }
32825         const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
32826         // debug statements here
32827 }
32828         // uintptr_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
32829 /* @internal */
32830 export function PaymentError_clone_ptr(arg: number): number {
32831         if(!isWasmInitialized) {
32832                 throw new Error("initializeWasm() must be awaited first!");
32833         }
32834         const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
32835         return nativeResponseValue;
32836 }
32837         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
32838 /* @internal */
32839 export function PaymentError_clone(orig: number): number {
32840         if(!isWasmInitialized) {
32841                 throw new Error("initializeWasm() must be awaited first!");
32842         }
32843         const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
32844         return nativeResponseValue;
32845 }
32846         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
32847 /* @internal */
32848 export function PaymentError_invoice(a: number): number {
32849         if(!isWasmInitialized) {
32850                 throw new Error("initializeWasm() must be awaited first!");
32851         }
32852         const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
32853         return nativeResponseValue;
32854 }
32855         // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
32856 /* @internal */
32857 export function PaymentError_routing(a: number): number {
32858         if(!isWasmInitialized) {
32859                 throw new Error("initializeWasm() must be awaited first!");
32860         }
32861         const nativeResponseValue = wasm.TS_PaymentError_routing(a);
32862         return nativeResponseValue;
32863 }
32864         // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
32865 /* @internal */
32866 export function PaymentError_sending(a: number): number {
32867         if(!isWasmInitialized) {
32868                 throw new Error("initializeWasm() must be awaited first!");
32869         }
32870         const nativeResponseValue = wasm.TS_PaymentError_sending(a);
32871         return nativeResponseValue;
32872 }
32873         // 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);
32874 /* @internal */
32875 export function InvoicePayer_new(payer: number, router: number, scorer: number, logger: number, event_handler: number, retry: number): number {
32876         if(!isWasmInitialized) {
32877                 throw new Error("initializeWasm() must be awaited first!");
32878         }
32879         const nativeResponseValue = wasm.TS_InvoicePayer_new(payer, router, scorer, logger, event_handler, retry);
32880         return nativeResponseValue;
32881 }
32882         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
32883 /* @internal */
32884 export function InvoicePayer_pay_invoice(this_arg: number, invoice: number): number {
32885         if(!isWasmInitialized) {
32886                 throw new Error("initializeWasm() must be awaited first!");
32887         }
32888         const nativeResponseValue = wasm.TS_InvoicePayer_pay_invoice(this_arg, invoice);
32889         return nativeResponseValue;
32890 }
32891         // 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);
32892 /* @internal */
32893 export function InvoicePayer_pay_zero_value_invoice(this_arg: number, invoice: number, amount_msats: bigint): number {
32894         if(!isWasmInitialized) {
32895                 throw new Error("initializeWasm() must be awaited first!");
32896         }
32897         const nativeResponseValue = wasm.TS_InvoicePayer_pay_zero_value_invoice(this_arg, invoice, amount_msats);
32898         return nativeResponseValue;
32899 }
32900         // 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);
32901 /* @internal */
32902 export function InvoicePayer_pay_pubkey(this_arg: number, pubkey: number, payment_preimage: number, amount_msats: bigint, final_cltv_expiry_delta: number): number {
32903         if(!isWasmInitialized) {
32904                 throw new Error("initializeWasm() must be awaited first!");
32905         }
32906         const nativeResponseValue = wasm.TS_InvoicePayer_pay_pubkey(this_arg, pubkey, payment_preimage, amount_msats, final_cltv_expiry_delta);
32907         return nativeResponseValue;
32908 }
32909         // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
32910 /* @internal */
32911 export function InvoicePayer_remove_cached_payment(this_arg: number, payment_hash: number): void {
32912         if(!isWasmInitialized) {
32913                 throw new Error("initializeWasm() must be awaited first!");
32914         }
32915         const nativeResponseValue = wasm.TS_InvoicePayer_remove_cached_payment(this_arg, payment_hash);
32916         // debug statements here
32917 }
32918         // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
32919 /* @internal */
32920 export function InvoicePayer_as_EventHandler(this_arg: number): number {
32921         if(!isWasmInitialized) {
32922                 throw new Error("initializeWasm() must be awaited first!");
32923         }
32924         const nativeResponseValue = wasm.TS_InvoicePayer_as_EventHandler(this_arg);
32925         return nativeResponseValue;
32926 }
32927         // 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);
32928 /* @internal */
32929 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 {
32930         if(!isWasmInitialized) {
32931                 throw new Error("initializeWasm() must be awaited first!");
32932         }
32933         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);
32934         return nativeResponseValue;
32935 }
32936         // 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);
32937 /* @internal */
32938 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 {
32939         if(!isWasmInitialized) {
32940                 throw new Error("initializeWasm() must be awaited first!");
32941         }
32942         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);
32943         return nativeResponseValue;
32944 }
32945         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
32946 /* @internal */
32947 export function DefaultRouter_free(this_obj: number): void {
32948         if(!isWasmInitialized) {
32949                 throw new Error("initializeWasm() must be awaited first!");
32950         }
32951         const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
32952         // debug statements here
32953 }
32954         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes);
32955 /* @internal */
32956 export function DefaultRouter_new(network_graph: number, logger: number, random_seed_bytes: number): number {
32957         if(!isWasmInitialized) {
32958                 throw new Error("initializeWasm() must be awaited first!");
32959         }
32960         const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger, random_seed_bytes);
32961         return nativeResponseValue;
32962 }
32963         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
32964 /* @internal */
32965 export function DefaultRouter_as_Router(this_arg: number): number {
32966         if(!isWasmInitialized) {
32967                 throw new Error("initializeWasm() must be awaited first!");
32968         }
32969         const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
32970         return nativeResponseValue;
32971 }
32972         // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
32973 /* @internal */
32974 export function ChannelManager_as_Payer(this_arg: number): number {
32975         if(!isWasmInitialized) {
32976                 throw new Error("initializeWasm() must be awaited first!");
32977         }
32978         const nativeResponseValue = wasm.TS_ChannelManager_as_Payer(this_arg);
32979         return nativeResponseValue;
32980 }
32981         // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
32982 /* @internal */
32983 export function SiPrefix_from_str(s: number): number {
32984         if(!isWasmInitialized) {
32985                 throw new Error("initializeWasm() must be awaited first!");
32986         }
32987         const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
32988         return nativeResponseValue;
32989 }
32990         // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
32991 /* @internal */
32992 export function Invoice_from_str(s: number): number {
32993         if(!isWasmInitialized) {
32994                 throw new Error("initializeWasm() must be awaited first!");
32995         }
32996         const nativeResponseValue = wasm.TS_Invoice_from_str(s);
32997         return nativeResponseValue;
32998 }
32999         // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
33000 /* @internal */
33001 export function SignedRawInvoice_from_str(s: number): number {
33002         if(!isWasmInitialized) {
33003                 throw new Error("initializeWasm() must be awaited first!");
33004         }
33005         const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
33006         return nativeResponseValue;
33007 }
33008         // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
33009 /* @internal */
33010 export function ParseError_to_str(o: number): number {
33011         if(!isWasmInitialized) {
33012                 throw new Error("initializeWasm() must be awaited first!");
33013         }
33014         const nativeResponseValue = wasm.TS_ParseError_to_str(o);
33015         return nativeResponseValue;
33016 }
33017         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
33018 /* @internal */
33019 export function ParseOrSemanticError_to_str(o: number): number {
33020         if(!isWasmInitialized) {
33021                 throw new Error("initializeWasm() must be awaited first!");
33022         }
33023         const nativeResponseValue = wasm.TS_ParseOrSemanticError_to_str(o);
33024         return nativeResponseValue;
33025 }
33026         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
33027 /* @internal */
33028 export function Invoice_to_str(o: number): number {
33029         if(!isWasmInitialized) {
33030                 throw new Error("initializeWasm() must be awaited first!");
33031         }
33032         const nativeResponseValue = wasm.TS_Invoice_to_str(o);
33033         return nativeResponseValue;
33034 }
33035         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
33036 /* @internal */
33037 export function SignedRawInvoice_to_str(o: number): number {
33038         if(!isWasmInitialized) {
33039                 throw new Error("initializeWasm() must be awaited first!");
33040         }
33041         const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
33042         return nativeResponseValue;
33043 }
33044         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
33045 /* @internal */
33046 export function Currency_to_str(o: number): number {
33047         if(!isWasmInitialized) {
33048                 throw new Error("initializeWasm() must be awaited first!");
33049         }
33050         const nativeResponseValue = wasm.TS_Currency_to_str(o);
33051         return nativeResponseValue;
33052 }
33053         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
33054 /* @internal */
33055 export function SiPrefix_to_str(o: number): number {
33056         if(!isWasmInitialized) {
33057                 throw new Error("initializeWasm() must be awaited first!");
33058         }
33059         const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
33060         return nativeResponseValue;
33061 }
33062
33063
33064 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) {
33065         const weak: WeakRef<object> = js_objs[obj_ptr];
33066         if (weak == null || weak == undefined) {
33067                 console.error("Got function call on unknown/free'd JS object!");
33068                 throw new Error("Got function call on unknown/free'd JS object!");
33069         }
33070         const obj: object = weak.deref();
33071         if (obj == null || obj == undefined) {
33072                 console.error("Got function call on GC'd JS object!");
33073                 throw new Error("Got function call on GC'd JS object!");
33074         }
33075         var fn;
33076         switch (fn_id) {
33077                 case 0: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
33078                 case 1: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
33079                 case 2: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
33080                 case 3: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
33081                 case 4: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
33082                 case 5: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
33083                 case 6: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
33084                 case 7: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
33085                 case 8: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
33086                 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
33087                 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
33088                 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
33089                 case 12: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
33090                 case 13: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
33091                 case 14: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
33092                 case 15: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
33093                 case 16: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
33094                 case 17: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
33095                 case 18: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
33096                 case 19: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
33097                 case 20: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
33098                 case 21: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
33099                 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
33100                 case 23: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
33101                 case 24: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
33102                 case 25: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
33103                 case 26: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
33104                 case 27: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
33105                 case 28: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
33106                 case 29: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
33107                 case 30: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
33108                 case 31: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
33109                 case 32: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
33110                 case 33: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
33111                 case 34: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
33112                 case 35: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
33113                 case 36: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
33114                 case 37: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
33115                 case 38: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
33116                 case 39: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
33117                 case 40: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
33118                 case 41: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break;
33119                 case 42: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break;
33120                 case 43: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break;
33121                 case 44: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break;
33122                 case 45: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
33123                 case 46: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
33124                 case 47: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
33125                 case 48: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
33126                 case 49: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
33127                 case 50: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
33128                 case 51: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
33129                 case 52: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
33130                 case 53: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
33131                 case 54: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
33132                 case 55: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
33133                 case 56: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
33134                 case 57: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break;
33135                 case 58: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
33136                 case 59: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
33137                 case 60: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
33138                 case 61: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
33139                 case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
33140                 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
33141                 case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
33142                 case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
33143                 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
33144                 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
33145                 case 68: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
33146                 case 69: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
33147                 case 70: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
33148                 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
33149                 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
33150                 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
33151                 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
33152                 case 75: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
33153                 case 76: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcements"); break;
33154                 case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcements"); break;
33155                 case 78: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
33156                 case 79: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
33157                 case 80: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
33158                 case 81: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
33159                 case 82: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
33160                 case 83: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
33161                 case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
33162                 case 85: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
33163                 case 86: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
33164                 case 87: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
33165                 case 88: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
33166                 case 89: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
33167                 case 90: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
33168                 case 91: fn = Object.getOwnPropertyDescriptor(obj, "node_id"); break;
33169                 case 92: fn = Object.getOwnPropertyDescriptor(obj, "first_hops"); break;
33170                 case 93: fn = Object.getOwnPropertyDescriptor(obj, "send_payment"); break;
33171                 case 94: fn = Object.getOwnPropertyDescriptor(obj, "send_spontaneous_payment"); break;
33172                 case 95: fn = Object.getOwnPropertyDescriptor(obj, "retry_payment"); break;
33173                 case 96: fn = Object.getOwnPropertyDescriptor(obj, "abandon_payment"); break;
33174                 case 97: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
33175                 default:
33176                         console.error("Got unknown function call from C!");
33177                         throw new Error("Got unknown function call from C!");
33178         }
33179         if (fn == null || fn == undefined) {
33180                 console.error("Got function call on incorrect JS object!");
33181                 throw new Error("Got function call on incorrect JS object!");
33182         }
33183         const ret = fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
33184         if (ret === undefined || ret === null) return BigInt(0);
33185         return BigInt(ret);
33186 }