Merge pull request #104 from TheBlueMatt/main
[ldk-java] / ts / bindings.mts
1
2 import * as version from './version.mjs';
3 import { UInt5, WitnessVersion } from './structs/CommonBase.mjs';
4
5 const imports: any = {};
6 imports.env = {};
7
8 var js_objs: Array<WeakRef<object>> = [];
9 var js_invoke: Function;
10 var getRandomValues: Function;
11
12 imports.wasi_snapshot_preview1 = {
13         "fd_write": (fd: number, iovec_array_ptr: number, iovec_array_len: number) => {
14                 // This should generally only be used to print panic messages
15                 console.log("FD_WRITE to " + fd + " in " + iovec_array_len + " chunks.");
16                 const ptr_len_view = new Uint32Array(wasm.memory.buffer, iovec_array_ptr, iovec_array_len * 2);
17                 for (var i = 0; i < iovec_array_len; i++) {
18                         const bytes_view = new Uint8Array(wasm.memory.buffer, ptr_len_view[i*2], ptr_len_view[i*2+1]);
19                         console.log(String.fromCharCode(...bytes_view));
20                 }
21                 return 0;
22         },
23         "fd_close": (_fd: number) => {
24                 // This is not generally called, but may be referenced in debug builds
25                 console.log("wasi_snapshot_preview1:fd_close");
26                 return 58; // Not Supported
27         },
28         "fd_seek": (_fd: number, _offset: bigint, _whence: number, _new_offset: number) => {
29                 // This is not generally called, but may be referenced in debug builds
30                 console.log("wasi_snapshot_preview1:fd_seek");
31                 return 58; // Not Supported
32         },
33         "random_get": (buf_ptr: number, buf_len: number) => {
34                 const buf = new Uint8Array(wasm.memory.buffer, buf_ptr, buf_len);
35                 getRandomValues(buf);
36                 return 0;
37         },
38         "environ_sizes_get": (environ_var_count_ptr: number, environ_len_ptr: number) => {
39                 // This is called before fd_write to format + print panic messages
40                 console.log("wasi_snapshot_preview1:environ_sizes_get");
41                 const out_count_view = new Uint32Array(wasm.memory.buffer, environ_var_count_ptr, 1);
42                 out_count_view[0] = 0;
43                 const out_len_view = new Uint32Array(wasm.memory.buffer, environ_len_ptr, 1);
44                 out_len_view[0] = 0;
45                 return 0;
46         },
47         "environ_get": (environ_ptr: number, environ_buf_ptr: number) => {
48                 // This is called before fd_write to format + print panic messages
49                 console.log("wasi_snapshot_preview1:environ_get");
50                 return 58; // Note supported - we said there were 0 environment entries!
51         },
52         "proc_exit" : () => {
53                 console.log("wasi_snapshot_preview1:proc_exit");
54         },
55 };
56
57 var wasm: any = null;
58 let isWasmInitialized: boolean = false;
59
60 async function finishInitializeWasm(wasmInstance: WebAssembly.Instance) {
61         if (typeof crypto === "undefined") {
62                 var crypto_import = (await import('crypto')).webcrypto;
63                 getRandomValues = crypto_import.getRandomValues.bind(crypto_import);
64         } else {
65                 getRandomValues = crypto.getRandomValues.bind(crypto);
66         }
67
68         wasm = wasmInstance.exports;
69         if (!wasm.test_bigint_pass_deadbeef0badf00d(BigInt("0xdeadbeef0badf00d"))) {
70                 throw new Error("Currently need BigInt-as-u64 support, try ----experimental-wasm-bigint");
71         }
72
73         if (decodeString(wasm.TS_get_lib_version_string()) !== version.get_ldk_java_bindings_version())
74                 throw new Error("Compiled LDK library and LDK class files do not match");
75         // Fetching the LDK versions from C also checks that the header and binaries match
76         const c_bindings_ver: number = wasm.TS_get_ldk_c_bindings_version();
77         const ldk_ver: number = wasm.TS_get_ldk_version();
78         if (c_bindings_ver == 0)
79                 throw new Error("LDK version did not match the header we built against");
80         if (ldk_ver == 0)
81                 throw new Error("LDK C bindings version did not match the header we built against");
82         const c_bindings_version: string = decodeString(c_bindings_ver)
83         const ldk_version: string = decodeString(ldk_ver);
84         console.log("Loaded LDK-Java Bindings with LDK " + ldk_version + " and LDK-C-Bindings " + c_bindings_version);
85
86         isWasmInitialized = true;
87 }
88
89 /* @internal */
90 export async function initializeWasmFromUint8Array(wasmBinary: Uint8Array) {
91         imports.env["js_invoke_function_u"] = js_invoke;
92         imports.env["js_invoke_function_b"] = js_invoke;
93         const { instance: wasmInstance } = await WebAssembly.instantiate(wasmBinary, imports);
94         await finishInitializeWasm(wasmInstance);
95 }
96
97 /* @internal */
98 export async function initializeWasmFetch(uri: string) {
99         const stream = fetch(uri);
100         imports.env["js_invoke_function_u"] = js_invoke;
101         imports.env["js_invoke_function_b"] = js_invoke;
102         const { instance: wasmInstance } = await WebAssembly.instantiateStreaming(stream, imports);
103         await finishInitializeWasm(wasmInstance);
104 }
105 // WASM CODEC
106
107 /* @internal */
108 export function uint5ArrToBytes(inputArray: Array<UInt5>): Uint8Array {
109         const arr = new Uint8Array(inputArray.length);
110         for (var i = 0; i < inputArray.length; i++) {
111                 arr[i] = inputArray[i].getVal();
112         }
113         return arr;
114 }
115
116 /* @internal */
117 export function WitnessVersionArrToBytes(inputArray: Array<WitnessVersion>): Uint8Array {
118         const arr = new Uint8Array(inputArray.length);
119         for (var i = 0; i < inputArray.length; i++) {
120                 arr[i] = inputArray[i].getVal();
121         }
122         return arr;
123 }
124
125
126
127 /* @internal */
128 export function encodeUint8Array (inputArray: Uint8Array): number {
129         const cArrayPointer = wasm.TS_malloc(inputArray.length + 4);
130         const arrayLengthView = new Uint32Array(wasm.memory.buffer, cArrayPointer, 1);
131         arrayLengthView[0] = inputArray.length;
132         const arrayMemoryView = new Uint8Array(wasm.memory.buffer, cArrayPointer + 4, inputArray.length);
133         arrayMemoryView.set(inputArray);
134         return cArrayPointer;
135 }
136 /* @internal */
137 export function encodeUint32Array (inputArray: Uint32Array|Array<number>): number {
138         const cArrayPointer = wasm.TS_malloc((inputArray.length + 1) * 4);
139         const arrayMemoryView = new Uint32Array(wasm.memory.buffer, cArrayPointer, inputArray.length);
140         arrayMemoryView.set(inputArray, 1);
141         arrayMemoryView[0] = inputArray.length;
142         return cArrayPointer;
143 }
144 /* @internal */
145 export function encodeUint64Array (inputArray: BigUint64Array|Array<bigint>): number {
146         const cArrayPointer = wasm.TS_malloc(inputArray.length * 8 + 1);
147         const arrayLengthView = new Uint32Array(wasm.memory.buffer, cArrayPointer, 1);
148         arrayLengthView[0] = inputArray.length;
149         const arrayMemoryView = new BigUint64Array(wasm.memory.buffer, cArrayPointer + 4, inputArray.length);
150         arrayMemoryView.set(inputArray);
151         return cArrayPointer;
152 }
153
154 /* @internal */
155 export function check_arr_len(arr: Uint8Array, len: number): Uint8Array {
156         if (arr.length != len) { throw new Error("Expected array of length " + len + "got " + arr.length); }
157         return arr;
158 }
159
160 /* @internal */
161 export function getArrayLength(arrayPointer: number): number {
162         const arraySizeViewer = new Uint32Array(wasm.memory.buffer, arrayPointer, 1);
163         return arraySizeViewer[0];
164 }
165 /* @internal */
166 export function decodeUint8Array (arrayPointer: number, free = true): Uint8Array {
167         const arraySize = getArrayLength(arrayPointer);
168         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 4, arraySize);
169         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
170         // will free the underlying memory when it becomes unreachable instead of copying here.
171         // Note that doing so may have edge-case interactions with memory resizing (invalidating the buffer).
172         const actualArray = actualArrayViewer.slice(0, arraySize);
173         if (free) {
174                 wasm.TS_free(arrayPointer);
175         }
176         return actualArray;
177 }
178 const decodeUint32Array = (arrayPointer: number, free = true) => {
179         const arraySize = getArrayLength(arrayPointer);
180         const actualArrayViewer = new Uint32Array(
181                 wasm.memory.buffer, // value
182                 arrayPointer + 4, // offset (ignoring length bytes)
183                 arraySize // uint32 count
184         );
185         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
186         // will free the underlying memory when it becomes unreachable instead of copying here.
187         const actualArray = actualArrayViewer.slice(0, arraySize);
188         if (free) {
189                 wasm.TS_free(arrayPointer);
190         }
191         return actualArray;
192 }
193
194
195 export function freeWasmMemory(pointer: number) { wasm.TS_free(pointer); }
196
197 /* @internal */
198 export function getU32ArrayElem(arrayPointer: number, idx: number): number {
199         const actualArrayViewer = new Uint32Array(wasm.memory.buffer, arrayPointer + 4, idx + 1);
200         return actualArrayViewer[idx];
201 }
202
203 /* @internal */
204 export function getU8ArrayElem(arrayPointer: number, idx: number): number {
205         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 4, idx + 1);
206         return actualArrayViewer[idx];
207 }
208
209
210 /* @internal */
211 export function encodeString(str: string): number {
212         const charArray = new TextEncoder().encode(str);
213         return encodeUint8Array(charArray);
214 }
215
216 /* @internal */
217 export function decodeString(stringPointer: number, free = true): string {
218         const arraySize = getArrayLength(stringPointer);
219         const memoryView = new Uint8Array(wasm.memory.buffer, stringPointer + 4, arraySize);
220         const result = new TextDecoder("utf-8").decode(memoryView);
221
222         if (free) {
223                 wasm.TS_free(stringPointer);
224         }
225
226         return result;
227 }
228
229 /* @internal */ export function getRemainingAllocationCount(): number { return 0; }
230 /* @internal */ export function debugPrintRemainingAllocs() { }
231
232 /* @internal */
233 export enum AccessError {
234         /**
235          * The requested chain is unknown.
236          */
237         LDKAccessError_UnknownChain,
238         /**
239          * The requested transaction doesn't exist or hasn't confirmed.
240          */
241         LDKAccessError_UnknownTx,
242         
243 }
244
245 /* @internal */
246 export enum COption_NoneZ {
247         /**
248          * When we're in this state, this COption_NoneZ contains a
249          */
250         LDKCOption_NoneZ_Some,
251         /**
252          * When we're in this state, this COption_NoneZ contains nothing
253          */
254         LDKCOption_NoneZ_None,
255         
256 }
257
258 /* @internal */
259 export enum ChannelMonitorUpdateErr {
260         /**
261          * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
262         our state failed, but is expected to succeed at some point in the future).
263         
264         Such a failure will \"freeze\" a channel, preventing us from revoking old states or
265         submitting new commitment transactions to the counterparty. Once the update(s) that failed
266         have been successfully applied, a [`MonitorEvent::UpdateCompleted`] event should be returned
267         via [`Watch::release_pending_monitor_events`] which will then restore the channel to an
268         operational state.
269         
270         Note that a given ChannelManager will *never* re-generate a given ChannelMonitorUpdate. If
271         you return a TemporaryFailure you must ensure that it is written to disk safely before
272         writing out the latest ChannelManager state.
273         
274         Even when a channel has been \"frozen\" updates to the ChannelMonitor can continue to occur
275         (eg if an inbound HTLC which we forwarded was claimed upstream resulting in us attempting
276         to claim it on this channel) and those updates must be applied wherever they can be. At
277         least one such updated ChannelMonitor must be persisted otherwise PermanentFailure should
278         be returned to get things on-chain ASAP using only the in-memory copy. Obviously updates to
279         the channel which would invalidate previous ChannelMonitors are not made when a channel has
280         been \"frozen\".
281         
282         Note that even if updates made after TemporaryFailure succeed you must still provide a
283         [`MonitorEvent::UpdateCompleted`] to ensure you have the latest monitor and re-enable
284         normal channel operation. Note that this is normally generated through a call to
285         [`ChainMonitor::channel_monitor_updated`].
286         
287         Note that the update being processed here will not be replayed for you when you return a
288         [`MonitorEvent::UpdateCompleted`] event via [`Watch::release_pending_monitor_events`], so
289         you must store the update itself on your own local disk prior to returning a
290         TemporaryFailure. You may, of course, employ a journaling approach, storing only the
291         ChannelMonitorUpdate on disk without updating the monitor itself, replaying the journal at
292         reload-time.
293         
294         For deployments where a copy of ChannelMonitors and other local state are backed up in a
295         remote location (with local copies persisted immediately), it is anticipated that all
296         updates will return TemporaryFailure until the remote copies could be updated.
297         
298         [`ChainMonitor::channel_monitor_updated`]: chainmonitor::ChainMonitor::channel_monitor_updated
299          */
300         LDKChannelMonitorUpdateErr_TemporaryFailure,
301         /**
302          * Used to indicate no further channel monitor updates will be allowed (eg we've moved on to a
303         different watchtower and cannot update with all watchtowers that were previously informed
304         of this channel).
305         
306         At reception of this error, ChannelManager will force-close the channel and return at
307         least a final ChannelMonitorUpdate::ChannelForceClosed which must be delivered to at
308         least one ChannelMonitor copy. Revocation secret MUST NOT be released and offchain channel
309         update must be rejected.
310         
311         This failure may also signal a failure to update the local persisted copy of one of
312         the channel monitor instance.
313         
314         Note that even when you fail a holder commitment transaction update, you must store the
315         update to ensure you can claim from it in case of a duplicate copy of this ChannelMonitor
316         broadcasts it (e.g distributed channel-monitor deployment)
317         
318         In case of distributed watchtowers deployment, the new version must be written to disk, as
319         state may have been stored but rejected due to a block forcing a commitment broadcast. This
320         storage is used to claim outputs of rejected state confirmed onchain by another watchtower,
321         lagging behind on block processing.
322          */
323         LDKChannelMonitorUpdateErr_PermanentFailure,
324         
325 }
326
327 /* @internal */
328 export enum ConfirmationTarget {
329         /**
330          * We are happy with this transaction confirming slowly when feerate drops some.
331          */
332         LDKConfirmationTarget_Background,
333         /**
334          * We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
335          */
336         LDKConfirmationTarget_Normal,
337         /**
338          * We'd like this transaction to confirm in the next few blocks.
339          */
340         LDKConfirmationTarget_HighPriority,
341         
342 }
343
344 /* @internal */
345 export enum CreationError {
346         /**
347          * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
348          */
349         LDKCreationError_DescriptionTooLong,
350         /**
351          * The specified route has too many hops and can't be encoded
352          */
353         LDKCreationError_RouteTooLong,
354         /**
355          * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
356          */
357         LDKCreationError_TimestampOutOfBounds,
358         /**
359          * The supplied millisatoshi amount was greater than the total bitcoin supply.
360          */
361         LDKCreationError_InvalidAmount,
362         /**
363          * Route hints were required for this invoice and were missing. Applies to
364         [phantom invoices].
365         
366         [phantom invoices]: crate::utils::create_phantom_invoice
367          */
368         LDKCreationError_MissingRouteHints,
369         
370 }
371
372 /* @internal */
373 export enum Currency {
374         /**
375          * Bitcoin mainnet
376          */
377         LDKCurrency_Bitcoin,
378         /**
379          * Bitcoin testnet
380          */
381         LDKCurrency_BitcoinTestnet,
382         /**
383          * Bitcoin regtest
384          */
385         LDKCurrency_Regtest,
386         /**
387          * Bitcoin simnet
388          */
389         LDKCurrency_Simnet,
390         /**
391          * Bitcoin signet
392          */
393         LDKCurrency_Signet,
394         
395 }
396
397 /* @internal */
398 export enum IOError {
399                 LDKIOError_NotFound,
400                 LDKIOError_PermissionDenied,
401                 LDKIOError_ConnectionRefused,
402                 LDKIOError_ConnectionReset,
403                 LDKIOError_ConnectionAborted,
404                 LDKIOError_NotConnected,
405                 LDKIOError_AddrInUse,
406                 LDKIOError_AddrNotAvailable,
407                 LDKIOError_BrokenPipe,
408                 LDKIOError_AlreadyExists,
409                 LDKIOError_WouldBlock,
410                 LDKIOError_InvalidInput,
411                 LDKIOError_InvalidData,
412                 LDKIOError_TimedOut,
413                 LDKIOError_WriteZero,
414                 LDKIOError_Interrupted,
415                 LDKIOError_Other,
416                 LDKIOError_UnexpectedEof,
417         
418 }
419
420 /* @internal */
421 export enum Level {
422         /**
423          * Designates extremely verbose information, including gossip-induced messages
424          */
425         LDKLevel_Gossip,
426         /**
427          * Designates very low priority, often extremely verbose, information
428          */
429         LDKLevel_Trace,
430         /**
431          * Designates lower priority information
432          */
433         LDKLevel_Debug,
434         /**
435          * Designates useful information
436          */
437         LDKLevel_Info,
438         /**
439          * Designates hazardous situations
440          */
441         LDKLevel_Warn,
442         /**
443          * Designates very serious errors
444          */
445         LDKLevel_Error,
446         
447 }
448
449 /* @internal */
450 export enum Network {
451         /**
452          * The main Bitcoin blockchain.
453          */
454         LDKNetwork_Bitcoin,
455         /**
456          * The testnet3 blockchain.
457          */
458         LDKNetwork_Testnet,
459         /**
460          * A local test blockchain.
461          */
462         LDKNetwork_Regtest,
463         /**
464          * A blockchain on which blocks are signed instead of mined.
465          */
466         LDKNetwork_Signet,
467         
468 }
469
470 /* @internal */
471 export enum Recipient {
472         /**
473          * The invoice should be signed with the local node secret key.
474          */
475         LDKRecipient_Node,
476         /**
477          * The invoice should be signed with the phantom node secret key. This secret key must be the
478         same for all nodes participating in the [phantom node payment].
479         
480         [phantom node payment]: PhantomKeysManager
481          */
482         LDKRecipient_PhantomNode,
483         
484 }
485
486 /* @internal */
487 export enum Secp256k1Error {
488         /**
489          * Signature failed verification
490          */
491         LDKSecp256k1Error_IncorrectSignature,
492         /**
493          * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
494          */
495         LDKSecp256k1Error_InvalidMessage,
496         /**
497          * Bad public key
498          */
499         LDKSecp256k1Error_InvalidPublicKey,
500         /**
501          * Bad signature
502          */
503         LDKSecp256k1Error_InvalidSignature,
504         /**
505          * Bad secret key
506          */
507         LDKSecp256k1Error_InvalidSecretKey,
508         /**
509          * Bad shared secret.
510          */
511         LDKSecp256k1Error_InvalidSharedSecret,
512         /**
513          * Bad recovery id
514          */
515         LDKSecp256k1Error_InvalidRecoveryId,
516         /**
517          * Invalid tweak for add_assign or mul_assign
518          */
519         LDKSecp256k1Error_InvalidTweak,
520         /**
521          * Didn't pass enough memory to context creation with preallocated memory
522          */
523         LDKSecp256k1Error_NotEnoughMemory,
524         /**
525          * Bad set of public keys.
526          */
527         LDKSecp256k1Error_InvalidPublicKeySum,
528         /**
529          * The only valid parity values are 0 or 1.
530          */
531         LDKSecp256k1Error_InvalidParityValue,
532         
533 }
534
535 /* @internal */
536 export enum SemanticError {
537         /**
538          * The invoice is missing the mandatory payment hash
539          */
540         LDKSemanticError_NoPaymentHash,
541         /**
542          * The invoice has multiple payment hashes which isn't allowed
543          */
544         LDKSemanticError_MultiplePaymentHashes,
545         /**
546          * No description or description hash are part of the invoice
547          */
548         LDKSemanticError_NoDescription,
549         /**
550          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
551          */
552         LDKSemanticError_MultipleDescriptions,
553         /**
554          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
555         should provide.
556          */
557         LDKSemanticError_NoPaymentSecret,
558         /**
559          * The invoice contains multiple payment secrets
560          */
561         LDKSemanticError_MultiplePaymentSecrets,
562         /**
563          * The invoice's features are invalid
564          */
565         LDKSemanticError_InvalidFeatures,
566         /**
567          * The recovery id doesn't fit the signature/pub key
568          */
569         LDKSemanticError_InvalidRecoveryId,
570         /**
571          * The invoice's signature is invalid
572          */
573         LDKSemanticError_InvalidSignature,
574         /**
575          * The invoice's amount was not a whole number of millisatoshis
576          */
577         LDKSemanticError_ImpreciseAmount,
578         
579 }
580
581 /* @internal */
582 export enum SiPrefix {
583         /**
584          * 10^-3
585          */
586         LDKSiPrefix_Milli,
587         /**
588          * 10^-6
589          */
590         LDKSiPrefix_Micro,
591         /**
592          * 10^-9
593          */
594         LDKSiPrefix_Nano,
595         /**
596          * 10^-12
597          */
598         LDKSiPrefix_Pico,
599         
600 }
601 /* @internal */
602 export class LDKBech32Error {
603         protected constructor() {}
604 }
605 /* @internal */
606 export function LDKBech32Error_ty_from_ptr(ptr: number): number {
607         if(!isWasmInitialized) {
608                 throw new Error("initializeWasm() must be awaited first!");
609         }
610         const nativeResponseValue = wasm.TS_LDKBech32Error_ty_from_ptr(ptr);
611         return nativeResponseValue;
612 }
613 /* @internal */
614 export function LDKBech32Error_InvalidChar_get_invalid_char(ptr: number): number {
615         if(!isWasmInitialized) {
616                 throw new Error("initializeWasm() must be awaited first!");
617         }
618         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidChar_get_invalid_char(ptr);
619         return nativeResponseValue;
620 }
621 /* @internal */
622 export function LDKBech32Error_InvalidData_get_invalid_data(ptr: number): number {
623         if(!isWasmInitialized) {
624                 throw new Error("initializeWasm() must be awaited first!");
625         }
626         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr);
627         return nativeResponseValue;
628 }
629         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
630 /* @internal */
631 export function TxOut_get_script_pubkey(thing: number): number {
632         if(!isWasmInitialized) {
633                 throw new Error("initializeWasm() must be awaited first!");
634         }
635         const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
636         return nativeResponseValue;
637 }
638         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
639 /* @internal */
640 export function TxOut_get_value(thing: number): bigint {
641         if(!isWasmInitialized) {
642                 throw new Error("initializeWasm() must be awaited first!");
643         }
644         const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
645         return nativeResponseValue;
646 }
647         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
648 /* @internal */
649 export function CResult_NoneNoneZ_get_ok(owner: number): void {
650         if(!isWasmInitialized) {
651                 throw new Error("initializeWasm() must be awaited first!");
652         }
653         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
654         // debug statements here
655 }
656         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
657 /* @internal */
658 export function CResult_NoneNoneZ_get_err(owner: number): void {
659         if(!isWasmInitialized) {
660                 throw new Error("initializeWasm() must be awaited first!");
661         }
662         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
663         // debug statements here
664 }
665         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
666 /* @internal */
667 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: number): number {
668         if(!isWasmInitialized) {
669                 throw new Error("initializeWasm() must be awaited first!");
670         }
671         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
672         return nativeResponseValue;
673 }
674         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
675 /* @internal */
676 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: number): number {
677         if(!isWasmInitialized) {
678                 throw new Error("initializeWasm() must be awaited first!");
679         }
680         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
681         return nativeResponseValue;
682 }
683         // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
684 /* @internal */
685 export function CResult_SecretKeyErrorZ_get_ok(owner: number): number {
686         if(!isWasmInitialized) {
687                 throw new Error("initializeWasm() must be awaited first!");
688         }
689         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_ok(owner);
690         return nativeResponseValue;
691 }
692         // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
693 /* @internal */
694 export function CResult_SecretKeyErrorZ_get_err(owner: number): Secp256k1Error {
695         if(!isWasmInitialized) {
696                 throw new Error("initializeWasm() must be awaited first!");
697         }
698         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_err(owner);
699         return nativeResponseValue;
700 }
701         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
702 /* @internal */
703 export function CResult_PublicKeyErrorZ_get_ok(owner: number): number {
704         if(!isWasmInitialized) {
705                 throw new Error("initializeWasm() must be awaited first!");
706         }
707         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
708         return nativeResponseValue;
709 }
710         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
711 /* @internal */
712 export function CResult_PublicKeyErrorZ_get_err(owner: number): Secp256k1Error {
713         if(!isWasmInitialized) {
714                 throw new Error("initializeWasm() must be awaited first!");
715         }
716         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
717         return nativeResponseValue;
718 }
719         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
720 /* @internal */
721 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: number): number {
722         if(!isWasmInitialized) {
723                 throw new Error("initializeWasm() must be awaited first!");
724         }
725         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
726         return nativeResponseValue;
727 }
728         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
729 /* @internal */
730 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: number): number {
731         if(!isWasmInitialized) {
732                 throw new Error("initializeWasm() must be awaited first!");
733         }
734         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
735         return nativeResponseValue;
736 }
737         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
738 /* @internal */
739 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: number): number {
740         if(!isWasmInitialized) {
741                 throw new Error("initializeWasm() must be awaited first!");
742         }
743         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
744         return nativeResponseValue;
745 }
746         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
747 /* @internal */
748 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: number): number {
749         if(!isWasmInitialized) {
750                 throw new Error("initializeWasm() must be awaited first!");
751         }
752         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
753         return nativeResponseValue;
754 }
755         // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
756 /* @internal */
757 export function CResult_TxCreationKeysErrorZ_get_ok(owner: number): number {
758         if(!isWasmInitialized) {
759                 throw new Error("initializeWasm() must be awaited first!");
760         }
761         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_ok(owner);
762         return nativeResponseValue;
763 }
764         // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
765 /* @internal */
766 export function CResult_TxCreationKeysErrorZ_get_err(owner: number): Secp256k1Error {
767         if(!isWasmInitialized) {
768                 throw new Error("initializeWasm() must be awaited first!");
769         }
770         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_err(owner);
771         return nativeResponseValue;
772 }
773 /* @internal */
774 export class LDKCOption_u32Z {
775         protected constructor() {}
776 }
777 /* @internal */
778 export function LDKCOption_u32Z_ty_from_ptr(ptr: number): number {
779         if(!isWasmInitialized) {
780                 throw new Error("initializeWasm() must be awaited first!");
781         }
782         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
783         return nativeResponseValue;
784 }
785 /* @internal */
786 export function LDKCOption_u32Z_Some_get_some(ptr: number): number {
787         if(!isWasmInitialized) {
788                 throw new Error("initializeWasm() must be awaited first!");
789         }
790         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
791         return nativeResponseValue;
792 }
793         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
794 /* @internal */
795 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: number): number {
796         if(!isWasmInitialized) {
797                 throw new Error("initializeWasm() must be awaited first!");
798         }
799         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
800         return nativeResponseValue;
801 }
802         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
803 /* @internal */
804 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: number): number {
805         if(!isWasmInitialized) {
806                 throw new Error("initializeWasm() must be awaited first!");
807         }
808         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
809         return nativeResponseValue;
810 }
811         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
812 /* @internal */
813 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
814         if(!isWasmInitialized) {
815                 throw new Error("initializeWasm() must be awaited first!");
816         }
817         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
818         return nativeResponseValue;
819 }
820         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
821 /* @internal */
822 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
823         if(!isWasmInitialized) {
824                 throw new Error("initializeWasm() must be awaited first!");
825         }
826         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
827         return nativeResponseValue;
828 }
829         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
830 /* @internal */
831 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
832         if(!isWasmInitialized) {
833                 throw new Error("initializeWasm() must be awaited first!");
834         }
835         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
836         return nativeResponseValue;
837 }
838         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
839 /* @internal */
840 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
841         if(!isWasmInitialized) {
842                 throw new Error("initializeWasm() must be awaited first!");
843         }
844         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
845         return nativeResponseValue;
846 }
847         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
848 /* @internal */
849 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
850         if(!isWasmInitialized) {
851                 throw new Error("initializeWasm() must be awaited first!");
852         }
853         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
854         return nativeResponseValue;
855 }
856         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
857 /* @internal */
858 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
859         if(!isWasmInitialized) {
860                 throw new Error("initializeWasm() must be awaited first!");
861         }
862         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
863         return nativeResponseValue;
864 }
865         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
866 /* @internal */
867 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
868         if(!isWasmInitialized) {
869                 throw new Error("initializeWasm() must be awaited first!");
870         }
871         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
872         return nativeResponseValue;
873 }
874         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
875 /* @internal */
876 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
877         if(!isWasmInitialized) {
878                 throw new Error("initializeWasm() must be awaited first!");
879         }
880         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
881         return nativeResponseValue;
882 }
883         // struct LDKTrustedClosingTransaction *CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
884 /* @internal */
885 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: number): number {
886         if(!isWasmInitialized) {
887                 throw new Error("initializeWasm() must be awaited first!");
888         }
889         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
890         return nativeResponseValue;
891 }
892         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
893 /* @internal */
894 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: number): void {
895         if(!isWasmInitialized) {
896                 throw new Error("initializeWasm() must be awaited first!");
897         }
898         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
899         // debug statements here
900 }
901         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
902 /* @internal */
903 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
904         if(!isWasmInitialized) {
905                 throw new Error("initializeWasm() must be awaited first!");
906         }
907         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
908         return nativeResponseValue;
909 }
910         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
911 /* @internal */
912 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
913         if(!isWasmInitialized) {
914                 throw new Error("initializeWasm() must be awaited first!");
915         }
916         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
917         return nativeResponseValue;
918 }
919         // struct LDKTrustedCommitmentTransaction *CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
920 /* @internal */
921 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: number): number {
922         if(!isWasmInitialized) {
923                 throw new Error("initializeWasm() must be awaited first!");
924         }
925         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
926         return nativeResponseValue;
927 }
928         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
929 /* @internal */
930 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: number): void {
931         if(!isWasmInitialized) {
932                 throw new Error("initializeWasm() must be awaited first!");
933         }
934         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
935         // debug statements here
936 }
937         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
938 /* @internal */
939 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: number): number {
940         if(!isWasmInitialized) {
941                 throw new Error("initializeWasm() must be awaited first!");
942         }
943         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
944         return nativeResponseValue;
945 }
946         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
947 /* @internal */
948 export function CResult_CVec_SignatureZNoneZ_get_err(owner: number): void {
949         if(!isWasmInitialized) {
950                 throw new Error("initializeWasm() must be awaited first!");
951         }
952         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
953         // debug statements here
954 }
955         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
956 /* @internal */
957 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: number): number {
958         if(!isWasmInitialized) {
959                 throw new Error("initializeWasm() must be awaited first!");
960         }
961         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
962         return nativeResponseValue;
963 }
964         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
965 /* @internal */
966 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: number): number {
967         if(!isWasmInitialized) {
968                 throw new Error("initializeWasm() must be awaited first!");
969         }
970         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
971         return nativeResponseValue;
972 }
973         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
974 /* @internal */
975 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: number): number {
976         if(!isWasmInitialized) {
977                 throw new Error("initializeWasm() must be awaited first!");
978         }
979         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
980         return nativeResponseValue;
981 }
982         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
983 /* @internal */
984 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: number): number {
985         if(!isWasmInitialized) {
986                 throw new Error("initializeWasm() must be awaited first!");
987         }
988         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
989         return nativeResponseValue;
990 }
991         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
992 /* @internal */
993 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: number): number {
994         if(!isWasmInitialized) {
995                 throw new Error("initializeWasm() must be awaited first!");
996         }
997         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
998         return nativeResponseValue;
999 }
1000         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1001 /* @internal */
1002 export function CResult_RouteHopDecodeErrorZ_get_err(owner: number): number {
1003         if(!isWasmInitialized) {
1004                 throw new Error("initializeWasm() must be awaited first!");
1005         }
1006         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
1007         return nativeResponseValue;
1008 }
1009         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1010 /* @internal */
1011 export function CResult_RouteDecodeErrorZ_get_ok(owner: number): number {
1012         if(!isWasmInitialized) {
1013                 throw new Error("initializeWasm() must be awaited first!");
1014         }
1015         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
1016         return nativeResponseValue;
1017 }
1018         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1019 /* @internal */
1020 export function CResult_RouteDecodeErrorZ_get_err(owner: number): number {
1021         if(!isWasmInitialized) {
1022                 throw new Error("initializeWasm() must be awaited first!");
1023         }
1024         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
1025         return nativeResponseValue;
1026 }
1027         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1028 /* @internal */
1029 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: number): number {
1030         if(!isWasmInitialized) {
1031                 throw new Error("initializeWasm() must be awaited first!");
1032         }
1033         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
1034         return nativeResponseValue;
1035 }
1036         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1037 /* @internal */
1038 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: number): number {
1039         if(!isWasmInitialized) {
1040                 throw new Error("initializeWasm() must be awaited first!");
1041         }
1042         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
1043         return nativeResponseValue;
1044 }
1045 /* @internal */
1046 export class LDKCOption_u64Z {
1047         protected constructor() {}
1048 }
1049 /* @internal */
1050 export function LDKCOption_u64Z_ty_from_ptr(ptr: number): number {
1051         if(!isWasmInitialized) {
1052                 throw new Error("initializeWasm() must be awaited first!");
1053         }
1054         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
1055         return nativeResponseValue;
1056 }
1057 /* @internal */
1058 export function LDKCOption_u64Z_Some_get_some(ptr: number): bigint {
1059         if(!isWasmInitialized) {
1060                 throw new Error("initializeWasm() must be awaited first!");
1061         }
1062         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
1063         return nativeResponseValue;
1064 }
1065         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1066 /* @internal */
1067 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: number): number {
1068         if(!isWasmInitialized) {
1069                 throw new Error("initializeWasm() must be awaited first!");
1070         }
1071         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1072         return nativeResponseValue;
1073 }
1074         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1075 /* @internal */
1076 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: number): number {
1077         if(!isWasmInitialized) {
1078                 throw new Error("initializeWasm() must be awaited first!");
1079         }
1080         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1081         return nativeResponseValue;
1082 }
1083         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1084 /* @internal */
1085 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: number): number {
1086         if(!isWasmInitialized) {
1087                 throw new Error("initializeWasm() must be awaited first!");
1088         }
1089         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1090         return nativeResponseValue;
1091 }
1092         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1093 /* @internal */
1094 export function CResult_RouteHintDecodeErrorZ_get_err(owner: number): number {
1095         if(!isWasmInitialized) {
1096                 throw new Error("initializeWasm() must be awaited first!");
1097         }
1098         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1099         return nativeResponseValue;
1100 }
1101         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1102 /* @internal */
1103 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: number): number {
1104         if(!isWasmInitialized) {
1105                 throw new Error("initializeWasm() must be awaited first!");
1106         }
1107         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1108         return nativeResponseValue;
1109 }
1110         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1111 /* @internal */
1112 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: number): number {
1113         if(!isWasmInitialized) {
1114                 throw new Error("initializeWasm() must be awaited first!");
1115         }
1116         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1117         return nativeResponseValue;
1118 }
1119         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1120 /* @internal */
1121 export function CResult_RouteLightningErrorZ_get_ok(owner: number): number {
1122         if(!isWasmInitialized) {
1123                 throw new Error("initializeWasm() must be awaited first!");
1124         }
1125         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1126         return nativeResponseValue;
1127 }
1128         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1129 /* @internal */
1130 export function CResult_RouteLightningErrorZ_get_err(owner: number): number {
1131         if(!isWasmInitialized) {
1132                 throw new Error("initializeWasm() must be awaited first!");
1133         }
1134         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1135         return nativeResponseValue;
1136 }
1137 /* @internal */
1138 export class LDKPaymentPurpose {
1139         protected constructor() {}
1140 }
1141 /* @internal */
1142 export function LDKPaymentPurpose_ty_from_ptr(ptr: number): number {
1143         if(!isWasmInitialized) {
1144                 throw new Error("initializeWasm() must be awaited first!");
1145         }
1146         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1147         return nativeResponseValue;
1148 }
1149 /* @internal */
1150 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: number): number {
1151         if(!isWasmInitialized) {
1152                 throw new Error("initializeWasm() must be awaited first!");
1153         }
1154         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1155         return nativeResponseValue;
1156 }
1157 /* @internal */
1158 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: number): number {
1159         if(!isWasmInitialized) {
1160                 throw new Error("initializeWasm() must be awaited first!");
1161         }
1162         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1163         return nativeResponseValue;
1164 }
1165 /* @internal */
1166 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: number): number {
1167         if(!isWasmInitialized) {
1168                 throw new Error("initializeWasm() must be awaited first!");
1169         }
1170         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
1171         return nativeResponseValue;
1172 }
1173         // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1174 /* @internal */
1175 export function CResult_PaymentPurposeDecodeErrorZ_get_ok(owner: number): number {
1176         if(!isWasmInitialized) {
1177                 throw new Error("initializeWasm() must be awaited first!");
1178         }
1179         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_ok(owner);
1180         return nativeResponseValue;
1181 }
1182         // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1183 /* @internal */
1184 export function CResult_PaymentPurposeDecodeErrorZ_get_err(owner: number): number {
1185         if(!isWasmInitialized) {
1186                 throw new Error("initializeWasm() must be awaited first!");
1187         }
1188         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_err(owner);
1189         return nativeResponseValue;
1190 }
1191 /* @internal */
1192 export class LDKClosureReason {
1193         protected constructor() {}
1194 }
1195 /* @internal */
1196 export function LDKClosureReason_ty_from_ptr(ptr: number): number {
1197         if(!isWasmInitialized) {
1198                 throw new Error("initializeWasm() must be awaited first!");
1199         }
1200         const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
1201         return nativeResponseValue;
1202 }
1203 /* @internal */
1204 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: number): number {
1205         if(!isWasmInitialized) {
1206                 throw new Error("initializeWasm() must be awaited first!");
1207         }
1208         const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
1209         return nativeResponseValue;
1210 }
1211 /* @internal */
1212 export function LDKClosureReason_ProcessingError_get_err(ptr: number): number {
1213         if(!isWasmInitialized) {
1214                 throw new Error("initializeWasm() must be awaited first!");
1215         }
1216         const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
1217         return nativeResponseValue;
1218 }
1219 /* @internal */
1220 export class LDKCOption_ClosureReasonZ {
1221         protected constructor() {}
1222 }
1223 /* @internal */
1224 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: number): number {
1225         if(!isWasmInitialized) {
1226                 throw new Error("initializeWasm() must be awaited first!");
1227         }
1228         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
1229         return nativeResponseValue;
1230 }
1231 /* @internal */
1232 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: number): number {
1233         if(!isWasmInitialized) {
1234                 throw new Error("initializeWasm() must be awaited first!");
1235         }
1236         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
1237         return nativeResponseValue;
1238 }
1239         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1240 /* @internal */
1241 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: number): number {
1242         if(!isWasmInitialized) {
1243                 throw new Error("initializeWasm() must be awaited first!");
1244         }
1245         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
1246         return nativeResponseValue;
1247 }
1248         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1249 /* @internal */
1250 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: number): number {
1251         if(!isWasmInitialized) {
1252                 throw new Error("initializeWasm() must be awaited first!");
1253         }
1254         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
1255         return nativeResponseValue;
1256 }
1257 /* @internal */
1258 export class LDKNetworkUpdate {
1259         protected constructor() {}
1260 }
1261 /* @internal */
1262 export function LDKNetworkUpdate_ty_from_ptr(ptr: number): number {
1263         if(!isWasmInitialized) {
1264                 throw new Error("initializeWasm() must be awaited first!");
1265         }
1266         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
1267         return nativeResponseValue;
1268 }
1269 /* @internal */
1270 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: number): number {
1271         if(!isWasmInitialized) {
1272                 throw new Error("initializeWasm() must be awaited first!");
1273         }
1274         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
1275         return nativeResponseValue;
1276 }
1277 /* @internal */
1278 export function LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr: number): bigint {
1279         if(!isWasmInitialized) {
1280                 throw new Error("initializeWasm() must be awaited first!");
1281         }
1282         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr);
1283         return nativeResponseValue;
1284 }
1285 /* @internal */
1286 export function LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr: number): boolean {
1287         if(!isWasmInitialized) {
1288                 throw new Error("initializeWasm() must be awaited first!");
1289         }
1290         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr);
1291         return nativeResponseValue;
1292 }
1293 /* @internal */
1294 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: number): number {
1295         if(!isWasmInitialized) {
1296                 throw new Error("initializeWasm() must be awaited first!");
1297         }
1298         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
1299         return nativeResponseValue;
1300 }
1301 /* @internal */
1302 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: number): boolean {
1303         if(!isWasmInitialized) {
1304                 throw new Error("initializeWasm() must be awaited first!");
1305         }
1306         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
1307         return nativeResponseValue;
1308 }
1309 /* @internal */
1310 export class LDKCOption_NetworkUpdateZ {
1311         protected constructor() {}
1312 }
1313 /* @internal */
1314 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: number): number {
1315         if(!isWasmInitialized) {
1316                 throw new Error("initializeWasm() must be awaited first!");
1317         }
1318         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
1319         return nativeResponseValue;
1320 }
1321 /* @internal */
1322 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: number): number {
1323         if(!isWasmInitialized) {
1324                 throw new Error("initializeWasm() must be awaited first!");
1325         }
1326         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
1327         return nativeResponseValue;
1328 }
1329 /* @internal */
1330 export class LDKSpendableOutputDescriptor {
1331         protected constructor() {}
1332 }
1333 /* @internal */
1334 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: number): number {
1335         if(!isWasmInitialized) {
1336                 throw new Error("initializeWasm() must be awaited first!");
1337         }
1338         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
1339         return nativeResponseValue;
1340 }
1341 /* @internal */
1342 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: number): number {
1343         if(!isWasmInitialized) {
1344                 throw new Error("initializeWasm() must be awaited first!");
1345         }
1346         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
1347         return nativeResponseValue;
1348 }
1349 /* @internal */
1350 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: number): number {
1351         if(!isWasmInitialized) {
1352                 throw new Error("initializeWasm() must be awaited first!");
1353         }
1354         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
1355         return nativeResponseValue;
1356 }
1357 /* @internal */
1358 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: number): number {
1359         if(!isWasmInitialized) {
1360                 throw new Error("initializeWasm() must be awaited first!");
1361         }
1362         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
1363         return nativeResponseValue;
1364 }
1365 /* @internal */
1366 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: number): number {
1367         if(!isWasmInitialized) {
1368                 throw new Error("initializeWasm() must be awaited first!");
1369         }
1370         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
1371         return nativeResponseValue;
1372 }
1373 /* @internal */
1374 export class LDKEvent {
1375         protected constructor() {}
1376 }
1377 /* @internal */
1378 export function LDKEvent_ty_from_ptr(ptr: number): number {
1379         if(!isWasmInitialized) {
1380                 throw new Error("initializeWasm() must be awaited first!");
1381         }
1382         const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
1383         return nativeResponseValue;
1384 }
1385 /* @internal */
1386 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: number): number {
1387         if(!isWasmInitialized) {
1388                 throw new Error("initializeWasm() must be awaited first!");
1389         }
1390         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
1391         return nativeResponseValue;
1392 }
1393 /* @internal */
1394 export function LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr: number): number {
1395         if(!isWasmInitialized) {
1396                 throw new Error("initializeWasm() must be awaited first!");
1397         }
1398         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr);
1399         return nativeResponseValue;
1400 }
1401 /* @internal */
1402 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: number): bigint {
1403         if(!isWasmInitialized) {
1404                 throw new Error("initializeWasm() must be awaited first!");
1405         }
1406         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
1407         return nativeResponseValue;
1408 }
1409 /* @internal */
1410 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: number): number {
1411         if(!isWasmInitialized) {
1412                 throw new Error("initializeWasm() must be awaited first!");
1413         }
1414         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
1415         return nativeResponseValue;
1416 }
1417 /* @internal */
1418 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: number): bigint {
1419         if(!isWasmInitialized) {
1420                 throw new Error("initializeWasm() must be awaited first!");
1421         }
1422         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
1423         return nativeResponseValue;
1424 }
1425 /* @internal */
1426 export function LDKEvent_PaymentReceived_get_payment_hash(ptr: number): number {
1427         if(!isWasmInitialized) {
1428                 throw new Error("initializeWasm() must be awaited first!");
1429         }
1430         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_payment_hash(ptr);
1431         return nativeResponseValue;
1432 }
1433 /* @internal */
1434 export function LDKEvent_PaymentReceived_get_amount_msat(ptr: number): bigint {
1435         if(!isWasmInitialized) {
1436                 throw new Error("initializeWasm() must be awaited first!");
1437         }
1438         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_amount_msat(ptr);
1439         return nativeResponseValue;
1440 }
1441 /* @internal */
1442 export function LDKEvent_PaymentReceived_get_purpose(ptr: number): number {
1443         if(!isWasmInitialized) {
1444                 throw new Error("initializeWasm() must be awaited first!");
1445         }
1446         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_purpose(ptr);
1447         return nativeResponseValue;
1448 }
1449 /* @internal */
1450 export function LDKEvent_PaymentClaimed_get_payment_hash(ptr: number): number {
1451         if(!isWasmInitialized) {
1452                 throw new Error("initializeWasm() must be awaited first!");
1453         }
1454         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_payment_hash(ptr);
1455         return nativeResponseValue;
1456 }
1457 /* @internal */
1458 export function LDKEvent_PaymentClaimed_get_amount_msat(ptr: number): bigint {
1459         if(!isWasmInitialized) {
1460                 throw new Error("initializeWasm() must be awaited first!");
1461         }
1462         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_amount_msat(ptr);
1463         return nativeResponseValue;
1464 }
1465 /* @internal */
1466 export function LDKEvent_PaymentClaimed_get_purpose(ptr: number): number {
1467         if(!isWasmInitialized) {
1468                 throw new Error("initializeWasm() must be awaited first!");
1469         }
1470         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_purpose(ptr);
1471         return nativeResponseValue;
1472 }
1473 /* @internal */
1474 export function LDKEvent_PaymentSent_get_payment_id(ptr: number): number {
1475         if(!isWasmInitialized) {
1476                 throw new Error("initializeWasm() must be awaited first!");
1477         }
1478         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
1479         return nativeResponseValue;
1480 }
1481 /* @internal */
1482 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: number): number {
1483         if(!isWasmInitialized) {
1484                 throw new Error("initializeWasm() must be awaited first!");
1485         }
1486         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
1487         return nativeResponseValue;
1488 }
1489 /* @internal */
1490 export function LDKEvent_PaymentSent_get_payment_hash(ptr: number): number {
1491         if(!isWasmInitialized) {
1492                 throw new Error("initializeWasm() must be awaited first!");
1493         }
1494         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
1495         return nativeResponseValue;
1496 }
1497 /* @internal */
1498 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: number): number {
1499         if(!isWasmInitialized) {
1500                 throw new Error("initializeWasm() must be awaited first!");
1501         }
1502         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
1503         return nativeResponseValue;
1504 }
1505 /* @internal */
1506 export function LDKEvent_PaymentFailed_get_payment_id(ptr: number): number {
1507         if(!isWasmInitialized) {
1508                 throw new Error("initializeWasm() must be awaited first!");
1509         }
1510         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_id(ptr);
1511         return nativeResponseValue;
1512 }
1513 /* @internal */
1514 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: number): number {
1515         if(!isWasmInitialized) {
1516                 throw new Error("initializeWasm() must be awaited first!");
1517         }
1518         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
1519         return nativeResponseValue;
1520 }
1521 /* @internal */
1522 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: number): number {
1523         if(!isWasmInitialized) {
1524                 throw new Error("initializeWasm() must be awaited first!");
1525         }
1526         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
1527         return nativeResponseValue;
1528 }
1529 /* @internal */
1530 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: number): number {
1531         if(!isWasmInitialized) {
1532                 throw new Error("initializeWasm() must be awaited first!");
1533         }
1534         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
1535         return nativeResponseValue;
1536 }
1537 /* @internal */
1538 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: number): number {
1539         if(!isWasmInitialized) {
1540                 throw new Error("initializeWasm() must be awaited first!");
1541         }
1542         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
1543         return nativeResponseValue;
1544 }
1545 /* @internal */
1546 export function LDKEvent_PaymentPathFailed_get_payment_id(ptr: number): number {
1547         if(!isWasmInitialized) {
1548                 throw new Error("initializeWasm() must be awaited first!");
1549         }
1550         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_id(ptr);
1551         return nativeResponseValue;
1552 }
1553 /* @internal */
1554 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: number): number {
1555         if(!isWasmInitialized) {
1556                 throw new Error("initializeWasm() must be awaited first!");
1557         }
1558         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
1559         return nativeResponseValue;
1560 }
1561 /* @internal */
1562 export function LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr: number): boolean {
1563         if(!isWasmInitialized) {
1564                 throw new Error("initializeWasm() must be awaited first!");
1565         }
1566         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr);
1567         return nativeResponseValue;
1568 }
1569 /* @internal */
1570 export function LDKEvent_PaymentPathFailed_get_network_update(ptr: number): number {
1571         if(!isWasmInitialized) {
1572                 throw new Error("initializeWasm() must be awaited first!");
1573         }
1574         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_network_update(ptr);
1575         return nativeResponseValue;
1576 }
1577 /* @internal */
1578 export function LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr: number): boolean {
1579         if(!isWasmInitialized) {
1580                 throw new Error("initializeWasm() must be awaited first!");
1581         }
1582         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr);
1583         return nativeResponseValue;
1584 }
1585 /* @internal */
1586 export function LDKEvent_PaymentPathFailed_get_path(ptr: number): number {
1587         if(!isWasmInitialized) {
1588                 throw new Error("initializeWasm() must be awaited first!");
1589         }
1590         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
1591         return nativeResponseValue;
1592 }
1593 /* @internal */
1594 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: number): number {
1595         if(!isWasmInitialized) {
1596                 throw new Error("initializeWasm() must be awaited first!");
1597         }
1598         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
1599         return nativeResponseValue;
1600 }
1601 /* @internal */
1602 export function LDKEvent_PaymentPathFailed_get_retry(ptr: number): number {
1603         if(!isWasmInitialized) {
1604                 throw new Error("initializeWasm() must be awaited first!");
1605         }
1606         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_retry(ptr);
1607         return nativeResponseValue;
1608 }
1609 /* @internal */
1610 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: number): bigint {
1611         if(!isWasmInitialized) {
1612                 throw new Error("initializeWasm() must be awaited first!");
1613         }
1614         const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
1615         return nativeResponseValue;
1616 }
1617 /* @internal */
1618 export function LDKEvent_SpendableOutputs_get_outputs(ptr: number): number {
1619         if(!isWasmInitialized) {
1620                 throw new Error("initializeWasm() must be awaited first!");
1621         }
1622         const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
1623         return nativeResponseValue;
1624 }
1625 /* @internal */
1626 export function LDKEvent_PaymentForwarded_get_prev_channel_id(ptr: number): number {
1627         if(!isWasmInitialized) {
1628                 throw new Error("initializeWasm() must be awaited first!");
1629         }
1630         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_prev_channel_id(ptr);
1631         return nativeResponseValue;
1632 }
1633 /* @internal */
1634 export function LDKEvent_PaymentForwarded_get_next_channel_id(ptr: number): number {
1635         if(!isWasmInitialized) {
1636                 throw new Error("initializeWasm() must be awaited first!");
1637         }
1638         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_next_channel_id(ptr);
1639         return nativeResponseValue;
1640 }
1641 /* @internal */
1642 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: number): number {
1643         if(!isWasmInitialized) {
1644                 throw new Error("initializeWasm() must be awaited first!");
1645         }
1646         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
1647         return nativeResponseValue;
1648 }
1649 /* @internal */
1650 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: number): boolean {
1651         if(!isWasmInitialized) {
1652                 throw new Error("initializeWasm() must be awaited first!");
1653         }
1654         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
1655         return nativeResponseValue;
1656 }
1657 /* @internal */
1658 export function LDKEvent_ChannelClosed_get_channel_id(ptr: number): number {
1659         if(!isWasmInitialized) {
1660                 throw new Error("initializeWasm() must be awaited first!");
1661         }
1662         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
1663         return nativeResponseValue;
1664 }
1665 /* @internal */
1666 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: number): bigint {
1667         if(!isWasmInitialized) {
1668                 throw new Error("initializeWasm() must be awaited first!");
1669         }
1670         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
1671         return nativeResponseValue;
1672 }
1673 /* @internal */
1674 export function LDKEvent_ChannelClosed_get_reason(ptr: number): number {
1675         if(!isWasmInitialized) {
1676                 throw new Error("initializeWasm() must be awaited first!");
1677         }
1678         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
1679         return nativeResponseValue;
1680 }
1681 /* @internal */
1682 export function LDKEvent_DiscardFunding_get_channel_id(ptr: number): number {
1683         if(!isWasmInitialized) {
1684                 throw new Error("initializeWasm() must be awaited first!");
1685         }
1686         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
1687         return nativeResponseValue;
1688 }
1689 /* @internal */
1690 export function LDKEvent_DiscardFunding_get_transaction(ptr: number): number {
1691         if(!isWasmInitialized) {
1692                 throw new Error("initializeWasm() must be awaited first!");
1693         }
1694         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
1695         return nativeResponseValue;
1696 }
1697 /* @internal */
1698 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: number): number {
1699         if(!isWasmInitialized) {
1700                 throw new Error("initializeWasm() must be awaited first!");
1701         }
1702         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
1703         return nativeResponseValue;
1704 }
1705 /* @internal */
1706 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: number): number {
1707         if(!isWasmInitialized) {
1708                 throw new Error("initializeWasm() must be awaited first!");
1709         }
1710         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
1711         return nativeResponseValue;
1712 }
1713 /* @internal */
1714 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: number): bigint {
1715         if(!isWasmInitialized) {
1716                 throw new Error("initializeWasm() must be awaited first!");
1717         }
1718         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
1719         return nativeResponseValue;
1720 }
1721 /* @internal */
1722 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: number): bigint {
1723         if(!isWasmInitialized) {
1724                 throw new Error("initializeWasm() must be awaited first!");
1725         }
1726         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
1727         return nativeResponseValue;
1728 }
1729 /* @internal */
1730 export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: number): number {
1731         if(!isWasmInitialized) {
1732                 throw new Error("initializeWasm() must be awaited first!");
1733         }
1734         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_channel_type(ptr);
1735         return nativeResponseValue;
1736 }
1737 /* @internal */
1738 export class LDKCOption_EventZ {
1739         protected constructor() {}
1740 }
1741 /* @internal */
1742 export function LDKCOption_EventZ_ty_from_ptr(ptr: number): number {
1743         if(!isWasmInitialized) {
1744                 throw new Error("initializeWasm() must be awaited first!");
1745         }
1746         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
1747         return nativeResponseValue;
1748 }
1749 /* @internal */
1750 export function LDKCOption_EventZ_Some_get_some(ptr: number): number {
1751         if(!isWasmInitialized) {
1752                 throw new Error("initializeWasm() must be awaited first!");
1753         }
1754         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
1755         return nativeResponseValue;
1756 }
1757         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1758 /* @internal */
1759 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: number): number {
1760         if(!isWasmInitialized) {
1761                 throw new Error("initializeWasm() must be awaited first!");
1762         }
1763         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
1764         return nativeResponseValue;
1765 }
1766         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1767 /* @internal */
1768 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: number): number {
1769         if(!isWasmInitialized) {
1770                 throw new Error("initializeWasm() must be awaited first!");
1771         }
1772         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
1773         return nativeResponseValue;
1774 }
1775 /* @internal */
1776 export class LDKErrorAction {
1777         protected constructor() {}
1778 }
1779 /* @internal */
1780 export function LDKErrorAction_ty_from_ptr(ptr: number): number {
1781         if(!isWasmInitialized) {
1782                 throw new Error("initializeWasm() must be awaited first!");
1783         }
1784         const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
1785         return nativeResponseValue;
1786 }
1787 /* @internal */
1788 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: number): number {
1789         if(!isWasmInitialized) {
1790                 throw new Error("initializeWasm() must be awaited first!");
1791         }
1792         const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
1793         return nativeResponseValue;
1794 }
1795 /* @internal */
1796 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: number): Level {
1797         if(!isWasmInitialized) {
1798                 throw new Error("initializeWasm() must be awaited first!");
1799         }
1800         const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
1801         return nativeResponseValue;
1802 }
1803 /* @internal */
1804 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: number): number {
1805         if(!isWasmInitialized) {
1806                 throw new Error("initializeWasm() must be awaited first!");
1807         }
1808         const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
1809         return nativeResponseValue;
1810 }
1811 /* @internal */
1812 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: number): number {
1813         if(!isWasmInitialized) {
1814                 throw new Error("initializeWasm() must be awaited first!");
1815         }
1816         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
1817         return nativeResponseValue;
1818 }
1819 /* @internal */
1820 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: number): Level {
1821         if(!isWasmInitialized) {
1822                 throw new Error("initializeWasm() must be awaited first!");
1823         }
1824         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
1825         return nativeResponseValue;
1826 }
1827 /* @internal */
1828 export class LDKMessageSendEvent {
1829         protected constructor() {}
1830 }
1831 /* @internal */
1832 export function LDKMessageSendEvent_ty_from_ptr(ptr: number): number {
1833         if(!isWasmInitialized) {
1834                 throw new Error("initializeWasm() must be awaited first!");
1835         }
1836         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
1837         return nativeResponseValue;
1838 }
1839 /* @internal */
1840 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: number): number {
1841         if(!isWasmInitialized) {
1842                 throw new Error("initializeWasm() must be awaited first!");
1843         }
1844         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1845         return nativeResponseValue;
1846 }
1847 /* @internal */
1848 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: number): number {
1849         if(!isWasmInitialized) {
1850                 throw new Error("initializeWasm() must be awaited first!");
1851         }
1852         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1853         return nativeResponseValue;
1854 }
1855 /* @internal */
1856 export function LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr: number): number {
1857         if(!isWasmInitialized) {
1858                 throw new Error("initializeWasm() must be awaited first!");
1859         }
1860         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
1861         return nativeResponseValue;
1862 }
1863 /* @internal */
1864 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: number): number {
1865         if(!isWasmInitialized) {
1866                 throw new Error("initializeWasm() must be awaited first!");
1867         }
1868         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1869         return nativeResponseValue;
1870 }
1871 /* @internal */
1872 export function LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr: number): number {
1873         if(!isWasmInitialized) {
1874                 throw new Error("initializeWasm() must be awaited first!");
1875         }
1876         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
1877         return nativeResponseValue;
1878 }
1879 /* @internal */
1880 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: number): number {
1881         if(!isWasmInitialized) {
1882                 throw new Error("initializeWasm() must be awaited first!");
1883         }
1884         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1885         return nativeResponseValue;
1886 }
1887 /* @internal */
1888 export function LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr: number): number {
1889         if(!isWasmInitialized) {
1890                 throw new Error("initializeWasm() must be awaited first!");
1891         }
1892         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
1893         return nativeResponseValue;
1894 }
1895 /* @internal */
1896 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: number): number {
1897         if(!isWasmInitialized) {
1898                 throw new Error("initializeWasm() must be awaited first!");
1899         }
1900         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1901         return nativeResponseValue;
1902 }
1903 /* @internal */
1904 export function LDKMessageSendEvent_SendChannelReady_get_node_id(ptr: number): number {
1905         if(!isWasmInitialized) {
1906                 throw new Error("initializeWasm() must be awaited first!");
1907         }
1908         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_node_id(ptr);
1909         return nativeResponseValue;
1910 }
1911 /* @internal */
1912 export function LDKMessageSendEvent_SendChannelReady_get_msg(ptr: number): number {
1913         if(!isWasmInitialized) {
1914                 throw new Error("initializeWasm() must be awaited first!");
1915         }
1916         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
1917         return nativeResponseValue;
1918 }
1919 /* @internal */
1920 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr: number): number {
1921         if(!isWasmInitialized) {
1922                 throw new Error("initializeWasm() must be awaited first!");
1923         }
1924         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
1925         return nativeResponseValue;
1926 }
1927 /* @internal */
1928 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: number): number {
1929         if(!isWasmInitialized) {
1930                 throw new Error("initializeWasm() must be awaited first!");
1931         }
1932         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1933         return nativeResponseValue;
1934 }
1935 /* @internal */
1936 export function LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr: number): number {
1937         if(!isWasmInitialized) {
1938                 throw new Error("initializeWasm() must be awaited first!");
1939         }
1940         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
1941         return nativeResponseValue;
1942 }
1943 /* @internal */
1944 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: number): number {
1945         if(!isWasmInitialized) {
1946                 throw new Error("initializeWasm() must be awaited first!");
1947         }
1948         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1949         return nativeResponseValue;
1950 }
1951 /* @internal */
1952 export function LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr: number): number {
1953         if(!isWasmInitialized) {
1954                 throw new Error("initializeWasm() must be awaited first!");
1955         }
1956         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
1957         return nativeResponseValue;
1958 }
1959 /* @internal */
1960 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: number): number {
1961         if(!isWasmInitialized) {
1962                 throw new Error("initializeWasm() must be awaited first!");
1963         }
1964         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1965         return nativeResponseValue;
1966 }
1967 /* @internal */
1968 export function LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr: number): number {
1969         if(!isWasmInitialized) {
1970                 throw new Error("initializeWasm() must be awaited first!");
1971         }
1972         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
1973         return nativeResponseValue;
1974 }
1975 /* @internal */
1976 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: number): number {
1977         if(!isWasmInitialized) {
1978                 throw new Error("initializeWasm() must be awaited first!");
1979         }
1980         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
1981         return nativeResponseValue;
1982 }
1983 /* @internal */
1984 export function LDKMessageSendEvent_SendShutdown_get_node_id(ptr: number): number {
1985         if(!isWasmInitialized) {
1986                 throw new Error("initializeWasm() must be awaited first!");
1987         }
1988         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
1989         return nativeResponseValue;
1990 }
1991 /* @internal */
1992 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: number): number {
1993         if(!isWasmInitialized) {
1994                 throw new Error("initializeWasm() must be awaited first!");
1995         }
1996         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
1997         return nativeResponseValue;
1998 }
1999 /* @internal */
2000 export function LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr: number): number {
2001         if(!isWasmInitialized) {
2002                 throw new Error("initializeWasm() must be awaited first!");
2003         }
2004         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
2005         return nativeResponseValue;
2006 }
2007 /* @internal */
2008 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: number): number {
2009         if(!isWasmInitialized) {
2010                 throw new Error("initializeWasm() must be awaited first!");
2011         }
2012         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
2013         return nativeResponseValue;
2014 }
2015 /* @internal */
2016 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: number): number {
2017         if(!isWasmInitialized) {
2018                 throw new Error("initializeWasm() must be awaited first!");
2019         }
2020         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
2021         return nativeResponseValue;
2022 }
2023 /* @internal */
2024 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: number): number {
2025         if(!isWasmInitialized) {
2026                 throw new Error("initializeWasm() must be awaited first!");
2027         }
2028         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
2029         return nativeResponseValue;
2030 }
2031 /* @internal */
2032 export function LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr: number): number {
2033         if(!isWasmInitialized) {
2034                 throw new Error("initializeWasm() must be awaited first!");
2035         }
2036         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
2037         return nativeResponseValue;
2038 }
2039 /* @internal */
2040 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: number): number {
2041         if(!isWasmInitialized) {
2042                 throw new Error("initializeWasm() must be awaited first!");
2043         }
2044         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
2045         return nativeResponseValue;
2046 }
2047 /* @internal */
2048 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: number): number {
2049         if(!isWasmInitialized) {
2050                 throw new Error("initializeWasm() must be awaited first!");
2051         }
2052         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
2053         return nativeResponseValue;
2054 }
2055 /* @internal */
2056 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: number): number {
2057         if(!isWasmInitialized) {
2058                 throw new Error("initializeWasm() must be awaited first!");
2059         }
2060         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
2061         return nativeResponseValue;
2062 }
2063 /* @internal */
2064 export function LDKMessageSendEvent_HandleError_get_node_id(ptr: number): number {
2065         if(!isWasmInitialized) {
2066                 throw new Error("initializeWasm() must be awaited first!");
2067         }
2068         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_node_id(ptr);
2069         return nativeResponseValue;
2070 }
2071 /* @internal */
2072 export function LDKMessageSendEvent_HandleError_get_action(ptr: number): number {
2073         if(!isWasmInitialized) {
2074                 throw new Error("initializeWasm() must be awaited first!");
2075         }
2076         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
2077         return nativeResponseValue;
2078 }
2079 /* @internal */
2080 export function LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr: number): number {
2081         if(!isWasmInitialized) {
2082                 throw new Error("initializeWasm() must be awaited first!");
2083         }
2084         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
2085         return nativeResponseValue;
2086 }
2087 /* @internal */
2088 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: number): number {
2089         if(!isWasmInitialized) {
2090                 throw new Error("initializeWasm() must be awaited first!");
2091         }
2092         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
2093         return nativeResponseValue;
2094 }
2095 /* @internal */
2096 export function LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr: number): number {
2097         if(!isWasmInitialized) {
2098                 throw new Error("initializeWasm() must be awaited first!");
2099         }
2100         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
2101         return nativeResponseValue;
2102 }
2103 /* @internal */
2104 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: number): number {
2105         if(!isWasmInitialized) {
2106                 throw new Error("initializeWasm() must be awaited first!");
2107         }
2108         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
2109         return nativeResponseValue;
2110 }
2111 /* @internal */
2112 export function LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr: number): number {
2113         if(!isWasmInitialized) {
2114                 throw new Error("initializeWasm() must be awaited first!");
2115         }
2116         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
2117         return nativeResponseValue;
2118 }
2119 /* @internal */
2120 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: number): number {
2121         if(!isWasmInitialized) {
2122                 throw new Error("initializeWasm() must be awaited first!");
2123         }
2124         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
2125         return nativeResponseValue;
2126 }
2127 /* @internal */
2128 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr: number): number {
2129         if(!isWasmInitialized) {
2130                 throw new Error("initializeWasm() must be awaited first!");
2131         }
2132         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
2133         return nativeResponseValue;
2134 }
2135 /* @internal */
2136 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr: number): number {
2137         if(!isWasmInitialized) {
2138                 throw new Error("initializeWasm() must be awaited first!");
2139         }
2140         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
2141         return nativeResponseValue;
2142 }
2143         // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2144 /* @internal */
2145 export function CResult_TxOutAccessErrorZ_get_ok(owner: number): number {
2146         if(!isWasmInitialized) {
2147                 throw new Error("initializeWasm() must be awaited first!");
2148         }
2149         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_ok(owner);
2150         return nativeResponseValue;
2151 }
2152         // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2153 /* @internal */
2154 export function CResult_TxOutAccessErrorZ_get_err(owner: number): AccessError {
2155         if(!isWasmInitialized) {
2156                 throw new Error("initializeWasm() must be awaited first!");
2157         }
2158         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_err(owner);
2159         return nativeResponseValue;
2160 }
2161         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2162 /* @internal */
2163 export function C2Tuple_usizeTransactionZ_get_a(owner: number): number {
2164         if(!isWasmInitialized) {
2165                 throw new Error("initializeWasm() must be awaited first!");
2166         }
2167         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
2168         return nativeResponseValue;
2169 }
2170         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2171 /* @internal */
2172 export function C2Tuple_usizeTransactionZ_get_b(owner: number): number {
2173         if(!isWasmInitialized) {
2174                 throw new Error("initializeWasm() must be awaited first!");
2175         }
2176         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
2177         return nativeResponseValue;
2178 }
2179         // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2180 /* @internal */
2181 export function CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner: number): void {
2182         if(!isWasmInitialized) {
2183                 throw new Error("initializeWasm() must be awaited first!");
2184         }
2185         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner);
2186         // debug statements here
2187 }
2188         // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2189 /* @internal */
2190 export function CResult_NoneChannelMonitorUpdateErrZ_get_err(owner: number): ChannelMonitorUpdateErr {
2191         if(!isWasmInitialized) {
2192                 throw new Error("initializeWasm() must be awaited first!");
2193         }
2194         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_err(owner);
2195         return nativeResponseValue;
2196 }
2197 /* @internal */
2198 export class LDKMonitorEvent {
2199         protected constructor() {}
2200 }
2201 /* @internal */
2202 export function LDKMonitorEvent_ty_from_ptr(ptr: number): number {
2203         if(!isWasmInitialized) {
2204                 throw new Error("initializeWasm() must be awaited first!");
2205         }
2206         const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
2207         return nativeResponseValue;
2208 }
2209 /* @internal */
2210 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: number): number {
2211         if(!isWasmInitialized) {
2212                 throw new Error("initializeWasm() must be awaited first!");
2213         }
2214         const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
2215         return nativeResponseValue;
2216 }
2217 /* @internal */
2218 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: number): number {
2219         if(!isWasmInitialized) {
2220                 throw new Error("initializeWasm() must be awaited first!");
2221         }
2222         const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
2223         return nativeResponseValue;
2224 }
2225 /* @internal */
2226 export function LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr: number): number {
2227         if(!isWasmInitialized) {
2228                 throw new Error("initializeWasm() must be awaited first!");
2229         }
2230         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr);
2231         return nativeResponseValue;
2232 }
2233 /* @internal */
2234 export function LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr: number): bigint {
2235         if(!isWasmInitialized) {
2236                 throw new Error("initializeWasm() must be awaited first!");
2237         }
2238         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr);
2239         return nativeResponseValue;
2240 }
2241 /* @internal */
2242 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: number): number {
2243         if(!isWasmInitialized) {
2244                 throw new Error("initializeWasm() must be awaited first!");
2245         }
2246         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
2247         return nativeResponseValue;
2248 }
2249         // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorEventZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
2250 /* @internal */
2251 export function C2Tuple_OutPointCVec_MonitorEventZZ_get_a(owner: number): number {
2252         if(!isWasmInitialized) {
2253                 throw new Error("initializeWasm() must be awaited first!");
2254         }
2255         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_get_a(owner);
2256         return nativeResponseValue;
2257 }
2258         // struct LDKCVec_MonitorEventZ C2Tuple_OutPointCVec_MonitorEventZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
2259 /* @internal */
2260 export function C2Tuple_OutPointCVec_MonitorEventZZ_get_b(owner: number): number {
2261         if(!isWasmInitialized) {
2262                 throw new Error("initializeWasm() must be awaited first!");
2263         }
2264         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_get_b(owner);
2265         return nativeResponseValue;
2266 }
2267 /* @internal */
2268 export class LDKCOption_C2Tuple_usizeTransactionZZ {
2269         protected constructor() {}
2270 }
2271 /* @internal */
2272 export function LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr: number): number {
2273         if(!isWasmInitialized) {
2274                 throw new Error("initializeWasm() must be awaited first!");
2275         }
2276         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr);
2277         return nativeResponseValue;
2278 }
2279 /* @internal */
2280 export function LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr: number): number {
2281         if(!isWasmInitialized) {
2282                 throw new Error("initializeWasm() must be awaited first!");
2283         }
2284         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr);
2285         return nativeResponseValue;
2286 }
2287         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2288 /* @internal */
2289 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: number): number {
2290         if(!isWasmInitialized) {
2291                 throw new Error("initializeWasm() must be awaited first!");
2292         }
2293         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
2294         return nativeResponseValue;
2295 }
2296         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2297 /* @internal */
2298 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: number): number {
2299         if(!isWasmInitialized) {
2300                 throw new Error("initializeWasm() must be awaited first!");
2301         }
2302         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
2303         return nativeResponseValue;
2304 }
2305 /* @internal */
2306 export interface LDKLogger {
2307         log (record: number): void;
2308 }
2309
2310 /* @internal */
2311 export function LDKLogger_new(impl: LDKLogger): number {
2312         if(!isWasmInitialized) {
2313                 throw new Error("initializeWasm() must be awaited first!");
2314         }
2315         var new_obj_idx = js_objs.length;
2316         for (var i = 0; i < js_objs.length; i++) {
2317                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2318         }
2319         js_objs[i] = new WeakRef(impl);
2320         return wasm.TS_LDKLogger_new(i);
2321 }
2322         // struct LDKProbabilisticScorer *CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2323 /* @internal */
2324 export function CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner: number): number {
2325         if(!isWasmInitialized) {
2326                 throw new Error("initializeWasm() must be awaited first!");
2327         }
2328         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner);
2329         return nativeResponseValue;
2330 }
2331         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2332 /* @internal */
2333 export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: number): number {
2334         if(!isWasmInitialized) {
2335                 throw new Error("initializeWasm() must be awaited first!");
2336         }
2337         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner);
2338         return nativeResponseValue;
2339 }
2340         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2341 /* @internal */
2342 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: number): number {
2343         if(!isWasmInitialized) {
2344                 throw new Error("initializeWasm() must be awaited first!");
2345         }
2346         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
2347         return nativeResponseValue;
2348 }
2349         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2350 /* @internal */
2351 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: number): number {
2352         if(!isWasmInitialized) {
2353                 throw new Error("initializeWasm() must be awaited first!");
2354         }
2355         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
2356         return nativeResponseValue;
2357 }
2358         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2359 /* @internal */
2360 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: number): number {
2361         if(!isWasmInitialized) {
2362                 throw new Error("initializeWasm() must be awaited first!");
2363         }
2364         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
2365         return nativeResponseValue;
2366 }
2367         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2368 /* @internal */
2369 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: number): number {
2370         if(!isWasmInitialized) {
2371                 throw new Error("initializeWasm() must be awaited first!");
2372         }
2373         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
2374         return nativeResponseValue;
2375 }
2376         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2377 /* @internal */
2378 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2379         if(!isWasmInitialized) {
2380                 throw new Error("initializeWasm() must be awaited first!");
2381         }
2382         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
2383         return nativeResponseValue;
2384 }
2385         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2386 /* @internal */
2387 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: number): number {
2388         if(!isWasmInitialized) {
2389                 throw new Error("initializeWasm() must be awaited first!");
2390         }
2391         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
2392         return nativeResponseValue;
2393 }
2394         // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2395 /* @internal */
2396 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: number): number {
2397         if(!isWasmInitialized) {
2398                 throw new Error("initializeWasm() must be awaited first!");
2399         }
2400         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
2401         return nativeResponseValue;
2402 }
2403         // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2404 /* @internal */
2405 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: number): number {
2406         if(!isWasmInitialized) {
2407                 throw new Error("initializeWasm() must be awaited first!");
2408         }
2409         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
2410         return nativeResponseValue;
2411 }
2412         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2413 /* @internal */
2414 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2415         if(!isWasmInitialized) {
2416                 throw new Error("initializeWasm() must be awaited first!");
2417         }
2418         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
2419         return nativeResponseValue;
2420 }
2421         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2422 /* @internal */
2423 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: number): number {
2424         if(!isWasmInitialized) {
2425                 throw new Error("initializeWasm() must be awaited first!");
2426         }
2427         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
2428         return nativeResponseValue;
2429 }
2430         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2431 /* @internal */
2432 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: number): number {
2433         if(!isWasmInitialized) {
2434                 throw new Error("initializeWasm() must be awaited first!");
2435         }
2436         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
2437         return nativeResponseValue;
2438 }
2439         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2440 /* @internal */
2441 export function CResult_NodeIdDecodeErrorZ_get_err(owner: number): number {
2442         if(!isWasmInitialized) {
2443                 throw new Error("initializeWasm() must be awaited first!");
2444         }
2445         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
2446         return nativeResponseValue;
2447 }
2448         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2449 /* @internal */
2450 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: number): number {
2451         if(!isWasmInitialized) {
2452                 throw new Error("initializeWasm() must be awaited first!");
2453         }
2454         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
2455         return nativeResponseValue;
2456 }
2457         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2458 /* @internal */
2459 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: number): number {
2460         if(!isWasmInitialized) {
2461                 throw new Error("initializeWasm() must be awaited first!");
2462         }
2463         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
2464         return nativeResponseValue;
2465 }
2466 /* @internal */
2467 export interface LDKAccess {
2468         get_utxo (genesis_hash: number, short_channel_id: bigint): number;
2469 }
2470
2471 /* @internal */
2472 export function LDKAccess_new(impl: LDKAccess): number {
2473         if(!isWasmInitialized) {
2474                 throw new Error("initializeWasm() must be awaited first!");
2475         }
2476         var new_obj_idx = js_objs.length;
2477         for (var i = 0; i < js_objs.length; i++) {
2478                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2479         }
2480         js_objs[i] = new WeakRef(impl);
2481         return wasm.TS_LDKAccess_new(i);
2482 }
2483         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
2484 /* @internal */
2485 export function Access_get_utxo(this_arg: number, genesis_hash: number, short_channel_id: bigint): number {
2486         if(!isWasmInitialized) {
2487                 throw new Error("initializeWasm() must be awaited first!");
2488         }
2489         const nativeResponseValue = wasm.TS_Access_get_utxo(this_arg, genesis_hash, short_channel_id);
2490         return nativeResponseValue;
2491 }
2492 /* @internal */
2493 export class LDKCOption_AccessZ {
2494         protected constructor() {}
2495 }
2496 /* @internal */
2497 export function LDKCOption_AccessZ_ty_from_ptr(ptr: number): number {
2498         if(!isWasmInitialized) {
2499                 throw new Error("initializeWasm() must be awaited first!");
2500         }
2501         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_ty_from_ptr(ptr);
2502         return nativeResponseValue;
2503 }
2504 /* @internal */
2505 export function LDKCOption_AccessZ_Some_get_some(ptr: number): number {
2506         if(!isWasmInitialized) {
2507                 throw new Error("initializeWasm() must be awaited first!");
2508         }
2509         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_Some_get_some(ptr);
2510         return nativeResponseValue;
2511 }
2512         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2513 /* @internal */
2514 export function CResult_boolLightningErrorZ_get_ok(owner: number): boolean {
2515         if(!isWasmInitialized) {
2516                 throw new Error("initializeWasm() must be awaited first!");
2517         }
2518         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
2519         return nativeResponseValue;
2520 }
2521         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2522 /* @internal */
2523 export function CResult_boolLightningErrorZ_get_err(owner: number): number {
2524         if(!isWasmInitialized) {
2525                 throw new Error("initializeWasm() must be awaited first!");
2526         }
2527         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
2528         return nativeResponseValue;
2529 }
2530         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2531 /* @internal */
2532 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: number): number {
2533         if(!isWasmInitialized) {
2534                 throw new Error("initializeWasm() must be awaited first!");
2535         }
2536         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
2537         return nativeResponseValue;
2538 }
2539         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2540 /* @internal */
2541 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: number): number {
2542         if(!isWasmInitialized) {
2543                 throw new Error("initializeWasm() must be awaited first!");
2544         }
2545         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
2546         return nativeResponseValue;
2547 }
2548         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2549 /* @internal */
2550 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: number): number {
2551         if(!isWasmInitialized) {
2552                 throw new Error("initializeWasm() must be awaited first!");
2553         }
2554         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
2555         return nativeResponseValue;
2556 }
2557         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2558 /* @internal */
2559 export function CResult_NoneLightningErrorZ_get_ok(owner: number): void {
2560         if(!isWasmInitialized) {
2561                 throw new Error("initializeWasm() must be awaited first!");
2562         }
2563         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
2564         // debug statements here
2565 }
2566         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2567 /* @internal */
2568 export function CResult_NoneLightningErrorZ_get_err(owner: number): number {
2569         if(!isWasmInitialized) {
2570                 throw new Error("initializeWasm() must be awaited first!");
2571         }
2572         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
2573         return nativeResponseValue;
2574 }
2575         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2576 /* @internal */
2577 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: number): number {
2578         if(!isWasmInitialized) {
2579                 throw new Error("initializeWasm() must be awaited first!");
2580         }
2581         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
2582         return nativeResponseValue;
2583 }
2584         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2585 /* @internal */
2586 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: number): number {
2587         if(!isWasmInitialized) {
2588                 throw new Error("initializeWasm() must be awaited first!");
2589         }
2590         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
2591         return nativeResponseValue;
2592 }
2593         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2594 /* @internal */
2595 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: number): number {
2596         if(!isWasmInitialized) {
2597                 throw new Error("initializeWasm() must be awaited first!");
2598         }
2599         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
2600         return nativeResponseValue;
2601 }
2602         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2603 /* @internal */
2604 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: number): number {
2605         if(!isWasmInitialized) {
2606                 throw new Error("initializeWasm() must be awaited first!");
2607         }
2608         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
2609         return nativeResponseValue;
2610 }
2611         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2612 /* @internal */
2613 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: number): number {
2614         if(!isWasmInitialized) {
2615                 throw new Error("initializeWasm() must be awaited first!");
2616         }
2617         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
2618         return nativeResponseValue;
2619 }
2620         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2621 /* @internal */
2622 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: number): number {
2623         if(!isWasmInitialized) {
2624                 throw new Error("initializeWasm() must be awaited first!");
2625         }
2626         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
2627         return nativeResponseValue;
2628 }
2629 /* @internal */
2630 export class LDKNetAddress {
2631         protected constructor() {}
2632 }
2633 /* @internal */
2634 export function LDKNetAddress_ty_from_ptr(ptr: number): number {
2635         if(!isWasmInitialized) {
2636                 throw new Error("initializeWasm() must be awaited first!");
2637         }
2638         const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
2639         return nativeResponseValue;
2640 }
2641 /* @internal */
2642 export function LDKNetAddress_IPv4_get_addr(ptr: number): number {
2643         if(!isWasmInitialized) {
2644                 throw new Error("initializeWasm() must be awaited first!");
2645         }
2646         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
2647         return nativeResponseValue;
2648 }
2649 /* @internal */
2650 export function LDKNetAddress_IPv4_get_port(ptr: number): number {
2651         if(!isWasmInitialized) {
2652                 throw new Error("initializeWasm() must be awaited first!");
2653         }
2654         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
2655         return nativeResponseValue;
2656 }
2657 /* @internal */
2658 export function LDKNetAddress_IPv6_get_addr(ptr: number): number {
2659         if(!isWasmInitialized) {
2660                 throw new Error("initializeWasm() must be awaited first!");
2661         }
2662         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
2663         return nativeResponseValue;
2664 }
2665 /* @internal */
2666 export function LDKNetAddress_IPv6_get_port(ptr: number): number {
2667         if(!isWasmInitialized) {
2668                 throw new Error("initializeWasm() must be awaited first!");
2669         }
2670         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
2671         return nativeResponseValue;
2672 }
2673 /* @internal */
2674 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: number): number {
2675         if(!isWasmInitialized) {
2676                 throw new Error("initializeWasm() must be awaited first!");
2677         }
2678         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
2679         return nativeResponseValue;
2680 }
2681 /* @internal */
2682 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: number): number {
2683         if(!isWasmInitialized) {
2684                 throw new Error("initializeWasm() must be awaited first!");
2685         }
2686         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
2687         return nativeResponseValue;
2688 }
2689 /* @internal */
2690 export function LDKNetAddress_OnionV3_get_checksum(ptr: number): number {
2691         if(!isWasmInitialized) {
2692                 throw new Error("initializeWasm() must be awaited first!");
2693         }
2694         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
2695         return nativeResponseValue;
2696 }
2697 /* @internal */
2698 export function LDKNetAddress_OnionV3_get_version(ptr: number): number {
2699         if(!isWasmInitialized) {
2700                 throw new Error("initializeWasm() must be awaited first!");
2701         }
2702         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
2703         return nativeResponseValue;
2704 }
2705 /* @internal */
2706 export function LDKNetAddress_OnionV3_get_port(ptr: number): number {
2707         if(!isWasmInitialized) {
2708                 throw new Error("initializeWasm() must be awaited first!");
2709         }
2710         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
2711         return nativeResponseValue;
2712 }
2713         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
2714 /* @internal */
2715 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: number): number {
2716         if(!isWasmInitialized) {
2717                 throw new Error("initializeWasm() must be awaited first!");
2718         }
2719         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
2720         return nativeResponseValue;
2721 }
2722         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
2723 /* @internal */
2724 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: number): number {
2725         if(!isWasmInitialized) {
2726                 throw new Error("initializeWasm() must be awaited first!");
2727         }
2728         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
2729         return nativeResponseValue;
2730 }
2731         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
2732 /* @internal */
2733 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: number): number {
2734         if(!isWasmInitialized) {
2735                 throw new Error("initializeWasm() must be awaited first!");
2736         }
2737         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
2738         return nativeResponseValue;
2739 }
2740         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
2741 /* @internal */
2742 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: number): number {
2743         if(!isWasmInitialized) {
2744                 throw new Error("initializeWasm() must be awaited first!");
2745         }
2746         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
2747         return nativeResponseValue;
2748 }
2749         // struct LDKNetworkGraph *CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
2750 /* @internal */
2751 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: number): number {
2752         if(!isWasmInitialized) {
2753                 throw new Error("initializeWasm() must be awaited first!");
2754         }
2755         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
2756         return nativeResponseValue;
2757 }
2758         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
2759 /* @internal */
2760 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: number): number {
2761         if(!isWasmInitialized) {
2762                 throw new Error("initializeWasm() must be awaited first!");
2763         }
2764         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
2765         return nativeResponseValue;
2766 }
2767 /* @internal */
2768 export class LDKCOption_CVec_NetAddressZZ {
2769         protected constructor() {}
2770 }
2771 /* @internal */
2772 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: number): number {
2773         if(!isWasmInitialized) {
2774                 throw new Error("initializeWasm() must be awaited first!");
2775         }
2776         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
2777         return nativeResponseValue;
2778 }
2779 /* @internal */
2780 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: number): number {
2781         if(!isWasmInitialized) {
2782                 throw new Error("initializeWasm() must be awaited first!");
2783         }
2784         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
2785         return nativeResponseValue;
2786 }
2787         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2788 /* @internal */
2789 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2790         if(!isWasmInitialized) {
2791                 throw new Error("initializeWasm() must be awaited first!");
2792         }
2793         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2794         return nativeResponseValue;
2795 }
2796         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2797 /* @internal */
2798 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2799         if(!isWasmInitialized) {
2800                 throw new Error("initializeWasm() must be awaited first!");
2801         }
2802         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2803         return nativeResponseValue;
2804 }
2805         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2806 /* @internal */
2807 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2808         if(!isWasmInitialized) {
2809                 throw new Error("initializeWasm() must be awaited first!");
2810         }
2811         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2812         return nativeResponseValue;
2813 }
2814         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2815 /* @internal */
2816 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2817         if(!isWasmInitialized) {
2818                 throw new Error("initializeWasm() must be awaited first!");
2819         }
2820         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2821         return nativeResponseValue;
2822 }
2823         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2824 /* @internal */
2825 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2826         if(!isWasmInitialized) {
2827                 throw new Error("initializeWasm() must be awaited first!");
2828         }
2829         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
2830         return nativeResponseValue;
2831 }
2832         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2833 /* @internal */
2834 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2835         if(!isWasmInitialized) {
2836                 throw new Error("initializeWasm() must be awaited first!");
2837         }
2838         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
2839         return nativeResponseValue;
2840 }
2841         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2842 /* @internal */
2843 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: number): number {
2844         if(!isWasmInitialized) {
2845                 throw new Error("initializeWasm() must be awaited first!");
2846         }
2847         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
2848         return nativeResponseValue;
2849 }
2850         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2851 /* @internal */
2852 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: number): number {
2853         if(!isWasmInitialized) {
2854                 throw new Error("initializeWasm() must be awaited first!");
2855         }
2856         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
2857         return nativeResponseValue;
2858 }
2859         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2860 /* @internal */
2861 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: number): number {
2862         if(!isWasmInitialized) {
2863                 throw new Error("initializeWasm() must be awaited first!");
2864         }
2865         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
2866         return nativeResponseValue;
2867 }
2868         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2869 /* @internal */
2870 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: number): void {
2871         if(!isWasmInitialized) {
2872                 throw new Error("initializeWasm() must be awaited first!");
2873         }
2874         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
2875         // debug statements here
2876 }
2877         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2878 /* @internal */
2879 export function CResult_SignatureNoneZ_get_ok(owner: number): number {
2880         if(!isWasmInitialized) {
2881                 throw new Error("initializeWasm() must be awaited first!");
2882         }
2883         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
2884         return nativeResponseValue;
2885 }
2886         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2887 /* @internal */
2888 export function CResult_SignatureNoneZ_get_err(owner: number): void {
2889         if(!isWasmInitialized) {
2890                 throw new Error("initializeWasm() must be awaited first!");
2891         }
2892         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
2893         // debug statements here
2894 }
2895         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2896 /* @internal */
2897 export function C2Tuple_SignatureSignatureZ_get_a(owner: number): number {
2898         if(!isWasmInitialized) {
2899                 throw new Error("initializeWasm() must be awaited first!");
2900         }
2901         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_a(owner);
2902         return nativeResponseValue;
2903 }
2904         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2905 /* @internal */
2906 export function C2Tuple_SignatureSignatureZ_get_b(owner: number): number {
2907         if(!isWasmInitialized) {
2908                 throw new Error("initializeWasm() must be awaited first!");
2909         }
2910         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_b(owner);
2911         return nativeResponseValue;
2912 }
2913         // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2914 /* @internal */
2915 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner: number): number {
2916         if(!isWasmInitialized) {
2917                 throw new Error("initializeWasm() must be awaited first!");
2918         }
2919         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner);
2920         return nativeResponseValue;
2921 }
2922         // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2923 /* @internal */
2924 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner: number): void {
2925         if(!isWasmInitialized) {
2926                 throw new Error("initializeWasm() must be awaited first!");
2927         }
2928         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner);
2929         // debug statements here
2930 }
2931         // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2932 /* @internal */
2933 export function CResult_SecretKeyNoneZ_get_ok(owner: number): number {
2934         if(!isWasmInitialized) {
2935                 throw new Error("initializeWasm() must be awaited first!");
2936         }
2937         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_ok(owner);
2938         return nativeResponseValue;
2939 }
2940         // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2941 /* @internal */
2942 export function CResult_SecretKeyNoneZ_get_err(owner: number): void {
2943         if(!isWasmInitialized) {
2944                 throw new Error("initializeWasm() must be awaited first!");
2945         }
2946         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_err(owner);
2947         // debug statements here
2948 }
2949 /* @internal */
2950 export interface LDKBaseSign {
2951         get_per_commitment_point (idx: bigint): number;
2952         release_commitment_secret (idx: bigint): number;
2953         validate_holder_commitment (holder_tx: number, preimages: number): number;
2954         channel_keys_id (): number;
2955         sign_counterparty_commitment (commitment_tx: number, preimages: number): number;
2956         validate_counterparty_revocation (idx: bigint, secret: number): number;
2957         sign_holder_commitment_and_htlcs (commitment_tx: number): number;
2958         sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number;
2959         sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number;
2960         sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number;
2961         sign_closing_transaction (closing_tx: number): number;
2962         sign_channel_announcement (msg: number): number;
2963         ready_channel (channel_parameters: number): void;
2964 }
2965
2966 /* @internal */
2967 export function LDKBaseSign_new(impl: LDKBaseSign, pubkeys: number): number {
2968         if(!isWasmInitialized) {
2969                 throw new Error("initializeWasm() must be awaited first!");
2970         }
2971         var new_obj_idx = js_objs.length;
2972         for (var i = 0; i < js_objs.length; i++) {
2973                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2974         }
2975         js_objs[i] = new WeakRef(impl);
2976         return wasm.TS_LDKBaseSign_new(i);
2977 }
2978         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
2979 /* @internal */
2980 export function BaseSign_get_per_commitment_point(this_arg: number, idx: bigint): number {
2981         if(!isWasmInitialized) {
2982                 throw new Error("initializeWasm() must be awaited first!");
2983         }
2984         const nativeResponseValue = wasm.TS_BaseSign_get_per_commitment_point(this_arg, idx);
2985         return nativeResponseValue;
2986 }
2987         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
2988 /* @internal */
2989 export function BaseSign_release_commitment_secret(this_arg: number, idx: bigint): number {
2990         if(!isWasmInitialized) {
2991                 throw new Error("initializeWasm() must be awaited first!");
2992         }
2993         const nativeResponseValue = wasm.TS_BaseSign_release_commitment_secret(this_arg, idx);
2994         return nativeResponseValue;
2995 }
2996         // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
2997 /* @internal */
2998 export function BaseSign_validate_holder_commitment(this_arg: number, holder_tx: number, preimages: number): number {
2999         if(!isWasmInitialized) {
3000                 throw new Error("initializeWasm() must be awaited first!");
3001         }
3002         const nativeResponseValue = wasm.TS_BaseSign_validate_holder_commitment(this_arg, holder_tx, preimages);
3003         return nativeResponseValue;
3004 }
3005         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
3006 /* @internal */
3007 export function BaseSign_channel_keys_id(this_arg: number): number {
3008         if(!isWasmInitialized) {
3009                 throw new Error("initializeWasm() must be awaited first!");
3010         }
3011         const nativeResponseValue = wasm.TS_BaseSign_channel_keys_id(this_arg);
3012         return nativeResponseValue;
3013 }
3014         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
3015 /* @internal */
3016 export function BaseSign_sign_counterparty_commitment(this_arg: number, commitment_tx: number, preimages: number): number {
3017         if(!isWasmInitialized) {
3018                 throw new Error("initializeWasm() must be awaited first!");
3019         }
3020         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
3021         return nativeResponseValue;
3022 }
3023         // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
3024 /* @internal */
3025 export function BaseSign_validate_counterparty_revocation(this_arg: number, idx: bigint, secret: number): number {
3026         if(!isWasmInitialized) {
3027                 throw new Error("initializeWasm() must be awaited first!");
3028         }
3029         const nativeResponseValue = wasm.TS_BaseSign_validate_counterparty_revocation(this_arg, idx, secret);
3030         return nativeResponseValue;
3031 }
3032         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
3033 /* @internal */
3034 export function BaseSign_sign_holder_commitment_and_htlcs(this_arg: number, commitment_tx: number): number {
3035         if(!isWasmInitialized) {
3036                 throw new Error("initializeWasm() must be awaited first!");
3037         }
3038         const nativeResponseValue = wasm.TS_BaseSign_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
3039         return nativeResponseValue;
3040 }
3041         // 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]
3042 /* @internal */
3043 export function BaseSign_sign_justice_revoked_output(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number {
3044         if(!isWasmInitialized) {
3045                 throw new Error("initializeWasm() must be awaited first!");
3046         }
3047         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
3048         return nativeResponseValue;
3049 }
3050         // 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
3051 /* @internal */
3052 export function BaseSign_sign_justice_revoked_htlc(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number {
3053         if(!isWasmInitialized) {
3054                 throw new Error("initializeWasm() must be awaited first!");
3055         }
3056         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
3057         return nativeResponseValue;
3058 }
3059         // 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
3060 /* @internal */
3061 export function BaseSign_sign_counterparty_htlc_transaction(this_arg: number, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number {
3062         if(!isWasmInitialized) {
3063                 throw new Error("initializeWasm() must be awaited first!");
3064         }
3065         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
3066         return nativeResponseValue;
3067 }
3068         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
3069 /* @internal */
3070 export function BaseSign_sign_closing_transaction(this_arg: number, closing_tx: number): number {
3071         if(!isWasmInitialized) {
3072                 throw new Error("initializeWasm() must be awaited first!");
3073         }
3074         const nativeResponseValue = wasm.TS_BaseSign_sign_closing_transaction(this_arg, closing_tx);
3075         return nativeResponseValue;
3076 }
3077         // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
3078 /* @internal */
3079 export function BaseSign_sign_channel_announcement(this_arg: number, msg: number): number {
3080         if(!isWasmInitialized) {
3081                 throw new Error("initializeWasm() must be awaited first!");
3082         }
3083         const nativeResponseValue = wasm.TS_BaseSign_sign_channel_announcement(this_arg, msg);
3084         return nativeResponseValue;
3085 }
3086         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
3087 /* @internal */
3088 export function BaseSign_ready_channel(this_arg: number, channel_parameters: number): void {
3089         if(!isWasmInitialized) {
3090                 throw new Error("initializeWasm() must be awaited first!");
3091         }
3092         const nativeResponseValue = wasm.TS_BaseSign_ready_channel(this_arg, channel_parameters);
3093         // debug statements here
3094 }
3095         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
3096 /* @internal */
3097 export function BaseSign_get_pubkeys(this_arg: number): number {
3098         if(!isWasmInitialized) {
3099                 throw new Error("initializeWasm() must be awaited first!");
3100         }
3101         const nativeResponseValue = wasm.TS_BaseSign_get_pubkeys(this_arg);
3102         return nativeResponseValue;
3103 }
3104 /* @internal */
3105 export interface LDKSign {
3106         write (): number;
3107 }
3108
3109 /* @internal */
3110 export function LDKSign_new(impl: LDKSign, BaseSign: LDKBaseSign, pubkeys: number): number {
3111         if(!isWasmInitialized) {
3112                 throw new Error("initializeWasm() must be awaited first!");
3113         }
3114         var new_obj_idx = js_objs.length;
3115         for (var i = 0; i < js_objs.length; i++) {
3116                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3117         }
3118         js_objs[i] = new WeakRef(impl);
3119         return wasm.TS_LDKSign_new(i);
3120 }
3121         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
3122 /* @internal */
3123 export function Sign_write(this_arg: number): number {
3124         if(!isWasmInitialized) {
3125                 throw new Error("initializeWasm() must be awaited first!");
3126         }
3127         const nativeResponseValue = wasm.TS_Sign_write(this_arg);
3128         return nativeResponseValue;
3129 }
3130         // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3131 /* @internal */
3132 export function CResult_SignDecodeErrorZ_get_ok(owner: number): number {
3133         if(!isWasmInitialized) {
3134                 throw new Error("initializeWasm() must be awaited first!");
3135         }
3136         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_ok(owner);
3137         return nativeResponseValue;
3138 }
3139         // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3140 /* @internal */
3141 export function CResult_SignDecodeErrorZ_get_err(owner: number): number {
3142         if(!isWasmInitialized) {
3143                 throw new Error("initializeWasm() must be awaited first!");
3144         }
3145         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_err(owner);
3146         return nativeResponseValue;
3147 }
3148         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3149 /* @internal */
3150 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: number): number {
3151         if(!isWasmInitialized) {
3152                 throw new Error("initializeWasm() must be awaited first!");
3153         }
3154         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
3155         return nativeResponseValue;
3156 }
3157         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3158 /* @internal */
3159 export function CResult_RecoverableSignatureNoneZ_get_err(owner: number): void {
3160         if(!isWasmInitialized) {
3161                 throw new Error("initializeWasm() must be awaited first!");
3162         }
3163         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
3164         // debug statements here
3165 }
3166         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3167 /* @internal */
3168 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: number): number {
3169         if(!isWasmInitialized) {
3170                 throw new Error("initializeWasm() must be awaited first!");
3171         }
3172         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
3173         return nativeResponseValue;
3174 }
3175         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3176 /* @internal */
3177 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: number): void {
3178         if(!isWasmInitialized) {
3179                 throw new Error("initializeWasm() must be awaited first!");
3180         }
3181         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
3182         // debug statements here
3183 }
3184         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3185 /* @internal */
3186 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: number): number {
3187         if(!isWasmInitialized) {
3188                 throw new Error("initializeWasm() must be awaited first!");
3189         }
3190         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
3191         return nativeResponseValue;
3192 }
3193         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3194 /* @internal */
3195 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: number): number {
3196         if(!isWasmInitialized) {
3197                 throw new Error("initializeWasm() must be awaited first!");
3198         }
3199         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
3200         return nativeResponseValue;
3201 }
3202         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3203 /* @internal */
3204 export function CResult_TransactionNoneZ_get_ok(owner: number): number {
3205         if(!isWasmInitialized) {
3206                 throw new Error("initializeWasm() must be awaited first!");
3207         }
3208         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
3209         return nativeResponseValue;
3210 }
3211         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3212 /* @internal */
3213 export function CResult_TransactionNoneZ_get_err(owner: number): void {
3214         if(!isWasmInitialized) {
3215                 throw new Error("initializeWasm() must be awaited first!");
3216         }
3217         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
3218         // debug statements here
3219 }
3220 /* @internal */
3221 export class LDKCOption_u16Z {
3222         protected constructor() {}
3223 }
3224 /* @internal */
3225 export function LDKCOption_u16Z_ty_from_ptr(ptr: number): number {
3226         if(!isWasmInitialized) {
3227                 throw new Error("initializeWasm() must be awaited first!");
3228         }
3229         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
3230         return nativeResponseValue;
3231 }
3232 /* @internal */
3233 export function LDKCOption_u16Z_Some_get_some(ptr: number): number {
3234         if(!isWasmInitialized) {
3235                 throw new Error("initializeWasm() must be awaited first!");
3236         }
3237         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
3238         return nativeResponseValue;
3239 }
3240 /* @internal */
3241 export class LDKAPIError {
3242         protected constructor() {}
3243 }
3244 /* @internal */
3245 export function LDKAPIError_ty_from_ptr(ptr: number): number {
3246         if(!isWasmInitialized) {
3247                 throw new Error("initializeWasm() must be awaited first!");
3248         }
3249         const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
3250         return nativeResponseValue;
3251 }
3252 /* @internal */
3253 export function LDKAPIError_APIMisuseError_get_err(ptr: number): number {
3254         if(!isWasmInitialized) {
3255                 throw new Error("initializeWasm() must be awaited first!");
3256         }
3257         const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
3258         return nativeResponseValue;
3259 }
3260 /* @internal */
3261 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: number): number {
3262         if(!isWasmInitialized) {
3263                 throw new Error("initializeWasm() must be awaited first!");
3264         }
3265         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
3266         return nativeResponseValue;
3267 }
3268 /* @internal */
3269 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: number): number {
3270         if(!isWasmInitialized) {
3271                 throw new Error("initializeWasm() must be awaited first!");
3272         }
3273         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
3274         return nativeResponseValue;
3275 }
3276 /* @internal */
3277 export function LDKAPIError_RouteError_get_err(ptr: number): number {
3278         if(!isWasmInitialized) {
3279                 throw new Error("initializeWasm() must be awaited first!");
3280         }
3281         const nativeResponseValue = wasm.TS_LDKAPIError_RouteError_get_err(ptr);
3282         return nativeResponseValue;
3283 }
3284 /* @internal */
3285 export function LDKAPIError_ChannelUnavailable_get_err(ptr: number): number {
3286         if(!isWasmInitialized) {
3287                 throw new Error("initializeWasm() must be awaited first!");
3288         }
3289         const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
3290         return nativeResponseValue;
3291 }
3292 /* @internal */
3293 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: number): number {
3294         if(!isWasmInitialized) {
3295                 throw new Error("initializeWasm() must be awaited first!");
3296         }
3297         const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
3298         return nativeResponseValue;
3299 }
3300         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3301 /* @internal */
3302 export function CResult_NoneAPIErrorZ_get_ok(owner: number): void {
3303         if(!isWasmInitialized) {
3304                 throw new Error("initializeWasm() must be awaited first!");
3305         }
3306         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
3307         // debug statements here
3308 }
3309         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3310 /* @internal */
3311 export function CResult_NoneAPIErrorZ_get_err(owner: number): number {
3312         if(!isWasmInitialized) {
3313                 throw new Error("initializeWasm() must be awaited first!");
3314         }
3315         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
3316         return nativeResponseValue;
3317 }
3318         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3319 /* @internal */
3320 export function CResult__u832APIErrorZ_get_ok(owner: number): number {
3321         if(!isWasmInitialized) {
3322                 throw new Error("initializeWasm() must be awaited first!");
3323         }
3324         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
3325         return nativeResponseValue;
3326 }
3327         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3328 /* @internal */
3329 export function CResult__u832APIErrorZ_get_err(owner: number): number {
3330         if(!isWasmInitialized) {
3331                 throw new Error("initializeWasm() must be awaited first!");
3332         }
3333         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
3334         return nativeResponseValue;
3335 }
3336 /* @internal */
3337 export class LDKPaymentSendFailure {
3338         protected constructor() {}
3339 }
3340 /* @internal */
3341 export function LDKPaymentSendFailure_ty_from_ptr(ptr: number): number {
3342         if(!isWasmInitialized) {
3343                 throw new Error("initializeWasm() must be awaited first!");
3344         }
3345         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
3346         return nativeResponseValue;
3347 }
3348 /* @internal */
3349 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: number): number {
3350         if(!isWasmInitialized) {
3351                 throw new Error("initializeWasm() must be awaited first!");
3352         }
3353         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
3354         return nativeResponseValue;
3355 }
3356 /* @internal */
3357 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: number): number {
3358         if(!isWasmInitialized) {
3359                 throw new Error("initializeWasm() must be awaited first!");
3360         }
3361         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
3362         return nativeResponseValue;
3363 }
3364 /* @internal */
3365 export function LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr: number): number {
3366         if(!isWasmInitialized) {
3367                 throw new Error("initializeWasm() must be awaited first!");
3368         }
3369         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr);
3370         return nativeResponseValue;
3371 }
3372 /* @internal */
3373 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: number): number {
3374         if(!isWasmInitialized) {
3375                 throw new Error("initializeWasm() must be awaited first!");
3376         }
3377         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
3378         return nativeResponseValue;
3379 }
3380 /* @internal */
3381 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: number): number {
3382         if(!isWasmInitialized) {
3383                 throw new Error("initializeWasm() must be awaited first!");
3384         }
3385         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
3386         return nativeResponseValue;
3387 }
3388 /* @internal */
3389 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: number): number {
3390         if(!isWasmInitialized) {
3391                 throw new Error("initializeWasm() must be awaited first!");
3392         }
3393         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
3394         return nativeResponseValue;
3395 }
3396         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3397 /* @internal */
3398 export function CResult_PaymentIdPaymentSendFailureZ_get_ok(owner: number): number {
3399         if(!isWasmInitialized) {
3400                 throw new Error("initializeWasm() must be awaited first!");
3401         }
3402         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_ok(owner);
3403         return nativeResponseValue;
3404 }
3405         // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3406 /* @internal */
3407 export function CResult_PaymentIdPaymentSendFailureZ_get_err(owner: number): number {
3408         if(!isWasmInitialized) {
3409                 throw new Error("initializeWasm() must be awaited first!");
3410         }
3411         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_err(owner);
3412         return nativeResponseValue;
3413 }
3414         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3415 /* @internal */
3416 export function CResult_NonePaymentSendFailureZ_get_ok(owner: number): void {
3417         if(!isWasmInitialized) {
3418                 throw new Error("initializeWasm() must be awaited first!");
3419         }
3420         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
3421         // debug statements here
3422 }
3423         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3424 /* @internal */
3425 export function CResult_NonePaymentSendFailureZ_get_err(owner: number): number {
3426         if(!isWasmInitialized) {
3427                 throw new Error("initializeWasm() must be awaited first!");
3428         }
3429         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
3430         return nativeResponseValue;
3431 }
3432         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3433 /* @internal */
3434 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: number): number {
3435         if(!isWasmInitialized) {
3436                 throw new Error("initializeWasm() must be awaited first!");
3437         }
3438         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
3439         return nativeResponseValue;
3440 }
3441         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3442 /* @internal */
3443 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: number): number {
3444         if(!isWasmInitialized) {
3445                 throw new Error("initializeWasm() must be awaited first!");
3446         }
3447         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
3448         return nativeResponseValue;
3449 }
3450         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3451 /* @internal */
3452 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: number): number {
3453         if(!isWasmInitialized) {
3454                 throw new Error("initializeWasm() must be awaited first!");
3455         }
3456         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
3457         return nativeResponseValue;
3458 }
3459         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3460 /* @internal */
3461 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: number): number {
3462         if(!isWasmInitialized) {
3463                 throw new Error("initializeWasm() must be awaited first!");
3464         }
3465         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
3466         return nativeResponseValue;
3467 }
3468         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3469 /* @internal */
3470 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: number): number {
3471         if(!isWasmInitialized) {
3472                 throw new Error("initializeWasm() must be awaited first!");
3473         }
3474         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
3475         return nativeResponseValue;
3476 }
3477         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3478 /* @internal */
3479 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: number): number {
3480         if(!isWasmInitialized) {
3481                 throw new Error("initializeWasm() must be awaited first!");
3482         }
3483         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
3484         return nativeResponseValue;
3485 }
3486         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3487 /* @internal */
3488 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: number): number {
3489         if(!isWasmInitialized) {
3490                 throw new Error("initializeWasm() must be awaited first!");
3491         }
3492         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
3493         return nativeResponseValue;
3494 }
3495         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3496 /* @internal */
3497 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: number): void {
3498         if(!isWasmInitialized) {
3499                 throw new Error("initializeWasm() must be awaited first!");
3500         }
3501         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
3502         // debug statements here
3503 }
3504         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3505 /* @internal */
3506 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: number): number {
3507         if(!isWasmInitialized) {
3508                 throw new Error("initializeWasm() must be awaited first!");
3509         }
3510         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
3511         return nativeResponseValue;
3512 }
3513         // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3514 /* @internal */
3515 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: number): number {
3516         if(!isWasmInitialized) {
3517                 throw new Error("initializeWasm() must be awaited first!");
3518         }
3519         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
3520         return nativeResponseValue;
3521 }
3522         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3523 /* @internal */
3524 export function CResult_PaymentSecretNoneZ_get_ok(owner: number): number {
3525         if(!isWasmInitialized) {
3526                 throw new Error("initializeWasm() must be awaited first!");
3527         }
3528         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
3529         return nativeResponseValue;
3530 }
3531         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3532 /* @internal */
3533 export function CResult_PaymentSecretNoneZ_get_err(owner: number): void {
3534         if(!isWasmInitialized) {
3535                 throw new Error("initializeWasm() must be awaited first!");
3536         }
3537         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
3538         // debug statements here
3539 }
3540         // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3541 /* @internal */
3542 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: number): number {
3543         if(!isWasmInitialized) {
3544                 throw new Error("initializeWasm() must be awaited first!");
3545         }
3546         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
3547         return nativeResponseValue;
3548 }
3549         // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3550 /* @internal */
3551 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: number): number {
3552         if(!isWasmInitialized) {
3553                 throw new Error("initializeWasm() must be awaited first!");
3554         }
3555         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
3556         return nativeResponseValue;
3557 }
3558         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3559 /* @internal */
3560 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: number): number {
3561         if(!isWasmInitialized) {
3562                 throw new Error("initializeWasm() must be awaited first!");
3563         }
3564         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
3565         return nativeResponseValue;
3566 }
3567         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3568 /* @internal */
3569 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: number): number {
3570         if(!isWasmInitialized) {
3571                 throw new Error("initializeWasm() must be awaited first!");
3572         }
3573         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
3574         return nativeResponseValue;
3575 }
3576         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3577 /* @internal */
3578 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: number): number {
3579         if(!isWasmInitialized) {
3580                 throw new Error("initializeWasm() must be awaited first!");
3581         }
3582         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
3583         return nativeResponseValue;
3584 }
3585         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3586 /* @internal */
3587 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: number): number {
3588         if(!isWasmInitialized) {
3589                 throw new Error("initializeWasm() must be awaited first!");
3590         }
3591         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
3592         return nativeResponseValue;
3593 }
3594         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3595 /* @internal */
3596 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: number): number {
3597         if(!isWasmInitialized) {
3598                 throw new Error("initializeWasm() must be awaited first!");
3599         }
3600         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
3601         return nativeResponseValue;
3602 }
3603         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3604 /* @internal */
3605 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: number): number {
3606         if(!isWasmInitialized) {
3607                 throw new Error("initializeWasm() must be awaited first!");
3608         }
3609         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
3610         return nativeResponseValue;
3611 }
3612         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3613 /* @internal */
3614 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: number): number {
3615         if(!isWasmInitialized) {
3616                 throw new Error("initializeWasm() must be awaited first!");
3617         }
3618         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
3619         return nativeResponseValue;
3620 }
3621         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3622 /* @internal */
3623 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: number): number {
3624         if(!isWasmInitialized) {
3625                 throw new Error("initializeWasm() must be awaited first!");
3626         }
3627         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
3628         return nativeResponseValue;
3629 }
3630         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3631 /* @internal */
3632 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: number): number {
3633         if(!isWasmInitialized) {
3634                 throw new Error("initializeWasm() must be awaited first!");
3635         }
3636         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
3637         return nativeResponseValue;
3638 }
3639         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3640 /* @internal */
3641 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: number): number {
3642         if(!isWasmInitialized) {
3643                 throw new Error("initializeWasm() must be awaited first!");
3644         }
3645         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
3646         return nativeResponseValue;
3647 }
3648 /* @internal */
3649 export interface LDKWatch {
3650         watch_channel (funding_txo: number, monitor: number): number;
3651         update_channel (funding_txo: number, update: number): number;
3652         release_pending_monitor_events (): number;
3653 }
3654
3655 /* @internal */
3656 export function LDKWatch_new(impl: LDKWatch): number {
3657         if(!isWasmInitialized) {
3658                 throw new Error("initializeWasm() must be awaited first!");
3659         }
3660         var new_obj_idx = js_objs.length;
3661         for (var i = 0; i < js_objs.length; i++) {
3662                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3663         }
3664         js_objs[i] = new WeakRef(impl);
3665         return wasm.TS_LDKWatch_new(i);
3666 }
3667         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
3668 /* @internal */
3669 export function Watch_watch_channel(this_arg: number, funding_txo: number, monitor: number): number {
3670         if(!isWasmInitialized) {
3671                 throw new Error("initializeWasm() must be awaited first!");
3672         }
3673         const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
3674         return nativeResponseValue;
3675 }
3676         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
3677 /* @internal */
3678 export function Watch_update_channel(this_arg: number, funding_txo: number, update: number): number {
3679         if(!isWasmInitialized) {
3680                 throw new Error("initializeWasm() must be awaited first!");
3681         }
3682         const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
3683         return nativeResponseValue;
3684 }
3685         // LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
3686 /* @internal */
3687 export function Watch_release_pending_monitor_events(this_arg: number): number {
3688         if(!isWasmInitialized) {
3689                 throw new Error("initializeWasm() must be awaited first!");
3690         }
3691         const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
3692         return nativeResponseValue;
3693 }
3694 /* @internal */
3695 export interface LDKBroadcasterInterface {
3696         broadcast_transaction (tx: number): void;
3697 }
3698
3699 /* @internal */
3700 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): number {
3701         if(!isWasmInitialized) {
3702                 throw new Error("initializeWasm() must be awaited first!");
3703         }
3704         var new_obj_idx = js_objs.length;
3705         for (var i = 0; i < js_objs.length; i++) {
3706                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3707         }
3708         js_objs[i] = new WeakRef(impl);
3709         return wasm.TS_LDKBroadcasterInterface_new(i);
3710 }
3711         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
3712 /* @internal */
3713 export function BroadcasterInterface_broadcast_transaction(this_arg: number, tx: number): void {
3714         if(!isWasmInitialized) {
3715                 throw new Error("initializeWasm() must be awaited first!");
3716         }
3717         const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
3718         // debug statements here
3719 }
3720 /* @internal */
3721 export interface LDKKeysInterface {
3722         get_node_secret (recipient: Recipient): number;
3723         get_destination_script (): number;
3724         get_shutdown_scriptpubkey (): number;
3725         get_channel_signer (inbound: boolean, channel_value_satoshis: bigint): number;
3726         get_secure_random_bytes (): number;
3727         read_chan_signer (reader: number): number;
3728         sign_invoice (hrp_bytes: number, invoice_data: number, receipient: Recipient): number;
3729         get_inbound_payment_key_material (): number;
3730 }
3731
3732 /* @internal */
3733 export function LDKKeysInterface_new(impl: LDKKeysInterface): number {
3734         if(!isWasmInitialized) {
3735                 throw new Error("initializeWasm() must be awaited first!");
3736         }
3737         var new_obj_idx = js_objs.length;
3738         for (var i = 0; i < js_objs.length; i++) {
3739                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3740         }
3741         js_objs[i] = new WeakRef(impl);
3742         return wasm.TS_LDKKeysInterface_new(i);
3743 }
3744         // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
3745 /* @internal */
3746 export function KeysInterface_get_node_secret(this_arg: number, recipient: Recipient): number {
3747         if(!isWasmInitialized) {
3748                 throw new Error("initializeWasm() must be awaited first!");
3749         }
3750         const nativeResponseValue = wasm.TS_KeysInterface_get_node_secret(this_arg, recipient);
3751         return nativeResponseValue;
3752 }
3753         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
3754 /* @internal */
3755 export function KeysInterface_get_destination_script(this_arg: number): number {
3756         if(!isWasmInitialized) {
3757                 throw new Error("initializeWasm() must be awaited first!");
3758         }
3759         const nativeResponseValue = wasm.TS_KeysInterface_get_destination_script(this_arg);
3760         return nativeResponseValue;
3761 }
3762         // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
3763 /* @internal */
3764 export function KeysInterface_get_shutdown_scriptpubkey(this_arg: number): number {
3765         if(!isWasmInitialized) {
3766                 throw new Error("initializeWasm() must be awaited first!");
3767         }
3768         const nativeResponseValue = wasm.TS_KeysInterface_get_shutdown_scriptpubkey(this_arg);
3769         return nativeResponseValue;
3770 }
3771         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
3772 /* @internal */
3773 export function KeysInterface_get_channel_signer(this_arg: number, inbound: boolean, channel_value_satoshis: bigint): number {
3774         if(!isWasmInitialized) {
3775                 throw new Error("initializeWasm() must be awaited first!");
3776         }
3777         const nativeResponseValue = wasm.TS_KeysInterface_get_channel_signer(this_arg, inbound, channel_value_satoshis);
3778         return nativeResponseValue;
3779 }
3780         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
3781 /* @internal */
3782 export function KeysInterface_get_secure_random_bytes(this_arg: number): number {
3783         if(!isWasmInitialized) {
3784                 throw new Error("initializeWasm() must be awaited first!");
3785         }
3786         const nativeResponseValue = wasm.TS_KeysInterface_get_secure_random_bytes(this_arg);
3787         return nativeResponseValue;
3788 }
3789         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
3790 /* @internal */
3791 export function KeysInterface_read_chan_signer(this_arg: number, reader: number): number {
3792         if(!isWasmInitialized) {
3793                 throw new Error("initializeWasm() must be awaited first!");
3794         }
3795         const nativeResponseValue = wasm.TS_KeysInterface_read_chan_signer(this_arg, reader);
3796         return nativeResponseValue;
3797 }
3798         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
3799 /* @internal */
3800 export function KeysInterface_sign_invoice(this_arg: number, hrp_bytes: number, invoice_data: number, receipient: Recipient): number {
3801         if(!isWasmInitialized) {
3802                 throw new Error("initializeWasm() must be awaited first!");
3803         }
3804         const nativeResponseValue = wasm.TS_KeysInterface_sign_invoice(this_arg, hrp_bytes, invoice_data, receipient);
3805         return nativeResponseValue;
3806 }
3807         // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
3808 /* @internal */
3809 export function KeysInterface_get_inbound_payment_key_material(this_arg: number): number {
3810         if(!isWasmInitialized) {
3811                 throw new Error("initializeWasm() must be awaited first!");
3812         }
3813         const nativeResponseValue = wasm.TS_KeysInterface_get_inbound_payment_key_material(this_arg);
3814         return nativeResponseValue;
3815 }
3816 /* @internal */
3817 export interface LDKFeeEstimator {
3818         get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
3819 }
3820
3821 /* @internal */
3822 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): number {
3823         if(!isWasmInitialized) {
3824                 throw new Error("initializeWasm() must be awaited first!");
3825         }
3826         var new_obj_idx = js_objs.length;
3827         for (var i = 0; i < js_objs.length; i++) {
3828                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3829         }
3830         js_objs[i] = new WeakRef(impl);
3831         return wasm.TS_LDKFeeEstimator_new(i);
3832 }
3833         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
3834 /* @internal */
3835 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: number, confirmation_target: ConfirmationTarget): number {
3836         if(!isWasmInitialized) {
3837                 throw new Error("initializeWasm() must be awaited first!");
3838         }
3839         const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
3840         return nativeResponseValue;
3841 }
3842         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3843 /* @internal */
3844 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: number): number {
3845         if(!isWasmInitialized) {
3846                 throw new Error("initializeWasm() must be awaited first!");
3847         }
3848         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
3849         return nativeResponseValue;
3850 }
3851         // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3852 /* @internal */
3853 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: number): number {
3854         if(!isWasmInitialized) {
3855                 throw new Error("initializeWasm() must be awaited first!");
3856         }
3857         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
3858         return nativeResponseValue;
3859 }
3860         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3861 /* @internal */
3862 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: number): number {
3863         if(!isWasmInitialized) {
3864                 throw new Error("initializeWasm() must be awaited first!");
3865         }
3866         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
3867         return nativeResponseValue;
3868 }
3869         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3870 /* @internal */
3871 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: number): number {
3872         if(!isWasmInitialized) {
3873                 throw new Error("initializeWasm() must be awaited first!");
3874         }
3875         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
3876         return nativeResponseValue;
3877 }
3878         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3879 /* @internal */
3880 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: number): number {
3881         if(!isWasmInitialized) {
3882                 throw new Error("initializeWasm() must be awaited first!");
3883         }
3884         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
3885         return nativeResponseValue;
3886 }
3887         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3888 /* @internal */
3889 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: number): number {
3890         if(!isWasmInitialized) {
3891                 throw new Error("initializeWasm() must be awaited first!");
3892         }
3893         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
3894         return nativeResponseValue;
3895 }
3896         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3897 /* @internal */
3898 export function CResult_OutPointDecodeErrorZ_get_ok(owner: number): number {
3899         if(!isWasmInitialized) {
3900                 throw new Error("initializeWasm() must be awaited first!");
3901         }
3902         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
3903         return nativeResponseValue;
3904 }
3905         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3906 /* @internal */
3907 export function CResult_OutPointDecodeErrorZ_get_err(owner: number): number {
3908         if(!isWasmInitialized) {
3909                 throw new Error("initializeWasm() must be awaited first!");
3910         }
3911         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
3912         return nativeResponseValue;
3913 }
3914 /* @internal */
3915 export interface LDKType {
3916         type_id (): number;
3917         debug_str (): number;
3918         write (): number;
3919 }
3920
3921 /* @internal */
3922 export function LDKType_new(impl: LDKType): number {
3923         if(!isWasmInitialized) {
3924                 throw new Error("initializeWasm() must be awaited first!");
3925         }
3926         var new_obj_idx = js_objs.length;
3927         for (var i = 0; i < js_objs.length; i++) {
3928                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3929         }
3930         js_objs[i] = new WeakRef(impl);
3931         return wasm.TS_LDKType_new(i);
3932 }
3933         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
3934 /* @internal */
3935 export function Type_type_id(this_arg: number): number {
3936         if(!isWasmInitialized) {
3937                 throw new Error("initializeWasm() must be awaited first!");
3938         }
3939         const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
3940         return nativeResponseValue;
3941 }
3942         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
3943 /* @internal */
3944 export function Type_debug_str(this_arg: number): number {
3945         if(!isWasmInitialized) {
3946                 throw new Error("initializeWasm() must be awaited first!");
3947         }
3948         const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
3949         return nativeResponseValue;
3950 }
3951         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
3952 /* @internal */
3953 export function Type_write(this_arg: number): number {
3954         if(!isWasmInitialized) {
3955                 throw new Error("initializeWasm() must be awaited first!");
3956         }
3957         const nativeResponseValue = wasm.TS_Type_write(this_arg);
3958         return nativeResponseValue;
3959 }
3960 /* @internal */
3961 export class LDKCOption_TypeZ {
3962         protected constructor() {}
3963 }
3964 /* @internal */
3965 export function LDKCOption_TypeZ_ty_from_ptr(ptr: number): number {
3966         if(!isWasmInitialized) {
3967                 throw new Error("initializeWasm() must be awaited first!");
3968         }
3969         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
3970         return nativeResponseValue;
3971 }
3972 /* @internal */
3973 export function LDKCOption_TypeZ_Some_get_some(ptr: number): number {
3974         if(!isWasmInitialized) {
3975                 throw new Error("initializeWasm() must be awaited first!");
3976         }
3977         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
3978         return nativeResponseValue;
3979 }
3980         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
3981 /* @internal */
3982 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: number): number {
3983         if(!isWasmInitialized) {
3984                 throw new Error("initializeWasm() must be awaited first!");
3985         }
3986         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
3987         return nativeResponseValue;
3988 }
3989         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
3990 /* @internal */
3991 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: number): number {
3992         if(!isWasmInitialized) {
3993                 throw new Error("initializeWasm() must be awaited first!");
3994         }
3995         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
3996         return nativeResponseValue;
3997 }
3998 /* @internal */
3999 export class LDKPaymentError {
4000         protected constructor() {}
4001 }
4002 /* @internal */
4003 export function LDKPaymentError_ty_from_ptr(ptr: number): number {
4004         if(!isWasmInitialized) {
4005                 throw new Error("initializeWasm() must be awaited first!");
4006         }
4007         const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
4008         return nativeResponseValue;
4009 }
4010 /* @internal */
4011 export function LDKPaymentError_Invoice_get_invoice(ptr: number): number {
4012         if(!isWasmInitialized) {
4013                 throw new Error("initializeWasm() must be awaited first!");
4014         }
4015         const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
4016         return nativeResponseValue;
4017 }
4018 /* @internal */
4019 export function LDKPaymentError_Routing_get_routing(ptr: number): number {
4020         if(!isWasmInitialized) {
4021                 throw new Error("initializeWasm() must be awaited first!");
4022         }
4023         const nativeResponseValue = wasm.TS_LDKPaymentError_Routing_get_routing(ptr);
4024         return nativeResponseValue;
4025 }
4026 /* @internal */
4027 export function LDKPaymentError_Sending_get_sending(ptr: number): number {
4028         if(!isWasmInitialized) {
4029                 throw new Error("initializeWasm() must be awaited first!");
4030         }
4031         const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
4032         return nativeResponseValue;
4033 }
4034         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4035 /* @internal */
4036 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: number): number {
4037         if(!isWasmInitialized) {
4038                 throw new Error("initializeWasm() must be awaited first!");
4039         }
4040         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
4041         return nativeResponseValue;
4042 }
4043         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4044 /* @internal */
4045 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: number): number {
4046         if(!isWasmInitialized) {
4047                 throw new Error("initializeWasm() must be awaited first!");
4048         }
4049         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
4050         return nativeResponseValue;
4051 }
4052 /* @internal */
4053 export class LDKParseError {
4054         protected constructor() {}
4055 }
4056 /* @internal */
4057 export function LDKParseError_ty_from_ptr(ptr: number): number {
4058         if(!isWasmInitialized) {
4059                 throw new Error("initializeWasm() must be awaited first!");
4060         }
4061         const nativeResponseValue = wasm.TS_LDKParseError_ty_from_ptr(ptr);
4062         return nativeResponseValue;
4063 }
4064 /* @internal */
4065 export function LDKParseError_Bech32Error_get_bech32_error(ptr: number): number {
4066         if(!isWasmInitialized) {
4067                 throw new Error("initializeWasm() must be awaited first!");
4068         }
4069         const nativeResponseValue = wasm.TS_LDKParseError_Bech32Error_get_bech32_error(ptr);
4070         return nativeResponseValue;
4071 }
4072 /* @internal */
4073 export function LDKParseError_ParseAmountError_get_parse_amount_error(ptr: number): number {
4074         if(!isWasmInitialized) {
4075                 throw new Error("initializeWasm() must be awaited first!");
4076         }
4077         const nativeResponseValue = wasm.TS_LDKParseError_ParseAmountError_get_parse_amount_error(ptr);
4078         return nativeResponseValue;
4079 }
4080 /* @internal */
4081 export function LDKParseError_MalformedSignature_get_malformed_signature(ptr: number): Secp256k1Error {
4082         if(!isWasmInitialized) {
4083                 throw new Error("initializeWasm() must be awaited first!");
4084         }
4085         const nativeResponseValue = wasm.TS_LDKParseError_MalformedSignature_get_malformed_signature(ptr);
4086         return nativeResponseValue;
4087 }
4088 /* @internal */
4089 export function LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr: number): number {
4090         if(!isWasmInitialized) {
4091                 throw new Error("initializeWasm() must be awaited first!");
4092         }
4093         const nativeResponseValue = wasm.TS_LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr);
4094         return nativeResponseValue;
4095 }
4096 /* @internal */
4097 export function LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr: number): number {
4098         if(!isWasmInitialized) {
4099                 throw new Error("initializeWasm() must be awaited first!");
4100         }
4101         const nativeResponseValue = wasm.TS_LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr);
4102         return nativeResponseValue;
4103 }
4104         // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4105 /* @internal */
4106 export function CResult_SiPrefixParseErrorZ_get_ok(owner: number): SiPrefix {
4107         if(!isWasmInitialized) {
4108                 throw new Error("initializeWasm() must be awaited first!");
4109         }
4110         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_ok(owner);
4111         return nativeResponseValue;
4112 }
4113         // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4114 /* @internal */
4115 export function CResult_SiPrefixParseErrorZ_get_err(owner: number): number {
4116         if(!isWasmInitialized) {
4117                 throw new Error("initializeWasm() must be awaited first!");
4118         }
4119         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_err(owner);
4120         return nativeResponseValue;
4121 }
4122 /* @internal */
4123 export class LDKParseOrSemanticError {
4124         protected constructor() {}
4125 }
4126 /* @internal */
4127 export function LDKParseOrSemanticError_ty_from_ptr(ptr: number): number {
4128         if(!isWasmInitialized) {
4129                 throw new Error("initializeWasm() must be awaited first!");
4130         }
4131         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ty_from_ptr(ptr);
4132         return nativeResponseValue;
4133 }
4134 /* @internal */
4135 export function LDKParseOrSemanticError_ParseError_get_parse_error(ptr: number): number {
4136         if(!isWasmInitialized) {
4137                 throw new Error("initializeWasm() must be awaited first!");
4138         }
4139         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ParseError_get_parse_error(ptr);
4140         return nativeResponseValue;
4141 }
4142 /* @internal */
4143 export function LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr: number): SemanticError {
4144         if(!isWasmInitialized) {
4145                 throw new Error("initializeWasm() must be awaited first!");
4146         }
4147         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr);
4148         return nativeResponseValue;
4149 }
4150         // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4151 /* @internal */
4152 export function CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner: number): number {
4153         if(!isWasmInitialized) {
4154                 throw new Error("initializeWasm() must be awaited first!");
4155         }
4156         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner);
4157         return nativeResponseValue;
4158 }
4159         // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4160 /* @internal */
4161 export function CResult_InvoiceParseOrSemanticErrorZ_get_err(owner: number): number {
4162         if(!isWasmInitialized) {
4163                 throw new Error("initializeWasm() must be awaited first!");
4164         }
4165         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_err(owner);
4166         return nativeResponseValue;
4167 }
4168         // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4169 /* @internal */
4170 export function CResult_SignedRawInvoiceParseErrorZ_get_ok(owner: number): number {
4171         if(!isWasmInitialized) {
4172                 throw new Error("initializeWasm() must be awaited first!");
4173         }
4174         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_ok(owner);
4175         return nativeResponseValue;
4176 }
4177         // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4178 /* @internal */
4179 export function CResult_SignedRawInvoiceParseErrorZ_get_err(owner: number): number {
4180         if(!isWasmInitialized) {
4181                 throw new Error("initializeWasm() must be awaited first!");
4182         }
4183         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_err(owner);
4184         return nativeResponseValue;
4185 }
4186         // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4187 /* @internal */
4188 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: number): number {
4189         if(!isWasmInitialized) {
4190                 throw new Error("initializeWasm() must be awaited first!");
4191         }
4192         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
4193         return nativeResponseValue;
4194 }
4195         // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4196 /* @internal */
4197 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: number): number {
4198         if(!isWasmInitialized) {
4199                 throw new Error("initializeWasm() must be awaited first!");
4200         }
4201         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
4202         return nativeResponseValue;
4203 }
4204         // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4205 /* @internal */
4206 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: number): number {
4207         if(!isWasmInitialized) {
4208                 throw new Error("initializeWasm() must be awaited first!");
4209         }
4210         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
4211         return nativeResponseValue;
4212 }
4213         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4214 /* @internal */
4215 export function CResult_PayeePubKeyErrorZ_get_ok(owner: number): number {
4216         if(!isWasmInitialized) {
4217                 throw new Error("initializeWasm() must be awaited first!");
4218         }
4219         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
4220         return nativeResponseValue;
4221 }
4222         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4223 /* @internal */
4224 export function CResult_PayeePubKeyErrorZ_get_err(owner: number): Secp256k1Error {
4225         if(!isWasmInitialized) {
4226                 throw new Error("initializeWasm() must be awaited first!");
4227         }
4228         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
4229         return nativeResponseValue;
4230 }
4231         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4232 /* @internal */
4233 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: number): number {
4234         if(!isWasmInitialized) {
4235                 throw new Error("initializeWasm() must be awaited first!");
4236         }
4237         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
4238         return nativeResponseValue;
4239 }
4240         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4241 /* @internal */
4242 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: number): CreationError {
4243         if(!isWasmInitialized) {
4244                 throw new Error("initializeWasm() must be awaited first!");
4245         }
4246         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
4247         return nativeResponseValue;
4248 }
4249         // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4250 /* @internal */
4251 export function CResult_NoneSemanticErrorZ_get_ok(owner: number): void {
4252         if(!isWasmInitialized) {
4253                 throw new Error("initializeWasm() must be awaited first!");
4254         }
4255         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
4256         // debug statements here
4257 }
4258         // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4259 /* @internal */
4260 export function CResult_NoneSemanticErrorZ_get_err(owner: number): SemanticError {
4261         if(!isWasmInitialized) {
4262                 throw new Error("initializeWasm() must be awaited first!");
4263         }
4264         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
4265         return nativeResponseValue;
4266 }
4267         // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4268 /* @internal */
4269 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: number): number {
4270         if(!isWasmInitialized) {
4271                 throw new Error("initializeWasm() must be awaited first!");
4272         }
4273         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
4274         return nativeResponseValue;
4275 }
4276         // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4277 /* @internal */
4278 export function CResult_InvoiceSemanticErrorZ_get_err(owner: number): SemanticError {
4279         if(!isWasmInitialized) {
4280                 throw new Error("initializeWasm() must be awaited first!");
4281         }
4282         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
4283         return nativeResponseValue;
4284 }
4285         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4286 /* @internal */
4287 export function CResult_DescriptionCreationErrorZ_get_ok(owner: number): number {
4288         if(!isWasmInitialized) {
4289                 throw new Error("initializeWasm() must be awaited first!");
4290         }
4291         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
4292         return nativeResponseValue;
4293 }
4294         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4295 /* @internal */
4296 export function CResult_DescriptionCreationErrorZ_get_err(owner: number): CreationError {
4297         if(!isWasmInitialized) {
4298                 throw new Error("initializeWasm() must be awaited first!");
4299         }
4300         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
4301         return nativeResponseValue;
4302 }
4303         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4304 /* @internal */
4305 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: number): number {
4306         if(!isWasmInitialized) {
4307                 throw new Error("initializeWasm() must be awaited first!");
4308         }
4309         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
4310         return nativeResponseValue;
4311 }
4312         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4313 /* @internal */
4314 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: number): CreationError {
4315         if(!isWasmInitialized) {
4316                 throw new Error("initializeWasm() must be awaited first!");
4317         }
4318         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
4319         return nativeResponseValue;
4320 }
4321         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4322 /* @internal */
4323 export function CResult_StringErrorZ_get_ok(owner: number): number {
4324         if(!isWasmInitialized) {
4325                 throw new Error("initializeWasm() must be awaited first!");
4326         }
4327         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
4328         return nativeResponseValue;
4329 }
4330         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4331 /* @internal */
4332 export function CResult_StringErrorZ_get_err(owner: number): Secp256k1Error {
4333         if(!isWasmInitialized) {
4334                 throw new Error("initializeWasm() must be awaited first!");
4335         }
4336         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
4337         return nativeResponseValue;
4338 }
4339         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4340 /* @internal */
4341 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: number): number {
4342         if(!isWasmInitialized) {
4343                 throw new Error("initializeWasm() must be awaited first!");
4344         }
4345         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
4346         return nativeResponseValue;
4347 }
4348         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4349 /* @internal */
4350 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: number): number {
4351         if(!isWasmInitialized) {
4352                 throw new Error("initializeWasm() must be awaited first!");
4353         }
4354         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
4355         return nativeResponseValue;
4356 }
4357 /* @internal */
4358 export class LDKCOption_MonitorEventZ {
4359         protected constructor() {}
4360 }
4361 /* @internal */
4362 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: number): number {
4363         if(!isWasmInitialized) {
4364                 throw new Error("initializeWasm() must be awaited first!");
4365         }
4366         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
4367         return nativeResponseValue;
4368 }
4369 /* @internal */
4370 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: number): number {
4371         if(!isWasmInitialized) {
4372                 throw new Error("initializeWasm() must be awaited first!");
4373         }
4374         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
4375         return nativeResponseValue;
4376 }
4377         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4378 /* @internal */
4379 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: number): number {
4380         if(!isWasmInitialized) {
4381                 throw new Error("initializeWasm() must be awaited first!");
4382         }
4383         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
4384         return nativeResponseValue;
4385 }
4386         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4387 /* @internal */
4388 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: number): number {
4389         if(!isWasmInitialized) {
4390                 throw new Error("initializeWasm() must be awaited first!");
4391         }
4392         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
4393         return nativeResponseValue;
4394 }
4395         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4396 /* @internal */
4397 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: number): number {
4398         if(!isWasmInitialized) {
4399                 throw new Error("initializeWasm() must be awaited first!");
4400         }
4401         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
4402         return nativeResponseValue;
4403 }
4404         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4405 /* @internal */
4406 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: number): number {
4407         if(!isWasmInitialized) {
4408                 throw new Error("initializeWasm() must be awaited first!");
4409         }
4410         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
4411         return nativeResponseValue;
4412 }
4413         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4414 /* @internal */
4415 export function C2Tuple_OutPointScriptZ_get_a(owner: number): number {
4416         if(!isWasmInitialized) {
4417                 throw new Error("initializeWasm() must be awaited first!");
4418         }
4419         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
4420         return nativeResponseValue;
4421 }
4422         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4423 /* @internal */
4424 export function C2Tuple_OutPointScriptZ_get_b(owner: number): number {
4425         if(!isWasmInitialized) {
4426                 throw new Error("initializeWasm() must be awaited first!");
4427         }
4428         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
4429         return nativeResponseValue;
4430 }
4431         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4432 /* @internal */
4433 export function C2Tuple_u32ScriptZ_get_a(owner: number): number {
4434         if(!isWasmInitialized) {
4435                 throw new Error("initializeWasm() must be awaited first!");
4436         }
4437         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
4438         return nativeResponseValue;
4439 }
4440         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4441 /* @internal */
4442 export function C2Tuple_u32ScriptZ_get_b(owner: number): number {
4443         if(!isWasmInitialized) {
4444                 throw new Error("initializeWasm() must be awaited first!");
4445         }
4446         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
4447         return nativeResponseValue;
4448 }
4449         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4450 /* @internal */
4451 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: number): number {
4452         if(!isWasmInitialized) {
4453                 throw new Error("initializeWasm() must be awaited first!");
4454         }
4455         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
4456         return nativeResponseValue;
4457 }
4458         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4459 /* @internal */
4460 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: number): number {
4461         if(!isWasmInitialized) {
4462                 throw new Error("initializeWasm() must be awaited first!");
4463         }
4464         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
4465         return nativeResponseValue;
4466 }
4467         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4468 /* @internal */
4469 export function C2Tuple_u32TxOutZ_get_a(owner: number): number {
4470         if(!isWasmInitialized) {
4471                 throw new Error("initializeWasm() must be awaited first!");
4472         }
4473         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
4474         return nativeResponseValue;
4475 }
4476         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4477 /* @internal */
4478 export function C2Tuple_u32TxOutZ_get_b(owner: number): number {
4479         if(!isWasmInitialized) {
4480                 throw new Error("initializeWasm() must be awaited first!");
4481         }
4482         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
4483         return nativeResponseValue;
4484 }
4485         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4486 /* @internal */
4487 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: number): number {
4488         if(!isWasmInitialized) {
4489                 throw new Error("initializeWasm() must be awaited first!");
4490         }
4491         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
4492         return nativeResponseValue;
4493 }
4494         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4495 /* @internal */
4496 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: number): number {
4497         if(!isWasmInitialized) {
4498                 throw new Error("initializeWasm() must be awaited first!");
4499         }
4500         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
4501         return nativeResponseValue;
4502 }
4503 /* @internal */
4504 export class LDKBalance {
4505         protected constructor() {}
4506 }
4507 /* @internal */
4508 export function LDKBalance_ty_from_ptr(ptr: number): number {
4509         if(!isWasmInitialized) {
4510                 throw new Error("initializeWasm() must be awaited first!");
4511         }
4512         const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
4513         return nativeResponseValue;
4514 }
4515 /* @internal */
4516 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: number): bigint {
4517         if(!isWasmInitialized) {
4518                 throw new Error("initializeWasm() must be awaited first!");
4519         }
4520         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
4521         return nativeResponseValue;
4522 }
4523 /* @internal */
4524 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: number): bigint {
4525         if(!isWasmInitialized) {
4526                 throw new Error("initializeWasm() must be awaited first!");
4527         }
4528         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
4529         return nativeResponseValue;
4530 }
4531 /* @internal */
4532 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: number): number {
4533         if(!isWasmInitialized) {
4534                 throw new Error("initializeWasm() must be awaited first!");
4535         }
4536         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
4537         return nativeResponseValue;
4538 }
4539 /* @internal */
4540 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: number): bigint {
4541         if(!isWasmInitialized) {
4542                 throw new Error("initializeWasm() must be awaited first!");
4543         }
4544         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
4545         return nativeResponseValue;
4546 }
4547 /* @internal */
4548 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: number): number {
4549         if(!isWasmInitialized) {
4550                 throw new Error("initializeWasm() must be awaited first!");
4551         }
4552         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
4553         return nativeResponseValue;
4554 }
4555 /* @internal */
4556 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr: number): bigint {
4557         if(!isWasmInitialized) {
4558                 throw new Error("initializeWasm() must be awaited first!");
4559         }
4560         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr);
4561         return nativeResponseValue;
4562 }
4563 /* @internal */
4564 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr: number): number {
4565         if(!isWasmInitialized) {
4566                 throw new Error("initializeWasm() must be awaited first!");
4567         }
4568         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr);
4569         return nativeResponseValue;
4570 }
4571         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4572 /* @internal */
4573 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: number): number {
4574         if(!isWasmInitialized) {
4575                 throw new Error("initializeWasm() must be awaited first!");
4576         }
4577         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
4578         return nativeResponseValue;
4579 }
4580         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4581 /* @internal */
4582 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: number): number {
4583         if(!isWasmInitialized) {
4584                 throw new Error("initializeWasm() must be awaited first!");
4585         }
4586         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
4587         return nativeResponseValue;
4588 }
4589         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4590 /* @internal */
4591 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: number): number {
4592         if(!isWasmInitialized) {
4593                 throw new Error("initializeWasm() must be awaited first!");
4594         }
4595         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
4596         return nativeResponseValue;
4597 }
4598         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4599 /* @internal */
4600 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: number): number {
4601         if(!isWasmInitialized) {
4602                 throw new Error("initializeWasm() must be awaited first!");
4603         }
4604         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
4605         return nativeResponseValue;
4606 }
4607         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4608 /* @internal */
4609 export function C2Tuple_PublicKeyTypeZ_get_a(owner: number): number {
4610         if(!isWasmInitialized) {
4611                 throw new Error("initializeWasm() must be awaited first!");
4612         }
4613         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
4614         return nativeResponseValue;
4615 }
4616         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4617 /* @internal */
4618 export function C2Tuple_PublicKeyTypeZ_get_b(owner: number): number {
4619         if(!isWasmInitialized) {
4620                 throw new Error("initializeWasm() must be awaited first!");
4621         }
4622         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
4623         return nativeResponseValue;
4624 }
4625 /* @internal */
4626 export class LDKCOption_NetAddressZ {
4627         protected constructor() {}
4628 }
4629 /* @internal */
4630 export function LDKCOption_NetAddressZ_ty_from_ptr(ptr: number): number {
4631         if(!isWasmInitialized) {
4632                 throw new Error("initializeWasm() must be awaited first!");
4633         }
4634         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_ty_from_ptr(ptr);
4635         return nativeResponseValue;
4636 }
4637 /* @internal */
4638 export function LDKCOption_NetAddressZ_Some_get_some(ptr: number): number {
4639         if(!isWasmInitialized) {
4640                 throw new Error("initializeWasm() must be awaited first!");
4641         }
4642         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_Some_get_some(ptr);
4643         return nativeResponseValue;
4644 }
4645         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4646 /* @internal */
4647 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: number): number {
4648         if(!isWasmInitialized) {
4649                 throw new Error("initializeWasm() must be awaited first!");
4650         }
4651         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
4652         return nativeResponseValue;
4653 }
4654         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4655 /* @internal */
4656 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: number): number {
4657         if(!isWasmInitialized) {
4658                 throw new Error("initializeWasm() must be awaited first!");
4659         }
4660         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
4661         return nativeResponseValue;
4662 }
4663         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4664 /* @internal */
4665 export function CResult_NonePeerHandleErrorZ_get_ok(owner: number): void {
4666         if(!isWasmInitialized) {
4667                 throw new Error("initializeWasm() must be awaited first!");
4668         }
4669         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
4670         // debug statements here
4671 }
4672         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4673 /* @internal */
4674 export function CResult_NonePeerHandleErrorZ_get_err(owner: number): number {
4675         if(!isWasmInitialized) {
4676                 throw new Error("initializeWasm() must be awaited first!");
4677         }
4678         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
4679         return nativeResponseValue;
4680 }
4681         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4682 /* @internal */
4683 export function CResult_boolPeerHandleErrorZ_get_ok(owner: number): boolean {
4684         if(!isWasmInitialized) {
4685                 throw new Error("initializeWasm() must be awaited first!");
4686         }
4687         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
4688         return nativeResponseValue;
4689 }
4690         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4691 /* @internal */
4692 export function CResult_boolPeerHandleErrorZ_get_err(owner: number): number {
4693         if(!isWasmInitialized) {
4694                 throw new Error("initializeWasm() must be awaited first!");
4695         }
4696         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
4697         return nativeResponseValue;
4698 }
4699         // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
4700 /* @internal */
4701 export function CResult_NoneErrorZ_get_ok(owner: number): void {
4702         if(!isWasmInitialized) {
4703                 throw new Error("initializeWasm() must be awaited first!");
4704         }
4705         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_ok(owner);
4706         // debug statements here
4707 }
4708         // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
4709 /* @internal */
4710 export function CResult_NoneErrorZ_get_err(owner: number): IOError {
4711         if(!isWasmInitialized) {
4712                 throw new Error("initializeWasm() must be awaited first!");
4713         }
4714         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_err(owner);
4715         return nativeResponseValue;
4716 }
4717         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4718 /* @internal */
4719 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: number): number {
4720         if(!isWasmInitialized) {
4721                 throw new Error("initializeWasm() must be awaited first!");
4722         }
4723         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
4724         return nativeResponseValue;
4725 }
4726         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4727 /* @internal */
4728 export function CResult_NetAddressDecodeErrorZ_get_err(owner: number): number {
4729         if(!isWasmInitialized) {
4730                 throw new Error("initializeWasm() must be awaited first!");
4731         }
4732         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
4733         return nativeResponseValue;
4734 }
4735         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4736 /* @internal */
4737 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: number): number {
4738         if(!isWasmInitialized) {
4739                 throw new Error("initializeWasm() must be awaited first!");
4740         }
4741         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
4742         return nativeResponseValue;
4743 }
4744         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4745 /* @internal */
4746 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: number): number {
4747         if(!isWasmInitialized) {
4748                 throw new Error("initializeWasm() must be awaited first!");
4749         }
4750         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
4751         return nativeResponseValue;
4752 }
4753         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4754 /* @internal */
4755 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: number): number {
4756         if(!isWasmInitialized) {
4757                 throw new Error("initializeWasm() must be awaited first!");
4758         }
4759         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
4760         return nativeResponseValue;
4761 }
4762         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4763 /* @internal */
4764 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: number): number {
4765         if(!isWasmInitialized) {
4766                 throw new Error("initializeWasm() must be awaited first!");
4767         }
4768         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
4769         return nativeResponseValue;
4770 }
4771         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4772 /* @internal */
4773 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: number): number {
4774         if(!isWasmInitialized) {
4775                 throw new Error("initializeWasm() must be awaited first!");
4776         }
4777         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
4778         return nativeResponseValue;
4779 }
4780         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4781 /* @internal */
4782 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: number): number {
4783         if(!isWasmInitialized) {
4784                 throw new Error("initializeWasm() must be awaited first!");
4785         }
4786         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
4787         return nativeResponseValue;
4788 }
4789         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4790 /* @internal */
4791 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: number): number {
4792         if(!isWasmInitialized) {
4793                 throw new Error("initializeWasm() must be awaited first!");
4794         }
4795         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
4796         return nativeResponseValue;
4797 }
4798         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4799 /* @internal */
4800 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: number): number {
4801         if(!isWasmInitialized) {
4802                 throw new Error("initializeWasm() must be awaited first!");
4803         }
4804         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
4805         return nativeResponseValue;
4806 }
4807         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4808 /* @internal */
4809 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: number): number {
4810         if(!isWasmInitialized) {
4811                 throw new Error("initializeWasm() must be awaited first!");
4812         }
4813         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
4814         return nativeResponseValue;
4815 }
4816         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4817 /* @internal */
4818 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: number): number {
4819         if(!isWasmInitialized) {
4820                 throw new Error("initializeWasm() must be awaited first!");
4821         }
4822         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
4823         return nativeResponseValue;
4824 }
4825         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4826 /* @internal */
4827 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: number): number {
4828         if(!isWasmInitialized) {
4829                 throw new Error("initializeWasm() must be awaited first!");
4830         }
4831         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
4832         return nativeResponseValue;
4833 }
4834         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4835 /* @internal */
4836 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: number): number {
4837         if(!isWasmInitialized) {
4838                 throw new Error("initializeWasm() must be awaited first!");
4839         }
4840         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
4841         return nativeResponseValue;
4842 }
4843         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4844 /* @internal */
4845 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: number): number {
4846         if(!isWasmInitialized) {
4847                 throw new Error("initializeWasm() must be awaited first!");
4848         }
4849         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
4850         return nativeResponseValue;
4851 }
4852         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4853 /* @internal */
4854 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: number): number {
4855         if(!isWasmInitialized) {
4856                 throw new Error("initializeWasm() must be awaited first!");
4857         }
4858         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
4859         return nativeResponseValue;
4860 }
4861         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4862 /* @internal */
4863 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: number): number {
4864         if(!isWasmInitialized) {
4865                 throw new Error("initializeWasm() must be awaited first!");
4866         }
4867         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
4868         return nativeResponseValue;
4869 }
4870         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4871 /* @internal */
4872 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: number): number {
4873         if(!isWasmInitialized) {
4874                 throw new Error("initializeWasm() must be awaited first!");
4875         }
4876         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
4877         return nativeResponseValue;
4878 }
4879         // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
4880 /* @internal */
4881 export function CResult_ChannelReadyDecodeErrorZ_get_ok(owner: number): number {
4882         if(!isWasmInitialized) {
4883                 throw new Error("initializeWasm() must be awaited first!");
4884         }
4885         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_ok(owner);
4886         return nativeResponseValue;
4887 }
4888         // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
4889 /* @internal */
4890 export function CResult_ChannelReadyDecodeErrorZ_get_err(owner: number): number {
4891         if(!isWasmInitialized) {
4892                 throw new Error("initializeWasm() must be awaited first!");
4893         }
4894         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_err(owner);
4895         return nativeResponseValue;
4896 }
4897         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4898 /* @internal */
4899 export function CResult_InitDecodeErrorZ_get_ok(owner: number): number {
4900         if(!isWasmInitialized) {
4901                 throw new Error("initializeWasm() must be awaited first!");
4902         }
4903         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
4904         return nativeResponseValue;
4905 }
4906         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4907 /* @internal */
4908 export function CResult_InitDecodeErrorZ_get_err(owner: number): number {
4909         if(!isWasmInitialized) {
4910                 throw new Error("initializeWasm() must be awaited first!");
4911         }
4912         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
4913         return nativeResponseValue;
4914 }
4915         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4916 /* @internal */
4917 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: number): number {
4918         if(!isWasmInitialized) {
4919                 throw new Error("initializeWasm() must be awaited first!");
4920         }
4921         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
4922         return nativeResponseValue;
4923 }
4924         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4925 /* @internal */
4926 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: number): number {
4927         if(!isWasmInitialized) {
4928                 throw new Error("initializeWasm() must be awaited first!");
4929         }
4930         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
4931         return nativeResponseValue;
4932 }
4933         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4934 /* @internal */
4935 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: number): number {
4936         if(!isWasmInitialized) {
4937                 throw new Error("initializeWasm() must be awaited first!");
4938         }
4939         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
4940         return nativeResponseValue;
4941 }
4942         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4943 /* @internal */
4944 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: number): number {
4945         if(!isWasmInitialized) {
4946                 throw new Error("initializeWasm() must be awaited first!");
4947         }
4948         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
4949         return nativeResponseValue;
4950 }
4951         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
4952 /* @internal */
4953 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: number): number {
4954         if(!isWasmInitialized) {
4955                 throw new Error("initializeWasm() must be awaited first!");
4956         }
4957         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
4958         return nativeResponseValue;
4959 }
4960         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
4961 /* @internal */
4962 export function CResult_ShutdownDecodeErrorZ_get_err(owner: number): number {
4963         if(!isWasmInitialized) {
4964                 throw new Error("initializeWasm() must be awaited first!");
4965         }
4966         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
4967         return nativeResponseValue;
4968 }
4969         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
4970 /* @internal */
4971 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: number): number {
4972         if(!isWasmInitialized) {
4973                 throw new Error("initializeWasm() must be awaited first!");
4974         }
4975         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
4976         return nativeResponseValue;
4977 }
4978         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
4979 /* @internal */
4980 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: number): number {
4981         if(!isWasmInitialized) {
4982                 throw new Error("initializeWasm() must be awaited first!");
4983         }
4984         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
4985         return nativeResponseValue;
4986 }
4987         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
4988 /* @internal */
4989 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: number): number {
4990         if(!isWasmInitialized) {
4991                 throw new Error("initializeWasm() must be awaited first!");
4992         }
4993         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
4994         return nativeResponseValue;
4995 }
4996         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
4997 /* @internal */
4998 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: number): number {
4999         if(!isWasmInitialized) {
5000                 throw new Error("initializeWasm() must be awaited first!");
5001         }
5002         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
5003         return nativeResponseValue;
5004 }
5005         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5006 /* @internal */
5007 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: number): number {
5008         if(!isWasmInitialized) {
5009                 throw new Error("initializeWasm() must be awaited first!");
5010         }
5011         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
5012         return nativeResponseValue;
5013 }
5014         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5015 /* @internal */
5016 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: number): number {
5017         if(!isWasmInitialized) {
5018                 throw new Error("initializeWasm() must be awaited first!");
5019         }
5020         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
5021         return nativeResponseValue;
5022 }
5023         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5024 /* @internal */
5025 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: number): number {
5026         if(!isWasmInitialized) {
5027                 throw new Error("initializeWasm() must be awaited first!");
5028         }
5029         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
5030         return nativeResponseValue;
5031 }
5032         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5033 /* @internal */
5034 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: number): number {
5035         if(!isWasmInitialized) {
5036                 throw new Error("initializeWasm() must be awaited first!");
5037         }
5038         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
5039         return nativeResponseValue;
5040 }
5041         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5042 /* @internal */
5043 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: number): number {
5044         if(!isWasmInitialized) {
5045                 throw new Error("initializeWasm() must be awaited first!");
5046         }
5047         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
5048         return nativeResponseValue;
5049 }
5050         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5051 /* @internal */
5052 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: number): number {
5053         if(!isWasmInitialized) {
5054                 throw new Error("initializeWasm() must be awaited first!");
5055         }
5056         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
5057         return nativeResponseValue;
5058 }
5059         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5060 /* @internal */
5061 export function CResult_PingDecodeErrorZ_get_ok(owner: number): number {
5062         if(!isWasmInitialized) {
5063                 throw new Error("initializeWasm() must be awaited first!");
5064         }
5065         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
5066         return nativeResponseValue;
5067 }
5068         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5069 /* @internal */
5070 export function CResult_PingDecodeErrorZ_get_err(owner: number): number {
5071         if(!isWasmInitialized) {
5072                 throw new Error("initializeWasm() must be awaited first!");
5073         }
5074         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
5075         return nativeResponseValue;
5076 }
5077         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5078 /* @internal */
5079 export function CResult_PongDecodeErrorZ_get_ok(owner: number): number {
5080         if(!isWasmInitialized) {
5081                 throw new Error("initializeWasm() must be awaited first!");
5082         }
5083         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
5084         return nativeResponseValue;
5085 }
5086         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5087 /* @internal */
5088 export function CResult_PongDecodeErrorZ_get_err(owner: number): number {
5089         if(!isWasmInitialized) {
5090                 throw new Error("initializeWasm() must be awaited first!");
5091         }
5092         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
5093         return nativeResponseValue;
5094 }
5095         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5096 /* @internal */
5097 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5098         if(!isWasmInitialized) {
5099                 throw new Error("initializeWasm() must be awaited first!");
5100         }
5101         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
5102         return nativeResponseValue;
5103 }
5104         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5105 /* @internal */
5106 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5107         if(!isWasmInitialized) {
5108                 throw new Error("initializeWasm() must be awaited first!");
5109         }
5110         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
5111         return nativeResponseValue;
5112 }
5113         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5114 /* @internal */
5115 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5116         if(!isWasmInitialized) {
5117                 throw new Error("initializeWasm() must be awaited first!");
5118         }
5119         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
5120         return nativeResponseValue;
5121 }
5122         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5123 /* @internal */
5124 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5125         if(!isWasmInitialized) {
5126                 throw new Error("initializeWasm() must be awaited first!");
5127         }
5128         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
5129         return nativeResponseValue;
5130 }
5131         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5132 /* @internal */
5133 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5134         if(!isWasmInitialized) {
5135                 throw new Error("initializeWasm() must be awaited first!");
5136         }
5137         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
5138         return nativeResponseValue;
5139 }
5140         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5141 /* @internal */
5142 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5143         if(!isWasmInitialized) {
5144                 throw new Error("initializeWasm() must be awaited first!");
5145         }
5146         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
5147         return nativeResponseValue;
5148 }
5149         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5150 /* @internal */
5151 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5152         if(!isWasmInitialized) {
5153                 throw new Error("initializeWasm() must be awaited first!");
5154         }
5155         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
5156         return nativeResponseValue;
5157 }
5158         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5159 /* @internal */
5160 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5161         if(!isWasmInitialized) {
5162                 throw new Error("initializeWasm() must be awaited first!");
5163         }
5164         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
5165         return nativeResponseValue;
5166 }
5167         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5168 /* @internal */
5169 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: number): number {
5170         if(!isWasmInitialized) {
5171                 throw new Error("initializeWasm() must be awaited first!");
5172         }
5173         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
5174         return nativeResponseValue;
5175 }
5176         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5177 /* @internal */
5178 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: number): number {
5179         if(!isWasmInitialized) {
5180                 throw new Error("initializeWasm() must be awaited first!");
5181         }
5182         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
5183         return nativeResponseValue;
5184 }
5185         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5186 /* @internal */
5187 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: number): number {
5188         if(!isWasmInitialized) {
5189                 throw new Error("initializeWasm() must be awaited first!");
5190         }
5191         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
5192         return nativeResponseValue;
5193 }
5194         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5195 /* @internal */
5196 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: number): number {
5197         if(!isWasmInitialized) {
5198                 throw new Error("initializeWasm() must be awaited first!");
5199         }
5200         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
5201         return nativeResponseValue;
5202 }
5203         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5204 /* @internal */
5205 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5206         if(!isWasmInitialized) {
5207                 throw new Error("initializeWasm() must be awaited first!");
5208         }
5209         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
5210         return nativeResponseValue;
5211 }
5212         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5213 /* @internal */
5214 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5215         if(!isWasmInitialized) {
5216                 throw new Error("initializeWasm() must be awaited first!");
5217         }
5218         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
5219         return nativeResponseValue;
5220 }
5221         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5222 /* @internal */
5223 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5224         if(!isWasmInitialized) {
5225                 throw new Error("initializeWasm() must be awaited first!");
5226         }
5227         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
5228         return nativeResponseValue;
5229 }
5230         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5231 /* @internal */
5232 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5233         if(!isWasmInitialized) {
5234                 throw new Error("initializeWasm() must be awaited first!");
5235         }
5236         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
5237         return nativeResponseValue;
5238 }
5239         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5240 /* @internal */
5241 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: number): number {
5242         if(!isWasmInitialized) {
5243                 throw new Error("initializeWasm() must be awaited first!");
5244         }
5245         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
5246         return nativeResponseValue;
5247 }
5248         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5249 /* @internal */
5250 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: number): number {
5251         if(!isWasmInitialized) {
5252                 throw new Error("initializeWasm() must be awaited first!");
5253         }
5254         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
5255         return nativeResponseValue;
5256 }
5257         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5258 /* @internal */
5259 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: number): number {
5260         if(!isWasmInitialized) {
5261                 throw new Error("initializeWasm() must be awaited first!");
5262         }
5263         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
5264         return nativeResponseValue;
5265 }
5266         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5267 /* @internal */
5268 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: number): number {
5269         if(!isWasmInitialized) {
5270                 throw new Error("initializeWasm() must be awaited first!");
5271         }
5272         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
5273         return nativeResponseValue;
5274 }
5275         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5276 /* @internal */
5277 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5278         if(!isWasmInitialized) {
5279                 throw new Error("initializeWasm() must be awaited first!");
5280         }
5281         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
5282         return nativeResponseValue;
5283 }
5284         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5285 /* @internal */
5286 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: number): number {
5287         if(!isWasmInitialized) {
5288                 throw new Error("initializeWasm() must be awaited first!");
5289         }
5290         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
5291         return nativeResponseValue;
5292 }
5293         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5294 /* @internal */
5295 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5296         if(!isWasmInitialized) {
5297                 throw new Error("initializeWasm() must be awaited first!");
5298         }
5299         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
5300         return nativeResponseValue;
5301 }
5302         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5303 /* @internal */
5304 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: number): number {
5305         if(!isWasmInitialized) {
5306                 throw new Error("initializeWasm() must be awaited first!");
5307         }
5308         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
5309         return nativeResponseValue;
5310 }
5311         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5312 /* @internal */
5313 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: number): number {
5314         if(!isWasmInitialized) {
5315                 throw new Error("initializeWasm() must be awaited first!");
5316         }
5317         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
5318         return nativeResponseValue;
5319 }
5320         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5321 /* @internal */
5322 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: number): number {
5323         if(!isWasmInitialized) {
5324                 throw new Error("initializeWasm() must be awaited first!");
5325         }
5326         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
5327         return nativeResponseValue;
5328 }
5329 /* @internal */
5330 export class LDKSignOrCreationError {
5331         protected constructor() {}
5332 }
5333 /* @internal */
5334 export function LDKSignOrCreationError_ty_from_ptr(ptr: number): number {
5335         if(!isWasmInitialized) {
5336                 throw new Error("initializeWasm() must be awaited first!");
5337         }
5338         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
5339         return nativeResponseValue;
5340 }
5341 /* @internal */
5342 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: number): CreationError {
5343         if(!isWasmInitialized) {
5344                 throw new Error("initializeWasm() must be awaited first!");
5345         }
5346         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
5347         return nativeResponseValue;
5348 }
5349         // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5350 /* @internal */
5351 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: number): number {
5352         if(!isWasmInitialized) {
5353                 throw new Error("initializeWasm() must be awaited first!");
5354         }
5355         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
5356         return nativeResponseValue;
5357 }
5358         // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5359 /* @internal */
5360 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: number): number {
5361         if(!isWasmInitialized) {
5362                 throw new Error("initializeWasm() must be awaited first!");
5363         }
5364         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
5365         return nativeResponseValue;
5366 }
5367 /* @internal */
5368 export interface LDKFilter {
5369         register_tx (txid: number, script_pubkey: number): void;
5370         register_output (output: number): number;
5371 }
5372
5373 /* @internal */
5374 export function LDKFilter_new(impl: LDKFilter): number {
5375         if(!isWasmInitialized) {
5376                 throw new Error("initializeWasm() must be awaited first!");
5377         }
5378         var new_obj_idx = js_objs.length;
5379         for (var i = 0; i < js_objs.length; i++) {
5380                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5381         }
5382         js_objs[i] = new WeakRef(impl);
5383         return wasm.TS_LDKFilter_new(i);
5384 }
5385         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
5386 /* @internal */
5387 export function Filter_register_tx(this_arg: number, txid: number, script_pubkey: number): void {
5388         if(!isWasmInitialized) {
5389                 throw new Error("initializeWasm() must be awaited first!");
5390         }
5391         const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
5392         // debug statements here
5393 }
5394         // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
5395 /* @internal */
5396 export function Filter_register_output(this_arg: number, output: number): number {
5397         if(!isWasmInitialized) {
5398                 throw new Error("initializeWasm() must be awaited first!");
5399         }
5400         const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
5401         return nativeResponseValue;
5402 }
5403 /* @internal */
5404 export class LDKCOption_FilterZ {
5405         protected constructor() {}
5406 }
5407 /* @internal */
5408 export function LDKCOption_FilterZ_ty_from_ptr(ptr: number): number {
5409         if(!isWasmInitialized) {
5410                 throw new Error("initializeWasm() must be awaited first!");
5411         }
5412         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
5413         return nativeResponseValue;
5414 }
5415 /* @internal */
5416 export function LDKCOption_FilterZ_Some_get_some(ptr: number): number {
5417         if(!isWasmInitialized) {
5418                 throw new Error("initializeWasm() must be awaited first!");
5419         }
5420         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
5421         return nativeResponseValue;
5422 }
5423         // struct LDKLockedChannelMonitor *CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5424 /* @internal */
5425 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: number): number {
5426         if(!isWasmInitialized) {
5427                 throw new Error("initializeWasm() must be awaited first!");
5428         }
5429         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
5430         return nativeResponseValue;
5431 }
5432         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5433 /* @internal */
5434 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: number): void {
5435         if(!isWasmInitialized) {
5436                 throw new Error("initializeWasm() must be awaited first!");
5437         }
5438         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
5439         // debug statements here
5440 }
5441 /* @internal */
5442 export interface LDKMessageSendEventsProvider {
5443         get_and_clear_pending_msg_events (): number;
5444 }
5445
5446 /* @internal */
5447 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): number {
5448         if(!isWasmInitialized) {
5449                 throw new Error("initializeWasm() must be awaited first!");
5450         }
5451         var new_obj_idx = js_objs.length;
5452         for (var i = 0; i < js_objs.length; i++) {
5453                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5454         }
5455         js_objs[i] = new WeakRef(impl);
5456         return wasm.TS_LDKMessageSendEventsProvider_new(i);
5457 }
5458         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
5459 /* @internal */
5460 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: number): number {
5461         if(!isWasmInitialized) {
5462                 throw new Error("initializeWasm() must be awaited first!");
5463         }
5464         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
5465         return nativeResponseValue;
5466 }
5467 /* @internal */
5468 export interface LDKEventHandler {
5469         handle_event (event: number): void;
5470 }
5471
5472 /* @internal */
5473 export function LDKEventHandler_new(impl: LDKEventHandler): number {
5474         if(!isWasmInitialized) {
5475                 throw new Error("initializeWasm() must be awaited first!");
5476         }
5477         var new_obj_idx = js_objs.length;
5478         for (var i = 0; i < js_objs.length; i++) {
5479                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5480         }
5481         js_objs[i] = new WeakRef(impl);
5482         return wasm.TS_LDKEventHandler_new(i);
5483 }
5484         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
5485 /* @internal */
5486 export function EventHandler_handle_event(this_arg: number, event: number): void {
5487         if(!isWasmInitialized) {
5488                 throw new Error("initializeWasm() must be awaited first!");
5489         }
5490         const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
5491         // debug statements here
5492 }
5493 /* @internal */
5494 export interface LDKEventsProvider {
5495         process_pending_events (handler: number): void;
5496 }
5497
5498 /* @internal */
5499 export function LDKEventsProvider_new(impl: LDKEventsProvider): number {
5500         if(!isWasmInitialized) {
5501                 throw new Error("initializeWasm() must be awaited first!");
5502         }
5503         var new_obj_idx = js_objs.length;
5504         for (var i = 0; i < js_objs.length; i++) {
5505                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5506         }
5507         js_objs[i] = new WeakRef(impl);
5508         return wasm.TS_LDKEventsProvider_new(i);
5509 }
5510         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
5511 /* @internal */
5512 export function EventsProvider_process_pending_events(this_arg: number, handler: number): void {
5513         if(!isWasmInitialized) {
5514                 throw new Error("initializeWasm() must be awaited first!");
5515         }
5516         const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
5517         // debug statements here
5518 }
5519 /* @internal */
5520 export interface LDKScore {
5521         channel_penalty_msat (short_channel_id: bigint, source: number, target: number, usage: number): bigint;
5522         payment_path_failed (path: number, short_channel_id: bigint): void;
5523         payment_path_successful (path: number): void;
5524         write (): number;
5525 }
5526
5527 /* @internal */
5528 export function LDKScore_new(impl: LDKScore): number {
5529         if(!isWasmInitialized) {
5530                 throw new Error("initializeWasm() must be awaited first!");
5531         }
5532         var new_obj_idx = js_objs.length;
5533         for (var i = 0; i < js_objs.length; i++) {
5534                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5535         }
5536         js_objs[i] = new WeakRef(impl);
5537         return wasm.TS_LDKScore_new(i);
5538 }
5539         // 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
5540 /* @internal */
5541 export function Score_channel_penalty_msat(this_arg: number, short_channel_id: bigint, source: number, target: number, usage: number): bigint {
5542         if(!isWasmInitialized) {
5543                 throw new Error("initializeWasm() must be awaited first!");
5544         }
5545         const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, source, target, usage);
5546         return nativeResponseValue;
5547 }
5548         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
5549 /* @internal */
5550 export function Score_payment_path_failed(this_arg: number, path: number, short_channel_id: bigint): void {
5551         if(!isWasmInitialized) {
5552                 throw new Error("initializeWasm() must be awaited first!");
5553         }
5554         const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
5555         // debug statements here
5556 }
5557         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
5558 /* @internal */
5559 export function Score_payment_path_successful(this_arg: number, path: number): void {
5560         if(!isWasmInitialized) {
5561                 throw new Error("initializeWasm() must be awaited first!");
5562         }
5563         const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
5564         // debug statements here
5565 }
5566         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
5567 /* @internal */
5568 export function Score_write(this_arg: number): number {
5569         if(!isWasmInitialized) {
5570                 throw new Error("initializeWasm() must be awaited first!");
5571         }
5572         const nativeResponseValue = wasm.TS_Score_write(this_arg);
5573         return nativeResponseValue;
5574 }
5575 /* @internal */
5576 export interface LDKPersister {
5577         persist_manager (channel_manager: number): number;
5578         persist_graph (network_graph: number): number;
5579         persist_scorer (scorer: number): number;
5580 }
5581
5582 /* @internal */
5583 export function LDKPersister_new(impl: LDKPersister): number {
5584         if(!isWasmInitialized) {
5585                 throw new Error("initializeWasm() must be awaited first!");
5586         }
5587         var new_obj_idx = js_objs.length;
5588         for (var i = 0; i < js_objs.length; i++) {
5589                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5590         }
5591         js_objs[i] = new WeakRef(impl);
5592         return wasm.TS_LDKPersister_new(i);
5593 }
5594         // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
5595 /* @internal */
5596 export function Persister_persist_manager(this_arg: number, channel_manager: number): number {
5597         if(!isWasmInitialized) {
5598                 throw new Error("initializeWasm() must be awaited first!");
5599         }
5600         const nativeResponseValue = wasm.TS_Persister_persist_manager(this_arg, channel_manager);
5601         return nativeResponseValue;
5602 }
5603         // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
5604 /* @internal */
5605 export function Persister_persist_graph(this_arg: number, network_graph: number): number {
5606         if(!isWasmInitialized) {
5607                 throw new Error("initializeWasm() must be awaited first!");
5608         }
5609         const nativeResponseValue = wasm.TS_Persister_persist_graph(this_arg, network_graph);
5610         return nativeResponseValue;
5611 }
5612         // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer
5613 /* @internal */
5614 export function Persister_persist_scorer(this_arg: number, scorer: number): number {
5615         if(!isWasmInitialized) {
5616                 throw new Error("initializeWasm() must be awaited first!");
5617         }
5618         const nativeResponseValue = wasm.TS_Persister_persist_scorer(this_arg, scorer);
5619         return nativeResponseValue;
5620 }
5621 /* @internal */
5622 export interface LDKListen {
5623         filtered_block_connected (header: number, txdata: number, height: number): void;
5624         block_connected (block: number, height: number): void;
5625         block_disconnected (header: number, height: number): void;
5626 }
5627
5628 /* @internal */
5629 export function LDKListen_new(impl: LDKListen): number {
5630         if(!isWasmInitialized) {
5631                 throw new Error("initializeWasm() must be awaited first!");
5632         }
5633         var new_obj_idx = js_objs.length;
5634         for (var i = 0; i < js_objs.length; i++) {
5635                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5636         }
5637         js_objs[i] = new WeakRef(impl);
5638         return wasm.TS_LDKListen_new(i);
5639 }
5640         // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5641 /* @internal */
5642 export function Listen_filtered_block_connected(this_arg: number, header: number, txdata: number, height: number): void {
5643         if(!isWasmInitialized) {
5644                 throw new Error("initializeWasm() must be awaited first!");
5645         }
5646         const nativeResponseValue = wasm.TS_Listen_filtered_block_connected(this_arg, header, txdata, height);
5647         // debug statements here
5648 }
5649         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
5650 /* @internal */
5651 export function Listen_block_connected(this_arg: number, block: number, height: number): void {
5652         if(!isWasmInitialized) {
5653                 throw new Error("initializeWasm() must be awaited first!");
5654         }
5655         const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
5656         // debug statements here
5657 }
5658         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5659 /* @internal */
5660 export function Listen_block_disconnected(this_arg: number, header: number, height: number): void {
5661         if(!isWasmInitialized) {
5662                 throw new Error("initializeWasm() must be awaited first!");
5663         }
5664         const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
5665         // debug statements here
5666 }
5667 /* @internal */
5668 export interface LDKConfirm {
5669         transactions_confirmed (header: number, txdata: number, height: number): void;
5670         transaction_unconfirmed (txid: number): void;
5671         best_block_updated (header: number, height: number): void;
5672         get_relevant_txids (): number;
5673 }
5674
5675 /* @internal */
5676 export function LDKConfirm_new(impl: LDKConfirm): number {
5677         if(!isWasmInitialized) {
5678                 throw new Error("initializeWasm() must be awaited first!");
5679         }
5680         var new_obj_idx = js_objs.length;
5681         for (var i = 0; i < js_objs.length; i++) {
5682                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5683         }
5684         js_objs[i] = new WeakRef(impl);
5685         return wasm.TS_LDKConfirm_new(i);
5686 }
5687         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5688 /* @internal */
5689 export function Confirm_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number): void {
5690         if(!isWasmInitialized) {
5691                 throw new Error("initializeWasm() must be awaited first!");
5692         }
5693         const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
5694         // debug statements here
5695 }
5696         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
5697 /* @internal */
5698 export function Confirm_transaction_unconfirmed(this_arg: number, txid: number): void {
5699         if(!isWasmInitialized) {
5700                 throw new Error("initializeWasm() must be awaited first!");
5701         }
5702         const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
5703         // debug statements here
5704 }
5705         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5706 /* @internal */
5707 export function Confirm_best_block_updated(this_arg: number, header: number, height: number): void {
5708         if(!isWasmInitialized) {
5709                 throw new Error("initializeWasm() must be awaited first!");
5710         }
5711         const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
5712         // debug statements here
5713 }
5714         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
5715 /* @internal */
5716 export function Confirm_get_relevant_txids(this_arg: number): number {
5717         if(!isWasmInitialized) {
5718                 throw new Error("initializeWasm() must be awaited first!");
5719         }
5720         const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
5721         return nativeResponseValue;
5722 }
5723 /* @internal */
5724 export interface LDKPersist {
5725         persist_new_channel (channel_id: number, data: number, update_id: number): number;
5726         update_persisted_channel (channel_id: number, update: number, data: number, update_id: number): number;
5727 }
5728
5729 /* @internal */
5730 export function LDKPersist_new(impl: LDKPersist): number {
5731         if(!isWasmInitialized) {
5732                 throw new Error("initializeWasm() must be awaited first!");
5733         }
5734         var new_obj_idx = js_objs.length;
5735         for (var i = 0; i < js_objs.length; i++) {
5736                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5737         }
5738         js_objs[i] = new WeakRef(impl);
5739         return wasm.TS_LDKPersist_new(i);
5740 }
5741         // 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
5742 /* @internal */
5743 export function Persist_persist_new_channel(this_arg: number, channel_id: number, data: number, update_id: number): number {
5744         if(!isWasmInitialized) {
5745                 throw new Error("initializeWasm() must be awaited first!");
5746         }
5747         const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
5748         return nativeResponseValue;
5749 }
5750         // 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
5751 /* @internal */
5752 export function Persist_update_persisted_channel(this_arg: number, channel_id: number, update: number, data: number, update_id: number): number {
5753         if(!isWasmInitialized) {
5754                 throw new Error("initializeWasm() must be awaited first!");
5755         }
5756         const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
5757         return nativeResponseValue;
5758 }
5759 /* @internal */
5760 export interface LDKChannelMessageHandler {
5761         handle_open_channel (their_node_id: number, their_features: number, msg: number): void;
5762         handle_accept_channel (their_node_id: number, their_features: number, msg: number): void;
5763         handle_funding_created (their_node_id: number, msg: number): void;
5764         handle_funding_signed (their_node_id: number, msg: number): void;
5765         handle_channel_ready (their_node_id: number, msg: number): void;
5766         handle_shutdown (their_node_id: number, their_features: number, msg: number): void;
5767         handle_closing_signed (their_node_id: number, msg: number): void;
5768         handle_update_add_htlc (their_node_id: number, msg: number): void;
5769         handle_update_fulfill_htlc (their_node_id: number, msg: number): void;
5770         handle_update_fail_htlc (their_node_id: number, msg: number): void;
5771         handle_update_fail_malformed_htlc (their_node_id: number, msg: number): void;
5772         handle_commitment_signed (their_node_id: number, msg: number): void;
5773         handle_revoke_and_ack (their_node_id: number, msg: number): void;
5774         handle_update_fee (their_node_id: number, msg: number): void;
5775         handle_announcement_signatures (their_node_id: number, msg: number): void;
5776         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
5777         peer_connected (their_node_id: number, msg: number): void;
5778         handle_channel_reestablish (their_node_id: number, msg: number): void;
5779         handle_channel_update (their_node_id: number, msg: number): void;
5780         handle_error (their_node_id: number, msg: number): void;
5781 }
5782
5783 /* @internal */
5784 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5785         if(!isWasmInitialized) {
5786                 throw new Error("initializeWasm() must be awaited first!");
5787         }
5788         var new_obj_idx = js_objs.length;
5789         for (var i = 0; i < js_objs.length; i++) {
5790                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5791         }
5792         js_objs[i] = new WeakRef(impl);
5793         return wasm.TS_LDKChannelMessageHandler_new(i);
5794 }
5795         // 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
5796 /* @internal */
5797 export function ChannelMessageHandler_handle_open_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5798         if(!isWasmInitialized) {
5799                 throw new Error("initializeWasm() must be awaited first!");
5800         }
5801         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, their_features, msg);
5802         // debug statements here
5803 }
5804         // 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
5805 /* @internal */
5806 export function ChannelMessageHandler_handle_accept_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5807         if(!isWasmInitialized) {
5808                 throw new Error("initializeWasm() must be awaited first!");
5809         }
5810         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, their_features, msg);
5811         // debug statements here
5812 }
5813         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
5814 /* @internal */
5815 export function ChannelMessageHandler_handle_funding_created(this_arg: number, their_node_id: number, msg: number): void {
5816         if(!isWasmInitialized) {
5817                 throw new Error("initializeWasm() must be awaited first!");
5818         }
5819         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
5820         // debug statements here
5821 }
5822         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
5823 /* @internal */
5824 export function ChannelMessageHandler_handle_funding_signed(this_arg: number, their_node_id: number, msg: number): void {
5825         if(!isWasmInitialized) {
5826                 throw new Error("initializeWasm() must be awaited first!");
5827         }
5828         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
5829         // debug statements here
5830 }
5831         // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
5832 /* @internal */
5833 export function ChannelMessageHandler_handle_channel_ready(this_arg: number, their_node_id: number, msg: number): void {
5834         if(!isWasmInitialized) {
5835                 throw new Error("initializeWasm() must be awaited first!");
5836         }
5837         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_ready(this_arg, their_node_id, msg);
5838         // debug statements here
5839 }
5840         // 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
5841 /* @internal */
5842 export function ChannelMessageHandler_handle_shutdown(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5843         if(!isWasmInitialized) {
5844                 throw new Error("initializeWasm() must be awaited first!");
5845         }
5846         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, their_features, msg);
5847         // debug statements here
5848 }
5849         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
5850 /* @internal */
5851 export function ChannelMessageHandler_handle_closing_signed(this_arg: number, their_node_id: number, msg: number): void {
5852         if(!isWasmInitialized) {
5853                 throw new Error("initializeWasm() must be awaited first!");
5854         }
5855         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
5856         // debug statements here
5857 }
5858         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
5859 /* @internal */
5860 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: number, their_node_id: number, msg: number): void {
5861         if(!isWasmInitialized) {
5862                 throw new Error("initializeWasm() must be awaited first!");
5863         }
5864         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
5865         // debug statements here
5866 }
5867         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
5868 /* @internal */
5869 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: number, their_node_id: number, msg: number): void {
5870         if(!isWasmInitialized) {
5871                 throw new Error("initializeWasm() must be awaited first!");
5872         }
5873         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
5874         // debug statements here
5875 }
5876         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
5877 /* @internal */
5878 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: number, their_node_id: number, msg: number): void {
5879         if(!isWasmInitialized) {
5880                 throw new Error("initializeWasm() must be awaited first!");
5881         }
5882         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
5883         // debug statements here
5884 }
5885         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
5886 /* @internal */
5887 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: number, their_node_id: number, msg: number): void {
5888         if(!isWasmInitialized) {
5889                 throw new Error("initializeWasm() must be awaited first!");
5890         }
5891         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
5892         // debug statements here
5893 }
5894         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
5895 /* @internal */
5896 export function ChannelMessageHandler_handle_commitment_signed(this_arg: number, their_node_id: number, msg: number): void {
5897         if(!isWasmInitialized) {
5898                 throw new Error("initializeWasm() must be awaited first!");
5899         }
5900         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
5901         // debug statements here
5902 }
5903         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
5904 /* @internal */
5905 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: number, their_node_id: number, msg: number): void {
5906         if(!isWasmInitialized) {
5907                 throw new Error("initializeWasm() must be awaited first!");
5908         }
5909         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
5910         // debug statements here
5911 }
5912         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
5913 /* @internal */
5914 export function ChannelMessageHandler_handle_update_fee(this_arg: number, their_node_id: number, msg: number): void {
5915         if(!isWasmInitialized) {
5916                 throw new Error("initializeWasm() must be awaited first!");
5917         }
5918         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
5919         // debug statements here
5920 }
5921         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
5922 /* @internal */
5923 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: number, their_node_id: number, msg: number): void {
5924         if(!isWasmInitialized) {
5925                 throw new Error("initializeWasm() must be awaited first!");
5926         }
5927         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
5928         // debug statements here
5929 }
5930         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
5931 /* @internal */
5932 export function ChannelMessageHandler_peer_disconnected(this_arg: number, their_node_id: number, no_connection_possible: boolean): void {
5933         if(!isWasmInitialized) {
5934                 throw new Error("initializeWasm() must be awaited first!");
5935         }
5936         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
5937         // debug statements here
5938 }
5939         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
5940 /* @internal */
5941 export function ChannelMessageHandler_peer_connected(this_arg: number, their_node_id: number, msg: number): void {
5942         if(!isWasmInitialized) {
5943                 throw new Error("initializeWasm() must be awaited first!");
5944         }
5945         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg);
5946         // debug statements here
5947 }
5948         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
5949 /* @internal */
5950 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: number, their_node_id: number, msg: number): void {
5951         if(!isWasmInitialized) {
5952                 throw new Error("initializeWasm() must be awaited first!");
5953         }
5954         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
5955         // debug statements here
5956 }
5957         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
5958 /* @internal */
5959 export function ChannelMessageHandler_handle_channel_update(this_arg: number, their_node_id: number, msg: number): void {
5960         if(!isWasmInitialized) {
5961                 throw new Error("initializeWasm() must be awaited first!");
5962         }
5963         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
5964         // debug statements here
5965 }
5966         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
5967 /* @internal */
5968 export function ChannelMessageHandler_handle_error(this_arg: number, their_node_id: number, msg: number): void {
5969         if(!isWasmInitialized) {
5970                 throw new Error("initializeWasm() must be awaited first!");
5971         }
5972         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
5973         // debug statements here
5974 }
5975 /* @internal */
5976 export interface LDKRoutingMessageHandler {
5977         handle_node_announcement (msg: number): number;
5978         handle_channel_announcement (msg: number): number;
5979         handle_channel_update (msg: number): number;
5980         get_next_channel_announcements (starting_point: bigint, batch_amount: number): number;
5981         get_next_node_announcements (starting_point: number, batch_amount: number): number;
5982         peer_connected (their_node_id: number, init: number): void;
5983         handle_reply_channel_range (their_node_id: number, msg: number): number;
5984         handle_reply_short_channel_ids_end (their_node_id: number, msg: number): number;
5985         handle_query_channel_range (their_node_id: number, msg: number): number;
5986         handle_query_short_channel_ids (their_node_id: number, msg: number): number;
5987 }
5988
5989 /* @internal */
5990 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5991         if(!isWasmInitialized) {
5992                 throw new Error("initializeWasm() must be awaited first!");
5993         }
5994         var new_obj_idx = js_objs.length;
5995         for (var i = 0; i < js_objs.length; i++) {
5996                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5997         }
5998         js_objs[i] = new WeakRef(impl);
5999         return wasm.TS_LDKRoutingMessageHandler_new(i);
6000 }
6001         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
6002 /* @internal */
6003 export function RoutingMessageHandler_handle_node_announcement(this_arg: number, msg: number): number {
6004         if(!isWasmInitialized) {
6005                 throw new Error("initializeWasm() must be awaited first!");
6006         }
6007         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
6008         return nativeResponseValue;
6009 }
6010         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
6011 /* @internal */
6012 export function RoutingMessageHandler_handle_channel_announcement(this_arg: number, msg: number): number {
6013         if(!isWasmInitialized) {
6014                 throw new Error("initializeWasm() must be awaited first!");
6015         }
6016         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
6017         return nativeResponseValue;
6018 }
6019         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
6020 /* @internal */
6021 export function RoutingMessageHandler_handle_channel_update(this_arg: number, msg: number): number {
6022         if(!isWasmInitialized) {
6023                 throw new Error("initializeWasm() must be awaited first!");
6024         }
6025         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
6026         return nativeResponseValue;
6027 }
6028         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
6029 /* @internal */
6030 export function RoutingMessageHandler_get_next_channel_announcements(this_arg: number, starting_point: bigint, batch_amount: number): number {
6031         if(!isWasmInitialized) {
6032                 throw new Error("initializeWasm() must be awaited first!");
6033         }
6034         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcements(this_arg, starting_point, batch_amount);
6035         return nativeResponseValue;
6036 }
6037         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
6038 /* @internal */
6039 export function RoutingMessageHandler_get_next_node_announcements(this_arg: number, starting_point: number, batch_amount: number): number {
6040         if(!isWasmInitialized) {
6041                 throw new Error("initializeWasm() must be awaited first!");
6042         }
6043         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcements(this_arg, starting_point, batch_amount);
6044         return nativeResponseValue;
6045 }
6046         // void RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
6047 /* @internal */
6048 export function RoutingMessageHandler_peer_connected(this_arg: number, their_node_id: number, init: number): void {
6049         if(!isWasmInitialized) {
6050                 throw new Error("initializeWasm() must be awaited first!");
6051         }
6052         const nativeResponseValue = wasm.TS_RoutingMessageHandler_peer_connected(this_arg, their_node_id, init);
6053         // debug statements here
6054 }
6055         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
6056 /* @internal */
6057 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: number, their_node_id: number, msg: number): number {
6058         if(!isWasmInitialized) {
6059                 throw new Error("initializeWasm() must be awaited first!");
6060         }
6061         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
6062         return nativeResponseValue;
6063 }
6064         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
6065 /* @internal */
6066 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: number, their_node_id: number, msg: number): number {
6067         if(!isWasmInitialized) {
6068                 throw new Error("initializeWasm() must be awaited first!");
6069         }
6070         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
6071         return nativeResponseValue;
6072 }
6073         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
6074 /* @internal */
6075 export function RoutingMessageHandler_handle_query_channel_range(this_arg: number, their_node_id: number, msg: number): number {
6076         if(!isWasmInitialized) {
6077                 throw new Error("initializeWasm() must be awaited first!");
6078         }
6079         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
6080         return nativeResponseValue;
6081 }
6082         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
6083 /* @internal */
6084 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: number, their_node_id: number, msg: number): number {
6085         if(!isWasmInitialized) {
6086                 throw new Error("initializeWasm() must be awaited first!");
6087         }
6088         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
6089         return nativeResponseValue;
6090 }
6091 /* @internal */
6092 export interface LDKCustomMessageReader {
6093         read (message_type: number, buffer: number): number;
6094 }
6095
6096 /* @internal */
6097 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): number {
6098         if(!isWasmInitialized) {
6099                 throw new Error("initializeWasm() must be awaited first!");
6100         }
6101         var new_obj_idx = js_objs.length;
6102         for (var i = 0; i < js_objs.length; i++) {
6103                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6104         }
6105         js_objs[i] = new WeakRef(impl);
6106         return wasm.TS_LDKCustomMessageReader_new(i);
6107 }
6108         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
6109 /* @internal */
6110 export function CustomMessageReader_read(this_arg: number, message_type: number, buffer: number): number {
6111         if(!isWasmInitialized) {
6112                 throw new Error("initializeWasm() must be awaited first!");
6113         }
6114         const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
6115         return nativeResponseValue;
6116 }
6117 /* @internal */
6118 export interface LDKCustomMessageHandler {
6119         handle_custom_message (msg: number, sender_node_id: number): number;
6120         get_and_clear_pending_msg (): number;
6121 }
6122
6123 /* @internal */
6124 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: LDKCustomMessageReader): number {
6125         if(!isWasmInitialized) {
6126                 throw new Error("initializeWasm() must be awaited first!");
6127         }
6128         var new_obj_idx = js_objs.length;
6129         for (var i = 0; i < js_objs.length; i++) {
6130                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6131         }
6132         js_objs[i] = new WeakRef(impl);
6133         return wasm.TS_LDKCustomMessageHandler_new(i);
6134 }
6135         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
6136 /* @internal */
6137 export function CustomMessageHandler_handle_custom_message(this_arg: number, msg: number, sender_node_id: number): number {
6138         if(!isWasmInitialized) {
6139                 throw new Error("initializeWasm() must be awaited first!");
6140         }
6141         const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
6142         return nativeResponseValue;
6143 }
6144         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
6145 /* @internal */
6146 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: number): number {
6147         if(!isWasmInitialized) {
6148                 throw new Error("initializeWasm() must be awaited first!");
6149         }
6150         const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
6151         return nativeResponseValue;
6152 }
6153 /* @internal */
6154 export interface LDKSocketDescriptor {
6155         send_data (data: number, resume_read: boolean): number;
6156         disconnect_socket (): void;
6157         eq (other_arg: number): boolean;
6158         hash (): bigint;
6159 }
6160
6161 /* @internal */
6162 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): number {
6163         if(!isWasmInitialized) {
6164                 throw new Error("initializeWasm() must be awaited first!");
6165         }
6166         var new_obj_idx = js_objs.length;
6167         for (var i = 0; i < js_objs.length; i++) {
6168                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6169         }
6170         js_objs[i] = new WeakRef(impl);
6171         return wasm.TS_LDKSocketDescriptor_new(i);
6172 }
6173         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
6174 /* @internal */
6175 export function SocketDescriptor_send_data(this_arg: number, data: number, resume_read: boolean): number {
6176         if(!isWasmInitialized) {
6177                 throw new Error("initializeWasm() must be awaited first!");
6178         }
6179         const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
6180         return nativeResponseValue;
6181 }
6182         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
6183 /* @internal */
6184 export function SocketDescriptor_disconnect_socket(this_arg: number): void {
6185         if(!isWasmInitialized) {
6186                 throw new Error("initializeWasm() must be awaited first!");
6187         }
6188         const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
6189         // debug statements here
6190 }
6191         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
6192 /* @internal */
6193 export function SocketDescriptor_hash(this_arg: number): bigint {
6194         if(!isWasmInitialized) {
6195                 throw new Error("initializeWasm() must be awaited first!");
6196         }
6197         const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
6198         return nativeResponseValue;
6199 }
6200 /* @internal */
6201 export class LDKEffectiveCapacity {
6202         protected constructor() {}
6203 }
6204 /* @internal */
6205 export function LDKEffectiveCapacity_ty_from_ptr(ptr: number): number {
6206         if(!isWasmInitialized) {
6207                 throw new Error("initializeWasm() must be awaited first!");
6208         }
6209         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
6210         return nativeResponseValue;
6211 }
6212 /* @internal */
6213 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: number): bigint {
6214         if(!isWasmInitialized) {
6215                 throw new Error("initializeWasm() must be awaited first!");
6216         }
6217         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
6218         return nativeResponseValue;
6219 }
6220 /* @internal */
6221 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: number): bigint {
6222         if(!isWasmInitialized) {
6223                 throw new Error("initializeWasm() must be awaited first!");
6224         }
6225         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
6226         return nativeResponseValue;
6227 }
6228 /* @internal */
6229 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: number): bigint {
6230         if(!isWasmInitialized) {
6231                 throw new Error("initializeWasm() must be awaited first!");
6232         }
6233         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
6234         return nativeResponseValue;
6235 }
6236 /* @internal */
6237 export interface LDKLockableScore {
6238         lock (): number;
6239 }
6240
6241 /* @internal */
6242 export function LDKLockableScore_new(impl: LDKLockableScore): number {
6243         if(!isWasmInitialized) {
6244                 throw new Error("initializeWasm() must be awaited first!");
6245         }
6246         var new_obj_idx = js_objs.length;
6247         for (var i = 0; i < js_objs.length; i++) {
6248                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6249         }
6250         js_objs[i] = new WeakRef(impl);
6251         return wasm.TS_LDKLockableScore_new(i);
6252 }
6253         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
6254 /* @internal */
6255 export function LockableScore_lock(this_arg: number): number {
6256         if(!isWasmInitialized) {
6257                 throw new Error("initializeWasm() must be awaited first!");
6258         }
6259         const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
6260         return nativeResponseValue;
6261 }
6262 /* @internal */
6263 export class LDKFallback {
6264         protected constructor() {}
6265 }
6266 /* @internal */
6267 export function LDKFallback_ty_from_ptr(ptr: number): number {
6268         if(!isWasmInitialized) {
6269                 throw new Error("initializeWasm() must be awaited first!");
6270         }
6271         const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
6272         return nativeResponseValue;
6273 }
6274 /* @internal */
6275 export function LDKFallback_SegWitProgram_get_version(ptr: number): number {
6276         if(!isWasmInitialized) {
6277                 throw new Error("initializeWasm() must be awaited first!");
6278         }
6279         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
6280         return nativeResponseValue;
6281 }
6282 /* @internal */
6283 export function LDKFallback_SegWitProgram_get_program(ptr: number): number {
6284         if(!isWasmInitialized) {
6285                 throw new Error("initializeWasm() must be awaited first!");
6286         }
6287         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
6288         return nativeResponseValue;
6289 }
6290 /* @internal */
6291 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: number): number {
6292         if(!isWasmInitialized) {
6293                 throw new Error("initializeWasm() must be awaited first!");
6294         }
6295         const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
6296         return nativeResponseValue;
6297 }
6298 /* @internal */
6299 export function LDKFallback_ScriptHash_get_script_hash(ptr: number): number {
6300         if(!isWasmInitialized) {
6301                 throw new Error("initializeWasm() must be awaited first!");
6302         }
6303         const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
6304         return nativeResponseValue;
6305 }
6306 /* @internal */
6307 export interface LDKPayer {
6308         node_id (): number;
6309         first_hops (): number;
6310         send_payment (route: number, payment_hash: number, payment_secret: number): number;
6311         send_spontaneous_payment (route: number, payment_preimage: number): number;
6312         retry_payment (route: number, payment_id: number): number;
6313         abandon_payment (payment_id: number): void;
6314 }
6315
6316 /* @internal */
6317 export function LDKPayer_new(impl: LDKPayer): number {
6318         if(!isWasmInitialized) {
6319                 throw new Error("initializeWasm() must be awaited first!");
6320         }
6321         var new_obj_idx = js_objs.length;
6322         for (var i = 0; i < js_objs.length; i++) {
6323                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6324         }
6325         js_objs[i] = new WeakRef(impl);
6326         return wasm.TS_LDKPayer_new(i);
6327 }
6328         // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
6329 /* @internal */
6330 export function Payer_node_id(this_arg: number): number {
6331         if(!isWasmInitialized) {
6332                 throw new Error("initializeWasm() must be awaited first!");
6333         }
6334         const nativeResponseValue = wasm.TS_Payer_node_id(this_arg);
6335         return nativeResponseValue;
6336 }
6337         // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
6338 /* @internal */
6339 export function Payer_first_hops(this_arg: number): number {
6340         if(!isWasmInitialized) {
6341                 throw new Error("initializeWasm() must be awaited first!");
6342         }
6343         const nativeResponseValue = wasm.TS_Payer_first_hops(this_arg);
6344         return nativeResponseValue;
6345 }
6346         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
6347 /* @internal */
6348 export function Payer_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
6349         if(!isWasmInitialized) {
6350                 throw new Error("initializeWasm() must be awaited first!");
6351         }
6352         const nativeResponseValue = wasm.TS_Payer_send_payment(this_arg, route, payment_hash, payment_secret);
6353         return nativeResponseValue;
6354 }
6355         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
6356 /* @internal */
6357 export function Payer_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
6358         if(!isWasmInitialized) {
6359                 throw new Error("initializeWasm() must be awaited first!");
6360         }
6361         const nativeResponseValue = wasm.TS_Payer_send_spontaneous_payment(this_arg, route, payment_preimage);
6362         return nativeResponseValue;
6363 }
6364         // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
6365 /* @internal */
6366 export function Payer_retry_payment(this_arg: number, route: number, payment_id: number): number {
6367         if(!isWasmInitialized) {
6368                 throw new Error("initializeWasm() must be awaited first!");
6369         }
6370         const nativeResponseValue = wasm.TS_Payer_retry_payment(this_arg, route, payment_id);
6371         return nativeResponseValue;
6372 }
6373         // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
6374 /* @internal */
6375 export function Payer_abandon_payment(this_arg: number, payment_id: number): void {
6376         if(!isWasmInitialized) {
6377                 throw new Error("initializeWasm() must be awaited first!");
6378         }
6379         const nativeResponseValue = wasm.TS_Payer_abandon_payment(this_arg, payment_id);
6380         // debug statements here
6381 }
6382 /* @internal */
6383 export interface LDKRouter {
6384         find_route (payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number;
6385 }
6386
6387 /* @internal */
6388 export function LDKRouter_new(impl: LDKRouter): number {
6389         if(!isWasmInitialized) {
6390                 throw new Error("initializeWasm() must be awaited first!");
6391         }
6392         var new_obj_idx = js_objs.length;
6393         for (var i = 0; i < js_objs.length; i++) {
6394                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6395         }
6396         js_objs[i] = new WeakRef(impl);
6397         return wasm.TS_LDKRouter_new(i);
6398 }
6399         // 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
6400 /* @internal */
6401 export function Router_find_route(this_arg: number, payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number {
6402         if(!isWasmInitialized) {
6403                 throw new Error("initializeWasm() must be awaited first!");
6404         }
6405         const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, payment_hash, first_hops, scorer);
6406         return nativeResponseValue;
6407 }
6408 /* @internal */
6409 export class LDKRetry {
6410         protected constructor() {}
6411 }
6412 /* @internal */
6413 export function LDKRetry_ty_from_ptr(ptr: number): number {
6414         if(!isWasmInitialized) {
6415                 throw new Error("initializeWasm() must be awaited first!");
6416         }
6417         const nativeResponseValue = wasm.TS_LDKRetry_ty_from_ptr(ptr);
6418         return nativeResponseValue;
6419 }
6420 /* @internal */
6421 export function LDKRetry_Attempts_get_attempts(ptr: number): number {
6422         if(!isWasmInitialized) {
6423                 throw new Error("initializeWasm() must be awaited first!");
6424         }
6425         const nativeResponseValue = wasm.TS_LDKRetry_Attempts_get_attempts(ptr);
6426         return nativeResponseValue;
6427 }
6428         // struct LDKStr _ldk_get_compiled_version(void);
6429 /* @internal */
6430 export function _ldk_get_compiled_version(): number {
6431         if(!isWasmInitialized) {
6432                 throw new Error("initializeWasm() must be awaited first!");
6433         }
6434         const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
6435         return nativeResponseValue;
6436 }
6437         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
6438 /* @internal */
6439 export function _ldk_c_bindings_get_compiled_version(): number {
6440         if(!isWasmInitialized) {
6441                 throw new Error("initializeWasm() must be awaited first!");
6442         }
6443         const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
6444         return nativeResponseValue;
6445 }
6446         // uintptr_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
6447 /* @internal */
6448 export function Bech32Error_clone_ptr(arg: number): number {
6449         if(!isWasmInitialized) {
6450                 throw new Error("initializeWasm() must be awaited first!");
6451         }
6452         const nativeResponseValue = wasm.TS_Bech32Error_clone_ptr(arg);
6453         return nativeResponseValue;
6454 }
6455         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
6456 /* @internal */
6457 export function Bech32Error_clone(orig: number): number {
6458         if(!isWasmInitialized) {
6459                 throw new Error("initializeWasm() must be awaited first!");
6460         }
6461         const nativeResponseValue = wasm.TS_Bech32Error_clone(orig);
6462         return nativeResponseValue;
6463 }
6464         // void Bech32Error_free(struct LDKBech32Error o);
6465 /* @internal */
6466 export function Bech32Error_free(o: number): void {
6467         if(!isWasmInitialized) {
6468                 throw new Error("initializeWasm() must be awaited first!");
6469         }
6470         const nativeResponseValue = wasm.TS_Bech32Error_free(o);
6471         // debug statements here
6472 }
6473         // void Transaction_free(struct LDKTransaction _res);
6474 /* @internal */
6475 export function Transaction_free(_res: number): void {
6476         if(!isWasmInitialized) {
6477                 throw new Error("initializeWasm() must be awaited first!");
6478         }
6479         const nativeResponseValue = wasm.TS_Transaction_free(_res);
6480         // debug statements here
6481 }
6482         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
6483 /* @internal */
6484 export function TxOut_new(script_pubkey: number, value: bigint): number {
6485         if(!isWasmInitialized) {
6486                 throw new Error("initializeWasm() must be awaited first!");
6487         }
6488         const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
6489         return nativeResponseValue;
6490 }
6491         // void TxOut_free(struct LDKTxOut _res);
6492 /* @internal */
6493 export function TxOut_free(_res: number): void {
6494         if(!isWasmInitialized) {
6495                 throw new Error("initializeWasm() must be awaited first!");
6496         }
6497         const nativeResponseValue = wasm.TS_TxOut_free(_res);
6498         // debug statements here
6499 }
6500         // uintptr_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
6501 /* @internal */
6502 export function TxOut_clone_ptr(arg: number): number {
6503         if(!isWasmInitialized) {
6504                 throw new Error("initializeWasm() must be awaited first!");
6505         }
6506         const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
6507         return nativeResponseValue;
6508 }
6509         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
6510 /* @internal */
6511 export function TxOut_clone(orig: number): number {
6512         if(!isWasmInitialized) {
6513                 throw new Error("initializeWasm() must be awaited first!");
6514         }
6515         const nativeResponseValue = wasm.TS_TxOut_clone(orig);
6516         return nativeResponseValue;
6517 }
6518         // void Str_free(struct LDKStr _res);
6519 /* @internal */
6520 export function Str_free(_res: number): void {
6521         if(!isWasmInitialized) {
6522                 throw new Error("initializeWasm() must be awaited first!");
6523         }
6524         const nativeResponseValue = wasm.TS_Str_free(_res);
6525         // debug statements here
6526 }
6527         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
6528 /* @internal */
6529 export function CResult_NoneNoneZ_ok(): number {
6530         if(!isWasmInitialized) {
6531                 throw new Error("initializeWasm() must be awaited first!");
6532         }
6533         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
6534         return nativeResponseValue;
6535 }
6536         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
6537 /* @internal */
6538 export function CResult_NoneNoneZ_err(): number {
6539         if(!isWasmInitialized) {
6540                 throw new Error("initializeWasm() must be awaited first!");
6541         }
6542         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
6543         return nativeResponseValue;
6544 }
6545         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
6546 /* @internal */
6547 export function CResult_NoneNoneZ_is_ok(o: number): boolean {
6548         if(!isWasmInitialized) {
6549                 throw new Error("initializeWasm() must be awaited first!");
6550         }
6551         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
6552         return nativeResponseValue;
6553 }
6554         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
6555 /* @internal */
6556 export function CResult_NoneNoneZ_free(_res: number): void {
6557         if(!isWasmInitialized) {
6558                 throw new Error("initializeWasm() must be awaited first!");
6559         }
6560         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
6561         // debug statements here
6562 }
6563         // uintptr_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
6564 /* @internal */
6565 export function CResult_NoneNoneZ_clone_ptr(arg: number): number {
6566         if(!isWasmInitialized) {
6567                 throw new Error("initializeWasm() must be awaited first!");
6568         }
6569         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
6570         return nativeResponseValue;
6571 }
6572         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
6573 /* @internal */
6574 export function CResult_NoneNoneZ_clone(orig: number): number {
6575         if(!isWasmInitialized) {
6576                 throw new Error("initializeWasm() must be awaited first!");
6577         }
6578         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
6579         return nativeResponseValue;
6580 }
6581         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
6582 /* @internal */
6583 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: number): number {
6584         if(!isWasmInitialized) {
6585                 throw new Error("initializeWasm() must be awaited first!");
6586         }
6587         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
6588         return nativeResponseValue;
6589 }
6590         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
6591 /* @internal */
6592 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: number): number {
6593         if(!isWasmInitialized) {
6594                 throw new Error("initializeWasm() must be awaited first!");
6595         }
6596         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
6597         return nativeResponseValue;
6598 }
6599         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
6600 /* @internal */
6601 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: number): boolean {
6602         if(!isWasmInitialized) {
6603                 throw new Error("initializeWasm() must be awaited first!");
6604         }
6605         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
6606         return nativeResponseValue;
6607 }
6608         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
6609 /* @internal */
6610 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: number): void {
6611         if(!isWasmInitialized) {
6612                 throw new Error("initializeWasm() must be awaited first!");
6613         }
6614         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
6615         // debug statements here
6616 }
6617         // uintptr_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
6618 /* @internal */
6619 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: number): number {
6620         if(!isWasmInitialized) {
6621                 throw new Error("initializeWasm() must be awaited first!");
6622         }
6623         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
6624         return nativeResponseValue;
6625 }
6626         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
6627 /* @internal */
6628 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: number): number {
6629         if(!isWasmInitialized) {
6630                 throw new Error("initializeWasm() must be awaited first!");
6631         }
6632         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
6633         return nativeResponseValue;
6634 }
6635         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
6636 /* @internal */
6637 export function CResult_SecretKeyErrorZ_ok(o: number): number {
6638         if(!isWasmInitialized) {
6639                 throw new Error("initializeWasm() must be awaited first!");
6640         }
6641         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_ok(o);
6642         return nativeResponseValue;
6643 }
6644         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
6645 /* @internal */
6646 export function CResult_SecretKeyErrorZ_err(e: Secp256k1Error): number {
6647         if(!isWasmInitialized) {
6648                 throw new Error("initializeWasm() must be awaited first!");
6649         }
6650         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_err(e);
6651         return nativeResponseValue;
6652 }
6653         // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
6654 /* @internal */
6655 export function CResult_SecretKeyErrorZ_is_ok(o: number): boolean {
6656         if(!isWasmInitialized) {
6657                 throw new Error("initializeWasm() must be awaited first!");
6658         }
6659         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_is_ok(o);
6660         return nativeResponseValue;
6661 }
6662         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
6663 /* @internal */
6664 export function CResult_SecretKeyErrorZ_free(_res: number): void {
6665         if(!isWasmInitialized) {
6666                 throw new Error("initializeWasm() must be awaited first!");
6667         }
6668         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_free(_res);
6669         // debug statements here
6670 }
6671         // uintptr_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
6672 /* @internal */
6673 export function CResult_SecretKeyErrorZ_clone_ptr(arg: number): number {
6674         if(!isWasmInitialized) {
6675                 throw new Error("initializeWasm() must be awaited first!");
6676         }
6677         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone_ptr(arg);
6678         return nativeResponseValue;
6679 }
6680         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
6681 /* @internal */
6682 export function CResult_SecretKeyErrorZ_clone(orig: number): number {
6683         if(!isWasmInitialized) {
6684                 throw new Error("initializeWasm() must be awaited first!");
6685         }
6686         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone(orig);
6687         return nativeResponseValue;
6688 }
6689         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
6690 /* @internal */
6691 export function CResult_PublicKeyErrorZ_ok(o: number): number {
6692         if(!isWasmInitialized) {
6693                 throw new Error("initializeWasm() must be awaited first!");
6694         }
6695         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
6696         return nativeResponseValue;
6697 }
6698         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
6699 /* @internal */
6700 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): number {
6701         if(!isWasmInitialized) {
6702                 throw new Error("initializeWasm() must be awaited first!");
6703         }
6704         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
6705         return nativeResponseValue;
6706 }
6707         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
6708 /* @internal */
6709 export function CResult_PublicKeyErrorZ_is_ok(o: number): boolean {
6710         if(!isWasmInitialized) {
6711                 throw new Error("initializeWasm() must be awaited first!");
6712         }
6713         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
6714         return nativeResponseValue;
6715 }
6716         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
6717 /* @internal */
6718 export function CResult_PublicKeyErrorZ_free(_res: number): void {
6719         if(!isWasmInitialized) {
6720                 throw new Error("initializeWasm() must be awaited first!");
6721         }
6722         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
6723         // debug statements here
6724 }
6725         // uintptr_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
6726 /* @internal */
6727 export function CResult_PublicKeyErrorZ_clone_ptr(arg: number): number {
6728         if(!isWasmInitialized) {
6729                 throw new Error("initializeWasm() must be awaited first!");
6730         }
6731         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
6732         return nativeResponseValue;
6733 }
6734         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
6735 /* @internal */
6736 export function CResult_PublicKeyErrorZ_clone(orig: number): number {
6737         if(!isWasmInitialized) {
6738                 throw new Error("initializeWasm() must be awaited first!");
6739         }
6740         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
6741         return nativeResponseValue;
6742 }
6743         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
6744 /* @internal */
6745 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: number): number {
6746         if(!isWasmInitialized) {
6747                 throw new Error("initializeWasm() must be awaited first!");
6748         }
6749         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
6750         return nativeResponseValue;
6751 }
6752         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
6753 /* @internal */
6754 export function CResult_TxCreationKeysDecodeErrorZ_err(e: number): number {
6755         if(!isWasmInitialized) {
6756                 throw new Error("initializeWasm() must be awaited first!");
6757         }
6758         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
6759         return nativeResponseValue;
6760 }
6761         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
6762 /* @internal */
6763 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: number): boolean {
6764         if(!isWasmInitialized) {
6765                 throw new Error("initializeWasm() must be awaited first!");
6766         }
6767         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
6768         return nativeResponseValue;
6769 }
6770         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
6771 /* @internal */
6772 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: number): void {
6773         if(!isWasmInitialized) {
6774                 throw new Error("initializeWasm() must be awaited first!");
6775         }
6776         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
6777         // debug statements here
6778 }
6779         // uintptr_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
6780 /* @internal */
6781 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: number): number {
6782         if(!isWasmInitialized) {
6783                 throw new Error("initializeWasm() must be awaited first!");
6784         }
6785         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
6786         return nativeResponseValue;
6787 }
6788         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
6789 /* @internal */
6790 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: number): number {
6791         if(!isWasmInitialized) {
6792                 throw new Error("initializeWasm() must be awaited first!");
6793         }
6794         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
6795         return nativeResponseValue;
6796 }
6797         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
6798 /* @internal */
6799 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: number): number {
6800         if(!isWasmInitialized) {
6801                 throw new Error("initializeWasm() must be awaited first!");
6802         }
6803         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
6804         return nativeResponseValue;
6805 }
6806         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
6807 /* @internal */
6808 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: number): number {
6809         if(!isWasmInitialized) {
6810                 throw new Error("initializeWasm() must be awaited first!");
6811         }
6812         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
6813         return nativeResponseValue;
6814 }
6815         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
6816 /* @internal */
6817 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: number): boolean {
6818         if(!isWasmInitialized) {
6819                 throw new Error("initializeWasm() must be awaited first!");
6820         }
6821         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
6822         return nativeResponseValue;
6823 }
6824         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
6825 /* @internal */
6826 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: number): void {
6827         if(!isWasmInitialized) {
6828                 throw new Error("initializeWasm() must be awaited first!");
6829         }
6830         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
6831         // debug statements here
6832 }
6833         // uintptr_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
6834 /* @internal */
6835 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: number): number {
6836         if(!isWasmInitialized) {
6837                 throw new Error("initializeWasm() must be awaited first!");
6838         }
6839         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
6840         return nativeResponseValue;
6841 }
6842         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
6843 /* @internal */
6844 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: number): number {
6845         if(!isWasmInitialized) {
6846                 throw new Error("initializeWasm() must be awaited first!");
6847         }
6848         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
6849         return nativeResponseValue;
6850 }
6851         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
6852 /* @internal */
6853 export function CResult_TxCreationKeysErrorZ_ok(o: number): number {
6854         if(!isWasmInitialized) {
6855                 throw new Error("initializeWasm() must be awaited first!");
6856         }
6857         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_ok(o);
6858         return nativeResponseValue;
6859 }
6860         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
6861 /* @internal */
6862 export function CResult_TxCreationKeysErrorZ_err(e: Secp256k1Error): number {
6863         if(!isWasmInitialized) {
6864                 throw new Error("initializeWasm() must be awaited first!");
6865         }
6866         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_err(e);
6867         return nativeResponseValue;
6868 }
6869         // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
6870 /* @internal */
6871 export function CResult_TxCreationKeysErrorZ_is_ok(o: number): boolean {
6872         if(!isWasmInitialized) {
6873                 throw new Error("initializeWasm() must be awaited first!");
6874         }
6875         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_is_ok(o);
6876         return nativeResponseValue;
6877 }
6878         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
6879 /* @internal */
6880 export function CResult_TxCreationKeysErrorZ_free(_res: number): void {
6881         if(!isWasmInitialized) {
6882                 throw new Error("initializeWasm() must be awaited first!");
6883         }
6884         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_free(_res);
6885         // debug statements here
6886 }
6887         // uintptr_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
6888 /* @internal */
6889 export function CResult_TxCreationKeysErrorZ_clone_ptr(arg: number): number {
6890         if(!isWasmInitialized) {
6891                 throw new Error("initializeWasm() must be awaited first!");
6892         }
6893         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone_ptr(arg);
6894         return nativeResponseValue;
6895 }
6896         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
6897 /* @internal */
6898 export function CResult_TxCreationKeysErrorZ_clone(orig: number): number {
6899         if(!isWasmInitialized) {
6900                 throw new Error("initializeWasm() must be awaited first!");
6901         }
6902         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone(orig);
6903         return nativeResponseValue;
6904 }
6905         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
6906 /* @internal */
6907 export function COption_u32Z_some(o: number): number {
6908         if(!isWasmInitialized) {
6909                 throw new Error("initializeWasm() must be awaited first!");
6910         }
6911         const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
6912         return nativeResponseValue;
6913 }
6914         // struct LDKCOption_u32Z COption_u32Z_none(void);
6915 /* @internal */
6916 export function COption_u32Z_none(): number {
6917         if(!isWasmInitialized) {
6918                 throw new Error("initializeWasm() must be awaited first!");
6919         }
6920         const nativeResponseValue = wasm.TS_COption_u32Z_none();
6921         return nativeResponseValue;
6922 }
6923         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
6924 /* @internal */
6925 export function COption_u32Z_free(_res: number): void {
6926         if(!isWasmInitialized) {
6927                 throw new Error("initializeWasm() must be awaited first!");
6928         }
6929         const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
6930         // debug statements here
6931 }
6932         // uintptr_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
6933 /* @internal */
6934 export function COption_u32Z_clone_ptr(arg: number): number {
6935         if(!isWasmInitialized) {
6936                 throw new Error("initializeWasm() must be awaited first!");
6937         }
6938         const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
6939         return nativeResponseValue;
6940 }
6941         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
6942 /* @internal */
6943 export function COption_u32Z_clone(orig: number): number {
6944         if(!isWasmInitialized) {
6945                 throw new Error("initializeWasm() must be awaited first!");
6946         }
6947         const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
6948         return nativeResponseValue;
6949 }
6950         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
6951 /* @internal */
6952 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: number): number {
6953         if(!isWasmInitialized) {
6954                 throw new Error("initializeWasm() must be awaited first!");
6955         }
6956         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
6957         return nativeResponseValue;
6958 }
6959         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
6960 /* @internal */
6961 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: number): number {
6962         if(!isWasmInitialized) {
6963                 throw new Error("initializeWasm() must be awaited first!");
6964         }
6965         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
6966         return nativeResponseValue;
6967 }
6968         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
6969 /* @internal */
6970 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: number): boolean {
6971         if(!isWasmInitialized) {
6972                 throw new Error("initializeWasm() must be awaited first!");
6973         }
6974         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
6975         return nativeResponseValue;
6976 }
6977         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
6978 /* @internal */
6979 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: number): void {
6980         if(!isWasmInitialized) {
6981                 throw new Error("initializeWasm() must be awaited first!");
6982         }
6983         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
6984         // debug statements here
6985 }
6986         // uintptr_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
6987 /* @internal */
6988 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: number): number {
6989         if(!isWasmInitialized) {
6990                 throw new Error("initializeWasm() must be awaited first!");
6991         }
6992         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
6993         return nativeResponseValue;
6994 }
6995         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
6996 /* @internal */
6997 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: number): number {
6998         if(!isWasmInitialized) {
6999                 throw new Error("initializeWasm() must be awaited first!");
7000         }
7001         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
7002         return nativeResponseValue;
7003 }
7004         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
7005 /* @internal */
7006 export function COption_NoneZ_some(): COption_NoneZ {
7007         if(!isWasmInitialized) {
7008                 throw new Error("initializeWasm() must be awaited first!");
7009         }
7010         const nativeResponseValue = wasm.TS_COption_NoneZ_some();
7011         return nativeResponseValue;
7012 }
7013         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
7014 /* @internal */
7015 export function COption_NoneZ_none(): COption_NoneZ {
7016         if(!isWasmInitialized) {
7017                 throw new Error("initializeWasm() must be awaited first!");
7018         }
7019         const nativeResponseValue = wasm.TS_COption_NoneZ_none();
7020         return nativeResponseValue;
7021 }
7022         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
7023 /* @internal */
7024 export function COption_NoneZ_free(_res: COption_NoneZ): void {
7025         if(!isWasmInitialized) {
7026                 throw new Error("initializeWasm() must be awaited first!");
7027         }
7028         const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
7029         // debug statements here
7030 }
7031         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
7032 /* @internal */
7033 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
7034         if(!isWasmInitialized) {
7035                 throw new Error("initializeWasm() must be awaited first!");
7036         }
7037         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
7038         return nativeResponseValue;
7039 }
7040         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
7041 /* @internal */
7042 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: number): number {
7043         if(!isWasmInitialized) {
7044                 throw new Error("initializeWasm() must be awaited first!");
7045         }
7046         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
7047         return nativeResponseValue;
7048 }
7049         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
7050 /* @internal */
7051 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
7052         if(!isWasmInitialized) {
7053                 throw new Error("initializeWasm() must be awaited first!");
7054         }
7055         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
7056         return nativeResponseValue;
7057 }
7058         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
7059 /* @internal */
7060 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
7061         if(!isWasmInitialized) {
7062                 throw new Error("initializeWasm() must be awaited first!");
7063         }
7064         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
7065         // debug statements here
7066 }
7067         // uintptr_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
7068 /* @internal */
7069 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
7070         if(!isWasmInitialized) {
7071                 throw new Error("initializeWasm() must be awaited first!");
7072         }
7073         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
7074         return nativeResponseValue;
7075 }
7076         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
7077 /* @internal */
7078 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
7079         if(!isWasmInitialized) {
7080                 throw new Error("initializeWasm() must be awaited first!");
7081         }
7082         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
7083         return nativeResponseValue;
7084 }
7085         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
7086 /* @internal */
7087 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
7088         if(!isWasmInitialized) {
7089                 throw new Error("initializeWasm() must be awaited first!");
7090         }
7091         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
7092         return nativeResponseValue;
7093 }
7094         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
7095 /* @internal */
7096 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: number): number {
7097         if(!isWasmInitialized) {
7098                 throw new Error("initializeWasm() must be awaited first!");
7099         }
7100         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
7101         return nativeResponseValue;
7102 }
7103         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
7104 /* @internal */
7105 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
7106         if(!isWasmInitialized) {
7107                 throw new Error("initializeWasm() must be awaited first!");
7108         }
7109         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
7110         return nativeResponseValue;
7111 }
7112         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
7113 /* @internal */
7114 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
7115         if(!isWasmInitialized) {
7116                 throw new Error("initializeWasm() must be awaited first!");
7117         }
7118         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
7119         // debug statements here
7120 }
7121         // uintptr_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
7122 /* @internal */
7123 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
7124         if(!isWasmInitialized) {
7125                 throw new Error("initializeWasm() must be awaited first!");
7126         }
7127         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
7128         return nativeResponseValue;
7129 }
7130         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
7131 /* @internal */
7132 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
7133         if(!isWasmInitialized) {
7134                 throw new Error("initializeWasm() must be awaited first!");
7135         }
7136         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
7137         return nativeResponseValue;
7138 }
7139         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
7140 /* @internal */
7141 export function CVec_SignatureZ_free(_res: number): void {
7142         if(!isWasmInitialized) {
7143                 throw new Error("initializeWasm() must be awaited first!");
7144         }
7145         const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
7146         // debug statements here
7147 }
7148         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
7149 /* @internal */
7150 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7151         if(!isWasmInitialized) {
7152                 throw new Error("initializeWasm() must be awaited first!");
7153         }
7154         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
7155         return nativeResponseValue;
7156 }
7157         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7158 /* @internal */
7159 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: number): number {
7160         if(!isWasmInitialized) {
7161                 throw new Error("initializeWasm() must be awaited first!");
7162         }
7163         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
7164         return nativeResponseValue;
7165 }
7166         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7167 /* @internal */
7168 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7169         if(!isWasmInitialized) {
7170                 throw new Error("initializeWasm() must be awaited first!");
7171         }
7172         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
7173         return nativeResponseValue;
7174 }
7175         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
7176 /* @internal */
7177 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7178         if(!isWasmInitialized) {
7179                 throw new Error("initializeWasm() must be awaited first!");
7180         }
7181         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
7182         // debug statements here
7183 }
7184         // uintptr_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7185 /* @internal */
7186 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7187         if(!isWasmInitialized) {
7188                 throw new Error("initializeWasm() must be awaited first!");
7189         }
7190         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7191         return nativeResponseValue;
7192 }
7193         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7194 /* @internal */
7195 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7196         if(!isWasmInitialized) {
7197                 throw new Error("initializeWasm() must be awaited first!");
7198         }
7199         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
7200         return nativeResponseValue;
7201 }
7202         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
7203 /* @internal */
7204 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7205         if(!isWasmInitialized) {
7206                 throw new Error("initializeWasm() must be awaited first!");
7207         }
7208         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
7209         return nativeResponseValue;
7210 }
7211         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7212 /* @internal */
7213 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: number): number {
7214         if(!isWasmInitialized) {
7215                 throw new Error("initializeWasm() must be awaited first!");
7216         }
7217         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
7218         return nativeResponseValue;
7219 }
7220         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7221 /* @internal */
7222 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7223         if(!isWasmInitialized) {
7224                 throw new Error("initializeWasm() must be awaited first!");
7225         }
7226         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
7227         return nativeResponseValue;
7228 }
7229         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
7230 /* @internal */
7231 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7232         if(!isWasmInitialized) {
7233                 throw new Error("initializeWasm() must be awaited first!");
7234         }
7235         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
7236         // debug statements here
7237 }
7238         // uintptr_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7239 /* @internal */
7240 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7241         if(!isWasmInitialized) {
7242                 throw new Error("initializeWasm() must be awaited first!");
7243         }
7244         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7245         return nativeResponseValue;
7246 }
7247         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7248 /* @internal */
7249 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7250         if(!isWasmInitialized) {
7251                 throw new Error("initializeWasm() must be awaited first!");
7252         }
7253         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
7254         return nativeResponseValue;
7255 }
7256         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
7257 /* @internal */
7258 export function CResult_TrustedClosingTransactionNoneZ_ok(o: number): number {
7259         if(!isWasmInitialized) {
7260                 throw new Error("initializeWasm() must be awaited first!");
7261         }
7262         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
7263         return nativeResponseValue;
7264 }
7265         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
7266 /* @internal */
7267 export function CResult_TrustedClosingTransactionNoneZ_err(): number {
7268         if(!isWasmInitialized) {
7269                 throw new Error("initializeWasm() must be awaited first!");
7270         }
7271         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
7272         return nativeResponseValue;
7273 }
7274         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
7275 /* @internal */
7276 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: number): boolean {
7277         if(!isWasmInitialized) {
7278                 throw new Error("initializeWasm() must be awaited first!");
7279         }
7280         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
7281         return nativeResponseValue;
7282 }
7283         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
7284 /* @internal */
7285 export function CResult_TrustedClosingTransactionNoneZ_free(_res: number): void {
7286         if(!isWasmInitialized) {
7287                 throw new Error("initializeWasm() must be awaited first!");
7288         }
7289         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
7290         // debug statements here
7291 }
7292         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
7293 /* @internal */
7294 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: number): number {
7295         if(!isWasmInitialized) {
7296                 throw new Error("initializeWasm() must be awaited first!");
7297         }
7298         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
7299         return nativeResponseValue;
7300 }
7301         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7302 /* @internal */
7303 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: number): number {
7304         if(!isWasmInitialized) {
7305                 throw new Error("initializeWasm() must be awaited first!");
7306         }
7307         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
7308         return nativeResponseValue;
7309 }
7310         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7311 /* @internal */
7312 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7313         if(!isWasmInitialized) {
7314                 throw new Error("initializeWasm() must be awaited first!");
7315         }
7316         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
7317         return nativeResponseValue;
7318 }
7319         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
7320 /* @internal */
7321 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: number): void {
7322         if(!isWasmInitialized) {
7323                 throw new Error("initializeWasm() must be awaited first!");
7324         }
7325         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
7326         // debug statements here
7327 }
7328         // uintptr_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7329 /* @internal */
7330 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7331         if(!isWasmInitialized) {
7332                 throw new Error("initializeWasm() must be awaited first!");
7333         }
7334         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7335         return nativeResponseValue;
7336 }
7337         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7338 /* @internal */
7339 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7340         if(!isWasmInitialized) {
7341                 throw new Error("initializeWasm() must be awaited first!");
7342         }
7343         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
7344         return nativeResponseValue;
7345 }
7346         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
7347 /* @internal */
7348 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: number): number {
7349         if(!isWasmInitialized) {
7350                 throw new Error("initializeWasm() must be awaited first!");
7351         }
7352         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
7353         return nativeResponseValue;
7354 }
7355         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
7356 /* @internal */
7357 export function CResult_TrustedCommitmentTransactionNoneZ_err(): number {
7358         if(!isWasmInitialized) {
7359                 throw new Error("initializeWasm() must be awaited first!");
7360         }
7361         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
7362         return nativeResponseValue;
7363 }
7364         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
7365 /* @internal */
7366 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: number): boolean {
7367         if(!isWasmInitialized) {
7368                 throw new Error("initializeWasm() must be awaited first!");
7369         }
7370         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
7371         return nativeResponseValue;
7372 }
7373         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
7374 /* @internal */
7375 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: number): void {
7376         if(!isWasmInitialized) {
7377                 throw new Error("initializeWasm() must be awaited first!");
7378         }
7379         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
7380         // debug statements here
7381 }
7382         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
7383 /* @internal */
7384 export function CResult_CVec_SignatureZNoneZ_ok(o: number): number {
7385         if(!isWasmInitialized) {
7386                 throw new Error("initializeWasm() must be awaited first!");
7387         }
7388         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
7389         return nativeResponseValue;
7390 }
7391         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
7392 /* @internal */
7393 export function CResult_CVec_SignatureZNoneZ_err(): number {
7394         if(!isWasmInitialized) {
7395                 throw new Error("initializeWasm() must be awaited first!");
7396         }
7397         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
7398         return nativeResponseValue;
7399 }
7400         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
7401 /* @internal */
7402 export function CResult_CVec_SignatureZNoneZ_is_ok(o: number): boolean {
7403         if(!isWasmInitialized) {
7404                 throw new Error("initializeWasm() must be awaited first!");
7405         }
7406         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
7407         return nativeResponseValue;
7408 }
7409         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
7410 /* @internal */
7411 export function CResult_CVec_SignatureZNoneZ_free(_res: number): void {
7412         if(!isWasmInitialized) {
7413                 throw new Error("initializeWasm() must be awaited first!");
7414         }
7415         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
7416         // debug statements here
7417 }
7418         // uintptr_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
7419 /* @internal */
7420 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: number): number {
7421         if(!isWasmInitialized) {
7422                 throw new Error("initializeWasm() must be awaited first!");
7423         }
7424         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
7425         return nativeResponseValue;
7426 }
7427         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
7428 /* @internal */
7429 export function CResult_CVec_SignatureZNoneZ_clone(orig: number): number {
7430         if(!isWasmInitialized) {
7431                 throw new Error("initializeWasm() must be awaited first!");
7432         }
7433         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
7434         return nativeResponseValue;
7435 }
7436         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
7437 /* @internal */
7438 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: number): number {
7439         if(!isWasmInitialized) {
7440                 throw new Error("initializeWasm() must be awaited first!");
7441         }
7442         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
7443         return nativeResponseValue;
7444 }
7445         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
7446 /* @internal */
7447 export function CResult_ShutdownScriptDecodeErrorZ_err(e: number): number {
7448         if(!isWasmInitialized) {
7449                 throw new Error("initializeWasm() must be awaited first!");
7450         }
7451         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
7452         return nativeResponseValue;
7453 }
7454         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
7455 /* @internal */
7456 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: number): boolean {
7457         if(!isWasmInitialized) {
7458                 throw new Error("initializeWasm() must be awaited first!");
7459         }
7460         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
7461         return nativeResponseValue;
7462 }
7463         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
7464 /* @internal */
7465 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: number): void {
7466         if(!isWasmInitialized) {
7467                 throw new Error("initializeWasm() must be awaited first!");
7468         }
7469         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
7470         // debug statements here
7471 }
7472         // uintptr_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
7473 /* @internal */
7474 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: number): number {
7475         if(!isWasmInitialized) {
7476                 throw new Error("initializeWasm() must be awaited first!");
7477         }
7478         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
7479         return nativeResponseValue;
7480 }
7481         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
7482 /* @internal */
7483 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: number): number {
7484         if(!isWasmInitialized) {
7485                 throw new Error("initializeWasm() must be awaited first!");
7486         }
7487         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
7488         return nativeResponseValue;
7489 }
7490         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
7491 /* @internal */
7492 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: number): number {
7493         if(!isWasmInitialized) {
7494                 throw new Error("initializeWasm() must be awaited first!");
7495         }
7496         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
7497         return nativeResponseValue;
7498 }
7499         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
7500 /* @internal */
7501 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: number): number {
7502         if(!isWasmInitialized) {
7503                 throw new Error("initializeWasm() must be awaited first!");
7504         }
7505         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
7506         return nativeResponseValue;
7507 }
7508         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
7509 /* @internal */
7510 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: number): boolean {
7511         if(!isWasmInitialized) {
7512                 throw new Error("initializeWasm() must be awaited first!");
7513         }
7514         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
7515         return nativeResponseValue;
7516 }
7517         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
7518 /* @internal */
7519 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: number): void {
7520         if(!isWasmInitialized) {
7521                 throw new Error("initializeWasm() must be awaited first!");
7522         }
7523         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
7524         // debug statements here
7525 }
7526         // uintptr_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
7527 /* @internal */
7528 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: number): number {
7529         if(!isWasmInitialized) {
7530                 throw new Error("initializeWasm() must be awaited first!");
7531         }
7532         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
7533         return nativeResponseValue;
7534 }
7535         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
7536 /* @internal */
7537 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: number): number {
7538         if(!isWasmInitialized) {
7539                 throw new Error("initializeWasm() must be awaited first!");
7540         }
7541         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
7542         return nativeResponseValue;
7543 }
7544         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
7545 /* @internal */
7546 export function CResult_RouteHopDecodeErrorZ_ok(o: number): number {
7547         if(!isWasmInitialized) {
7548                 throw new Error("initializeWasm() must be awaited first!");
7549         }
7550         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
7551         return nativeResponseValue;
7552 }
7553         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
7554 /* @internal */
7555 export function CResult_RouteHopDecodeErrorZ_err(e: number): number {
7556         if(!isWasmInitialized) {
7557                 throw new Error("initializeWasm() must be awaited first!");
7558         }
7559         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
7560         return nativeResponseValue;
7561 }
7562         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
7563 /* @internal */
7564 export function CResult_RouteHopDecodeErrorZ_is_ok(o: number): boolean {
7565         if(!isWasmInitialized) {
7566                 throw new Error("initializeWasm() must be awaited first!");
7567         }
7568         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
7569         return nativeResponseValue;
7570 }
7571         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
7572 /* @internal */
7573 export function CResult_RouteHopDecodeErrorZ_free(_res: number): void {
7574         if(!isWasmInitialized) {
7575                 throw new Error("initializeWasm() must be awaited first!");
7576         }
7577         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
7578         // debug statements here
7579 }
7580         // uintptr_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
7581 /* @internal */
7582 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: number): number {
7583         if(!isWasmInitialized) {
7584                 throw new Error("initializeWasm() must be awaited first!");
7585         }
7586         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
7587         return nativeResponseValue;
7588 }
7589         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
7590 /* @internal */
7591 export function CResult_RouteHopDecodeErrorZ_clone(orig: number): number {
7592         if(!isWasmInitialized) {
7593                 throw new Error("initializeWasm() must be awaited first!");
7594         }
7595         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
7596         return nativeResponseValue;
7597 }
7598         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
7599 /* @internal */
7600 export function CVec_RouteHopZ_free(_res: number): void {
7601         if(!isWasmInitialized) {
7602                 throw new Error("initializeWasm() must be awaited first!");
7603         }
7604         const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
7605         // debug statements here
7606 }
7607         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
7608 /* @internal */
7609 export function CVec_CVec_RouteHopZZ_free(_res: number): void {
7610         if(!isWasmInitialized) {
7611                 throw new Error("initializeWasm() must be awaited first!");
7612         }
7613         const nativeResponseValue = wasm.TS_CVec_CVec_RouteHopZZ_free(_res);
7614         // debug statements here
7615 }
7616         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
7617 /* @internal */
7618 export function CResult_RouteDecodeErrorZ_ok(o: number): number {
7619         if(!isWasmInitialized) {
7620                 throw new Error("initializeWasm() must be awaited first!");
7621         }
7622         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
7623         return nativeResponseValue;
7624 }
7625         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
7626 /* @internal */
7627 export function CResult_RouteDecodeErrorZ_err(e: number): number {
7628         if(!isWasmInitialized) {
7629                 throw new Error("initializeWasm() must be awaited first!");
7630         }
7631         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
7632         return nativeResponseValue;
7633 }
7634         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
7635 /* @internal */
7636 export function CResult_RouteDecodeErrorZ_is_ok(o: number): boolean {
7637         if(!isWasmInitialized) {
7638                 throw new Error("initializeWasm() must be awaited first!");
7639         }
7640         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
7641         return nativeResponseValue;
7642 }
7643         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
7644 /* @internal */
7645 export function CResult_RouteDecodeErrorZ_free(_res: number): void {
7646         if(!isWasmInitialized) {
7647                 throw new Error("initializeWasm() must be awaited first!");
7648         }
7649         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
7650         // debug statements here
7651 }
7652         // uintptr_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
7653 /* @internal */
7654 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: number): number {
7655         if(!isWasmInitialized) {
7656                 throw new Error("initializeWasm() must be awaited first!");
7657         }
7658         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
7659         return nativeResponseValue;
7660 }
7661         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
7662 /* @internal */
7663 export function CResult_RouteDecodeErrorZ_clone(orig: number): number {
7664         if(!isWasmInitialized) {
7665                 throw new Error("initializeWasm() must be awaited first!");
7666         }
7667         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
7668         return nativeResponseValue;
7669 }
7670         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
7671 /* @internal */
7672 export function CResult_RouteParametersDecodeErrorZ_ok(o: number): number {
7673         if(!isWasmInitialized) {
7674                 throw new Error("initializeWasm() must be awaited first!");
7675         }
7676         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
7677         return nativeResponseValue;
7678 }
7679         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
7680 /* @internal */
7681 export function CResult_RouteParametersDecodeErrorZ_err(e: number): number {
7682         if(!isWasmInitialized) {
7683                 throw new Error("initializeWasm() must be awaited first!");
7684         }
7685         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
7686         return nativeResponseValue;
7687 }
7688         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
7689 /* @internal */
7690 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: number): boolean {
7691         if(!isWasmInitialized) {
7692                 throw new Error("initializeWasm() must be awaited first!");
7693         }
7694         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
7695         return nativeResponseValue;
7696 }
7697         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
7698 /* @internal */
7699 export function CResult_RouteParametersDecodeErrorZ_free(_res: number): void {
7700         if(!isWasmInitialized) {
7701                 throw new Error("initializeWasm() must be awaited first!");
7702         }
7703         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
7704         // debug statements here
7705 }
7706         // uintptr_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
7707 /* @internal */
7708 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: number): number {
7709         if(!isWasmInitialized) {
7710                 throw new Error("initializeWasm() must be awaited first!");
7711         }
7712         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
7713         return nativeResponseValue;
7714 }
7715         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
7716 /* @internal */
7717 export function CResult_RouteParametersDecodeErrorZ_clone(orig: number): number {
7718         if(!isWasmInitialized) {
7719                 throw new Error("initializeWasm() must be awaited first!");
7720         }
7721         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
7722         return nativeResponseValue;
7723 }
7724         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
7725 /* @internal */
7726 export function CVec_RouteHintZ_free(_res: number): void {
7727         if(!isWasmInitialized) {
7728                 throw new Error("initializeWasm() must be awaited first!");
7729         }
7730         const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
7731         // debug statements here
7732 }
7733         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
7734 /* @internal */
7735 export function COption_u64Z_some(o: bigint): number {
7736         if(!isWasmInitialized) {
7737                 throw new Error("initializeWasm() must be awaited first!");
7738         }
7739         const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
7740         return nativeResponseValue;
7741 }
7742         // struct LDKCOption_u64Z COption_u64Z_none(void);
7743 /* @internal */
7744 export function COption_u64Z_none(): number {
7745         if(!isWasmInitialized) {
7746                 throw new Error("initializeWasm() must be awaited first!");
7747         }
7748         const nativeResponseValue = wasm.TS_COption_u64Z_none();
7749         return nativeResponseValue;
7750 }
7751         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
7752 /* @internal */
7753 export function COption_u64Z_free(_res: number): void {
7754         if(!isWasmInitialized) {
7755                 throw new Error("initializeWasm() must be awaited first!");
7756         }
7757         const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
7758         // debug statements here
7759 }
7760         // uintptr_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
7761 /* @internal */
7762 export function COption_u64Z_clone_ptr(arg: number): number {
7763         if(!isWasmInitialized) {
7764                 throw new Error("initializeWasm() must be awaited first!");
7765         }
7766         const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
7767         return nativeResponseValue;
7768 }
7769         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
7770 /* @internal */
7771 export function COption_u64Z_clone(orig: number): number {
7772         if(!isWasmInitialized) {
7773                 throw new Error("initializeWasm() must be awaited first!");
7774         }
7775         const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
7776         return nativeResponseValue;
7777 }
7778         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
7779 /* @internal */
7780 export function CResult_PaymentParametersDecodeErrorZ_ok(o: number): number {
7781         if(!isWasmInitialized) {
7782                 throw new Error("initializeWasm() must be awaited first!");
7783         }
7784         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
7785         return nativeResponseValue;
7786 }
7787         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
7788 /* @internal */
7789 export function CResult_PaymentParametersDecodeErrorZ_err(e: number): number {
7790         if(!isWasmInitialized) {
7791                 throw new Error("initializeWasm() must be awaited first!");
7792         }
7793         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
7794         return nativeResponseValue;
7795 }
7796         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
7797 /* @internal */
7798 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: number): boolean {
7799         if(!isWasmInitialized) {
7800                 throw new Error("initializeWasm() must be awaited first!");
7801         }
7802         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
7803         return nativeResponseValue;
7804 }
7805         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
7806 /* @internal */
7807 export function CResult_PaymentParametersDecodeErrorZ_free(_res: number): void {
7808         if(!isWasmInitialized) {
7809                 throw new Error("initializeWasm() must be awaited first!");
7810         }
7811         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
7812         // debug statements here
7813 }
7814         // uintptr_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
7815 /* @internal */
7816 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: number): number {
7817         if(!isWasmInitialized) {
7818                 throw new Error("initializeWasm() must be awaited first!");
7819         }
7820         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
7821         return nativeResponseValue;
7822 }
7823         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
7824 /* @internal */
7825 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: number): number {
7826         if(!isWasmInitialized) {
7827                 throw new Error("initializeWasm() must be awaited first!");
7828         }
7829         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
7830         return nativeResponseValue;
7831 }
7832         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
7833 /* @internal */
7834 export function CVec_RouteHintHopZ_free(_res: number): void {
7835         if(!isWasmInitialized) {
7836                 throw new Error("initializeWasm() must be awaited first!");
7837         }
7838         const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
7839         // debug statements here
7840 }
7841         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
7842 /* @internal */
7843 export function CResult_RouteHintDecodeErrorZ_ok(o: number): number {
7844         if(!isWasmInitialized) {
7845                 throw new Error("initializeWasm() must be awaited first!");
7846         }
7847         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
7848         return nativeResponseValue;
7849 }
7850         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
7851 /* @internal */
7852 export function CResult_RouteHintDecodeErrorZ_err(e: number): number {
7853         if(!isWasmInitialized) {
7854                 throw new Error("initializeWasm() must be awaited first!");
7855         }
7856         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
7857         return nativeResponseValue;
7858 }
7859         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
7860 /* @internal */
7861 export function CResult_RouteHintDecodeErrorZ_is_ok(o: number): boolean {
7862         if(!isWasmInitialized) {
7863                 throw new Error("initializeWasm() must be awaited first!");
7864         }
7865         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
7866         return nativeResponseValue;
7867 }
7868         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
7869 /* @internal */
7870 export function CResult_RouteHintDecodeErrorZ_free(_res: number): void {
7871         if(!isWasmInitialized) {
7872                 throw new Error("initializeWasm() must be awaited first!");
7873         }
7874         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
7875         // debug statements here
7876 }
7877         // uintptr_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
7878 /* @internal */
7879 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: number): number {
7880         if(!isWasmInitialized) {
7881                 throw new Error("initializeWasm() must be awaited first!");
7882         }
7883         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
7884         return nativeResponseValue;
7885 }
7886         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
7887 /* @internal */
7888 export function CResult_RouteHintDecodeErrorZ_clone(orig: number): number {
7889         if(!isWasmInitialized) {
7890                 throw new Error("initializeWasm() must be awaited first!");
7891         }
7892         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
7893         return nativeResponseValue;
7894 }
7895         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
7896 /* @internal */
7897 export function CResult_RouteHintHopDecodeErrorZ_ok(o: number): number {
7898         if(!isWasmInitialized) {
7899                 throw new Error("initializeWasm() must be awaited first!");
7900         }
7901         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
7902         return nativeResponseValue;
7903 }
7904         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
7905 /* @internal */
7906 export function CResult_RouteHintHopDecodeErrorZ_err(e: number): number {
7907         if(!isWasmInitialized) {
7908                 throw new Error("initializeWasm() must be awaited first!");
7909         }
7910         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
7911         return nativeResponseValue;
7912 }
7913         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
7914 /* @internal */
7915 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: number): boolean {
7916         if(!isWasmInitialized) {
7917                 throw new Error("initializeWasm() must be awaited first!");
7918         }
7919         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
7920         return nativeResponseValue;
7921 }
7922         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
7923 /* @internal */
7924 export function CResult_RouteHintHopDecodeErrorZ_free(_res: number): void {
7925         if(!isWasmInitialized) {
7926                 throw new Error("initializeWasm() must be awaited first!");
7927         }
7928         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
7929         // debug statements here
7930 }
7931         // uintptr_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
7932 /* @internal */
7933 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: number): number {
7934         if(!isWasmInitialized) {
7935                 throw new Error("initializeWasm() must be awaited first!");
7936         }
7937         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
7938         return nativeResponseValue;
7939 }
7940         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
7941 /* @internal */
7942 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: number): number {
7943         if(!isWasmInitialized) {
7944                 throw new Error("initializeWasm() must be awaited first!");
7945         }
7946         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
7947         return nativeResponseValue;
7948 }
7949         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
7950 /* @internal */
7951 export function CVec_ChannelDetailsZ_free(_res: number): void {
7952         if(!isWasmInitialized) {
7953                 throw new Error("initializeWasm() must be awaited first!");
7954         }
7955         const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
7956         // debug statements here
7957 }
7958         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
7959 /* @internal */
7960 export function CResult_RouteLightningErrorZ_ok(o: number): number {
7961         if(!isWasmInitialized) {
7962                 throw new Error("initializeWasm() must be awaited first!");
7963         }
7964         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
7965         return nativeResponseValue;
7966 }
7967         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
7968 /* @internal */
7969 export function CResult_RouteLightningErrorZ_err(e: number): number {
7970         if(!isWasmInitialized) {
7971                 throw new Error("initializeWasm() must be awaited first!");
7972         }
7973         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
7974         return nativeResponseValue;
7975 }
7976         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
7977 /* @internal */
7978 export function CResult_RouteLightningErrorZ_is_ok(o: number): boolean {
7979         if(!isWasmInitialized) {
7980                 throw new Error("initializeWasm() must be awaited first!");
7981         }
7982         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
7983         return nativeResponseValue;
7984 }
7985         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
7986 /* @internal */
7987 export function CResult_RouteLightningErrorZ_free(_res: number): void {
7988         if(!isWasmInitialized) {
7989                 throw new Error("initializeWasm() must be awaited first!");
7990         }
7991         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
7992         // debug statements here
7993 }
7994         // uintptr_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
7995 /* @internal */
7996 export function CResult_RouteLightningErrorZ_clone_ptr(arg: number): number {
7997         if(!isWasmInitialized) {
7998                 throw new Error("initializeWasm() must be awaited first!");
7999         }
8000         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
8001         return nativeResponseValue;
8002 }
8003         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
8004 /* @internal */
8005 export function CResult_RouteLightningErrorZ_clone(orig: number): number {
8006         if(!isWasmInitialized) {
8007                 throw new Error("initializeWasm() must be awaited first!");
8008         }
8009         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
8010         return nativeResponseValue;
8011 }
8012         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
8013 /* @internal */
8014 export function CVec_PublicKeyZ_free(_res: number): void {
8015         if(!isWasmInitialized) {
8016                 throw new Error("initializeWasm() must be awaited first!");
8017         }
8018         const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
8019         // debug statements here
8020 }
8021         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
8022 /* @internal */
8023 export function CResult_PaymentPurposeDecodeErrorZ_ok(o: number): number {
8024         if(!isWasmInitialized) {
8025                 throw new Error("initializeWasm() must be awaited first!");
8026         }
8027         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o);
8028         return nativeResponseValue;
8029 }
8030         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
8031 /* @internal */
8032 export function CResult_PaymentPurposeDecodeErrorZ_err(e: number): number {
8033         if(!isWasmInitialized) {
8034                 throw new Error("initializeWasm() must be awaited first!");
8035         }
8036         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e);
8037         return nativeResponseValue;
8038 }
8039         // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
8040 /* @internal */
8041 export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: number): boolean {
8042         if(!isWasmInitialized) {
8043                 throw new Error("initializeWasm() must be awaited first!");
8044         }
8045         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o);
8046         return nativeResponseValue;
8047 }
8048         // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
8049 /* @internal */
8050 export function CResult_PaymentPurposeDecodeErrorZ_free(_res: number): void {
8051         if(!isWasmInitialized) {
8052                 throw new Error("initializeWasm() must be awaited first!");
8053         }
8054         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res);
8055         // debug statements here
8056 }
8057         // uintptr_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
8058 /* @internal */
8059 export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: number): number {
8060         if(!isWasmInitialized) {
8061                 throw new Error("initializeWasm() must be awaited first!");
8062         }
8063         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg);
8064         return nativeResponseValue;
8065 }
8066         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
8067 /* @internal */
8068 export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: number): number {
8069         if(!isWasmInitialized) {
8070                 throw new Error("initializeWasm() must be awaited first!");
8071         }
8072         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig);
8073         return nativeResponseValue;
8074 }
8075         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
8076 /* @internal */
8077 export function COption_ClosureReasonZ_some(o: number): number {
8078         if(!isWasmInitialized) {
8079                 throw new Error("initializeWasm() must be awaited first!");
8080         }
8081         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
8082         return nativeResponseValue;
8083 }
8084         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
8085 /* @internal */
8086 export function COption_ClosureReasonZ_none(): number {
8087         if(!isWasmInitialized) {
8088                 throw new Error("initializeWasm() must be awaited first!");
8089         }
8090         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
8091         return nativeResponseValue;
8092 }
8093         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
8094 /* @internal */
8095 export function COption_ClosureReasonZ_free(_res: number): void {
8096         if(!isWasmInitialized) {
8097                 throw new Error("initializeWasm() must be awaited first!");
8098         }
8099         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
8100         // debug statements here
8101 }
8102         // uintptr_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
8103 /* @internal */
8104 export function COption_ClosureReasonZ_clone_ptr(arg: number): number {
8105         if(!isWasmInitialized) {
8106                 throw new Error("initializeWasm() must be awaited first!");
8107         }
8108         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
8109         return nativeResponseValue;
8110 }
8111         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
8112 /* @internal */
8113 export function COption_ClosureReasonZ_clone(orig: number): number {
8114         if(!isWasmInitialized) {
8115                 throw new Error("initializeWasm() must be awaited first!");
8116         }
8117         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
8118         return nativeResponseValue;
8119 }
8120         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
8121 /* @internal */
8122 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: number): number {
8123         if(!isWasmInitialized) {
8124                 throw new Error("initializeWasm() must be awaited first!");
8125         }
8126         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
8127         return nativeResponseValue;
8128 }
8129         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
8130 /* @internal */
8131 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: number): number {
8132         if(!isWasmInitialized) {
8133                 throw new Error("initializeWasm() must be awaited first!");
8134         }
8135         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
8136         return nativeResponseValue;
8137 }
8138         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
8139 /* @internal */
8140 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: number): boolean {
8141         if(!isWasmInitialized) {
8142                 throw new Error("initializeWasm() must be awaited first!");
8143         }
8144         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
8145         return nativeResponseValue;
8146 }
8147         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
8148 /* @internal */
8149 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: number): void {
8150         if(!isWasmInitialized) {
8151                 throw new Error("initializeWasm() must be awaited first!");
8152         }
8153         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
8154         // debug statements here
8155 }
8156         // uintptr_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
8157 /* @internal */
8158 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: number): number {
8159         if(!isWasmInitialized) {
8160                 throw new Error("initializeWasm() must be awaited first!");
8161         }
8162         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
8163         return nativeResponseValue;
8164 }
8165         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
8166 /* @internal */
8167 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: number): number {
8168         if(!isWasmInitialized) {
8169                 throw new Error("initializeWasm() must be awaited first!");
8170         }
8171         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
8172         return nativeResponseValue;
8173 }
8174         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
8175 /* @internal */
8176 export function COption_NetworkUpdateZ_some(o: number): number {
8177         if(!isWasmInitialized) {
8178                 throw new Error("initializeWasm() must be awaited first!");
8179         }
8180         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
8181         return nativeResponseValue;
8182 }
8183         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
8184 /* @internal */
8185 export function COption_NetworkUpdateZ_none(): number {
8186         if(!isWasmInitialized) {
8187                 throw new Error("initializeWasm() must be awaited first!");
8188         }
8189         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
8190         return nativeResponseValue;
8191 }
8192         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
8193 /* @internal */
8194 export function COption_NetworkUpdateZ_free(_res: number): void {
8195         if(!isWasmInitialized) {
8196                 throw new Error("initializeWasm() must be awaited first!");
8197         }
8198         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
8199         // debug statements here
8200 }
8201         // uintptr_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
8202 /* @internal */
8203 export function COption_NetworkUpdateZ_clone_ptr(arg: number): number {
8204         if(!isWasmInitialized) {
8205                 throw new Error("initializeWasm() must be awaited first!");
8206         }
8207         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
8208         return nativeResponseValue;
8209 }
8210         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
8211 /* @internal */
8212 export function COption_NetworkUpdateZ_clone(orig: number): number {
8213         if(!isWasmInitialized) {
8214                 throw new Error("initializeWasm() must be awaited first!");
8215         }
8216         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
8217         return nativeResponseValue;
8218 }
8219         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
8220 /* @internal */
8221 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
8222         if(!isWasmInitialized) {
8223                 throw new Error("initializeWasm() must be awaited first!");
8224         }
8225         const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
8226         // debug statements here
8227 }
8228         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
8229 /* @internal */
8230 export function COption_EventZ_some(o: number): number {
8231         if(!isWasmInitialized) {
8232                 throw new Error("initializeWasm() must be awaited first!");
8233         }
8234         const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
8235         return nativeResponseValue;
8236 }
8237         // struct LDKCOption_EventZ COption_EventZ_none(void);
8238 /* @internal */
8239 export function COption_EventZ_none(): number {
8240         if(!isWasmInitialized) {
8241                 throw new Error("initializeWasm() must be awaited first!");
8242         }
8243         const nativeResponseValue = wasm.TS_COption_EventZ_none();
8244         return nativeResponseValue;
8245 }
8246         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
8247 /* @internal */
8248 export function COption_EventZ_free(_res: number): void {
8249         if(!isWasmInitialized) {
8250                 throw new Error("initializeWasm() must be awaited first!");
8251         }
8252         const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
8253         // debug statements here
8254 }
8255         // uintptr_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
8256 /* @internal */
8257 export function COption_EventZ_clone_ptr(arg: number): number {
8258         if(!isWasmInitialized) {
8259                 throw new Error("initializeWasm() must be awaited first!");
8260         }
8261         const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
8262         return nativeResponseValue;
8263 }
8264         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
8265 /* @internal */
8266 export function COption_EventZ_clone(orig: number): number {
8267         if(!isWasmInitialized) {
8268                 throw new Error("initializeWasm() must be awaited first!");
8269         }
8270         const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
8271         return nativeResponseValue;
8272 }
8273         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
8274 /* @internal */
8275 export function CResult_COption_EventZDecodeErrorZ_ok(o: number): number {
8276         if(!isWasmInitialized) {
8277                 throw new Error("initializeWasm() must be awaited first!");
8278         }
8279         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
8280         return nativeResponseValue;
8281 }
8282         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
8283 /* @internal */
8284 export function CResult_COption_EventZDecodeErrorZ_err(e: number): number {
8285         if(!isWasmInitialized) {
8286                 throw new Error("initializeWasm() must be awaited first!");
8287         }
8288         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
8289         return nativeResponseValue;
8290 }
8291         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
8292 /* @internal */
8293 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: number): boolean {
8294         if(!isWasmInitialized) {
8295                 throw new Error("initializeWasm() must be awaited first!");
8296         }
8297         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
8298         return nativeResponseValue;
8299 }
8300         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
8301 /* @internal */
8302 export function CResult_COption_EventZDecodeErrorZ_free(_res: number): void {
8303         if(!isWasmInitialized) {
8304                 throw new Error("initializeWasm() must be awaited first!");
8305         }
8306         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
8307         // debug statements here
8308 }
8309         // uintptr_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
8310 /* @internal */
8311 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: number): number {
8312         if(!isWasmInitialized) {
8313                 throw new Error("initializeWasm() must be awaited first!");
8314         }
8315         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
8316         return nativeResponseValue;
8317 }
8318         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
8319 /* @internal */
8320 export function CResult_COption_EventZDecodeErrorZ_clone(orig: number): number {
8321         if(!isWasmInitialized) {
8322                 throw new Error("initializeWasm() must be awaited first!");
8323         }
8324         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
8325         return nativeResponseValue;
8326 }
8327         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
8328 /* @internal */
8329 export function CVec_MessageSendEventZ_free(_res: number): void {
8330         if(!isWasmInitialized) {
8331                 throw new Error("initializeWasm() must be awaited first!");
8332         }
8333         const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
8334         // debug statements here
8335 }
8336         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
8337 /* @internal */
8338 export function CResult_TxOutAccessErrorZ_ok(o: number): number {
8339         if(!isWasmInitialized) {
8340                 throw new Error("initializeWasm() must be awaited first!");
8341         }
8342         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_ok(o);
8343         return nativeResponseValue;
8344 }
8345         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
8346 /* @internal */
8347 export function CResult_TxOutAccessErrorZ_err(e: AccessError): number {
8348         if(!isWasmInitialized) {
8349                 throw new Error("initializeWasm() must be awaited first!");
8350         }
8351         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_err(e);
8352         return nativeResponseValue;
8353 }
8354         // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
8355 /* @internal */
8356 export function CResult_TxOutAccessErrorZ_is_ok(o: number): boolean {
8357         if(!isWasmInitialized) {
8358                 throw new Error("initializeWasm() must be awaited first!");
8359         }
8360         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_is_ok(o);
8361         return nativeResponseValue;
8362 }
8363         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
8364 /* @internal */
8365 export function CResult_TxOutAccessErrorZ_free(_res: number): void {
8366         if(!isWasmInitialized) {
8367                 throw new Error("initializeWasm() must be awaited first!");
8368         }
8369         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_free(_res);
8370         // debug statements here
8371 }
8372         // uintptr_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
8373 /* @internal */
8374 export function CResult_TxOutAccessErrorZ_clone_ptr(arg: number): number {
8375         if(!isWasmInitialized) {
8376                 throw new Error("initializeWasm() must be awaited first!");
8377         }
8378         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone_ptr(arg);
8379         return nativeResponseValue;
8380 }
8381         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
8382 /* @internal */
8383 export function CResult_TxOutAccessErrorZ_clone(orig: number): number {
8384         if(!isWasmInitialized) {
8385                 throw new Error("initializeWasm() must be awaited first!");
8386         }
8387         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone(orig);
8388         return nativeResponseValue;
8389 }
8390         // uintptr_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
8391 /* @internal */
8392 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: number): number {
8393         if(!isWasmInitialized) {
8394                 throw new Error("initializeWasm() must be awaited first!");
8395         }
8396         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
8397         return nativeResponseValue;
8398 }
8399         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
8400 /* @internal */
8401 export function C2Tuple_usizeTransactionZ_clone(orig: number): number {
8402         if(!isWasmInitialized) {
8403                 throw new Error("initializeWasm() must be awaited first!");
8404         }
8405         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
8406         return nativeResponseValue;
8407 }
8408         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
8409 /* @internal */
8410 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): number {
8411         if(!isWasmInitialized) {
8412                 throw new Error("initializeWasm() must be awaited first!");
8413         }
8414         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
8415         return nativeResponseValue;
8416 }
8417         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
8418 /* @internal */
8419 export function C2Tuple_usizeTransactionZ_free(_res: number): void {
8420         if(!isWasmInitialized) {
8421                 throw new Error("initializeWasm() must be awaited first!");
8422         }
8423         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
8424         // debug statements here
8425 }
8426         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
8427 /* @internal */
8428 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8429         if(!isWasmInitialized) {
8430                 throw new Error("initializeWasm() must be awaited first!");
8431         }
8432         const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
8433         // debug statements here
8434 }
8435         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
8436 /* @internal */
8437 export function CVec_TxidZ_free(_res: number): void {
8438         if(!isWasmInitialized) {
8439                 throw new Error("initializeWasm() must be awaited first!");
8440         }
8441         const nativeResponseValue = wasm.TS_CVec_TxidZ_free(_res);
8442         // debug statements here
8443 }
8444         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
8445 /* @internal */
8446 export function CResult_NoneChannelMonitorUpdateErrZ_ok(): number {
8447         if(!isWasmInitialized) {
8448                 throw new Error("initializeWasm() must be awaited first!");
8449         }
8450         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_ok();
8451         return nativeResponseValue;
8452 }
8453         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
8454 /* @internal */
8455 export function CResult_NoneChannelMonitorUpdateErrZ_err(e: ChannelMonitorUpdateErr): number {
8456         if(!isWasmInitialized) {
8457                 throw new Error("initializeWasm() must be awaited first!");
8458         }
8459         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_err(e);
8460         return nativeResponseValue;
8461 }
8462         // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
8463 /* @internal */
8464 export function CResult_NoneChannelMonitorUpdateErrZ_is_ok(o: number): boolean {
8465         if(!isWasmInitialized) {
8466                 throw new Error("initializeWasm() must be awaited first!");
8467         }
8468         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_is_ok(o);
8469         return nativeResponseValue;
8470 }
8471         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
8472 /* @internal */
8473 export function CResult_NoneChannelMonitorUpdateErrZ_free(_res: number): void {
8474         if(!isWasmInitialized) {
8475                 throw new Error("initializeWasm() must be awaited first!");
8476         }
8477         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_free(_res);
8478         // debug statements here
8479 }
8480         // uintptr_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
8481 /* @internal */
8482 export function CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg: number): number {
8483         if(!isWasmInitialized) {
8484                 throw new Error("initializeWasm() must be awaited first!");
8485         }
8486         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg);
8487         return nativeResponseValue;
8488 }
8489         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
8490 /* @internal */
8491 export function CResult_NoneChannelMonitorUpdateErrZ_clone(orig: number): number {
8492         if(!isWasmInitialized) {
8493                 throw new Error("initializeWasm() must be awaited first!");
8494         }
8495         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone(orig);
8496         return nativeResponseValue;
8497 }
8498         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
8499 /* @internal */
8500 export function CVec_MonitorEventZ_free(_res: number): void {
8501         if(!isWasmInitialized) {
8502                 throw new Error("initializeWasm() must be awaited first!");
8503         }
8504         const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
8505         // debug statements here
8506 }
8507         // uintptr_t C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR arg);
8508 /* @internal */
8509 export function C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(arg: number): number {
8510         if(!isWasmInitialized) {
8511                 throw new Error("initializeWasm() must be awaited first!");
8512         }
8513         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(arg);
8514         return nativeResponseValue;
8515 }
8516         // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR orig);
8517 /* @internal */
8518 export function C2Tuple_OutPointCVec_MonitorEventZZ_clone(orig: number): number {
8519         if(!isWasmInitialized) {
8520                 throw new Error("initializeWasm() must be awaited first!");
8521         }
8522         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_clone(orig);
8523         return nativeResponseValue;
8524 }
8525         // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b);
8526 /* @internal */
8527 export function C2Tuple_OutPointCVec_MonitorEventZZ_new(a: number, b: number): number {
8528         if(!isWasmInitialized) {
8529                 throw new Error("initializeWasm() must be awaited first!");
8530         }
8531         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_new(a, b);
8532         return nativeResponseValue;
8533 }
8534         // void C2Tuple_OutPointCVec_MonitorEventZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorEventZZ _res);
8535 /* @internal */
8536 export function C2Tuple_OutPointCVec_MonitorEventZZ_free(_res: number): void {
8537         if(!isWasmInitialized) {
8538                 throw new Error("initializeWasm() must be awaited first!");
8539         }
8540         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_free(_res);
8541         // debug statements here
8542 }
8543         // void CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ _res);
8544 /* @internal */
8545 export function CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(_res: number): void {
8546         if(!isWasmInitialized) {
8547                 throw new Error("initializeWasm() must be awaited first!");
8548         }
8549         const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(_res);
8550         // debug statements here
8551 }
8552         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
8553 /* @internal */
8554 export function COption_C2Tuple_usizeTransactionZZ_some(o: number): number {
8555         if(!isWasmInitialized) {
8556                 throw new Error("initializeWasm() must be awaited first!");
8557         }
8558         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_some(o);
8559         return nativeResponseValue;
8560 }
8561         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
8562 /* @internal */
8563 export function COption_C2Tuple_usizeTransactionZZ_none(): number {
8564         if(!isWasmInitialized) {
8565                 throw new Error("initializeWasm() must be awaited first!");
8566         }
8567         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_none();
8568         return nativeResponseValue;
8569 }
8570         // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
8571 /* @internal */
8572 export function COption_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8573         if(!isWasmInitialized) {
8574                 throw new Error("initializeWasm() must be awaited first!");
8575         }
8576         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_free(_res);
8577         // debug statements here
8578 }
8579         // uintptr_t COption_C2Tuple_usizeTransactionZZ_clone_ptr(LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR arg);
8580 /* @internal */
8581 export function COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg: number): number {
8582         if(!isWasmInitialized) {
8583                 throw new Error("initializeWasm() must be awaited first!");
8584         }
8585         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg);
8586         return nativeResponseValue;
8587 }
8588         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
8589 /* @internal */
8590 export function COption_C2Tuple_usizeTransactionZZ_clone(orig: number): number {
8591         if(!isWasmInitialized) {
8592                 throw new Error("initializeWasm() must be awaited first!");
8593         }
8594         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone(orig);
8595         return nativeResponseValue;
8596 }
8597         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
8598 /* @internal */
8599 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: number): number {
8600         if(!isWasmInitialized) {
8601                 throw new Error("initializeWasm() must be awaited first!");
8602         }
8603         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
8604         return nativeResponseValue;
8605 }
8606         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
8607 /* @internal */
8608 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: number): number {
8609         if(!isWasmInitialized) {
8610                 throw new Error("initializeWasm() must be awaited first!");
8611         }
8612         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
8613         return nativeResponseValue;
8614 }
8615         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
8616 /* @internal */
8617 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: number): boolean {
8618         if(!isWasmInitialized) {
8619                 throw new Error("initializeWasm() must be awaited first!");
8620         }
8621         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
8622         return nativeResponseValue;
8623 }
8624         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
8625 /* @internal */
8626 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: number): void {
8627         if(!isWasmInitialized) {
8628                 throw new Error("initializeWasm() must be awaited first!");
8629         }
8630         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
8631         // debug statements here
8632 }
8633         // uintptr_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
8634 /* @internal */
8635 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: number): number {
8636         if(!isWasmInitialized) {
8637                 throw new Error("initializeWasm() must be awaited first!");
8638         }
8639         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
8640         return nativeResponseValue;
8641 }
8642         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
8643 /* @internal */
8644 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: number): number {
8645         if(!isWasmInitialized) {
8646                 throw new Error("initializeWasm() must be awaited first!");
8647         }
8648         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
8649         return nativeResponseValue;
8650 }
8651         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
8652 /* @internal */
8653 export function CResult_ProbabilisticScorerDecodeErrorZ_ok(o: number): number {
8654         if(!isWasmInitialized) {
8655                 throw new Error("initializeWasm() must be awaited first!");
8656         }
8657         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_ok(o);
8658         return nativeResponseValue;
8659 }
8660         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
8661 /* @internal */
8662 export function CResult_ProbabilisticScorerDecodeErrorZ_err(e: number): number {
8663         if(!isWasmInitialized) {
8664                 throw new Error("initializeWasm() must be awaited first!");
8665         }
8666         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_err(e);
8667         return nativeResponseValue;
8668 }
8669         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
8670 /* @internal */
8671 export function CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o: number): boolean {
8672         if(!isWasmInitialized) {
8673                 throw new Error("initializeWasm() must be awaited first!");
8674         }
8675         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o);
8676         return nativeResponseValue;
8677 }
8678         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
8679 /* @internal */
8680 export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: number): void {
8681         if(!isWasmInitialized) {
8682                 throw new Error("initializeWasm() must be awaited first!");
8683         }
8684         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res);
8685         // debug statements here
8686 }
8687         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
8688 /* @internal */
8689 export function CResult_InitFeaturesDecodeErrorZ_ok(o: number): number {
8690         if(!isWasmInitialized) {
8691                 throw new Error("initializeWasm() must be awaited first!");
8692         }
8693         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
8694         return nativeResponseValue;
8695 }
8696         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8697 /* @internal */
8698 export function CResult_InitFeaturesDecodeErrorZ_err(e: number): number {
8699         if(!isWasmInitialized) {
8700                 throw new Error("initializeWasm() must be awaited first!");
8701         }
8702         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
8703         return nativeResponseValue;
8704 }
8705         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
8706 /* @internal */
8707 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8708         if(!isWasmInitialized) {
8709                 throw new Error("initializeWasm() must be awaited first!");
8710         }
8711         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
8712         return nativeResponseValue;
8713 }
8714         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
8715 /* @internal */
8716 export function CResult_InitFeaturesDecodeErrorZ_free(_res: number): void {
8717         if(!isWasmInitialized) {
8718                 throw new Error("initializeWasm() must be awaited first!");
8719         }
8720         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
8721         // debug statements here
8722 }
8723         // uintptr_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
8724 /* @internal */
8725 export function CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8726         if(!isWasmInitialized) {
8727                 throw new Error("initializeWasm() must be awaited first!");
8728         }
8729         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg);
8730         return nativeResponseValue;
8731 }
8732         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
8733 /* @internal */
8734 export function CResult_InitFeaturesDecodeErrorZ_clone(orig: number): number {
8735         if(!isWasmInitialized) {
8736                 throw new Error("initializeWasm() must be awaited first!");
8737         }
8738         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone(orig);
8739         return nativeResponseValue;
8740 }
8741         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
8742 /* @internal */
8743 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: number): number {
8744         if(!isWasmInitialized) {
8745                 throw new Error("initializeWasm() must be awaited first!");
8746         }
8747         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
8748         return nativeResponseValue;
8749 }
8750         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8751 /* @internal */
8752 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: number): number {
8753         if(!isWasmInitialized) {
8754                 throw new Error("initializeWasm() must be awaited first!");
8755         }
8756         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
8757         return nativeResponseValue;
8758 }
8759         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
8760 /* @internal */
8761 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8762         if(!isWasmInitialized) {
8763                 throw new Error("initializeWasm() must be awaited first!");
8764         }
8765         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
8766         return nativeResponseValue;
8767 }
8768         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
8769 /* @internal */
8770 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: number): void {
8771         if(!isWasmInitialized) {
8772                 throw new Error("initializeWasm() must be awaited first!");
8773         }
8774         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
8775         // debug statements here
8776 }
8777         // uintptr_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
8778 /* @internal */
8779 export function CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8780         if(!isWasmInitialized) {
8781                 throw new Error("initializeWasm() must be awaited first!");
8782         }
8783         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg);
8784         return nativeResponseValue;
8785 }
8786         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
8787 /* @internal */
8788 export function CResult_ChannelFeaturesDecodeErrorZ_clone(orig: number): number {
8789         if(!isWasmInitialized) {
8790                 throw new Error("initializeWasm() must be awaited first!");
8791         }
8792         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone(orig);
8793         return nativeResponseValue;
8794 }
8795         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
8796 /* @internal */
8797 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: number): number {
8798         if(!isWasmInitialized) {
8799                 throw new Error("initializeWasm() must be awaited first!");
8800         }
8801         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
8802         return nativeResponseValue;
8803 }
8804         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8805 /* @internal */
8806 export function CResult_NodeFeaturesDecodeErrorZ_err(e: number): number {
8807         if(!isWasmInitialized) {
8808                 throw new Error("initializeWasm() must be awaited first!");
8809         }
8810         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
8811         return nativeResponseValue;
8812 }
8813         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
8814 /* @internal */
8815 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8816         if(!isWasmInitialized) {
8817                 throw new Error("initializeWasm() must be awaited first!");
8818         }
8819         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
8820         return nativeResponseValue;
8821 }
8822         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
8823 /* @internal */
8824 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: number): void {
8825         if(!isWasmInitialized) {
8826                 throw new Error("initializeWasm() must be awaited first!");
8827         }
8828         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
8829         // debug statements here
8830 }
8831         // uintptr_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
8832 /* @internal */
8833 export function CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8834         if(!isWasmInitialized) {
8835                 throw new Error("initializeWasm() must be awaited first!");
8836         }
8837         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg);
8838         return nativeResponseValue;
8839 }
8840         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
8841 /* @internal */
8842 export function CResult_NodeFeaturesDecodeErrorZ_clone(orig: number): number {
8843         if(!isWasmInitialized) {
8844                 throw new Error("initializeWasm() must be awaited first!");
8845         }
8846         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone(orig);
8847         return nativeResponseValue;
8848 }
8849         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
8850 /* @internal */
8851 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: number): number {
8852         if(!isWasmInitialized) {
8853                 throw new Error("initializeWasm() must be awaited first!");
8854         }
8855         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
8856         return nativeResponseValue;
8857 }
8858         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8859 /* @internal */
8860 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: number): number {
8861         if(!isWasmInitialized) {
8862                 throw new Error("initializeWasm() must be awaited first!");
8863         }
8864         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
8865         return nativeResponseValue;
8866 }
8867         // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
8868 /* @internal */
8869 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8870         if(!isWasmInitialized) {
8871                 throw new Error("initializeWasm() must be awaited first!");
8872         }
8873         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
8874         return nativeResponseValue;
8875 }
8876         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
8877 /* @internal */
8878 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: number): void {
8879         if(!isWasmInitialized) {
8880                 throw new Error("initializeWasm() must be awaited first!");
8881         }
8882         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
8883         // debug statements here
8884 }
8885         // uintptr_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
8886 /* @internal */
8887 export function CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8888         if(!isWasmInitialized) {
8889                 throw new Error("initializeWasm() must be awaited first!");
8890         }
8891         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg);
8892         return nativeResponseValue;
8893 }
8894         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
8895 /* @internal */
8896 export function CResult_InvoiceFeaturesDecodeErrorZ_clone(orig: number): number {
8897         if(!isWasmInitialized) {
8898                 throw new Error("initializeWasm() must be awaited first!");
8899         }
8900         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone(orig);
8901         return nativeResponseValue;
8902 }
8903         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
8904 /* @internal */
8905 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: number): number {
8906         if(!isWasmInitialized) {
8907                 throw new Error("initializeWasm() must be awaited first!");
8908         }
8909         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
8910         return nativeResponseValue;
8911 }
8912         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8913 /* @internal */
8914 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: number): number {
8915         if(!isWasmInitialized) {
8916                 throw new Error("initializeWasm() must be awaited first!");
8917         }
8918         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
8919         return nativeResponseValue;
8920 }
8921         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
8922 /* @internal */
8923 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8924         if(!isWasmInitialized) {
8925                 throw new Error("initializeWasm() must be awaited first!");
8926         }
8927         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
8928         return nativeResponseValue;
8929 }
8930         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
8931 /* @internal */
8932 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: number): void {
8933         if(!isWasmInitialized) {
8934                 throw new Error("initializeWasm() must be awaited first!");
8935         }
8936         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
8937         // debug statements here
8938 }
8939         // uintptr_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
8940 /* @internal */
8941 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8942         if(!isWasmInitialized) {
8943                 throw new Error("initializeWasm() must be awaited first!");
8944         }
8945         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg);
8946         return nativeResponseValue;
8947 }
8948         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
8949 /* @internal */
8950 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig: number): number {
8951         if(!isWasmInitialized) {
8952                 throw new Error("initializeWasm() must be awaited first!");
8953         }
8954         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig);
8955         return nativeResponseValue;
8956 }
8957         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
8958 /* @internal */
8959 export function CResult_NodeIdDecodeErrorZ_ok(o: number): number {
8960         if(!isWasmInitialized) {
8961                 throw new Error("initializeWasm() must be awaited first!");
8962         }
8963         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
8964         return nativeResponseValue;
8965 }
8966         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
8967 /* @internal */
8968 export function CResult_NodeIdDecodeErrorZ_err(e: number): number {
8969         if(!isWasmInitialized) {
8970                 throw new Error("initializeWasm() must be awaited first!");
8971         }
8972         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
8973         return nativeResponseValue;
8974 }
8975         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
8976 /* @internal */
8977 export function CResult_NodeIdDecodeErrorZ_is_ok(o: number): boolean {
8978         if(!isWasmInitialized) {
8979                 throw new Error("initializeWasm() must be awaited first!");
8980         }
8981         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
8982         return nativeResponseValue;
8983 }
8984         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
8985 /* @internal */
8986 export function CResult_NodeIdDecodeErrorZ_free(_res: number): void {
8987         if(!isWasmInitialized) {
8988                 throw new Error("initializeWasm() must be awaited first!");
8989         }
8990         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
8991         // debug statements here
8992 }
8993         // uintptr_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
8994 /* @internal */
8995 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: number): number {
8996         if(!isWasmInitialized) {
8997                 throw new Error("initializeWasm() must be awaited first!");
8998         }
8999         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
9000         return nativeResponseValue;
9001 }
9002         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
9003 /* @internal */
9004 export function CResult_NodeIdDecodeErrorZ_clone(orig: number): number {
9005         if(!isWasmInitialized) {
9006                 throw new Error("initializeWasm() must be awaited first!");
9007         }
9008         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
9009         return nativeResponseValue;
9010 }
9011         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
9012 /* @internal */
9013 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: number): number {
9014         if(!isWasmInitialized) {
9015                 throw new Error("initializeWasm() must be awaited first!");
9016         }
9017         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
9018         return nativeResponseValue;
9019 }
9020         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
9021 /* @internal */
9022 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: number): number {
9023         if(!isWasmInitialized) {
9024                 throw new Error("initializeWasm() must be awaited first!");
9025         }
9026         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
9027         return nativeResponseValue;
9028 }
9029         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
9030 /* @internal */
9031 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: number): boolean {
9032         if(!isWasmInitialized) {
9033                 throw new Error("initializeWasm() must be awaited first!");
9034         }
9035         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
9036         return nativeResponseValue;
9037 }
9038         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
9039 /* @internal */
9040 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: number): void {
9041         if(!isWasmInitialized) {
9042                 throw new Error("initializeWasm() must be awaited first!");
9043         }
9044         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
9045         // debug statements here
9046 }
9047         // uintptr_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
9048 /* @internal */
9049 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: number): number {
9050         if(!isWasmInitialized) {
9051                 throw new Error("initializeWasm() must be awaited first!");
9052         }
9053         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
9054         return nativeResponseValue;
9055 }
9056         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
9057 /* @internal */
9058 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: number): number {
9059         if(!isWasmInitialized) {
9060                 throw new Error("initializeWasm() must be awaited first!");
9061         }
9062         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
9063         return nativeResponseValue;
9064 }
9065         // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
9066 /* @internal */
9067 export function COption_AccessZ_some(o: number): number {
9068         if(!isWasmInitialized) {
9069                 throw new Error("initializeWasm() must be awaited first!");
9070         }
9071         const nativeResponseValue = wasm.TS_COption_AccessZ_some(o);
9072         return nativeResponseValue;
9073 }
9074         // struct LDKCOption_AccessZ COption_AccessZ_none(void);
9075 /* @internal */
9076 export function COption_AccessZ_none(): number {
9077         if(!isWasmInitialized) {
9078                 throw new Error("initializeWasm() must be awaited first!");
9079         }
9080         const nativeResponseValue = wasm.TS_COption_AccessZ_none();
9081         return nativeResponseValue;
9082 }
9083         // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
9084 /* @internal */
9085 export function COption_AccessZ_free(_res: number): void {
9086         if(!isWasmInitialized) {
9087                 throw new Error("initializeWasm() must be awaited first!");
9088         }
9089         const nativeResponseValue = wasm.TS_COption_AccessZ_free(_res);
9090         // debug statements here
9091 }
9092         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
9093 /* @internal */
9094 export function CResult_boolLightningErrorZ_ok(o: boolean): number {
9095         if(!isWasmInitialized) {
9096                 throw new Error("initializeWasm() must be awaited first!");
9097         }
9098         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
9099         return nativeResponseValue;
9100 }
9101         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
9102 /* @internal */
9103 export function CResult_boolLightningErrorZ_err(e: number): number {
9104         if(!isWasmInitialized) {
9105                 throw new Error("initializeWasm() must be awaited first!");
9106         }
9107         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
9108         return nativeResponseValue;
9109 }
9110         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
9111 /* @internal */
9112 export function CResult_boolLightningErrorZ_is_ok(o: number): boolean {
9113         if(!isWasmInitialized) {
9114                 throw new Error("initializeWasm() must be awaited first!");
9115         }
9116         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
9117         return nativeResponseValue;
9118 }
9119         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
9120 /* @internal */
9121 export function CResult_boolLightningErrorZ_free(_res: number): void {
9122         if(!isWasmInitialized) {
9123                 throw new Error("initializeWasm() must be awaited first!");
9124         }
9125         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
9126         // debug statements here
9127 }
9128         // uintptr_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
9129 /* @internal */
9130 export function CResult_boolLightningErrorZ_clone_ptr(arg: number): number {
9131         if(!isWasmInitialized) {
9132                 throw new Error("initializeWasm() must be awaited first!");
9133         }
9134         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
9135         return nativeResponseValue;
9136 }
9137         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
9138 /* @internal */
9139 export function CResult_boolLightningErrorZ_clone(orig: number): number {
9140         if(!isWasmInitialized) {
9141                 throw new Error("initializeWasm() must be awaited first!");
9142         }
9143         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
9144         return nativeResponseValue;
9145 }
9146         // uintptr_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
9147 /* @internal */
9148 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: number): number {
9149         if(!isWasmInitialized) {
9150                 throw new Error("initializeWasm() must be awaited first!");
9151         }
9152         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
9153         return nativeResponseValue;
9154 }
9155         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
9156 /* @internal */
9157 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: number): number {
9158         if(!isWasmInitialized) {
9159                 throw new Error("initializeWasm() must be awaited first!");
9160         }
9161         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
9162         return nativeResponseValue;
9163 }
9164         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
9165 /* @internal */
9166 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: number, b: number, c: number): number {
9167         if(!isWasmInitialized) {
9168                 throw new Error("initializeWasm() must be awaited first!");
9169         }
9170         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
9171         return nativeResponseValue;
9172 }
9173         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
9174 /* @internal */
9175 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: number): void {
9176         if(!isWasmInitialized) {
9177                 throw new Error("initializeWasm() must be awaited first!");
9178         }
9179         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
9180         // debug statements here
9181 }
9182         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
9183 /* @internal */
9184 export function CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: number): void {
9185         if(!isWasmInitialized) {
9186                 throw new Error("initializeWasm() must be awaited first!");
9187         }
9188         const nativeResponseValue = wasm.TS_CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
9189         // debug statements here
9190 }
9191         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
9192 /* @internal */
9193 export function CVec_NodeAnnouncementZ_free(_res: number): void {
9194         if(!isWasmInitialized) {
9195                 throw new Error("initializeWasm() must be awaited first!");
9196         }
9197         const nativeResponseValue = wasm.TS_CVec_NodeAnnouncementZ_free(_res);
9198         // debug statements here
9199 }
9200         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
9201 /* @internal */
9202 export function CResult_NoneLightningErrorZ_ok(): number {
9203         if(!isWasmInitialized) {
9204                 throw new Error("initializeWasm() must be awaited first!");
9205         }
9206         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
9207         return nativeResponseValue;
9208 }
9209         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
9210 /* @internal */
9211 export function CResult_NoneLightningErrorZ_err(e: number): number {
9212         if(!isWasmInitialized) {
9213                 throw new Error("initializeWasm() must be awaited first!");
9214         }
9215         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
9216         return nativeResponseValue;
9217 }
9218         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
9219 /* @internal */
9220 export function CResult_NoneLightningErrorZ_is_ok(o: number): boolean {
9221         if(!isWasmInitialized) {
9222                 throw new Error("initializeWasm() must be awaited first!");
9223         }
9224         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
9225         return nativeResponseValue;
9226 }
9227         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
9228 /* @internal */
9229 export function CResult_NoneLightningErrorZ_free(_res: number): void {
9230         if(!isWasmInitialized) {
9231                 throw new Error("initializeWasm() must be awaited first!");
9232         }
9233         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
9234         // debug statements here
9235 }
9236         // uintptr_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
9237 /* @internal */
9238 export function CResult_NoneLightningErrorZ_clone_ptr(arg: number): number {
9239         if(!isWasmInitialized) {
9240                 throw new Error("initializeWasm() must be awaited first!");
9241         }
9242         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
9243         return nativeResponseValue;
9244 }
9245         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
9246 /* @internal */
9247 export function CResult_NoneLightningErrorZ_clone(orig: number): number {
9248         if(!isWasmInitialized) {
9249                 throw new Error("initializeWasm() must be awaited first!");
9250         }
9251         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
9252         return nativeResponseValue;
9253 }
9254         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
9255 /* @internal */
9256 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: number): number {
9257         if(!isWasmInitialized) {
9258                 throw new Error("initializeWasm() must be awaited first!");
9259         }
9260         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
9261         return nativeResponseValue;
9262 }
9263         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
9264 /* @internal */
9265 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: number): number {
9266         if(!isWasmInitialized) {
9267                 throw new Error("initializeWasm() must be awaited first!");
9268         }
9269         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
9270         return nativeResponseValue;
9271 }
9272         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
9273 /* @internal */
9274 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: number): boolean {
9275         if(!isWasmInitialized) {
9276                 throw new Error("initializeWasm() must be awaited first!");
9277         }
9278         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
9279         return nativeResponseValue;
9280 }
9281         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
9282 /* @internal */
9283 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: number): void {
9284         if(!isWasmInitialized) {
9285                 throw new Error("initializeWasm() must be awaited first!");
9286         }
9287         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
9288         // debug statements here
9289 }
9290         // uintptr_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
9291 /* @internal */
9292 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: number): number {
9293         if(!isWasmInitialized) {
9294                 throw new Error("initializeWasm() must be awaited first!");
9295         }
9296         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
9297         return nativeResponseValue;
9298 }
9299         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
9300 /* @internal */
9301 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: number): number {
9302         if(!isWasmInitialized) {
9303                 throw new Error("initializeWasm() must be awaited first!");
9304         }
9305         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
9306         return nativeResponseValue;
9307 }
9308         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
9309 /* @internal */
9310 export function CResult_ChannelInfoDecodeErrorZ_ok(o: number): number {
9311         if(!isWasmInitialized) {
9312                 throw new Error("initializeWasm() must be awaited first!");
9313         }
9314         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
9315         return nativeResponseValue;
9316 }
9317         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
9318 /* @internal */
9319 export function CResult_ChannelInfoDecodeErrorZ_err(e: number): number {
9320         if(!isWasmInitialized) {
9321                 throw new Error("initializeWasm() must be awaited first!");
9322         }
9323         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
9324         return nativeResponseValue;
9325 }
9326         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
9327 /* @internal */
9328 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: number): boolean {
9329         if(!isWasmInitialized) {
9330                 throw new Error("initializeWasm() must be awaited first!");
9331         }
9332         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
9333         return nativeResponseValue;
9334 }
9335         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
9336 /* @internal */
9337 export function CResult_ChannelInfoDecodeErrorZ_free(_res: number): void {
9338         if(!isWasmInitialized) {
9339                 throw new Error("initializeWasm() must be awaited first!");
9340         }
9341         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
9342         // debug statements here
9343 }
9344         // uintptr_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
9345 /* @internal */
9346 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: number): number {
9347         if(!isWasmInitialized) {
9348                 throw new Error("initializeWasm() must be awaited first!");
9349         }
9350         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
9351         return nativeResponseValue;
9352 }
9353         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
9354 /* @internal */
9355 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: number): number {
9356         if(!isWasmInitialized) {
9357                 throw new Error("initializeWasm() must be awaited first!");
9358         }
9359         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
9360         return nativeResponseValue;
9361 }
9362         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
9363 /* @internal */
9364 export function CResult_RoutingFeesDecodeErrorZ_ok(o: number): number {
9365         if(!isWasmInitialized) {
9366                 throw new Error("initializeWasm() must be awaited first!");
9367         }
9368         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
9369         return nativeResponseValue;
9370 }
9371         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
9372 /* @internal */
9373 export function CResult_RoutingFeesDecodeErrorZ_err(e: number): number {
9374         if(!isWasmInitialized) {
9375                 throw new Error("initializeWasm() must be awaited first!");
9376         }
9377         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
9378         return nativeResponseValue;
9379 }
9380         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
9381 /* @internal */
9382 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: number): boolean {
9383         if(!isWasmInitialized) {
9384                 throw new Error("initializeWasm() must be awaited first!");
9385         }
9386         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
9387         return nativeResponseValue;
9388 }
9389         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
9390 /* @internal */
9391 export function CResult_RoutingFeesDecodeErrorZ_free(_res: number): void {
9392         if(!isWasmInitialized) {
9393                 throw new Error("initializeWasm() must be awaited first!");
9394         }
9395         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
9396         // debug statements here
9397 }
9398         // uintptr_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
9399 /* @internal */
9400 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: number): number {
9401         if(!isWasmInitialized) {
9402                 throw new Error("initializeWasm() must be awaited first!");
9403         }
9404         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
9405         return nativeResponseValue;
9406 }
9407         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
9408 /* @internal */
9409 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: number): number {
9410         if(!isWasmInitialized) {
9411                 throw new Error("initializeWasm() must be awaited first!");
9412         }
9413         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
9414         return nativeResponseValue;
9415 }
9416         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
9417 /* @internal */
9418 export function CVec_NetAddressZ_free(_res: number): void {
9419         if(!isWasmInitialized) {
9420                 throw new Error("initializeWasm() must be awaited first!");
9421         }
9422         const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
9423         // debug statements here
9424 }
9425         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
9426 /* @internal */
9427 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: number): number {
9428         if(!isWasmInitialized) {
9429                 throw new Error("initializeWasm() must be awaited first!");
9430         }
9431         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
9432         return nativeResponseValue;
9433 }
9434         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
9435 /* @internal */
9436 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: number): number {
9437         if(!isWasmInitialized) {
9438                 throw new Error("initializeWasm() must be awaited first!");
9439         }
9440         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
9441         return nativeResponseValue;
9442 }
9443         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
9444 /* @internal */
9445 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: number): boolean {
9446         if(!isWasmInitialized) {
9447                 throw new Error("initializeWasm() must be awaited first!");
9448         }
9449         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
9450         return nativeResponseValue;
9451 }
9452         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
9453 /* @internal */
9454 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: number): void {
9455         if(!isWasmInitialized) {
9456                 throw new Error("initializeWasm() must be awaited first!");
9457         }
9458         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
9459         // debug statements here
9460 }
9461         // uintptr_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
9462 /* @internal */
9463 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: number): number {
9464         if(!isWasmInitialized) {
9465                 throw new Error("initializeWasm() must be awaited first!");
9466         }
9467         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
9468         return nativeResponseValue;
9469 }
9470         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
9471 /* @internal */
9472 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: number): number {
9473         if(!isWasmInitialized) {
9474                 throw new Error("initializeWasm() must be awaited first!");
9475         }
9476         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
9477         return nativeResponseValue;
9478 }
9479         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
9480 /* @internal */
9481 export function CVec_u64Z_free(_res: number): void {
9482         if(!isWasmInitialized) {
9483                 throw new Error("initializeWasm() must be awaited first!");
9484         }
9485         const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
9486         // debug statements here
9487 }
9488         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
9489 /* @internal */
9490 export function CResult_NodeInfoDecodeErrorZ_ok(o: number): number {
9491         if(!isWasmInitialized) {
9492                 throw new Error("initializeWasm() must be awaited first!");
9493         }
9494         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
9495         return nativeResponseValue;
9496 }
9497         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
9498 /* @internal */
9499 export function CResult_NodeInfoDecodeErrorZ_err(e: number): number {
9500         if(!isWasmInitialized) {
9501                 throw new Error("initializeWasm() must be awaited first!");
9502         }
9503         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
9504         return nativeResponseValue;
9505 }
9506         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
9507 /* @internal */
9508 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: number): boolean {
9509         if(!isWasmInitialized) {
9510                 throw new Error("initializeWasm() must be awaited first!");
9511         }
9512         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
9513         return nativeResponseValue;
9514 }
9515         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
9516 /* @internal */
9517 export function CResult_NodeInfoDecodeErrorZ_free(_res: number): void {
9518         if(!isWasmInitialized) {
9519                 throw new Error("initializeWasm() must be awaited first!");
9520         }
9521         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
9522         // debug statements here
9523 }
9524         // uintptr_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
9525 /* @internal */
9526 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: number): number {
9527         if(!isWasmInitialized) {
9528                 throw new Error("initializeWasm() must be awaited first!");
9529         }
9530         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
9531         return nativeResponseValue;
9532 }
9533         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
9534 /* @internal */
9535 export function CResult_NodeInfoDecodeErrorZ_clone(orig: number): number {
9536         if(!isWasmInitialized) {
9537                 throw new Error("initializeWasm() must be awaited first!");
9538         }
9539         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
9540         return nativeResponseValue;
9541 }
9542         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
9543 /* @internal */
9544 export function CResult_NetworkGraphDecodeErrorZ_ok(o: number): number {
9545         if(!isWasmInitialized) {
9546                 throw new Error("initializeWasm() must be awaited first!");
9547         }
9548         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
9549         return nativeResponseValue;
9550 }
9551         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
9552 /* @internal */
9553 export function CResult_NetworkGraphDecodeErrorZ_err(e: number): number {
9554         if(!isWasmInitialized) {
9555                 throw new Error("initializeWasm() must be awaited first!");
9556         }
9557         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
9558         return nativeResponseValue;
9559 }
9560         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
9561 /* @internal */
9562 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: number): boolean {
9563         if(!isWasmInitialized) {
9564                 throw new Error("initializeWasm() must be awaited first!");
9565         }
9566         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
9567         return nativeResponseValue;
9568 }
9569         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
9570 /* @internal */
9571 export function CResult_NetworkGraphDecodeErrorZ_free(_res: number): void {
9572         if(!isWasmInitialized) {
9573                 throw new Error("initializeWasm() must be awaited first!");
9574         }
9575         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
9576         // debug statements here
9577 }
9578         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
9579 /* @internal */
9580 export function COption_CVec_NetAddressZZ_some(o: number): number {
9581         if(!isWasmInitialized) {
9582                 throw new Error("initializeWasm() must be awaited first!");
9583         }
9584         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
9585         return nativeResponseValue;
9586 }
9587         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
9588 /* @internal */
9589 export function COption_CVec_NetAddressZZ_none(): number {
9590         if(!isWasmInitialized) {
9591                 throw new Error("initializeWasm() must be awaited first!");
9592         }
9593         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
9594         return nativeResponseValue;
9595 }
9596         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
9597 /* @internal */
9598 export function COption_CVec_NetAddressZZ_free(_res: number): void {
9599         if(!isWasmInitialized) {
9600                 throw new Error("initializeWasm() must be awaited first!");
9601         }
9602         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
9603         // debug statements here
9604 }
9605         // uintptr_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
9606 /* @internal */
9607 export function COption_CVec_NetAddressZZ_clone_ptr(arg: number): number {
9608         if(!isWasmInitialized) {
9609                 throw new Error("initializeWasm() must be awaited first!");
9610         }
9611         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
9612         return nativeResponseValue;
9613 }
9614         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
9615 /* @internal */
9616 export function COption_CVec_NetAddressZZ_clone(orig: number): number {
9617         if(!isWasmInitialized) {
9618                 throw new Error("initializeWasm() must be awaited first!");
9619         }
9620         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
9621         return nativeResponseValue;
9622 }
9623         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
9624 /* @internal */
9625 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
9626         if(!isWasmInitialized) {
9627                 throw new Error("initializeWasm() must be awaited first!");
9628         }
9629         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
9630         return nativeResponseValue;
9631 }
9632         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9633 /* @internal */
9634 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
9635         if(!isWasmInitialized) {
9636                 throw new Error("initializeWasm() must be awaited first!");
9637         }
9638         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
9639         return nativeResponseValue;
9640 }
9641         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9642 /* @internal */
9643 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9644         if(!isWasmInitialized) {
9645                 throw new Error("initializeWasm() must be awaited first!");
9646         }
9647         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
9648         return nativeResponseValue;
9649 }
9650         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
9651 /* @internal */
9652 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
9653         if(!isWasmInitialized) {
9654                 throw new Error("initializeWasm() must be awaited first!");
9655         }
9656         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
9657         // debug statements here
9658 }
9659         // uintptr_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9660 /* @internal */
9661 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9662         if(!isWasmInitialized) {
9663                 throw new Error("initializeWasm() must be awaited first!");
9664         }
9665         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9666         return nativeResponseValue;
9667 }
9668         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9669 /* @internal */
9670 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9671         if(!isWasmInitialized) {
9672                 throw new Error("initializeWasm() must be awaited first!");
9673         }
9674         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
9675         return nativeResponseValue;
9676 }
9677         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
9678 /* @internal */
9679 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
9680         if(!isWasmInitialized) {
9681                 throw new Error("initializeWasm() must be awaited first!");
9682         }
9683         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
9684         return nativeResponseValue;
9685 }
9686         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9687 /* @internal */
9688 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
9689         if(!isWasmInitialized) {
9690                 throw new Error("initializeWasm() must be awaited first!");
9691         }
9692         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
9693         return nativeResponseValue;
9694 }
9695         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9696 /* @internal */
9697 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9698         if(!isWasmInitialized) {
9699                 throw new Error("initializeWasm() must be awaited first!");
9700         }
9701         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
9702         return nativeResponseValue;
9703 }
9704         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
9705 /* @internal */
9706 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
9707         if(!isWasmInitialized) {
9708                 throw new Error("initializeWasm() must be awaited first!");
9709         }
9710         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
9711         // debug statements here
9712 }
9713         // uintptr_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9714 /* @internal */
9715 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9716         if(!isWasmInitialized) {
9717                 throw new Error("initializeWasm() must be awaited first!");
9718         }
9719         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9720         return nativeResponseValue;
9721 }
9722         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9723 /* @internal */
9724 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9725         if(!isWasmInitialized) {
9726                 throw new Error("initializeWasm() must be awaited first!");
9727         }
9728         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
9729         return nativeResponseValue;
9730 }
9731         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
9732 /* @internal */
9733 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: number): number {
9734         if(!isWasmInitialized) {
9735                 throw new Error("initializeWasm() must be awaited first!");
9736         }
9737         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
9738         return nativeResponseValue;
9739 }
9740         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9741 /* @internal */
9742 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: number): number {
9743         if(!isWasmInitialized) {
9744                 throw new Error("initializeWasm() must be awaited first!");
9745         }
9746         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
9747         return nativeResponseValue;
9748 }
9749         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9750 /* @internal */
9751 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9752         if(!isWasmInitialized) {
9753                 throw new Error("initializeWasm() must be awaited first!");
9754         }
9755         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
9756         return nativeResponseValue;
9757 }
9758         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
9759 /* @internal */
9760 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: number): void {
9761         if(!isWasmInitialized) {
9762                 throw new Error("initializeWasm() must be awaited first!");
9763         }
9764         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
9765         // debug statements here
9766 }
9767         // uintptr_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9768 /* @internal */
9769 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9770         if(!isWasmInitialized) {
9771                 throw new Error("initializeWasm() must be awaited first!");
9772         }
9773         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9774         return nativeResponseValue;
9775 }
9776         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9777 /* @internal */
9778 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9779         if(!isWasmInitialized) {
9780                 throw new Error("initializeWasm() must be awaited first!");
9781         }
9782         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
9783         return nativeResponseValue;
9784 }
9785         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
9786 /* @internal */
9787 export function CVec_PaymentPreimageZ_free(_res: number): void {
9788         if(!isWasmInitialized) {
9789                 throw new Error("initializeWasm() must be awaited first!");
9790         }
9791         const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
9792         // debug statements here
9793 }
9794         // uintptr_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
9795 /* @internal */
9796 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: number): number {
9797         if(!isWasmInitialized) {
9798                 throw new Error("initializeWasm() must be awaited first!");
9799         }
9800         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
9801         return nativeResponseValue;
9802 }
9803         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
9804 /* @internal */
9805 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: number): number {
9806         if(!isWasmInitialized) {
9807                 throw new Error("initializeWasm() must be awaited first!");
9808         }
9809         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
9810         return nativeResponseValue;
9811 }
9812         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
9813 /* @internal */
9814 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): number {
9815         if(!isWasmInitialized) {
9816                 throw new Error("initializeWasm() must be awaited first!");
9817         }
9818         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
9819         return nativeResponseValue;
9820 }
9821         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
9822 /* @internal */
9823 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: number): void {
9824         if(!isWasmInitialized) {
9825                 throw new Error("initializeWasm() must be awaited first!");
9826         }
9827         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
9828         // debug statements here
9829 }
9830         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
9831 /* @internal */
9832 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: number): number {
9833         if(!isWasmInitialized) {
9834                 throw new Error("initializeWasm() must be awaited first!");
9835         }
9836         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
9837         return nativeResponseValue;
9838 }
9839         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
9840 /* @internal */
9841 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): number {
9842         if(!isWasmInitialized) {
9843                 throw new Error("initializeWasm() must be awaited first!");
9844         }
9845         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
9846         return nativeResponseValue;
9847 }
9848         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
9849 /* @internal */
9850 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: number): boolean {
9851         if(!isWasmInitialized) {
9852                 throw new Error("initializeWasm() must be awaited first!");
9853         }
9854         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
9855         return nativeResponseValue;
9856 }
9857         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
9858 /* @internal */
9859 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: number): void {
9860         if(!isWasmInitialized) {
9861                 throw new Error("initializeWasm() must be awaited first!");
9862         }
9863         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
9864         // debug statements here
9865 }
9866         // uintptr_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
9867 /* @internal */
9868 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: number): number {
9869         if(!isWasmInitialized) {
9870                 throw new Error("initializeWasm() must be awaited first!");
9871         }
9872         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
9873         return nativeResponseValue;
9874 }
9875         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
9876 /* @internal */
9877 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: number): number {
9878         if(!isWasmInitialized) {
9879                 throw new Error("initializeWasm() must be awaited first!");
9880         }
9881         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
9882         return nativeResponseValue;
9883 }
9884         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
9885 /* @internal */
9886 export function CResult_SignatureNoneZ_ok(o: number): number {
9887         if(!isWasmInitialized) {
9888                 throw new Error("initializeWasm() must be awaited first!");
9889         }
9890         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
9891         return nativeResponseValue;
9892 }
9893         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
9894 /* @internal */
9895 export function CResult_SignatureNoneZ_err(): number {
9896         if(!isWasmInitialized) {
9897                 throw new Error("initializeWasm() must be awaited first!");
9898         }
9899         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
9900         return nativeResponseValue;
9901 }
9902         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
9903 /* @internal */
9904 export function CResult_SignatureNoneZ_is_ok(o: number): boolean {
9905         if(!isWasmInitialized) {
9906                 throw new Error("initializeWasm() must be awaited first!");
9907         }
9908         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
9909         return nativeResponseValue;
9910 }
9911         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
9912 /* @internal */
9913 export function CResult_SignatureNoneZ_free(_res: number): void {
9914         if(!isWasmInitialized) {
9915                 throw new Error("initializeWasm() must be awaited first!");
9916         }
9917         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
9918         // debug statements here
9919 }
9920         // uintptr_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
9921 /* @internal */
9922 export function CResult_SignatureNoneZ_clone_ptr(arg: number): number {
9923         if(!isWasmInitialized) {
9924                 throw new Error("initializeWasm() must be awaited first!");
9925         }
9926         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
9927         return nativeResponseValue;
9928 }
9929         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
9930 /* @internal */
9931 export function CResult_SignatureNoneZ_clone(orig: number): number {
9932         if(!isWasmInitialized) {
9933                 throw new Error("initializeWasm() must be awaited first!");
9934         }
9935         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
9936         return nativeResponseValue;
9937 }
9938         // uintptr_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
9939 /* @internal */
9940 export function C2Tuple_SignatureSignatureZ_clone_ptr(arg: number): number {
9941         if(!isWasmInitialized) {
9942                 throw new Error("initializeWasm() must be awaited first!");
9943         }
9944         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone_ptr(arg);
9945         return nativeResponseValue;
9946 }
9947         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
9948 /* @internal */
9949 export function C2Tuple_SignatureSignatureZ_clone(orig: number): number {
9950         if(!isWasmInitialized) {
9951                 throw new Error("initializeWasm() must be awaited first!");
9952         }
9953         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone(orig);
9954         return nativeResponseValue;
9955 }
9956         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
9957 /* @internal */
9958 export function C2Tuple_SignatureSignatureZ_new(a: number, b: number): number {
9959         if(!isWasmInitialized) {
9960                 throw new Error("initializeWasm() must be awaited first!");
9961         }
9962         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_new(a, b);
9963         return nativeResponseValue;
9964 }
9965         // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
9966 /* @internal */
9967 export function C2Tuple_SignatureSignatureZ_free(_res: number): void {
9968         if(!isWasmInitialized) {
9969                 throw new Error("initializeWasm() must be awaited first!");
9970         }
9971         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_free(_res);
9972         // debug statements here
9973 }
9974         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
9975 /* @internal */
9976 export function CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o: number): number {
9977         if(!isWasmInitialized) {
9978                 throw new Error("initializeWasm() must be awaited first!");
9979         }
9980         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o);
9981         return nativeResponseValue;
9982 }
9983         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
9984 /* @internal */
9985 export function CResult_C2Tuple_SignatureSignatureZNoneZ_err(): number {
9986         if(!isWasmInitialized) {
9987                 throw new Error("initializeWasm() must be awaited first!");
9988         }
9989         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_err();
9990         return nativeResponseValue;
9991 }
9992         // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
9993 /* @internal */
9994 export function CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o: number): boolean {
9995         if(!isWasmInitialized) {
9996                 throw new Error("initializeWasm() must be awaited first!");
9997         }
9998         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o);
9999         return nativeResponseValue;
10000 }
10001         // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
10002 /* @internal */
10003 export function CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res: number): void {
10004         if(!isWasmInitialized) {
10005                 throw new Error("initializeWasm() must be awaited first!");
10006         }
10007         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res);
10008         // debug statements here
10009 }
10010         // uintptr_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
10011 /* @internal */
10012 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg: number): number {
10013         if(!isWasmInitialized) {
10014                 throw new Error("initializeWasm() must be awaited first!");
10015         }
10016         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg);
10017         return nativeResponseValue;
10018 }
10019         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
10020 /* @internal */
10021 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig: number): number {
10022         if(!isWasmInitialized) {
10023                 throw new Error("initializeWasm() must be awaited first!");
10024         }
10025         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig);
10026         return nativeResponseValue;
10027 }
10028         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
10029 /* @internal */
10030 export function CResult_SecretKeyNoneZ_ok(o: number): number {
10031         if(!isWasmInitialized) {
10032                 throw new Error("initializeWasm() must be awaited first!");
10033         }
10034         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_ok(o);
10035         return nativeResponseValue;
10036 }
10037         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
10038 /* @internal */
10039 export function CResult_SecretKeyNoneZ_err(): number {
10040         if(!isWasmInitialized) {
10041                 throw new Error("initializeWasm() must be awaited first!");
10042         }
10043         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_err();
10044         return nativeResponseValue;
10045 }
10046         // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
10047 /* @internal */
10048 export function CResult_SecretKeyNoneZ_is_ok(o: number): boolean {
10049         if(!isWasmInitialized) {
10050                 throw new Error("initializeWasm() must be awaited first!");
10051         }
10052         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_is_ok(o);
10053         return nativeResponseValue;
10054 }
10055         // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
10056 /* @internal */
10057 export function CResult_SecretKeyNoneZ_free(_res: number): void {
10058         if(!isWasmInitialized) {
10059                 throw new Error("initializeWasm() must be awaited first!");
10060         }
10061         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_free(_res);
10062         // debug statements here
10063 }
10064         // uintptr_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
10065 /* @internal */
10066 export function CResult_SecretKeyNoneZ_clone_ptr(arg: number): number {
10067         if(!isWasmInitialized) {
10068                 throw new Error("initializeWasm() must be awaited first!");
10069         }
10070         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone_ptr(arg);
10071         return nativeResponseValue;
10072 }
10073         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
10074 /* @internal */
10075 export function CResult_SecretKeyNoneZ_clone(orig: number): number {
10076         if(!isWasmInitialized) {
10077                 throw new Error("initializeWasm() must be awaited first!");
10078         }
10079         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone(orig);
10080         return nativeResponseValue;
10081 }
10082         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
10083 /* @internal */
10084 export function CResult_SignDecodeErrorZ_ok(o: number): number {
10085         if(!isWasmInitialized) {
10086                 throw new Error("initializeWasm() must be awaited first!");
10087         }
10088         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_ok(o);
10089         return nativeResponseValue;
10090 }
10091         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
10092 /* @internal */
10093 export function CResult_SignDecodeErrorZ_err(e: number): number {
10094         if(!isWasmInitialized) {
10095                 throw new Error("initializeWasm() must be awaited first!");
10096         }
10097         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_err(e);
10098         return nativeResponseValue;
10099 }
10100         // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
10101 /* @internal */
10102 export function CResult_SignDecodeErrorZ_is_ok(o: number): boolean {
10103         if(!isWasmInitialized) {
10104                 throw new Error("initializeWasm() must be awaited first!");
10105         }
10106         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_is_ok(o);
10107         return nativeResponseValue;
10108 }
10109         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
10110 /* @internal */
10111 export function CResult_SignDecodeErrorZ_free(_res: number): void {
10112         if(!isWasmInitialized) {
10113                 throw new Error("initializeWasm() must be awaited first!");
10114         }
10115         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_free(_res);
10116         // debug statements here
10117 }
10118         // uintptr_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
10119 /* @internal */
10120 export function CResult_SignDecodeErrorZ_clone_ptr(arg: number): number {
10121         if(!isWasmInitialized) {
10122                 throw new Error("initializeWasm() must be awaited first!");
10123         }
10124         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone_ptr(arg);
10125         return nativeResponseValue;
10126 }
10127         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
10128 /* @internal */
10129 export function CResult_SignDecodeErrorZ_clone(orig: number): number {
10130         if(!isWasmInitialized) {
10131                 throw new Error("initializeWasm() must be awaited first!");
10132         }
10133         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone(orig);
10134         return nativeResponseValue;
10135 }
10136         // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
10137 /* @internal */
10138 export function CVec_u5Z_free(_res: number): void {
10139         if(!isWasmInitialized) {
10140                 throw new Error("initializeWasm() must be awaited first!");
10141         }
10142         const nativeResponseValue = wasm.TS_CVec_u5Z_free(_res);
10143         // debug statements here
10144 }
10145         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
10146 /* @internal */
10147 export function CResult_RecoverableSignatureNoneZ_ok(o: number): number {
10148         if(!isWasmInitialized) {
10149                 throw new Error("initializeWasm() must be awaited first!");
10150         }
10151         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
10152         return nativeResponseValue;
10153 }
10154         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
10155 /* @internal */
10156 export function CResult_RecoverableSignatureNoneZ_err(): number {
10157         if(!isWasmInitialized) {
10158                 throw new Error("initializeWasm() must be awaited first!");
10159         }
10160         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
10161         return nativeResponseValue;
10162 }
10163         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
10164 /* @internal */
10165 export function CResult_RecoverableSignatureNoneZ_is_ok(o: number): boolean {
10166         if(!isWasmInitialized) {
10167                 throw new Error("initializeWasm() must be awaited first!");
10168         }
10169         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
10170         return nativeResponseValue;
10171 }
10172         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
10173 /* @internal */
10174 export function CResult_RecoverableSignatureNoneZ_free(_res: number): void {
10175         if(!isWasmInitialized) {
10176                 throw new Error("initializeWasm() must be awaited first!");
10177         }
10178         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
10179         // debug statements here
10180 }
10181         // uintptr_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
10182 /* @internal */
10183 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: number): number {
10184         if(!isWasmInitialized) {
10185                 throw new Error("initializeWasm() must be awaited first!");
10186         }
10187         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
10188         return nativeResponseValue;
10189 }
10190         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
10191 /* @internal */
10192 export function CResult_RecoverableSignatureNoneZ_clone(orig: number): number {
10193         if(!isWasmInitialized) {
10194                 throw new Error("initializeWasm() must be awaited first!");
10195         }
10196         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
10197         return nativeResponseValue;
10198 }
10199         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
10200 /* @internal */
10201 export function CVec_u8Z_free(_res: number): void {
10202         if(!isWasmInitialized) {
10203                 throw new Error("initializeWasm() must be awaited first!");
10204         }
10205         const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
10206         // debug statements here
10207 }
10208         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
10209 /* @internal */
10210 export function CVec_CVec_u8ZZ_free(_res: number): void {
10211         if(!isWasmInitialized) {
10212                 throw new Error("initializeWasm() must be awaited first!");
10213         }
10214         const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
10215         // debug statements here
10216 }
10217         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
10218 /* @internal */
10219 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): number {
10220         if(!isWasmInitialized) {
10221                 throw new Error("initializeWasm() must be awaited first!");
10222         }
10223         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
10224         return nativeResponseValue;
10225 }
10226         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
10227 /* @internal */
10228 export function CResult_CVec_CVec_u8ZZNoneZ_err(): number {
10229         if(!isWasmInitialized) {
10230                 throw new Error("initializeWasm() must be awaited first!");
10231         }
10232         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
10233         return nativeResponseValue;
10234 }
10235         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
10236 /* @internal */
10237 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: number): boolean {
10238         if(!isWasmInitialized) {
10239                 throw new Error("initializeWasm() must be awaited first!");
10240         }
10241         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
10242         return nativeResponseValue;
10243 }
10244         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
10245 /* @internal */
10246 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: number): void {
10247         if(!isWasmInitialized) {
10248                 throw new Error("initializeWasm() must be awaited first!");
10249         }
10250         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
10251         // debug statements here
10252 }
10253         // uintptr_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
10254 /* @internal */
10255 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: number): number {
10256         if(!isWasmInitialized) {
10257                 throw new Error("initializeWasm() must be awaited first!");
10258         }
10259         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
10260         return nativeResponseValue;
10261 }
10262         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
10263 /* @internal */
10264 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: number): number {
10265         if(!isWasmInitialized) {
10266                 throw new Error("initializeWasm() must be awaited first!");
10267         }
10268         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
10269         return nativeResponseValue;
10270 }
10271         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
10272 /* @internal */
10273 export function CResult_InMemorySignerDecodeErrorZ_ok(o: number): number {
10274         if(!isWasmInitialized) {
10275                 throw new Error("initializeWasm() must be awaited first!");
10276         }
10277         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
10278         return nativeResponseValue;
10279 }
10280         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
10281 /* @internal */
10282 export function CResult_InMemorySignerDecodeErrorZ_err(e: number): number {
10283         if(!isWasmInitialized) {
10284                 throw new Error("initializeWasm() must be awaited first!");
10285         }
10286         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
10287         return nativeResponseValue;
10288 }
10289         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
10290 /* @internal */
10291 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: number): boolean {
10292         if(!isWasmInitialized) {
10293                 throw new Error("initializeWasm() must be awaited first!");
10294         }
10295         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
10296         return nativeResponseValue;
10297 }
10298         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
10299 /* @internal */
10300 export function CResult_InMemorySignerDecodeErrorZ_free(_res: number): void {
10301         if(!isWasmInitialized) {
10302                 throw new Error("initializeWasm() must be awaited first!");
10303         }
10304         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
10305         // debug statements here
10306 }
10307         // uintptr_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
10308 /* @internal */
10309 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: number): number {
10310         if(!isWasmInitialized) {
10311                 throw new Error("initializeWasm() must be awaited first!");
10312         }
10313         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
10314         return nativeResponseValue;
10315 }
10316         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
10317 /* @internal */
10318 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: number): number {
10319         if(!isWasmInitialized) {
10320                 throw new Error("initializeWasm() must be awaited first!");
10321         }
10322         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
10323         return nativeResponseValue;
10324 }
10325         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
10326 /* @internal */
10327 export function CVec_TxOutZ_free(_res: number): void {
10328         if(!isWasmInitialized) {
10329                 throw new Error("initializeWasm() must be awaited first!");
10330         }
10331         const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
10332         // debug statements here
10333 }
10334         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
10335 /* @internal */
10336 export function CResult_TransactionNoneZ_ok(o: number): number {
10337         if(!isWasmInitialized) {
10338                 throw new Error("initializeWasm() must be awaited first!");
10339         }
10340         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
10341         return nativeResponseValue;
10342 }
10343         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
10344 /* @internal */
10345 export function CResult_TransactionNoneZ_err(): number {
10346         if(!isWasmInitialized) {
10347                 throw new Error("initializeWasm() must be awaited first!");
10348         }
10349         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
10350         return nativeResponseValue;
10351 }
10352         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
10353 /* @internal */
10354 export function CResult_TransactionNoneZ_is_ok(o: number): boolean {
10355         if(!isWasmInitialized) {
10356                 throw new Error("initializeWasm() must be awaited first!");
10357         }
10358         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
10359         return nativeResponseValue;
10360 }
10361         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
10362 /* @internal */
10363 export function CResult_TransactionNoneZ_free(_res: number): void {
10364         if(!isWasmInitialized) {
10365                 throw new Error("initializeWasm() must be awaited first!");
10366         }
10367         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
10368         // debug statements here
10369 }
10370         // uintptr_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
10371 /* @internal */
10372 export function CResult_TransactionNoneZ_clone_ptr(arg: number): number {
10373         if(!isWasmInitialized) {
10374                 throw new Error("initializeWasm() must be awaited first!");
10375         }
10376         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
10377         return nativeResponseValue;
10378 }
10379         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
10380 /* @internal */
10381 export function CResult_TransactionNoneZ_clone(orig: number): number {
10382         if(!isWasmInitialized) {
10383                 throw new Error("initializeWasm() must be awaited first!");
10384         }
10385         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
10386         return nativeResponseValue;
10387 }
10388         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
10389 /* @internal */
10390 export function COption_u16Z_some(o: number): number {
10391         if(!isWasmInitialized) {
10392                 throw new Error("initializeWasm() must be awaited first!");
10393         }
10394         const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
10395         return nativeResponseValue;
10396 }
10397         // struct LDKCOption_u16Z COption_u16Z_none(void);
10398 /* @internal */
10399 export function COption_u16Z_none(): number {
10400         if(!isWasmInitialized) {
10401                 throw new Error("initializeWasm() must be awaited first!");
10402         }
10403         const nativeResponseValue = wasm.TS_COption_u16Z_none();
10404         return nativeResponseValue;
10405 }
10406         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
10407 /* @internal */
10408 export function COption_u16Z_free(_res: number): void {
10409         if(!isWasmInitialized) {
10410                 throw new Error("initializeWasm() must be awaited first!");
10411         }
10412         const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
10413         // debug statements here
10414 }
10415         // uintptr_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
10416 /* @internal */
10417 export function COption_u16Z_clone_ptr(arg: number): number {
10418         if(!isWasmInitialized) {
10419                 throw new Error("initializeWasm() must be awaited first!");
10420         }
10421         const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
10422         return nativeResponseValue;
10423 }
10424         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
10425 /* @internal */
10426 export function COption_u16Z_clone(orig: number): number {
10427         if(!isWasmInitialized) {
10428                 throw new Error("initializeWasm() must be awaited first!");
10429         }
10430         const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
10431         return nativeResponseValue;
10432 }
10433         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
10434 /* @internal */
10435 export function CResult_NoneAPIErrorZ_ok(): number {
10436         if(!isWasmInitialized) {
10437                 throw new Error("initializeWasm() must be awaited first!");
10438         }
10439         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
10440         return nativeResponseValue;
10441 }
10442         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
10443 /* @internal */
10444 export function CResult_NoneAPIErrorZ_err(e: number): number {
10445         if(!isWasmInitialized) {
10446                 throw new Error("initializeWasm() must be awaited first!");
10447         }
10448         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
10449         return nativeResponseValue;
10450 }
10451         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
10452 /* @internal */
10453 export function CResult_NoneAPIErrorZ_is_ok(o: number): boolean {
10454         if(!isWasmInitialized) {
10455                 throw new Error("initializeWasm() must be awaited first!");
10456         }
10457         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
10458         return nativeResponseValue;
10459 }
10460         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
10461 /* @internal */
10462 export function CResult_NoneAPIErrorZ_free(_res: number): void {
10463         if(!isWasmInitialized) {
10464                 throw new Error("initializeWasm() must be awaited first!");
10465         }
10466         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
10467         // debug statements here
10468 }
10469         // uintptr_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
10470 /* @internal */
10471 export function CResult_NoneAPIErrorZ_clone_ptr(arg: number): number {
10472         if(!isWasmInitialized) {
10473                 throw new Error("initializeWasm() must be awaited first!");
10474         }
10475         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
10476         return nativeResponseValue;
10477 }
10478         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
10479 /* @internal */
10480 export function CResult_NoneAPIErrorZ_clone(orig: number): number {
10481         if(!isWasmInitialized) {
10482                 throw new Error("initializeWasm() must be awaited first!");
10483         }
10484         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
10485         return nativeResponseValue;
10486 }
10487         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
10488 /* @internal */
10489 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
10490         if(!isWasmInitialized) {
10491                 throw new Error("initializeWasm() must be awaited first!");
10492         }
10493         const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
10494         // debug statements here
10495 }
10496         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
10497 /* @internal */
10498 export function CVec_APIErrorZ_free(_res: number): void {
10499         if(!isWasmInitialized) {
10500                 throw new Error("initializeWasm() must be awaited first!");
10501         }
10502         const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
10503         // debug statements here
10504 }
10505         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
10506 /* @internal */
10507 export function CResult__u832APIErrorZ_ok(o: number): number {
10508         if(!isWasmInitialized) {
10509                 throw new Error("initializeWasm() must be awaited first!");
10510         }
10511         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
10512         return nativeResponseValue;
10513 }
10514         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
10515 /* @internal */
10516 export function CResult__u832APIErrorZ_err(e: number): number {
10517         if(!isWasmInitialized) {
10518                 throw new Error("initializeWasm() must be awaited first!");
10519         }
10520         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
10521         return nativeResponseValue;
10522 }
10523         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
10524 /* @internal */
10525 export function CResult__u832APIErrorZ_is_ok(o: number): boolean {
10526         if(!isWasmInitialized) {
10527                 throw new Error("initializeWasm() must be awaited first!");
10528         }
10529         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
10530         return nativeResponseValue;
10531 }
10532         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
10533 /* @internal */
10534 export function CResult__u832APIErrorZ_free(_res: number): void {
10535         if(!isWasmInitialized) {
10536                 throw new Error("initializeWasm() must be awaited first!");
10537         }
10538         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
10539         // debug statements here
10540 }
10541         // uintptr_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
10542 /* @internal */
10543 export function CResult__u832APIErrorZ_clone_ptr(arg: number): number {
10544         if(!isWasmInitialized) {
10545                 throw new Error("initializeWasm() must be awaited first!");
10546         }
10547         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
10548         return nativeResponseValue;
10549 }
10550         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
10551 /* @internal */
10552 export function CResult__u832APIErrorZ_clone(orig: number): number {
10553         if(!isWasmInitialized) {
10554                 throw new Error("initializeWasm() must be awaited first!");
10555         }
10556         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
10557         return nativeResponseValue;
10558 }
10559         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
10560 /* @internal */
10561 export function CResult_PaymentIdPaymentSendFailureZ_ok(o: number): number {
10562         if(!isWasmInitialized) {
10563                 throw new Error("initializeWasm() must be awaited first!");
10564         }
10565         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_ok(o);
10566         return nativeResponseValue;
10567 }
10568         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10569 /* @internal */
10570 export function CResult_PaymentIdPaymentSendFailureZ_err(e: number): number {
10571         if(!isWasmInitialized) {
10572                 throw new Error("initializeWasm() must be awaited first!");
10573         }
10574         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_err(e);
10575         return nativeResponseValue;
10576 }
10577         // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
10578 /* @internal */
10579 export function CResult_PaymentIdPaymentSendFailureZ_is_ok(o: number): boolean {
10580         if(!isWasmInitialized) {
10581                 throw new Error("initializeWasm() must be awaited first!");
10582         }
10583         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_is_ok(o);
10584         return nativeResponseValue;
10585 }
10586         // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
10587 /* @internal */
10588 export function CResult_PaymentIdPaymentSendFailureZ_free(_res: number): void {
10589         if(!isWasmInitialized) {
10590                 throw new Error("initializeWasm() must be awaited first!");
10591         }
10592         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_free(_res);
10593         // debug statements here
10594 }
10595         // uintptr_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
10596 /* @internal */
10597 export function CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg: number): number {
10598         if(!isWasmInitialized) {
10599                 throw new Error("initializeWasm() must be awaited first!");
10600         }
10601         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg);
10602         return nativeResponseValue;
10603 }
10604         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
10605 /* @internal */
10606 export function CResult_PaymentIdPaymentSendFailureZ_clone(orig: number): number {
10607         if(!isWasmInitialized) {
10608                 throw new Error("initializeWasm() must be awaited first!");
10609         }
10610         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone(orig);
10611         return nativeResponseValue;
10612 }
10613         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
10614 /* @internal */
10615 export function CResult_NonePaymentSendFailureZ_ok(): number {
10616         if(!isWasmInitialized) {
10617                 throw new Error("initializeWasm() must be awaited first!");
10618         }
10619         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
10620         return nativeResponseValue;
10621 }
10622         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10623 /* @internal */
10624 export function CResult_NonePaymentSendFailureZ_err(e: number): number {
10625         if(!isWasmInitialized) {
10626                 throw new Error("initializeWasm() must be awaited first!");
10627         }
10628         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
10629         return nativeResponseValue;
10630 }
10631         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
10632 /* @internal */
10633 export function CResult_NonePaymentSendFailureZ_is_ok(o: number): boolean {
10634         if(!isWasmInitialized) {
10635                 throw new Error("initializeWasm() must be awaited first!");
10636         }
10637         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
10638         return nativeResponseValue;
10639 }
10640         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
10641 /* @internal */
10642 export function CResult_NonePaymentSendFailureZ_free(_res: number): void {
10643         if(!isWasmInitialized) {
10644                 throw new Error("initializeWasm() must be awaited first!");
10645         }
10646         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
10647         // debug statements here
10648 }
10649         // uintptr_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
10650 /* @internal */
10651 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: number): number {
10652         if(!isWasmInitialized) {
10653                 throw new Error("initializeWasm() must be awaited first!");
10654         }
10655         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
10656         return nativeResponseValue;
10657 }
10658         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
10659 /* @internal */
10660 export function CResult_NonePaymentSendFailureZ_clone(orig: number): number {
10661         if(!isWasmInitialized) {
10662                 throw new Error("initializeWasm() must be awaited first!");
10663         }
10664         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
10665         return nativeResponseValue;
10666 }
10667         // uintptr_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
10668 /* @internal */
10669 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: number): number {
10670         if(!isWasmInitialized) {
10671                 throw new Error("initializeWasm() must be awaited first!");
10672         }
10673         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
10674         return nativeResponseValue;
10675 }
10676         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
10677 /* @internal */
10678 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: number): number {
10679         if(!isWasmInitialized) {
10680                 throw new Error("initializeWasm() must be awaited first!");
10681         }
10682         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
10683         return nativeResponseValue;
10684 }
10685         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
10686 /* @internal */
10687 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): number {
10688         if(!isWasmInitialized) {
10689                 throw new Error("initializeWasm() must be awaited first!");
10690         }
10691         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
10692         return nativeResponseValue;
10693 }
10694         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
10695 /* @internal */
10696 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: number): void {
10697         if(!isWasmInitialized) {
10698                 throw new Error("initializeWasm() must be awaited first!");
10699         }
10700         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
10701         // debug statements here
10702 }
10703         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
10704 /* @internal */
10705 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: number): number {
10706         if(!isWasmInitialized) {
10707                 throw new Error("initializeWasm() must be awaited first!");
10708         }
10709         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
10710         return nativeResponseValue;
10711 }
10712         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10713 /* @internal */
10714 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: number): number {
10715         if(!isWasmInitialized) {
10716                 throw new Error("initializeWasm() must be awaited first!");
10717         }
10718         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
10719         return nativeResponseValue;
10720 }
10721         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
10722 /* @internal */
10723 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: number): boolean {
10724         if(!isWasmInitialized) {
10725                 throw new Error("initializeWasm() must be awaited first!");
10726         }
10727         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
10728         return nativeResponseValue;
10729 }
10730         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
10731 /* @internal */
10732 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: number): void {
10733         if(!isWasmInitialized) {
10734                 throw new Error("initializeWasm() must be awaited first!");
10735         }
10736         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
10737         // debug statements here
10738 }
10739         // uintptr_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
10740 /* @internal */
10741 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: number): number {
10742         if(!isWasmInitialized) {
10743                 throw new Error("initializeWasm() must be awaited first!");
10744         }
10745         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
10746         return nativeResponseValue;
10747 }
10748         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
10749 /* @internal */
10750 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: number): number {
10751         if(!isWasmInitialized) {
10752                 throw new Error("initializeWasm() must be awaited first!");
10753         }
10754         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
10755         return nativeResponseValue;
10756 }
10757         // uintptr_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
10758 /* @internal */
10759 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: number): number {
10760         if(!isWasmInitialized) {
10761                 throw new Error("initializeWasm() must be awaited first!");
10762         }
10763         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
10764         return nativeResponseValue;
10765 }
10766         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
10767 /* @internal */
10768 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: number): number {
10769         if(!isWasmInitialized) {
10770                 throw new Error("initializeWasm() must be awaited first!");
10771         }
10772         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
10773         return nativeResponseValue;
10774 }
10775         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
10776 /* @internal */
10777 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): number {
10778         if(!isWasmInitialized) {
10779                 throw new Error("initializeWasm() must be awaited first!");
10780         }
10781         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
10782         return nativeResponseValue;
10783 }
10784         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
10785 /* @internal */
10786 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: number): void {
10787         if(!isWasmInitialized) {
10788                 throw new Error("initializeWasm() must be awaited first!");
10789         }
10790         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
10791         // debug statements here
10792 }
10793         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
10794 /* @internal */
10795 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: number): number {
10796         if(!isWasmInitialized) {
10797                 throw new Error("initializeWasm() must be awaited first!");
10798         }
10799         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
10800         return nativeResponseValue;
10801 }
10802         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
10803 /* @internal */
10804 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): number {
10805         if(!isWasmInitialized) {
10806                 throw new Error("initializeWasm() must be awaited first!");
10807         }
10808         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
10809         return nativeResponseValue;
10810 }
10811         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
10812 /* @internal */
10813 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: number): boolean {
10814         if(!isWasmInitialized) {
10815                 throw new Error("initializeWasm() must be awaited first!");
10816         }
10817         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
10818         return nativeResponseValue;
10819 }
10820         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
10821 /* @internal */
10822 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: number): void {
10823         if(!isWasmInitialized) {
10824                 throw new Error("initializeWasm() must be awaited first!");
10825         }
10826         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
10827         // debug statements here
10828 }
10829         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
10830 /* @internal */
10831 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: number): number {
10832         if(!isWasmInitialized) {
10833                 throw new Error("initializeWasm() must be awaited first!");
10834         }
10835         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
10836         return nativeResponseValue;
10837 }
10838         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
10839 /* @internal */
10840 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: number): number {
10841         if(!isWasmInitialized) {
10842                 throw new Error("initializeWasm() must be awaited first!");
10843         }
10844         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
10845         return nativeResponseValue;
10846 }
10847         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
10848 /* @internal */
10849 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: number): number {
10850         if(!isWasmInitialized) {
10851                 throw new Error("initializeWasm() must be awaited first!");
10852         }
10853         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
10854         return nativeResponseValue;
10855 }
10856         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
10857 /* @internal */
10858 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: number): number {
10859         if(!isWasmInitialized) {
10860                 throw new Error("initializeWasm() must be awaited first!");
10861         }
10862         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
10863         return nativeResponseValue;
10864 }
10865         // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
10866 /* @internal */
10867 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: number): boolean {
10868         if(!isWasmInitialized) {
10869                 throw new Error("initializeWasm() must be awaited first!");
10870         }
10871         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
10872         return nativeResponseValue;
10873 }
10874         // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
10875 /* @internal */
10876 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: number): void {
10877         if(!isWasmInitialized) {
10878                 throw new Error("initializeWasm() must be awaited first!");
10879         }
10880         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
10881         // debug statements here
10882 }
10883         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
10884 /* @internal */
10885 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: number): number {
10886         if(!isWasmInitialized) {
10887                 throw new Error("initializeWasm() must be awaited first!");
10888         }
10889         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
10890         return nativeResponseValue;
10891 }
10892         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
10893 /* @internal */
10894 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: number): number {
10895         if(!isWasmInitialized) {
10896                 throw new Error("initializeWasm() must be awaited first!");
10897         }
10898         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
10899         return nativeResponseValue;
10900 }
10901         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
10902 /* @internal */
10903 export function CResult_PaymentSecretNoneZ_ok(o: number): number {
10904         if(!isWasmInitialized) {
10905                 throw new Error("initializeWasm() must be awaited first!");
10906         }
10907         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
10908         return nativeResponseValue;
10909 }
10910         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
10911 /* @internal */
10912 export function CResult_PaymentSecretNoneZ_err(): number {
10913         if(!isWasmInitialized) {
10914                 throw new Error("initializeWasm() must be awaited first!");
10915         }
10916         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
10917         return nativeResponseValue;
10918 }
10919         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
10920 /* @internal */
10921 export function CResult_PaymentSecretNoneZ_is_ok(o: number): boolean {
10922         if(!isWasmInitialized) {
10923                 throw new Error("initializeWasm() must be awaited first!");
10924         }
10925         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
10926         return nativeResponseValue;
10927 }
10928         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
10929 /* @internal */
10930 export function CResult_PaymentSecretNoneZ_free(_res: number): void {
10931         if(!isWasmInitialized) {
10932                 throw new Error("initializeWasm() must be awaited first!");
10933         }
10934         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
10935         // debug statements here
10936 }
10937         // uintptr_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
10938 /* @internal */
10939 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: number): number {
10940         if(!isWasmInitialized) {
10941                 throw new Error("initializeWasm() must be awaited first!");
10942         }
10943         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
10944         return nativeResponseValue;
10945 }
10946         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
10947 /* @internal */
10948 export function CResult_PaymentSecretNoneZ_clone(orig: number): number {
10949         if(!isWasmInitialized) {
10950                 throw new Error("initializeWasm() must be awaited first!");
10951         }
10952         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
10953         return nativeResponseValue;
10954 }
10955         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
10956 /* @internal */
10957 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): number {
10958         if(!isWasmInitialized) {
10959                 throw new Error("initializeWasm() must be awaited first!");
10960         }
10961         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
10962         return nativeResponseValue;
10963 }
10964         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
10965 /* @internal */
10966 export function CResult_PaymentSecretAPIErrorZ_err(e: number): number {
10967         if(!isWasmInitialized) {
10968                 throw new Error("initializeWasm() must be awaited first!");
10969         }
10970         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
10971         return nativeResponseValue;
10972 }
10973         // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
10974 /* @internal */
10975 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: number): boolean {
10976         if(!isWasmInitialized) {
10977                 throw new Error("initializeWasm() must be awaited first!");
10978         }
10979         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
10980         return nativeResponseValue;
10981 }
10982         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
10983 /* @internal */
10984 export function CResult_PaymentSecretAPIErrorZ_free(_res: number): void {
10985         if(!isWasmInitialized) {
10986                 throw new Error("initializeWasm() must be awaited first!");
10987         }
10988         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
10989         // debug statements here
10990 }
10991         // uintptr_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
10992 /* @internal */
10993 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: number): number {
10994         if(!isWasmInitialized) {
10995                 throw new Error("initializeWasm() must be awaited first!");
10996         }
10997         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
10998         return nativeResponseValue;
10999 }
11000         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
11001 /* @internal */
11002 export function CResult_PaymentSecretAPIErrorZ_clone(orig: number): number {
11003         if(!isWasmInitialized) {
11004                 throw new Error("initializeWasm() must be awaited first!");
11005         }
11006         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
11007         return nativeResponseValue;
11008 }
11009         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
11010 /* @internal */
11011 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): number {
11012         if(!isWasmInitialized) {
11013                 throw new Error("initializeWasm() must be awaited first!");
11014         }
11015         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
11016         return nativeResponseValue;
11017 }
11018         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
11019 /* @internal */
11020 export function CResult_PaymentPreimageAPIErrorZ_err(e: number): number {
11021         if(!isWasmInitialized) {
11022                 throw new Error("initializeWasm() must be awaited first!");
11023         }
11024         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
11025         return nativeResponseValue;
11026 }
11027         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
11028 /* @internal */
11029 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: number): boolean {
11030         if(!isWasmInitialized) {
11031                 throw new Error("initializeWasm() must be awaited first!");
11032         }
11033         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
11034         return nativeResponseValue;
11035 }
11036         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
11037 /* @internal */
11038 export function CResult_PaymentPreimageAPIErrorZ_free(_res: number): void {
11039         if(!isWasmInitialized) {
11040                 throw new Error("initializeWasm() must be awaited first!");
11041         }
11042         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
11043         // debug statements here
11044 }
11045         // uintptr_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
11046 /* @internal */
11047 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: number): number {
11048         if(!isWasmInitialized) {
11049                 throw new Error("initializeWasm() must be awaited first!");
11050         }
11051         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
11052         return nativeResponseValue;
11053 }
11054         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
11055 /* @internal */
11056 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: number): number {
11057         if(!isWasmInitialized) {
11058                 throw new Error("initializeWasm() must be awaited first!");
11059         }
11060         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
11061         return nativeResponseValue;
11062 }
11063         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
11064 /* @internal */
11065 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: number): number {
11066         if(!isWasmInitialized) {
11067                 throw new Error("initializeWasm() must be awaited first!");
11068         }
11069         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
11070         return nativeResponseValue;
11071 }
11072         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
11073 /* @internal */
11074 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: number): number {
11075         if(!isWasmInitialized) {
11076                 throw new Error("initializeWasm() must be awaited first!");
11077         }
11078         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
11079         return nativeResponseValue;
11080 }
11081         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
11082 /* @internal */
11083 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: number): boolean {
11084         if(!isWasmInitialized) {
11085                 throw new Error("initializeWasm() must be awaited first!");
11086         }
11087         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
11088         return nativeResponseValue;
11089 }
11090         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
11091 /* @internal */
11092 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: number): void {
11093         if(!isWasmInitialized) {
11094                 throw new Error("initializeWasm() must be awaited first!");
11095         }
11096         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
11097         // debug statements here
11098 }
11099         // uintptr_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
11100 /* @internal */
11101 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: number): number {
11102         if(!isWasmInitialized) {
11103                 throw new Error("initializeWasm() must be awaited first!");
11104         }
11105         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
11106         return nativeResponseValue;
11107 }
11108         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
11109 /* @internal */
11110 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: number): number {
11111         if(!isWasmInitialized) {
11112                 throw new Error("initializeWasm() must be awaited first!");
11113         }
11114         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
11115         return nativeResponseValue;
11116 }
11117         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
11118 /* @internal */
11119 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: number): number {
11120         if(!isWasmInitialized) {
11121                 throw new Error("initializeWasm() must be awaited first!");
11122         }
11123         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
11124         return nativeResponseValue;
11125 }
11126         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
11127 /* @internal */
11128 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: number): number {
11129         if(!isWasmInitialized) {
11130                 throw new Error("initializeWasm() must be awaited first!");
11131         }
11132         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
11133         return nativeResponseValue;
11134 }
11135         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
11136 /* @internal */
11137 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: number): boolean {
11138         if(!isWasmInitialized) {
11139                 throw new Error("initializeWasm() must be awaited first!");
11140         }
11141         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
11142         return nativeResponseValue;
11143 }
11144         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
11145 /* @internal */
11146 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: number): void {
11147         if(!isWasmInitialized) {
11148                 throw new Error("initializeWasm() must be awaited first!");
11149         }
11150         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
11151         // debug statements here
11152 }
11153         // uintptr_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
11154 /* @internal */
11155 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: number): number {
11156         if(!isWasmInitialized) {
11157                 throw new Error("initializeWasm() must be awaited first!");
11158         }
11159         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
11160         return nativeResponseValue;
11161 }
11162         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
11163 /* @internal */
11164 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: number): number {
11165         if(!isWasmInitialized) {
11166                 throw new Error("initializeWasm() must be awaited first!");
11167         }
11168         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
11169         return nativeResponseValue;
11170 }
11171         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
11172 /* @internal */
11173 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: number): number {
11174         if(!isWasmInitialized) {
11175                 throw new Error("initializeWasm() must be awaited first!");
11176         }
11177         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
11178         return nativeResponseValue;
11179 }
11180         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
11181 /* @internal */
11182 export function CResult_ChannelDetailsDecodeErrorZ_err(e: number): number {
11183         if(!isWasmInitialized) {
11184                 throw new Error("initializeWasm() must be awaited first!");
11185         }
11186         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
11187         return nativeResponseValue;
11188 }
11189         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
11190 /* @internal */
11191 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: number): boolean {
11192         if(!isWasmInitialized) {
11193                 throw new Error("initializeWasm() must be awaited first!");
11194         }
11195         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
11196         return nativeResponseValue;
11197 }
11198         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
11199 /* @internal */
11200 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: number): void {
11201         if(!isWasmInitialized) {
11202                 throw new Error("initializeWasm() must be awaited first!");
11203         }
11204         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
11205         // debug statements here
11206 }
11207         // uintptr_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
11208 /* @internal */
11209 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: number): number {
11210         if(!isWasmInitialized) {
11211                 throw new Error("initializeWasm() must be awaited first!");
11212         }
11213         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
11214         return nativeResponseValue;
11215 }
11216         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
11217 /* @internal */
11218 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: number): number {
11219         if(!isWasmInitialized) {
11220                 throw new Error("initializeWasm() must be awaited first!");
11221         }
11222         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
11223         return nativeResponseValue;
11224 }
11225         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
11226 /* @internal */
11227 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: number): number {
11228         if(!isWasmInitialized) {
11229                 throw new Error("initializeWasm() must be awaited first!");
11230         }
11231         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
11232         return nativeResponseValue;
11233 }
11234         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
11235 /* @internal */
11236 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: number): number {
11237         if(!isWasmInitialized) {
11238                 throw new Error("initializeWasm() must be awaited first!");
11239         }
11240         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
11241         return nativeResponseValue;
11242 }
11243         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
11244 /* @internal */
11245 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: number): boolean {
11246         if(!isWasmInitialized) {
11247                 throw new Error("initializeWasm() must be awaited first!");
11248         }
11249         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
11250         return nativeResponseValue;
11251 }
11252         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
11253 /* @internal */
11254 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: number): void {
11255         if(!isWasmInitialized) {
11256                 throw new Error("initializeWasm() must be awaited first!");
11257         }
11258         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
11259         // debug statements here
11260 }
11261         // uintptr_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
11262 /* @internal */
11263 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: number): number {
11264         if(!isWasmInitialized) {
11265                 throw new Error("initializeWasm() must be awaited first!");
11266         }
11267         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
11268         return nativeResponseValue;
11269 }
11270         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
11271 /* @internal */
11272 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: number): number {
11273         if(!isWasmInitialized) {
11274                 throw new Error("initializeWasm() must be awaited first!");
11275         }
11276         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
11277         return nativeResponseValue;
11278 }
11279         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
11280 /* @internal */
11281 export function CVec_ChannelMonitorZ_free(_res: number): void {
11282         if(!isWasmInitialized) {
11283                 throw new Error("initializeWasm() must be awaited first!");
11284         }
11285         const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
11286         // debug statements here
11287 }
11288         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
11289 /* @internal */
11290 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: number): number {
11291         if(!isWasmInitialized) {
11292                 throw new Error("initializeWasm() must be awaited first!");
11293         }
11294         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
11295         return nativeResponseValue;
11296 }
11297         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
11298 /* @internal */
11299 export function C2Tuple_BlockHashChannelManagerZ_free(_res: number): void {
11300         if(!isWasmInitialized) {
11301                 throw new Error("initializeWasm() must be awaited first!");
11302         }
11303         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
11304         // debug statements here
11305 }
11306         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
11307 /* @internal */
11308 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: number): number {
11309         if(!isWasmInitialized) {
11310                 throw new Error("initializeWasm() must be awaited first!");
11311         }
11312         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
11313         return nativeResponseValue;
11314 }
11315         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
11316 /* @internal */
11317 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: number): number {
11318         if(!isWasmInitialized) {
11319                 throw new Error("initializeWasm() must be awaited first!");
11320         }
11321         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
11322         return nativeResponseValue;
11323 }
11324         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
11325 /* @internal */
11326 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: number): boolean {
11327         if(!isWasmInitialized) {
11328                 throw new Error("initializeWasm() must be awaited first!");
11329         }
11330         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
11331         return nativeResponseValue;
11332 }
11333         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
11334 /* @internal */
11335 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: number): void {
11336         if(!isWasmInitialized) {
11337                 throw new Error("initializeWasm() must be awaited first!");
11338         }
11339         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
11340         // debug statements here
11341 }
11342         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
11343 /* @internal */
11344 export function CResult_ChannelConfigDecodeErrorZ_ok(o: number): number {
11345         if(!isWasmInitialized) {
11346                 throw new Error("initializeWasm() must be awaited first!");
11347         }
11348         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
11349         return nativeResponseValue;
11350 }
11351         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
11352 /* @internal */
11353 export function CResult_ChannelConfigDecodeErrorZ_err(e: number): number {
11354         if(!isWasmInitialized) {
11355                 throw new Error("initializeWasm() must be awaited first!");
11356         }
11357         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
11358         return nativeResponseValue;
11359 }
11360         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
11361 /* @internal */
11362 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: number): boolean {
11363         if(!isWasmInitialized) {
11364                 throw new Error("initializeWasm() must be awaited first!");
11365         }
11366         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
11367         return nativeResponseValue;
11368 }
11369         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
11370 /* @internal */
11371 export function CResult_ChannelConfigDecodeErrorZ_free(_res: number): void {
11372         if(!isWasmInitialized) {
11373                 throw new Error("initializeWasm() must be awaited first!");
11374         }
11375         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
11376         // debug statements here
11377 }
11378         // uintptr_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
11379 /* @internal */
11380 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: number): number {
11381         if(!isWasmInitialized) {
11382                 throw new Error("initializeWasm() must be awaited first!");
11383         }
11384         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
11385         return nativeResponseValue;
11386 }
11387         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
11388 /* @internal */
11389 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: number): number {
11390         if(!isWasmInitialized) {
11391                 throw new Error("initializeWasm() must be awaited first!");
11392         }
11393         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
11394         return nativeResponseValue;
11395 }
11396         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
11397 /* @internal */
11398 export function CResult_OutPointDecodeErrorZ_ok(o: number): number {
11399         if(!isWasmInitialized) {
11400                 throw new Error("initializeWasm() must be awaited first!");
11401         }
11402         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
11403         return nativeResponseValue;
11404 }
11405         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
11406 /* @internal */
11407 export function CResult_OutPointDecodeErrorZ_err(e: number): number {
11408         if(!isWasmInitialized) {
11409                 throw new Error("initializeWasm() must be awaited first!");
11410         }
11411         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
11412         return nativeResponseValue;
11413 }
11414         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
11415 /* @internal */
11416 export function CResult_OutPointDecodeErrorZ_is_ok(o: number): boolean {
11417         if(!isWasmInitialized) {
11418                 throw new Error("initializeWasm() must be awaited first!");
11419         }
11420         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
11421         return nativeResponseValue;
11422 }
11423         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
11424 /* @internal */
11425 export function CResult_OutPointDecodeErrorZ_free(_res: number): void {
11426         if(!isWasmInitialized) {
11427                 throw new Error("initializeWasm() must be awaited first!");
11428         }
11429         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
11430         // debug statements here
11431 }
11432         // uintptr_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
11433 /* @internal */
11434 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: number): number {
11435         if(!isWasmInitialized) {
11436                 throw new Error("initializeWasm() must be awaited first!");
11437         }
11438         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
11439         return nativeResponseValue;
11440 }
11441         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
11442 /* @internal */
11443 export function CResult_OutPointDecodeErrorZ_clone(orig: number): number {
11444         if(!isWasmInitialized) {
11445                 throw new Error("initializeWasm() must be awaited first!");
11446         }
11447         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
11448         return nativeResponseValue;
11449 }
11450         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
11451 /* @internal */
11452 export function COption_TypeZ_some(o: number): number {
11453         if(!isWasmInitialized) {
11454                 throw new Error("initializeWasm() must be awaited first!");
11455         }
11456         const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
11457         return nativeResponseValue;
11458 }
11459         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
11460 /* @internal */
11461 export function COption_TypeZ_none(): number {
11462         if(!isWasmInitialized) {
11463                 throw new Error("initializeWasm() must be awaited first!");
11464         }
11465         const nativeResponseValue = wasm.TS_COption_TypeZ_none();
11466         return nativeResponseValue;
11467 }
11468         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
11469 /* @internal */
11470 export function COption_TypeZ_free(_res: number): void {
11471         if(!isWasmInitialized) {
11472                 throw new Error("initializeWasm() must be awaited first!");
11473         }
11474         const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
11475         // debug statements here
11476 }
11477         // uintptr_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
11478 /* @internal */
11479 export function COption_TypeZ_clone_ptr(arg: number): number {
11480         if(!isWasmInitialized) {
11481                 throw new Error("initializeWasm() must be awaited first!");
11482         }
11483         const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
11484         return nativeResponseValue;
11485 }
11486         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
11487 /* @internal */
11488 export function COption_TypeZ_clone(orig: number): number {
11489         if(!isWasmInitialized) {
11490                 throw new Error("initializeWasm() must be awaited first!");
11491         }
11492         const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
11493         return nativeResponseValue;
11494 }
11495         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
11496 /* @internal */
11497 export function CResult_COption_TypeZDecodeErrorZ_ok(o: number): number {
11498         if(!isWasmInitialized) {
11499                 throw new Error("initializeWasm() must be awaited first!");
11500         }
11501         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
11502         return nativeResponseValue;
11503 }
11504         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
11505 /* @internal */
11506 export function CResult_COption_TypeZDecodeErrorZ_err(e: number): number {
11507         if(!isWasmInitialized) {
11508                 throw new Error("initializeWasm() must be awaited first!");
11509         }
11510         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
11511         return nativeResponseValue;
11512 }
11513         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
11514 /* @internal */
11515 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: number): boolean {
11516         if(!isWasmInitialized) {
11517                 throw new Error("initializeWasm() must be awaited first!");
11518         }
11519         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
11520         return nativeResponseValue;
11521 }
11522         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
11523 /* @internal */
11524 export function CResult_COption_TypeZDecodeErrorZ_free(_res: number): void {
11525         if(!isWasmInitialized) {
11526                 throw new Error("initializeWasm() must be awaited first!");
11527         }
11528         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
11529         // debug statements here
11530 }
11531         // uintptr_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
11532 /* @internal */
11533 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: number): number {
11534         if(!isWasmInitialized) {
11535                 throw new Error("initializeWasm() must be awaited first!");
11536         }
11537         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
11538         return nativeResponseValue;
11539 }
11540         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
11541 /* @internal */
11542 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: number): number {
11543         if(!isWasmInitialized) {
11544                 throw new Error("initializeWasm() must be awaited first!");
11545         }
11546         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
11547         return nativeResponseValue;
11548 }
11549         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
11550 /* @internal */
11551 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): number {
11552         if(!isWasmInitialized) {
11553                 throw new Error("initializeWasm() must be awaited first!");
11554         }
11555         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
11556         return nativeResponseValue;
11557 }
11558         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
11559 /* @internal */
11560 export function CResult_PaymentIdPaymentErrorZ_err(e: number): number {
11561         if(!isWasmInitialized) {
11562                 throw new Error("initializeWasm() must be awaited first!");
11563         }
11564         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
11565         return nativeResponseValue;
11566 }
11567         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
11568 /* @internal */
11569 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: number): boolean {
11570         if(!isWasmInitialized) {
11571                 throw new Error("initializeWasm() must be awaited first!");
11572         }
11573         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
11574         return nativeResponseValue;
11575 }
11576         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
11577 /* @internal */
11578 export function CResult_PaymentIdPaymentErrorZ_free(_res: number): void {
11579         if(!isWasmInitialized) {
11580                 throw new Error("initializeWasm() must be awaited first!");
11581         }
11582         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
11583         // debug statements here
11584 }
11585         // uintptr_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
11586 /* @internal */
11587 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: number): number {
11588         if(!isWasmInitialized) {
11589                 throw new Error("initializeWasm() must be awaited first!");
11590         }
11591         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
11592         return nativeResponseValue;
11593 }
11594         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
11595 /* @internal */
11596 export function CResult_PaymentIdPaymentErrorZ_clone(orig: number): number {
11597         if(!isWasmInitialized) {
11598                 throw new Error("initializeWasm() must be awaited first!");
11599         }
11600         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
11601         return nativeResponseValue;
11602 }
11603         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
11604 /* @internal */
11605 export function CResult_SiPrefixParseErrorZ_ok(o: SiPrefix): number {
11606         if(!isWasmInitialized) {
11607                 throw new Error("initializeWasm() must be awaited first!");
11608         }
11609         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_ok(o);
11610         return nativeResponseValue;
11611 }
11612         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
11613 /* @internal */
11614 export function CResult_SiPrefixParseErrorZ_err(e: number): number {
11615         if(!isWasmInitialized) {
11616                 throw new Error("initializeWasm() must be awaited first!");
11617         }
11618         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_err(e);
11619         return nativeResponseValue;
11620 }
11621         // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
11622 /* @internal */
11623 export function CResult_SiPrefixParseErrorZ_is_ok(o: number): boolean {
11624         if(!isWasmInitialized) {
11625                 throw new Error("initializeWasm() must be awaited first!");
11626         }
11627         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_is_ok(o);
11628         return nativeResponseValue;
11629 }
11630         // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
11631 /* @internal */
11632 export function CResult_SiPrefixParseErrorZ_free(_res: number): void {
11633         if(!isWasmInitialized) {
11634                 throw new Error("initializeWasm() must be awaited first!");
11635         }
11636         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_free(_res);
11637         // debug statements here
11638 }
11639         // uintptr_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
11640 /* @internal */
11641 export function CResult_SiPrefixParseErrorZ_clone_ptr(arg: number): number {
11642         if(!isWasmInitialized) {
11643                 throw new Error("initializeWasm() must be awaited first!");
11644         }
11645         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone_ptr(arg);
11646         return nativeResponseValue;
11647 }
11648         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
11649 /* @internal */
11650 export function CResult_SiPrefixParseErrorZ_clone(orig: number): number {
11651         if(!isWasmInitialized) {
11652                 throw new Error("initializeWasm() must be awaited first!");
11653         }
11654         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone(orig);
11655         return nativeResponseValue;
11656 }
11657         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
11658 /* @internal */
11659 export function CResult_InvoiceParseOrSemanticErrorZ_ok(o: number): number {
11660         if(!isWasmInitialized) {
11661                 throw new Error("initializeWasm() must be awaited first!");
11662         }
11663         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_ok(o);
11664         return nativeResponseValue;
11665 }
11666         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
11667 /* @internal */
11668 export function CResult_InvoiceParseOrSemanticErrorZ_err(e: number): number {
11669         if(!isWasmInitialized) {
11670                 throw new Error("initializeWasm() must be awaited first!");
11671         }
11672         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_err(e);
11673         return nativeResponseValue;
11674 }
11675         // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
11676 /* @internal */
11677 export function CResult_InvoiceParseOrSemanticErrorZ_is_ok(o: number): boolean {
11678         if(!isWasmInitialized) {
11679                 throw new Error("initializeWasm() must be awaited first!");
11680         }
11681         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_is_ok(o);
11682         return nativeResponseValue;
11683 }
11684         // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
11685 /* @internal */
11686 export function CResult_InvoiceParseOrSemanticErrorZ_free(_res: number): void {
11687         if(!isWasmInitialized) {
11688                 throw new Error("initializeWasm() must be awaited first!");
11689         }
11690         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_free(_res);
11691         // debug statements here
11692 }
11693         // uintptr_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
11694 /* @internal */
11695 export function CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg: number): number {
11696         if(!isWasmInitialized) {
11697                 throw new Error("initializeWasm() must be awaited first!");
11698         }
11699         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg);
11700         return nativeResponseValue;
11701 }
11702         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
11703 /* @internal */
11704 export function CResult_InvoiceParseOrSemanticErrorZ_clone(orig: number): number {
11705         if(!isWasmInitialized) {
11706                 throw new Error("initializeWasm() must be awaited first!");
11707         }
11708         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone(orig);
11709         return nativeResponseValue;
11710 }
11711         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
11712 /* @internal */
11713 export function CResult_SignedRawInvoiceParseErrorZ_ok(o: number): number {
11714         if(!isWasmInitialized) {
11715                 throw new Error("initializeWasm() must be awaited first!");
11716         }
11717         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_ok(o);
11718         return nativeResponseValue;
11719 }
11720         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
11721 /* @internal */
11722 export function CResult_SignedRawInvoiceParseErrorZ_err(e: number): number {
11723         if(!isWasmInitialized) {
11724                 throw new Error("initializeWasm() must be awaited first!");
11725         }
11726         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_err(e);
11727         return nativeResponseValue;
11728 }
11729         // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
11730 /* @internal */
11731 export function CResult_SignedRawInvoiceParseErrorZ_is_ok(o: number): boolean {
11732         if(!isWasmInitialized) {
11733                 throw new Error("initializeWasm() must be awaited first!");
11734         }
11735         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_is_ok(o);
11736         return nativeResponseValue;
11737 }
11738         // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
11739 /* @internal */
11740 export function CResult_SignedRawInvoiceParseErrorZ_free(_res: number): void {
11741         if(!isWasmInitialized) {
11742                 throw new Error("initializeWasm() must be awaited first!");
11743         }
11744         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_free(_res);
11745         // debug statements here
11746 }
11747         // uintptr_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
11748 /* @internal */
11749 export function CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg: number): number {
11750         if(!isWasmInitialized) {
11751                 throw new Error("initializeWasm() must be awaited first!");
11752         }
11753         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg);
11754         return nativeResponseValue;
11755 }
11756         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
11757 /* @internal */
11758 export function CResult_SignedRawInvoiceParseErrorZ_clone(orig: number): number {
11759         if(!isWasmInitialized) {
11760                 throw new Error("initializeWasm() must be awaited first!");
11761         }
11762         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone(orig);
11763         return nativeResponseValue;
11764 }
11765         // uintptr_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
11766 /* @internal */
11767 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: number): number {
11768         if(!isWasmInitialized) {
11769                 throw new Error("initializeWasm() must be awaited first!");
11770         }
11771         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
11772         return nativeResponseValue;
11773 }
11774         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
11775 /* @internal */
11776 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: number): number {
11777         if(!isWasmInitialized) {
11778                 throw new Error("initializeWasm() must be awaited first!");
11779         }
11780         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
11781         return nativeResponseValue;
11782 }
11783         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
11784 /* @internal */
11785 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: number, b: number, c: number): number {
11786         if(!isWasmInitialized) {
11787                 throw new Error("initializeWasm() must be awaited first!");
11788         }
11789         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
11790         return nativeResponseValue;
11791 }
11792         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
11793 /* @internal */
11794 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: number): void {
11795         if(!isWasmInitialized) {
11796                 throw new Error("initializeWasm() must be awaited first!");
11797         }
11798         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
11799         // debug statements here
11800 }
11801         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
11802 /* @internal */
11803 export function CResult_PayeePubKeyErrorZ_ok(o: number): number {
11804         if(!isWasmInitialized) {
11805                 throw new Error("initializeWasm() must be awaited first!");
11806         }
11807         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
11808         return nativeResponseValue;
11809 }
11810         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
11811 /* @internal */
11812 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): number {
11813         if(!isWasmInitialized) {
11814                 throw new Error("initializeWasm() must be awaited first!");
11815         }
11816         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
11817         return nativeResponseValue;
11818 }
11819         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
11820 /* @internal */
11821 export function CResult_PayeePubKeyErrorZ_is_ok(o: number): boolean {
11822         if(!isWasmInitialized) {
11823                 throw new Error("initializeWasm() must be awaited first!");
11824         }
11825         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
11826         return nativeResponseValue;
11827 }
11828         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
11829 /* @internal */
11830 export function CResult_PayeePubKeyErrorZ_free(_res: number): void {
11831         if(!isWasmInitialized) {
11832                 throw new Error("initializeWasm() must be awaited first!");
11833         }
11834         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
11835         // debug statements here
11836 }
11837         // uintptr_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
11838 /* @internal */
11839 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: number): number {
11840         if(!isWasmInitialized) {
11841                 throw new Error("initializeWasm() must be awaited first!");
11842         }
11843         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
11844         return nativeResponseValue;
11845 }
11846         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
11847 /* @internal */
11848 export function CResult_PayeePubKeyErrorZ_clone(orig: number): number {
11849         if(!isWasmInitialized) {
11850                 throw new Error("initializeWasm() must be awaited first!");
11851         }
11852         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
11853         return nativeResponseValue;
11854 }
11855         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
11856 /* @internal */
11857 export function CVec_PrivateRouteZ_free(_res: number): void {
11858         if(!isWasmInitialized) {
11859                 throw new Error("initializeWasm() must be awaited first!");
11860         }
11861         const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
11862         // debug statements here
11863 }
11864         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
11865 /* @internal */
11866 export function CResult_PositiveTimestampCreationErrorZ_ok(o: number): number {
11867         if(!isWasmInitialized) {
11868                 throw new Error("initializeWasm() must be awaited first!");
11869         }
11870         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
11871         return nativeResponseValue;
11872 }
11873         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
11874 /* @internal */
11875 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): number {
11876         if(!isWasmInitialized) {
11877                 throw new Error("initializeWasm() must be awaited first!");
11878         }
11879         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
11880         return nativeResponseValue;
11881 }
11882         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
11883 /* @internal */
11884 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: number): boolean {
11885         if(!isWasmInitialized) {
11886                 throw new Error("initializeWasm() must be awaited first!");
11887         }
11888         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
11889         return nativeResponseValue;
11890 }
11891         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
11892 /* @internal */
11893 export function CResult_PositiveTimestampCreationErrorZ_free(_res: number): void {
11894         if(!isWasmInitialized) {
11895                 throw new Error("initializeWasm() must be awaited first!");
11896         }
11897         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
11898         // debug statements here
11899 }
11900         // uintptr_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
11901 /* @internal */
11902 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: number): number {
11903         if(!isWasmInitialized) {
11904                 throw new Error("initializeWasm() must be awaited first!");
11905         }
11906         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
11907         return nativeResponseValue;
11908 }
11909         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
11910 /* @internal */
11911 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: number): number {
11912         if(!isWasmInitialized) {
11913                 throw new Error("initializeWasm() must be awaited first!");
11914         }
11915         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
11916         return nativeResponseValue;
11917 }
11918         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
11919 /* @internal */
11920 export function CResult_NoneSemanticErrorZ_ok(): number {
11921         if(!isWasmInitialized) {
11922                 throw new Error("initializeWasm() must be awaited first!");
11923         }
11924         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
11925         return nativeResponseValue;
11926 }
11927         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
11928 /* @internal */
11929 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): number {
11930         if(!isWasmInitialized) {
11931                 throw new Error("initializeWasm() must be awaited first!");
11932         }
11933         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
11934         return nativeResponseValue;
11935 }
11936         // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
11937 /* @internal */
11938 export function CResult_NoneSemanticErrorZ_is_ok(o: number): boolean {
11939         if(!isWasmInitialized) {
11940                 throw new Error("initializeWasm() must be awaited first!");
11941         }
11942         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
11943         return nativeResponseValue;
11944 }
11945         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
11946 /* @internal */
11947 export function CResult_NoneSemanticErrorZ_free(_res: number): void {
11948         if(!isWasmInitialized) {
11949                 throw new Error("initializeWasm() must be awaited first!");
11950         }
11951         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
11952         // debug statements here
11953 }
11954         // uintptr_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
11955 /* @internal */
11956 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: number): number {
11957         if(!isWasmInitialized) {
11958                 throw new Error("initializeWasm() must be awaited first!");
11959         }
11960         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
11961         return nativeResponseValue;
11962 }
11963         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
11964 /* @internal */
11965 export function CResult_NoneSemanticErrorZ_clone(orig: number): number {
11966         if(!isWasmInitialized) {
11967                 throw new Error("initializeWasm() must be awaited first!");
11968         }
11969         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
11970         return nativeResponseValue;
11971 }
11972         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
11973 /* @internal */
11974 export function CResult_InvoiceSemanticErrorZ_ok(o: number): number {
11975         if(!isWasmInitialized) {
11976                 throw new Error("initializeWasm() must be awaited first!");
11977         }
11978         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
11979         return nativeResponseValue;
11980 }
11981         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
11982 /* @internal */
11983 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): number {
11984         if(!isWasmInitialized) {
11985                 throw new Error("initializeWasm() must be awaited first!");
11986         }
11987         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
11988         return nativeResponseValue;
11989 }
11990         // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
11991 /* @internal */
11992 export function CResult_InvoiceSemanticErrorZ_is_ok(o: number): boolean {
11993         if(!isWasmInitialized) {
11994                 throw new Error("initializeWasm() must be awaited first!");
11995         }
11996         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
11997         return nativeResponseValue;
11998 }
11999         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
12000 /* @internal */
12001 export function CResult_InvoiceSemanticErrorZ_free(_res: number): void {
12002         if(!isWasmInitialized) {
12003                 throw new Error("initializeWasm() must be awaited first!");
12004         }
12005         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
12006         // debug statements here
12007 }
12008         // uintptr_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
12009 /* @internal */
12010 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: number): number {
12011         if(!isWasmInitialized) {
12012                 throw new Error("initializeWasm() must be awaited first!");
12013         }
12014         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
12015         return nativeResponseValue;
12016 }
12017         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
12018 /* @internal */
12019 export function CResult_InvoiceSemanticErrorZ_clone(orig: number): number {
12020         if(!isWasmInitialized) {
12021                 throw new Error("initializeWasm() must be awaited first!");
12022         }
12023         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
12024         return nativeResponseValue;
12025 }
12026         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
12027 /* @internal */
12028 export function CResult_DescriptionCreationErrorZ_ok(o: number): number {
12029         if(!isWasmInitialized) {
12030                 throw new Error("initializeWasm() must be awaited first!");
12031         }
12032         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
12033         return nativeResponseValue;
12034 }
12035         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
12036 /* @internal */
12037 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): number {
12038         if(!isWasmInitialized) {
12039                 throw new Error("initializeWasm() must be awaited first!");
12040         }
12041         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
12042         return nativeResponseValue;
12043 }
12044         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
12045 /* @internal */
12046 export function CResult_DescriptionCreationErrorZ_is_ok(o: number): boolean {
12047         if(!isWasmInitialized) {
12048                 throw new Error("initializeWasm() must be awaited first!");
12049         }
12050         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
12051         return nativeResponseValue;
12052 }
12053         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
12054 /* @internal */
12055 export function CResult_DescriptionCreationErrorZ_free(_res: number): void {
12056         if(!isWasmInitialized) {
12057                 throw new Error("initializeWasm() must be awaited first!");
12058         }
12059         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
12060         // debug statements here
12061 }
12062         // uintptr_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
12063 /* @internal */
12064 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: number): number {
12065         if(!isWasmInitialized) {
12066                 throw new Error("initializeWasm() must be awaited first!");
12067         }
12068         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
12069         return nativeResponseValue;
12070 }
12071         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
12072 /* @internal */
12073 export function CResult_DescriptionCreationErrorZ_clone(orig: number): number {
12074         if(!isWasmInitialized) {
12075                 throw new Error("initializeWasm() must be awaited first!");
12076         }
12077         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
12078         return nativeResponseValue;
12079 }
12080         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
12081 /* @internal */
12082 export function CResult_PrivateRouteCreationErrorZ_ok(o: number): number {
12083         if(!isWasmInitialized) {
12084                 throw new Error("initializeWasm() must be awaited first!");
12085         }
12086         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
12087         return nativeResponseValue;
12088 }
12089         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
12090 /* @internal */
12091 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): number {
12092         if(!isWasmInitialized) {
12093                 throw new Error("initializeWasm() must be awaited first!");
12094         }
12095         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
12096         return nativeResponseValue;
12097 }
12098         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
12099 /* @internal */
12100 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: number): boolean {
12101         if(!isWasmInitialized) {
12102                 throw new Error("initializeWasm() must be awaited first!");
12103         }
12104         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
12105         return nativeResponseValue;
12106 }
12107         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
12108 /* @internal */
12109 export function CResult_PrivateRouteCreationErrorZ_free(_res: number): void {
12110         if(!isWasmInitialized) {
12111                 throw new Error("initializeWasm() must be awaited first!");
12112         }
12113         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
12114         // debug statements here
12115 }
12116         // uintptr_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
12117 /* @internal */
12118 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: number): number {
12119         if(!isWasmInitialized) {
12120                 throw new Error("initializeWasm() must be awaited first!");
12121         }
12122         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
12123         return nativeResponseValue;
12124 }
12125         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
12126 /* @internal */
12127 export function CResult_PrivateRouteCreationErrorZ_clone(orig: number): number {
12128         if(!isWasmInitialized) {
12129                 throw new Error("initializeWasm() must be awaited first!");
12130         }
12131         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
12132         return nativeResponseValue;
12133 }
12134         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
12135 /* @internal */
12136 export function CResult_StringErrorZ_ok(o: number): number {
12137         if(!isWasmInitialized) {
12138                 throw new Error("initializeWasm() must be awaited first!");
12139         }
12140         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
12141         return nativeResponseValue;
12142 }
12143         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
12144 /* @internal */
12145 export function CResult_StringErrorZ_err(e: Secp256k1Error): number {
12146         if(!isWasmInitialized) {
12147                 throw new Error("initializeWasm() must be awaited first!");
12148         }
12149         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
12150         return nativeResponseValue;
12151 }
12152         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
12153 /* @internal */
12154 export function CResult_StringErrorZ_is_ok(o: number): boolean {
12155         if(!isWasmInitialized) {
12156                 throw new Error("initializeWasm() must be awaited first!");
12157         }
12158         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
12159         return nativeResponseValue;
12160 }
12161         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
12162 /* @internal */
12163 export function CResult_StringErrorZ_free(_res: number): void {
12164         if(!isWasmInitialized) {
12165                 throw new Error("initializeWasm() must be awaited first!");
12166         }
12167         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
12168         // debug statements here
12169 }
12170         // uintptr_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
12171 /* @internal */
12172 export function CResult_StringErrorZ_clone_ptr(arg: number): number {
12173         if(!isWasmInitialized) {
12174                 throw new Error("initializeWasm() must be awaited first!");
12175         }
12176         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone_ptr(arg);
12177         return nativeResponseValue;
12178 }
12179         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
12180 /* @internal */
12181 export function CResult_StringErrorZ_clone(orig: number): number {
12182         if(!isWasmInitialized) {
12183                 throw new Error("initializeWasm() must be awaited first!");
12184         }
12185         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone(orig);
12186         return nativeResponseValue;
12187 }
12188         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
12189 /* @internal */
12190 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: number): number {
12191         if(!isWasmInitialized) {
12192                 throw new Error("initializeWasm() must be awaited first!");
12193         }
12194         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
12195         return nativeResponseValue;
12196 }
12197         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
12198 /* @internal */
12199 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: number): number {
12200         if(!isWasmInitialized) {
12201                 throw new Error("initializeWasm() must be awaited first!");
12202         }
12203         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
12204         return nativeResponseValue;
12205 }
12206         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
12207 /* @internal */
12208 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: number): boolean {
12209         if(!isWasmInitialized) {
12210                 throw new Error("initializeWasm() must be awaited first!");
12211         }
12212         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
12213         return nativeResponseValue;
12214 }
12215         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
12216 /* @internal */
12217 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: number): void {
12218         if(!isWasmInitialized) {
12219                 throw new Error("initializeWasm() must be awaited first!");
12220         }
12221         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
12222         // debug statements here
12223 }
12224         // uintptr_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
12225 /* @internal */
12226 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: number): number {
12227         if(!isWasmInitialized) {
12228                 throw new Error("initializeWasm() must be awaited first!");
12229         }
12230         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
12231         return nativeResponseValue;
12232 }
12233         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
12234 /* @internal */
12235 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: number): number {
12236         if(!isWasmInitialized) {
12237                 throw new Error("initializeWasm() must be awaited first!");
12238         }
12239         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
12240         return nativeResponseValue;
12241 }
12242         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
12243 /* @internal */
12244 export function COption_MonitorEventZ_some(o: number): number {
12245         if(!isWasmInitialized) {
12246                 throw new Error("initializeWasm() must be awaited first!");
12247         }
12248         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
12249         return nativeResponseValue;
12250 }
12251         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
12252 /* @internal */
12253 export function COption_MonitorEventZ_none(): number {
12254         if(!isWasmInitialized) {
12255                 throw new Error("initializeWasm() must be awaited first!");
12256         }
12257         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
12258         return nativeResponseValue;
12259 }
12260         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
12261 /* @internal */
12262 export function COption_MonitorEventZ_free(_res: number): void {
12263         if(!isWasmInitialized) {
12264                 throw new Error("initializeWasm() must be awaited first!");
12265         }
12266         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
12267         // debug statements here
12268 }
12269         // uintptr_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
12270 /* @internal */
12271 export function COption_MonitorEventZ_clone_ptr(arg: number): number {
12272         if(!isWasmInitialized) {
12273                 throw new Error("initializeWasm() must be awaited first!");
12274         }
12275         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
12276         return nativeResponseValue;
12277 }
12278         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
12279 /* @internal */
12280 export function COption_MonitorEventZ_clone(orig: number): number {
12281         if(!isWasmInitialized) {
12282                 throw new Error("initializeWasm() must be awaited first!");
12283         }
12284         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
12285         return nativeResponseValue;
12286 }
12287         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
12288 /* @internal */
12289 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: number): number {
12290         if(!isWasmInitialized) {
12291                 throw new Error("initializeWasm() must be awaited first!");
12292         }
12293         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
12294         return nativeResponseValue;
12295 }
12296         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
12297 /* @internal */
12298 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: number): number {
12299         if(!isWasmInitialized) {
12300                 throw new Error("initializeWasm() must be awaited first!");
12301         }
12302         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
12303         return nativeResponseValue;
12304 }
12305         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
12306 /* @internal */
12307 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: number): boolean {
12308         if(!isWasmInitialized) {
12309                 throw new Error("initializeWasm() must be awaited first!");
12310         }
12311         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
12312         return nativeResponseValue;
12313 }
12314         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
12315 /* @internal */
12316 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: number): void {
12317         if(!isWasmInitialized) {
12318                 throw new Error("initializeWasm() must be awaited first!");
12319         }
12320         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
12321         // debug statements here
12322 }
12323         // uintptr_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
12324 /* @internal */
12325 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: number): number {
12326         if(!isWasmInitialized) {
12327                 throw new Error("initializeWasm() must be awaited first!");
12328         }
12329         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
12330         return nativeResponseValue;
12331 }
12332         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
12333 /* @internal */
12334 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: number): number {
12335         if(!isWasmInitialized) {
12336                 throw new Error("initializeWasm() must be awaited first!");
12337         }
12338         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
12339         return nativeResponseValue;
12340 }
12341         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
12342 /* @internal */
12343 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: number): number {
12344         if(!isWasmInitialized) {
12345                 throw new Error("initializeWasm() must be awaited first!");
12346         }
12347         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
12348         return nativeResponseValue;
12349 }
12350         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
12351 /* @internal */
12352 export function CResult_HTLCUpdateDecodeErrorZ_err(e: number): number {
12353         if(!isWasmInitialized) {
12354                 throw new Error("initializeWasm() must be awaited first!");
12355         }
12356         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
12357         return nativeResponseValue;
12358 }
12359         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
12360 /* @internal */
12361 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: number): boolean {
12362         if(!isWasmInitialized) {
12363                 throw new Error("initializeWasm() must be awaited first!");
12364         }
12365         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
12366         return nativeResponseValue;
12367 }
12368         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
12369 /* @internal */
12370 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: number): void {
12371         if(!isWasmInitialized) {
12372                 throw new Error("initializeWasm() must be awaited first!");
12373         }
12374         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
12375         // debug statements here
12376 }
12377         // uintptr_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
12378 /* @internal */
12379 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: number): number {
12380         if(!isWasmInitialized) {
12381                 throw new Error("initializeWasm() must be awaited first!");
12382         }
12383         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
12384         return nativeResponseValue;
12385 }
12386         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
12387 /* @internal */
12388 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: number): number {
12389         if(!isWasmInitialized) {
12390                 throw new Error("initializeWasm() must be awaited first!");
12391         }
12392         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
12393         return nativeResponseValue;
12394 }
12395         // uintptr_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
12396 /* @internal */
12397 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: number): number {
12398         if(!isWasmInitialized) {
12399                 throw new Error("initializeWasm() must be awaited first!");
12400         }
12401         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
12402         return nativeResponseValue;
12403 }
12404         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
12405 /* @internal */
12406 export function C2Tuple_OutPointScriptZ_clone(orig: number): number {
12407         if(!isWasmInitialized) {
12408                 throw new Error("initializeWasm() must be awaited first!");
12409         }
12410         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
12411         return nativeResponseValue;
12412 }
12413         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
12414 /* @internal */
12415 export function C2Tuple_OutPointScriptZ_new(a: number, b: number): number {
12416         if(!isWasmInitialized) {
12417                 throw new Error("initializeWasm() must be awaited first!");
12418         }
12419         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
12420         return nativeResponseValue;
12421 }
12422         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
12423 /* @internal */
12424 export function C2Tuple_OutPointScriptZ_free(_res: number): void {
12425         if(!isWasmInitialized) {
12426                 throw new Error("initializeWasm() must be awaited first!");
12427         }
12428         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
12429         // debug statements here
12430 }
12431         // uintptr_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
12432 /* @internal */
12433 export function C2Tuple_u32ScriptZ_clone_ptr(arg: number): number {
12434         if(!isWasmInitialized) {
12435                 throw new Error("initializeWasm() must be awaited first!");
12436         }
12437         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
12438         return nativeResponseValue;
12439 }
12440         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
12441 /* @internal */
12442 export function C2Tuple_u32ScriptZ_clone(orig: number): number {
12443         if(!isWasmInitialized) {
12444                 throw new Error("initializeWasm() must be awaited first!");
12445         }
12446         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
12447         return nativeResponseValue;
12448 }
12449         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
12450 /* @internal */
12451 export function C2Tuple_u32ScriptZ_new(a: number, b: number): number {
12452         if(!isWasmInitialized) {
12453                 throw new Error("initializeWasm() must be awaited first!");
12454         }
12455         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
12456         return nativeResponseValue;
12457 }
12458         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
12459 /* @internal */
12460 export function C2Tuple_u32ScriptZ_free(_res: number): void {
12461         if(!isWasmInitialized) {
12462                 throw new Error("initializeWasm() must be awaited first!");
12463         }
12464         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
12465         // debug statements here
12466 }
12467         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
12468 /* @internal */
12469 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
12470         if(!isWasmInitialized) {
12471                 throw new Error("initializeWasm() must be awaited first!");
12472         }
12473         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
12474         // debug statements here
12475 }
12476         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
12477 /* @internal */
12478 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: number): number {
12479         if(!isWasmInitialized) {
12480                 throw new Error("initializeWasm() must be awaited first!");
12481         }
12482         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
12483         return nativeResponseValue;
12484 }
12485         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
12486 /* @internal */
12487 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: number): number {
12488         if(!isWasmInitialized) {
12489                 throw new Error("initializeWasm() must be awaited first!");
12490         }
12491         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
12492         return nativeResponseValue;
12493 }
12494         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
12495 /* @internal */
12496 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): number {
12497         if(!isWasmInitialized) {
12498                 throw new Error("initializeWasm() must be awaited first!");
12499         }
12500         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
12501         return nativeResponseValue;
12502 }
12503         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
12504 /* @internal */
12505 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: number): void {
12506         if(!isWasmInitialized) {
12507                 throw new Error("initializeWasm() must be awaited first!");
12508         }
12509         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
12510         // debug statements here
12511 }
12512         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
12513 /* @internal */
12514 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
12515         if(!isWasmInitialized) {
12516                 throw new Error("initializeWasm() must be awaited first!");
12517         }
12518         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
12519         // debug statements here
12520 }
12521         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
12522 /* @internal */
12523 export function CVec_EventZ_free(_res: number): void {
12524         if(!isWasmInitialized) {
12525                 throw new Error("initializeWasm() must be awaited first!");
12526         }
12527         const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
12528         // debug statements here
12529 }
12530         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
12531 /* @internal */
12532 export function CVec_TransactionZ_free(_res: number): void {
12533         if(!isWasmInitialized) {
12534                 throw new Error("initializeWasm() must be awaited first!");
12535         }
12536         const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
12537         // debug statements here
12538 }
12539         // uintptr_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
12540 /* @internal */
12541 export function C2Tuple_u32TxOutZ_clone_ptr(arg: number): number {
12542         if(!isWasmInitialized) {
12543                 throw new Error("initializeWasm() must be awaited first!");
12544         }
12545         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
12546         return nativeResponseValue;
12547 }
12548         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
12549 /* @internal */
12550 export function C2Tuple_u32TxOutZ_clone(orig: number): number {
12551         if(!isWasmInitialized) {
12552                 throw new Error("initializeWasm() must be awaited first!");
12553         }
12554         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
12555         return nativeResponseValue;
12556 }
12557         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
12558 /* @internal */
12559 export function C2Tuple_u32TxOutZ_new(a: number, b: number): number {
12560         if(!isWasmInitialized) {
12561                 throw new Error("initializeWasm() must be awaited first!");
12562         }
12563         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
12564         return nativeResponseValue;
12565 }
12566         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
12567 /* @internal */
12568 export function C2Tuple_u32TxOutZ_free(_res: number): void {
12569         if(!isWasmInitialized) {
12570                 throw new Error("initializeWasm() must be awaited first!");
12571         }
12572         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
12573         // debug statements here
12574 }
12575         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
12576 /* @internal */
12577 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
12578         if(!isWasmInitialized) {
12579                 throw new Error("initializeWasm() must be awaited first!");
12580         }
12581         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
12582         // debug statements here
12583 }
12584         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
12585 /* @internal */
12586 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: number): number {
12587         if(!isWasmInitialized) {
12588                 throw new Error("initializeWasm() must be awaited first!");
12589         }
12590         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
12591         return nativeResponseValue;
12592 }
12593         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
12594 /* @internal */
12595 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: number): number {
12596         if(!isWasmInitialized) {
12597                 throw new Error("initializeWasm() must be awaited first!");
12598         }
12599         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
12600         return nativeResponseValue;
12601 }
12602         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
12603 /* @internal */
12604 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): number {
12605         if(!isWasmInitialized) {
12606                 throw new Error("initializeWasm() must be awaited first!");
12607         }
12608         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
12609         return nativeResponseValue;
12610 }
12611         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
12612 /* @internal */
12613 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: number): void {
12614         if(!isWasmInitialized) {
12615                 throw new Error("initializeWasm() must be awaited first!");
12616         }
12617         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
12618         // debug statements here
12619 }
12620         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
12621 /* @internal */
12622 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
12623         if(!isWasmInitialized) {
12624                 throw new Error("initializeWasm() must be awaited first!");
12625         }
12626         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
12627         // debug statements here
12628 }
12629         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
12630 /* @internal */
12631 export function CVec_BalanceZ_free(_res: number): void {
12632         if(!isWasmInitialized) {
12633                 throw new Error("initializeWasm() must be awaited first!");
12634         }
12635         const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
12636         // debug statements here
12637 }
12638         // uintptr_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
12639 /* @internal */
12640 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: number): number {
12641         if(!isWasmInitialized) {
12642                 throw new Error("initializeWasm() must be awaited first!");
12643         }
12644         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
12645         return nativeResponseValue;
12646 }
12647         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
12648 /* @internal */
12649 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: number): number {
12650         if(!isWasmInitialized) {
12651                 throw new Error("initializeWasm() must be awaited first!");
12652         }
12653         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
12654         return nativeResponseValue;
12655 }
12656         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
12657 /* @internal */
12658 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: number): number {
12659         if(!isWasmInitialized) {
12660                 throw new Error("initializeWasm() must be awaited first!");
12661         }
12662         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
12663         return nativeResponseValue;
12664 }
12665         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
12666 /* @internal */
12667 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: number): void {
12668         if(!isWasmInitialized) {
12669                 throw new Error("initializeWasm() must be awaited first!");
12670         }
12671         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
12672         // debug statements here
12673 }
12674         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
12675 /* @internal */
12676 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: number): number {
12677         if(!isWasmInitialized) {
12678                 throw new Error("initializeWasm() must be awaited first!");
12679         }
12680         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
12681         return nativeResponseValue;
12682 }
12683         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
12684 /* @internal */
12685 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: number): number {
12686         if(!isWasmInitialized) {
12687                 throw new Error("initializeWasm() must be awaited first!");
12688         }
12689         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
12690         return nativeResponseValue;
12691 }
12692         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
12693 /* @internal */
12694 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: number): boolean {
12695         if(!isWasmInitialized) {
12696                 throw new Error("initializeWasm() must be awaited first!");
12697         }
12698         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
12699         return nativeResponseValue;
12700 }
12701         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
12702 /* @internal */
12703 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: number): void {
12704         if(!isWasmInitialized) {
12705                 throw new Error("initializeWasm() must be awaited first!");
12706         }
12707         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
12708         // debug statements here
12709 }
12710         // uintptr_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
12711 /* @internal */
12712 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: number): number {
12713         if(!isWasmInitialized) {
12714                 throw new Error("initializeWasm() must be awaited first!");
12715         }
12716         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
12717         return nativeResponseValue;
12718 }
12719         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
12720 /* @internal */
12721 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: number): number {
12722         if(!isWasmInitialized) {
12723                 throw new Error("initializeWasm() must be awaited first!");
12724         }
12725         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
12726         return nativeResponseValue;
12727 }
12728         // uintptr_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
12729 /* @internal */
12730 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: number): number {
12731         if(!isWasmInitialized) {
12732                 throw new Error("initializeWasm() must be awaited first!");
12733         }
12734         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
12735         return nativeResponseValue;
12736 }
12737         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
12738 /* @internal */
12739 export function C2Tuple_PublicKeyTypeZ_clone(orig: number): number {
12740         if(!isWasmInitialized) {
12741                 throw new Error("initializeWasm() must be awaited first!");
12742         }
12743         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
12744         return nativeResponseValue;
12745 }
12746         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
12747 /* @internal */
12748 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: number): number {
12749         if(!isWasmInitialized) {
12750                 throw new Error("initializeWasm() must be awaited first!");
12751         }
12752         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
12753         return nativeResponseValue;
12754 }
12755         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
12756 /* @internal */
12757 export function C2Tuple_PublicKeyTypeZ_free(_res: number): void {
12758         if(!isWasmInitialized) {
12759                 throw new Error("initializeWasm() must be awaited first!");
12760         }
12761         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
12762         // debug statements here
12763 }
12764         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
12765 /* @internal */
12766 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
12767         if(!isWasmInitialized) {
12768                 throw new Error("initializeWasm() must be awaited first!");
12769         }
12770         const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
12771         // debug statements here
12772 }
12773         // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
12774 /* @internal */
12775 export function COption_NetAddressZ_some(o: number): number {
12776         if(!isWasmInitialized) {
12777                 throw new Error("initializeWasm() must be awaited first!");
12778         }
12779         const nativeResponseValue = wasm.TS_COption_NetAddressZ_some(o);
12780         return nativeResponseValue;
12781 }
12782         // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
12783 /* @internal */
12784 export function COption_NetAddressZ_none(): number {
12785         if(!isWasmInitialized) {
12786                 throw new Error("initializeWasm() must be awaited first!");
12787         }
12788         const nativeResponseValue = wasm.TS_COption_NetAddressZ_none();
12789         return nativeResponseValue;
12790 }
12791         // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
12792 /* @internal */
12793 export function COption_NetAddressZ_free(_res: number): void {
12794         if(!isWasmInitialized) {
12795                 throw new Error("initializeWasm() must be awaited first!");
12796         }
12797         const nativeResponseValue = wasm.TS_COption_NetAddressZ_free(_res);
12798         // debug statements here
12799 }
12800         // uintptr_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
12801 /* @internal */
12802 export function COption_NetAddressZ_clone_ptr(arg: number): number {
12803         if(!isWasmInitialized) {
12804                 throw new Error("initializeWasm() must be awaited first!");
12805         }
12806         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone_ptr(arg);
12807         return nativeResponseValue;
12808 }
12809         // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
12810 /* @internal */
12811 export function COption_NetAddressZ_clone(orig: number): number {
12812         if(!isWasmInitialized) {
12813                 throw new Error("initializeWasm() must be awaited first!");
12814         }
12815         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone(orig);
12816         return nativeResponseValue;
12817 }
12818         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
12819 /* @internal */
12820 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): number {
12821         if(!isWasmInitialized) {
12822                 throw new Error("initializeWasm() must be awaited first!");
12823         }
12824         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
12825         return nativeResponseValue;
12826 }
12827         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
12828 /* @internal */
12829 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: number): number {
12830         if(!isWasmInitialized) {
12831                 throw new Error("initializeWasm() must be awaited first!");
12832         }
12833         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
12834         return nativeResponseValue;
12835 }
12836         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
12837 /* @internal */
12838 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: number): boolean {
12839         if(!isWasmInitialized) {
12840                 throw new Error("initializeWasm() must be awaited first!");
12841         }
12842         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
12843         return nativeResponseValue;
12844 }
12845         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
12846 /* @internal */
12847 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: number): void {
12848         if(!isWasmInitialized) {
12849                 throw new Error("initializeWasm() must be awaited first!");
12850         }
12851         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
12852         // debug statements here
12853 }
12854         // uintptr_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
12855 /* @internal */
12856 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: number): number {
12857         if(!isWasmInitialized) {
12858                 throw new Error("initializeWasm() must be awaited first!");
12859         }
12860         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
12861         return nativeResponseValue;
12862 }
12863         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
12864 /* @internal */
12865 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: number): number {
12866         if(!isWasmInitialized) {
12867                 throw new Error("initializeWasm() must be awaited first!");
12868         }
12869         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
12870         return nativeResponseValue;
12871 }
12872         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
12873 /* @internal */
12874 export function CResult_NonePeerHandleErrorZ_ok(): number {
12875         if(!isWasmInitialized) {
12876                 throw new Error("initializeWasm() must be awaited first!");
12877         }
12878         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
12879         return nativeResponseValue;
12880 }
12881         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
12882 /* @internal */
12883 export function CResult_NonePeerHandleErrorZ_err(e: number): number {
12884         if(!isWasmInitialized) {
12885                 throw new Error("initializeWasm() must be awaited first!");
12886         }
12887         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
12888         return nativeResponseValue;
12889 }
12890         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
12891 /* @internal */
12892 export function CResult_NonePeerHandleErrorZ_is_ok(o: number): boolean {
12893         if(!isWasmInitialized) {
12894                 throw new Error("initializeWasm() must be awaited first!");
12895         }
12896         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
12897         return nativeResponseValue;
12898 }
12899         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
12900 /* @internal */
12901 export function CResult_NonePeerHandleErrorZ_free(_res: number): void {
12902         if(!isWasmInitialized) {
12903                 throw new Error("initializeWasm() must be awaited first!");
12904         }
12905         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
12906         // debug statements here
12907 }
12908         // uintptr_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
12909 /* @internal */
12910 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: number): number {
12911         if(!isWasmInitialized) {
12912                 throw new Error("initializeWasm() must be awaited first!");
12913         }
12914         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
12915         return nativeResponseValue;
12916 }
12917         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
12918 /* @internal */
12919 export function CResult_NonePeerHandleErrorZ_clone(orig: number): number {
12920         if(!isWasmInitialized) {
12921                 throw new Error("initializeWasm() must be awaited first!");
12922         }
12923         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
12924         return nativeResponseValue;
12925 }
12926         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
12927 /* @internal */
12928 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): number {
12929         if(!isWasmInitialized) {
12930                 throw new Error("initializeWasm() must be awaited first!");
12931         }
12932         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
12933         return nativeResponseValue;
12934 }
12935         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
12936 /* @internal */
12937 export function CResult_boolPeerHandleErrorZ_err(e: number): number {
12938         if(!isWasmInitialized) {
12939                 throw new Error("initializeWasm() must be awaited first!");
12940         }
12941         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
12942         return nativeResponseValue;
12943 }
12944         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
12945 /* @internal */
12946 export function CResult_boolPeerHandleErrorZ_is_ok(o: number): boolean {
12947         if(!isWasmInitialized) {
12948                 throw new Error("initializeWasm() must be awaited first!");
12949         }
12950         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
12951         return nativeResponseValue;
12952 }
12953         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
12954 /* @internal */
12955 export function CResult_boolPeerHandleErrorZ_free(_res: number): void {
12956         if(!isWasmInitialized) {
12957                 throw new Error("initializeWasm() must be awaited first!");
12958         }
12959         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
12960         // debug statements here
12961 }
12962         // uintptr_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
12963 /* @internal */
12964 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: number): number {
12965         if(!isWasmInitialized) {
12966                 throw new Error("initializeWasm() must be awaited first!");
12967         }
12968         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
12969         return nativeResponseValue;
12970 }
12971         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
12972 /* @internal */
12973 export function CResult_boolPeerHandleErrorZ_clone(orig: number): number {
12974         if(!isWasmInitialized) {
12975                 throw new Error("initializeWasm() must be awaited first!");
12976         }
12977         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
12978         return nativeResponseValue;
12979 }
12980         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
12981 /* @internal */
12982 export function CResult_NoneErrorZ_ok(): number {
12983         if(!isWasmInitialized) {
12984                 throw new Error("initializeWasm() must be awaited first!");
12985         }
12986         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_ok();
12987         return nativeResponseValue;
12988 }
12989         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
12990 /* @internal */
12991 export function CResult_NoneErrorZ_err(e: IOError): number {
12992         if(!isWasmInitialized) {
12993                 throw new Error("initializeWasm() must be awaited first!");
12994         }
12995         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_err(e);
12996         return nativeResponseValue;
12997 }
12998         // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
12999 /* @internal */
13000 export function CResult_NoneErrorZ_is_ok(o: number): boolean {
13001         if(!isWasmInitialized) {
13002                 throw new Error("initializeWasm() must be awaited first!");
13003         }
13004         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_is_ok(o);
13005         return nativeResponseValue;
13006 }
13007         // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
13008 /* @internal */
13009 export function CResult_NoneErrorZ_free(_res: number): void {
13010         if(!isWasmInitialized) {
13011                 throw new Error("initializeWasm() must be awaited first!");
13012         }
13013         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_free(_res);
13014         // debug statements here
13015 }
13016         // uintptr_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
13017 /* @internal */
13018 export function CResult_NoneErrorZ_clone_ptr(arg: number): number {
13019         if(!isWasmInitialized) {
13020                 throw new Error("initializeWasm() must be awaited first!");
13021         }
13022         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone_ptr(arg);
13023         return nativeResponseValue;
13024 }
13025         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
13026 /* @internal */
13027 export function CResult_NoneErrorZ_clone(orig: number): number {
13028         if(!isWasmInitialized) {
13029                 throw new Error("initializeWasm() must be awaited first!");
13030         }
13031         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone(orig);
13032         return nativeResponseValue;
13033 }
13034         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
13035 /* @internal */
13036 export function CResult_NetAddressDecodeErrorZ_ok(o: number): number {
13037         if(!isWasmInitialized) {
13038                 throw new Error("initializeWasm() must be awaited first!");
13039         }
13040         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
13041         return nativeResponseValue;
13042 }
13043         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
13044 /* @internal */
13045 export function CResult_NetAddressDecodeErrorZ_err(e: number): number {
13046         if(!isWasmInitialized) {
13047                 throw new Error("initializeWasm() must be awaited first!");
13048         }
13049         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
13050         return nativeResponseValue;
13051 }
13052         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
13053 /* @internal */
13054 export function CResult_NetAddressDecodeErrorZ_is_ok(o: number): boolean {
13055         if(!isWasmInitialized) {
13056                 throw new Error("initializeWasm() must be awaited first!");
13057         }
13058         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
13059         return nativeResponseValue;
13060 }
13061         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
13062 /* @internal */
13063 export function CResult_NetAddressDecodeErrorZ_free(_res: number): void {
13064         if(!isWasmInitialized) {
13065                 throw new Error("initializeWasm() must be awaited first!");
13066         }
13067         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
13068         // debug statements here
13069 }
13070         // uintptr_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
13071 /* @internal */
13072 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: number): number {
13073         if(!isWasmInitialized) {
13074                 throw new Error("initializeWasm() must be awaited first!");
13075         }
13076         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
13077         return nativeResponseValue;
13078 }
13079         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
13080 /* @internal */
13081 export function CResult_NetAddressDecodeErrorZ_clone(orig: number): number {
13082         if(!isWasmInitialized) {
13083                 throw new Error("initializeWasm() must be awaited first!");
13084         }
13085         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
13086         return nativeResponseValue;
13087 }
13088         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
13089 /* @internal */
13090 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
13091         if(!isWasmInitialized) {
13092                 throw new Error("initializeWasm() must be awaited first!");
13093         }
13094         const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
13095         // debug statements here
13096 }
13097         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
13098 /* @internal */
13099 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
13100         if(!isWasmInitialized) {
13101                 throw new Error("initializeWasm() must be awaited first!");
13102         }
13103         const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
13104         // debug statements here
13105 }
13106         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
13107 /* @internal */
13108 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
13109         if(!isWasmInitialized) {
13110                 throw new Error("initializeWasm() must be awaited first!");
13111         }
13112         const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
13113         // debug statements here
13114 }
13115         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
13116 /* @internal */
13117 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
13118         if(!isWasmInitialized) {
13119                 throw new Error("initializeWasm() must be awaited first!");
13120         }
13121         const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
13122         // debug statements here
13123 }
13124         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
13125 /* @internal */
13126 export function CResult_AcceptChannelDecodeErrorZ_ok(o: number): number {
13127         if(!isWasmInitialized) {
13128                 throw new Error("initializeWasm() must be awaited first!");
13129         }
13130         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
13131         return nativeResponseValue;
13132 }
13133         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
13134 /* @internal */
13135 export function CResult_AcceptChannelDecodeErrorZ_err(e: number): number {
13136         if(!isWasmInitialized) {
13137                 throw new Error("initializeWasm() must be awaited first!");
13138         }
13139         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
13140         return nativeResponseValue;
13141 }
13142         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
13143 /* @internal */
13144 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: number): boolean {
13145         if(!isWasmInitialized) {
13146                 throw new Error("initializeWasm() must be awaited first!");
13147         }
13148         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
13149         return nativeResponseValue;
13150 }
13151         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
13152 /* @internal */
13153 export function CResult_AcceptChannelDecodeErrorZ_free(_res: number): void {
13154         if(!isWasmInitialized) {
13155                 throw new Error("initializeWasm() must be awaited first!");
13156         }
13157         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
13158         // debug statements here
13159 }
13160         // uintptr_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
13161 /* @internal */
13162 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: number): number {
13163         if(!isWasmInitialized) {
13164                 throw new Error("initializeWasm() must be awaited first!");
13165         }
13166         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
13167         return nativeResponseValue;
13168 }
13169         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
13170 /* @internal */
13171 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: number): number {
13172         if(!isWasmInitialized) {
13173                 throw new Error("initializeWasm() must be awaited first!");
13174         }
13175         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
13176         return nativeResponseValue;
13177 }
13178         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
13179 /* @internal */
13180 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: number): number {
13181         if(!isWasmInitialized) {
13182                 throw new Error("initializeWasm() must be awaited first!");
13183         }
13184         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
13185         return nativeResponseValue;
13186 }
13187         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
13188 /* @internal */
13189 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: number): number {
13190         if(!isWasmInitialized) {
13191                 throw new Error("initializeWasm() must be awaited first!");
13192         }
13193         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
13194         return nativeResponseValue;
13195 }
13196         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
13197 /* @internal */
13198 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: number): boolean {
13199         if(!isWasmInitialized) {
13200                 throw new Error("initializeWasm() must be awaited first!");
13201         }
13202         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
13203         return nativeResponseValue;
13204 }
13205         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
13206 /* @internal */
13207 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: number): void {
13208         if(!isWasmInitialized) {
13209                 throw new Error("initializeWasm() must be awaited first!");
13210         }
13211         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
13212         // debug statements here
13213 }
13214         // uintptr_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
13215 /* @internal */
13216 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: number): number {
13217         if(!isWasmInitialized) {
13218                 throw new Error("initializeWasm() must be awaited first!");
13219         }
13220         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
13221         return nativeResponseValue;
13222 }
13223         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
13224 /* @internal */
13225 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: number): number {
13226         if(!isWasmInitialized) {
13227                 throw new Error("initializeWasm() must be awaited first!");
13228         }
13229         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
13230         return nativeResponseValue;
13231 }
13232         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
13233 /* @internal */
13234 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: number): number {
13235         if(!isWasmInitialized) {
13236                 throw new Error("initializeWasm() must be awaited first!");
13237         }
13238         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
13239         return nativeResponseValue;
13240 }
13241         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
13242 /* @internal */
13243 export function CResult_ChannelReestablishDecodeErrorZ_err(e: number): number {
13244         if(!isWasmInitialized) {
13245                 throw new Error("initializeWasm() must be awaited first!");
13246         }
13247         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
13248         return nativeResponseValue;
13249 }
13250         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
13251 /* @internal */
13252 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: number): boolean {
13253         if(!isWasmInitialized) {
13254                 throw new Error("initializeWasm() must be awaited first!");
13255         }
13256         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
13257         return nativeResponseValue;
13258 }
13259         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
13260 /* @internal */
13261 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: number): void {
13262         if(!isWasmInitialized) {
13263                 throw new Error("initializeWasm() must be awaited first!");
13264         }
13265         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
13266         // debug statements here
13267 }
13268         // uintptr_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
13269 /* @internal */
13270 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: number): number {
13271         if(!isWasmInitialized) {
13272                 throw new Error("initializeWasm() must be awaited first!");
13273         }
13274         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
13275         return nativeResponseValue;
13276 }
13277         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
13278 /* @internal */
13279 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: number): number {
13280         if(!isWasmInitialized) {
13281                 throw new Error("initializeWasm() must be awaited first!");
13282         }
13283         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
13284         return nativeResponseValue;
13285 }
13286         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
13287 /* @internal */
13288 export function CResult_ClosingSignedDecodeErrorZ_ok(o: number): number {
13289         if(!isWasmInitialized) {
13290                 throw new Error("initializeWasm() must be awaited first!");
13291         }
13292         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
13293         return nativeResponseValue;
13294 }
13295         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13296 /* @internal */
13297 export function CResult_ClosingSignedDecodeErrorZ_err(e: number): number {
13298         if(!isWasmInitialized) {
13299                 throw new Error("initializeWasm() must be awaited first!");
13300         }
13301         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
13302         return nativeResponseValue;
13303 }
13304         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
13305 /* @internal */
13306 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: number): boolean {
13307         if(!isWasmInitialized) {
13308                 throw new Error("initializeWasm() must be awaited first!");
13309         }
13310         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
13311         return nativeResponseValue;
13312 }
13313         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
13314 /* @internal */
13315 export function CResult_ClosingSignedDecodeErrorZ_free(_res: number): void {
13316         if(!isWasmInitialized) {
13317                 throw new Error("initializeWasm() must be awaited first!");
13318         }
13319         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
13320         // debug statements here
13321 }
13322         // uintptr_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
13323 /* @internal */
13324 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13325         if(!isWasmInitialized) {
13326                 throw new Error("initializeWasm() must be awaited first!");
13327         }
13328         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
13329         return nativeResponseValue;
13330 }
13331         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
13332 /* @internal */
13333 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: number): number {
13334         if(!isWasmInitialized) {
13335                 throw new Error("initializeWasm() must be awaited first!");
13336         }
13337         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
13338         return nativeResponseValue;
13339 }
13340         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
13341 /* @internal */
13342 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: number): number {
13343         if(!isWasmInitialized) {
13344                 throw new Error("initializeWasm() must be awaited first!");
13345         }
13346         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
13347         return nativeResponseValue;
13348 }
13349         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
13350 /* @internal */
13351 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: number): number {
13352         if(!isWasmInitialized) {
13353                 throw new Error("initializeWasm() must be awaited first!");
13354         }
13355         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
13356         return nativeResponseValue;
13357 }
13358         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
13359 /* @internal */
13360 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: number): boolean {
13361         if(!isWasmInitialized) {
13362                 throw new Error("initializeWasm() must be awaited first!");
13363         }
13364         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
13365         return nativeResponseValue;
13366 }
13367         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
13368 /* @internal */
13369 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: number): void {
13370         if(!isWasmInitialized) {
13371                 throw new Error("initializeWasm() must be awaited first!");
13372         }
13373         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
13374         // debug statements here
13375 }
13376         // uintptr_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
13377 /* @internal */
13378 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: number): number {
13379         if(!isWasmInitialized) {
13380                 throw new Error("initializeWasm() must be awaited first!");
13381         }
13382         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
13383         return nativeResponseValue;
13384 }
13385         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
13386 /* @internal */
13387 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: number): number {
13388         if(!isWasmInitialized) {
13389                 throw new Error("initializeWasm() must be awaited first!");
13390         }
13391         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
13392         return nativeResponseValue;
13393 }
13394         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
13395 /* @internal */
13396 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: number): number {
13397         if(!isWasmInitialized) {
13398                 throw new Error("initializeWasm() must be awaited first!");
13399         }
13400         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
13401         return nativeResponseValue;
13402 }
13403         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
13404 /* @internal */
13405 export function CResult_CommitmentSignedDecodeErrorZ_err(e: number): number {
13406         if(!isWasmInitialized) {
13407                 throw new Error("initializeWasm() must be awaited first!");
13408         }
13409         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
13410         return nativeResponseValue;
13411 }
13412         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
13413 /* @internal */
13414 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: number): boolean {
13415         if(!isWasmInitialized) {
13416                 throw new Error("initializeWasm() must be awaited first!");
13417         }
13418         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
13419         return nativeResponseValue;
13420 }
13421         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
13422 /* @internal */
13423 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: number): void {
13424         if(!isWasmInitialized) {
13425                 throw new Error("initializeWasm() must be awaited first!");
13426         }
13427         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
13428         // debug statements here
13429 }
13430         // uintptr_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
13431 /* @internal */
13432 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: number): number {
13433         if(!isWasmInitialized) {
13434                 throw new Error("initializeWasm() must be awaited first!");
13435         }
13436         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
13437         return nativeResponseValue;
13438 }
13439         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
13440 /* @internal */
13441 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: number): number {
13442         if(!isWasmInitialized) {
13443                 throw new Error("initializeWasm() must be awaited first!");
13444         }
13445         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
13446         return nativeResponseValue;
13447 }
13448         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
13449 /* @internal */
13450 export function CResult_FundingCreatedDecodeErrorZ_ok(o: number): number {
13451         if(!isWasmInitialized) {
13452                 throw new Error("initializeWasm() must be awaited first!");
13453         }
13454         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
13455         return nativeResponseValue;
13456 }
13457         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
13458 /* @internal */
13459 export function CResult_FundingCreatedDecodeErrorZ_err(e: number): number {
13460         if(!isWasmInitialized) {
13461                 throw new Error("initializeWasm() must be awaited first!");
13462         }
13463         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
13464         return nativeResponseValue;
13465 }
13466         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
13467 /* @internal */
13468 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: number): boolean {
13469         if(!isWasmInitialized) {
13470                 throw new Error("initializeWasm() must be awaited first!");
13471         }
13472         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
13473         return nativeResponseValue;
13474 }
13475         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
13476 /* @internal */
13477 export function CResult_FundingCreatedDecodeErrorZ_free(_res: number): void {
13478         if(!isWasmInitialized) {
13479                 throw new Error("initializeWasm() must be awaited first!");
13480         }
13481         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
13482         // debug statements here
13483 }
13484         // uintptr_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
13485 /* @internal */
13486 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: number): number {
13487         if(!isWasmInitialized) {
13488                 throw new Error("initializeWasm() must be awaited first!");
13489         }
13490         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
13491         return nativeResponseValue;
13492 }
13493         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
13494 /* @internal */
13495 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: number): number {
13496         if(!isWasmInitialized) {
13497                 throw new Error("initializeWasm() must be awaited first!");
13498         }
13499         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
13500         return nativeResponseValue;
13501 }
13502         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
13503 /* @internal */
13504 export function CResult_FundingSignedDecodeErrorZ_ok(o: number): number {
13505         if(!isWasmInitialized) {
13506                 throw new Error("initializeWasm() must be awaited first!");
13507         }
13508         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
13509         return nativeResponseValue;
13510 }
13511         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13512 /* @internal */
13513 export function CResult_FundingSignedDecodeErrorZ_err(e: number): number {
13514         if(!isWasmInitialized) {
13515                 throw new Error("initializeWasm() must be awaited first!");
13516         }
13517         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
13518         return nativeResponseValue;
13519 }
13520         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
13521 /* @internal */
13522 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: number): boolean {
13523         if(!isWasmInitialized) {
13524                 throw new Error("initializeWasm() must be awaited first!");
13525         }
13526         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
13527         return nativeResponseValue;
13528 }
13529         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
13530 /* @internal */
13531 export function CResult_FundingSignedDecodeErrorZ_free(_res: number): void {
13532         if(!isWasmInitialized) {
13533                 throw new Error("initializeWasm() must be awaited first!");
13534         }
13535         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
13536         // debug statements here
13537 }
13538         // uintptr_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
13539 /* @internal */
13540 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13541         if(!isWasmInitialized) {
13542                 throw new Error("initializeWasm() must be awaited first!");
13543         }
13544         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
13545         return nativeResponseValue;
13546 }
13547         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
13548 /* @internal */
13549 export function CResult_FundingSignedDecodeErrorZ_clone(orig: number): number {
13550         if(!isWasmInitialized) {
13551                 throw new Error("initializeWasm() must be awaited first!");
13552         }
13553         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
13554         return nativeResponseValue;
13555 }
13556         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
13557 /* @internal */
13558 export function CResult_ChannelReadyDecodeErrorZ_ok(o: number): number {
13559         if(!isWasmInitialized) {
13560                 throw new Error("initializeWasm() must be awaited first!");
13561         }
13562         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_ok(o);
13563         return nativeResponseValue;
13564 }
13565         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
13566 /* @internal */
13567 export function CResult_ChannelReadyDecodeErrorZ_err(e: number): number {
13568         if(!isWasmInitialized) {
13569                 throw new Error("initializeWasm() must be awaited first!");
13570         }
13571         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_err(e);
13572         return nativeResponseValue;
13573 }
13574         // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
13575 /* @internal */
13576 export function CResult_ChannelReadyDecodeErrorZ_is_ok(o: number): boolean {
13577         if(!isWasmInitialized) {
13578                 throw new Error("initializeWasm() must be awaited first!");
13579         }
13580         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_is_ok(o);
13581         return nativeResponseValue;
13582 }
13583         // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
13584 /* @internal */
13585 export function CResult_ChannelReadyDecodeErrorZ_free(_res: number): void {
13586         if(!isWasmInitialized) {
13587                 throw new Error("initializeWasm() must be awaited first!");
13588         }
13589         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_free(_res);
13590         // debug statements here
13591 }
13592         // uintptr_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
13593 /* @internal */
13594 export function CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg: number): number {
13595         if(!isWasmInitialized) {
13596                 throw new Error("initializeWasm() must be awaited first!");
13597         }
13598         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg);
13599         return nativeResponseValue;
13600 }
13601         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
13602 /* @internal */
13603 export function CResult_ChannelReadyDecodeErrorZ_clone(orig: number): number {
13604         if(!isWasmInitialized) {
13605                 throw new Error("initializeWasm() must be awaited first!");
13606         }
13607         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone(orig);
13608         return nativeResponseValue;
13609 }
13610         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
13611 /* @internal */
13612 export function CResult_InitDecodeErrorZ_ok(o: number): number {
13613         if(!isWasmInitialized) {
13614                 throw new Error("initializeWasm() must be awaited first!");
13615         }
13616         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
13617         return nativeResponseValue;
13618 }
13619         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
13620 /* @internal */
13621 export function CResult_InitDecodeErrorZ_err(e: number): number {
13622         if(!isWasmInitialized) {
13623                 throw new Error("initializeWasm() must be awaited first!");
13624         }
13625         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
13626         return nativeResponseValue;
13627 }
13628         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
13629 /* @internal */
13630 export function CResult_InitDecodeErrorZ_is_ok(o: number): boolean {
13631         if(!isWasmInitialized) {
13632                 throw new Error("initializeWasm() must be awaited first!");
13633         }
13634         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
13635         return nativeResponseValue;
13636 }
13637         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
13638 /* @internal */
13639 export function CResult_InitDecodeErrorZ_free(_res: number): void {
13640         if(!isWasmInitialized) {
13641                 throw new Error("initializeWasm() must be awaited first!");
13642         }
13643         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
13644         // debug statements here
13645 }
13646         // uintptr_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
13647 /* @internal */
13648 export function CResult_InitDecodeErrorZ_clone_ptr(arg: number): number {
13649         if(!isWasmInitialized) {
13650                 throw new Error("initializeWasm() must be awaited first!");
13651         }
13652         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
13653         return nativeResponseValue;
13654 }
13655         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
13656 /* @internal */
13657 export function CResult_InitDecodeErrorZ_clone(orig: number): number {
13658         if(!isWasmInitialized) {
13659                 throw new Error("initializeWasm() must be awaited first!");
13660         }
13661         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
13662         return nativeResponseValue;
13663 }
13664         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
13665 /* @internal */
13666 export function CResult_OpenChannelDecodeErrorZ_ok(o: number): number {
13667         if(!isWasmInitialized) {
13668                 throw new Error("initializeWasm() must be awaited first!");
13669         }
13670         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
13671         return nativeResponseValue;
13672 }
13673         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
13674 /* @internal */
13675 export function CResult_OpenChannelDecodeErrorZ_err(e: number): number {
13676         if(!isWasmInitialized) {
13677                 throw new Error("initializeWasm() must be awaited first!");
13678         }
13679         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
13680         return nativeResponseValue;
13681 }
13682         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
13683 /* @internal */
13684 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: number): boolean {
13685         if(!isWasmInitialized) {
13686                 throw new Error("initializeWasm() must be awaited first!");
13687         }
13688         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
13689         return nativeResponseValue;
13690 }
13691         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
13692 /* @internal */
13693 export function CResult_OpenChannelDecodeErrorZ_free(_res: number): void {
13694         if(!isWasmInitialized) {
13695                 throw new Error("initializeWasm() must be awaited first!");
13696         }
13697         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
13698         // debug statements here
13699 }
13700         // uintptr_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
13701 /* @internal */
13702 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: number): number {
13703         if(!isWasmInitialized) {
13704                 throw new Error("initializeWasm() must be awaited first!");
13705         }
13706         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
13707         return nativeResponseValue;
13708 }
13709         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
13710 /* @internal */
13711 export function CResult_OpenChannelDecodeErrorZ_clone(orig: number): number {
13712         if(!isWasmInitialized) {
13713                 throw new Error("initializeWasm() must be awaited first!");
13714         }
13715         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
13716         return nativeResponseValue;
13717 }
13718         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
13719 /* @internal */
13720 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: number): number {
13721         if(!isWasmInitialized) {
13722                 throw new Error("initializeWasm() must be awaited first!");
13723         }
13724         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
13725         return nativeResponseValue;
13726 }
13727         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
13728 /* @internal */
13729 export function CResult_RevokeAndACKDecodeErrorZ_err(e: number): number {
13730         if(!isWasmInitialized) {
13731                 throw new Error("initializeWasm() must be awaited first!");
13732         }
13733         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
13734         return nativeResponseValue;
13735 }
13736         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
13737 /* @internal */
13738 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: number): boolean {
13739         if(!isWasmInitialized) {
13740                 throw new Error("initializeWasm() must be awaited first!");
13741         }
13742         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
13743         return nativeResponseValue;
13744 }
13745         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
13746 /* @internal */
13747 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: number): void {
13748         if(!isWasmInitialized) {
13749                 throw new Error("initializeWasm() must be awaited first!");
13750         }
13751         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
13752         // debug statements here
13753 }
13754         // uintptr_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
13755 /* @internal */
13756 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: number): number {
13757         if(!isWasmInitialized) {
13758                 throw new Error("initializeWasm() must be awaited first!");
13759         }
13760         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
13761         return nativeResponseValue;
13762 }
13763         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
13764 /* @internal */
13765 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: number): number {
13766         if(!isWasmInitialized) {
13767                 throw new Error("initializeWasm() must be awaited first!");
13768         }
13769         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
13770         return nativeResponseValue;
13771 }
13772         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
13773 /* @internal */
13774 export function CResult_ShutdownDecodeErrorZ_ok(o: number): number {
13775         if(!isWasmInitialized) {
13776                 throw new Error("initializeWasm() must be awaited first!");
13777         }
13778         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
13779         return nativeResponseValue;
13780 }
13781         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
13782 /* @internal */
13783 export function CResult_ShutdownDecodeErrorZ_err(e: number): number {
13784         if(!isWasmInitialized) {
13785                 throw new Error("initializeWasm() must be awaited first!");
13786         }
13787         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
13788         return nativeResponseValue;
13789 }
13790         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
13791 /* @internal */
13792 export function CResult_ShutdownDecodeErrorZ_is_ok(o: number): boolean {
13793         if(!isWasmInitialized) {
13794                 throw new Error("initializeWasm() must be awaited first!");
13795         }
13796         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
13797         return nativeResponseValue;
13798 }
13799         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
13800 /* @internal */
13801 export function CResult_ShutdownDecodeErrorZ_free(_res: number): void {
13802         if(!isWasmInitialized) {
13803                 throw new Error("initializeWasm() must be awaited first!");
13804         }
13805         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
13806         // debug statements here
13807 }
13808         // uintptr_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
13809 /* @internal */
13810 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: number): number {
13811         if(!isWasmInitialized) {
13812                 throw new Error("initializeWasm() must be awaited first!");
13813         }
13814         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
13815         return nativeResponseValue;
13816 }
13817         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
13818 /* @internal */
13819 export function CResult_ShutdownDecodeErrorZ_clone(orig: number): number {
13820         if(!isWasmInitialized) {
13821                 throw new Error("initializeWasm() must be awaited first!");
13822         }
13823         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
13824         return nativeResponseValue;
13825 }
13826         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
13827 /* @internal */
13828 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: number): number {
13829         if(!isWasmInitialized) {
13830                 throw new Error("initializeWasm() must be awaited first!");
13831         }
13832         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
13833         return nativeResponseValue;
13834 }
13835         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13836 /* @internal */
13837 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: number): number {
13838         if(!isWasmInitialized) {
13839                 throw new Error("initializeWasm() must be awaited first!");
13840         }
13841         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
13842         return nativeResponseValue;
13843 }
13844         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
13845 /* @internal */
13846 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: number): boolean {
13847         if(!isWasmInitialized) {
13848                 throw new Error("initializeWasm() must be awaited first!");
13849         }
13850         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
13851         return nativeResponseValue;
13852 }
13853         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
13854 /* @internal */
13855 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: number): void {
13856         if(!isWasmInitialized) {
13857                 throw new Error("initializeWasm() must be awaited first!");
13858         }
13859         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
13860         // debug statements here
13861 }
13862         // uintptr_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
13863 /* @internal */
13864 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13865         if(!isWasmInitialized) {
13866                 throw new Error("initializeWasm() must be awaited first!");
13867         }
13868         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
13869         return nativeResponseValue;
13870 }
13871         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
13872 /* @internal */
13873 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: number): number {
13874         if(!isWasmInitialized) {
13875                 throw new Error("initializeWasm() must be awaited first!");
13876         }
13877         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
13878         return nativeResponseValue;
13879 }
13880         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
13881 /* @internal */
13882 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: number): number {
13883         if(!isWasmInitialized) {
13884                 throw new Error("initializeWasm() must be awaited first!");
13885         }
13886         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
13887         return nativeResponseValue;
13888 }
13889         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13890 /* @internal */
13891 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: number): number {
13892         if(!isWasmInitialized) {
13893                 throw new Error("initializeWasm() must be awaited first!");
13894         }
13895         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
13896         return nativeResponseValue;
13897 }
13898         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
13899 /* @internal */
13900 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: number): boolean {
13901         if(!isWasmInitialized) {
13902                 throw new Error("initializeWasm() must be awaited first!");
13903         }
13904         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
13905         return nativeResponseValue;
13906 }
13907         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
13908 /* @internal */
13909 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: number): void {
13910         if(!isWasmInitialized) {
13911                 throw new Error("initializeWasm() must be awaited first!");
13912         }
13913         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
13914         // debug statements here
13915 }
13916         // uintptr_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
13917 /* @internal */
13918 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13919         if(!isWasmInitialized) {
13920                 throw new Error("initializeWasm() must be awaited first!");
13921         }
13922         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
13923         return nativeResponseValue;
13924 }
13925         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
13926 /* @internal */
13927 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: number): number {
13928         if(!isWasmInitialized) {
13929                 throw new Error("initializeWasm() must be awaited first!");
13930         }
13931         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
13932         return nativeResponseValue;
13933 }
13934         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
13935 /* @internal */
13936 export function CResult_UpdateFeeDecodeErrorZ_ok(o: number): number {
13937         if(!isWasmInitialized) {
13938                 throw new Error("initializeWasm() must be awaited first!");
13939         }
13940         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
13941         return nativeResponseValue;
13942 }
13943         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
13944 /* @internal */
13945 export function CResult_UpdateFeeDecodeErrorZ_err(e: number): number {
13946         if(!isWasmInitialized) {
13947                 throw new Error("initializeWasm() must be awaited first!");
13948         }
13949         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
13950         return nativeResponseValue;
13951 }
13952         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
13953 /* @internal */
13954 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: number): boolean {
13955         if(!isWasmInitialized) {
13956                 throw new Error("initializeWasm() must be awaited first!");
13957         }
13958         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
13959         return nativeResponseValue;
13960 }
13961         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
13962 /* @internal */
13963 export function CResult_UpdateFeeDecodeErrorZ_free(_res: number): void {
13964         if(!isWasmInitialized) {
13965                 throw new Error("initializeWasm() must be awaited first!");
13966         }
13967         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
13968         // debug statements here
13969 }
13970         // uintptr_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
13971 /* @internal */
13972 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: number): number {
13973         if(!isWasmInitialized) {
13974                 throw new Error("initializeWasm() must be awaited first!");
13975         }
13976         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
13977         return nativeResponseValue;
13978 }
13979         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
13980 /* @internal */
13981 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: number): number {
13982         if(!isWasmInitialized) {
13983                 throw new Error("initializeWasm() must be awaited first!");
13984         }
13985         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
13986         return nativeResponseValue;
13987 }
13988         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
13989 /* @internal */
13990 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: number): number {
13991         if(!isWasmInitialized) {
13992                 throw new Error("initializeWasm() must be awaited first!");
13993         }
13994         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
13995         return nativeResponseValue;
13996 }
13997         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13998 /* @internal */
13999 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: number): number {
14000         if(!isWasmInitialized) {
14001                 throw new Error("initializeWasm() must be awaited first!");
14002         }
14003         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
14004         return nativeResponseValue;
14005 }
14006         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
14007 /* @internal */
14008 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: number): boolean {
14009         if(!isWasmInitialized) {
14010                 throw new Error("initializeWasm() must be awaited first!");
14011         }
14012         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
14013         return nativeResponseValue;
14014 }
14015         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
14016 /* @internal */
14017 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: number): void {
14018         if(!isWasmInitialized) {
14019                 throw new Error("initializeWasm() must be awaited first!");
14020         }
14021         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
14022         // debug statements here
14023 }
14024         // uintptr_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
14025 /* @internal */
14026 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14027         if(!isWasmInitialized) {
14028                 throw new Error("initializeWasm() must be awaited first!");
14029         }
14030         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
14031         return nativeResponseValue;
14032 }
14033         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
14034 /* @internal */
14035 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: number): number {
14036         if(!isWasmInitialized) {
14037                 throw new Error("initializeWasm() must be awaited first!");
14038         }
14039         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
14040         return nativeResponseValue;
14041 }
14042         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
14043 /* @internal */
14044 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: number): number {
14045         if(!isWasmInitialized) {
14046                 throw new Error("initializeWasm() must be awaited first!");
14047         }
14048         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
14049         return nativeResponseValue;
14050 }
14051         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14052 /* @internal */
14053 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: number): number {
14054         if(!isWasmInitialized) {
14055                 throw new Error("initializeWasm() must be awaited first!");
14056         }
14057         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
14058         return nativeResponseValue;
14059 }
14060         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
14061 /* @internal */
14062 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: number): boolean {
14063         if(!isWasmInitialized) {
14064                 throw new Error("initializeWasm() must be awaited first!");
14065         }
14066         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
14067         return nativeResponseValue;
14068 }
14069         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
14070 /* @internal */
14071 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: number): void {
14072         if(!isWasmInitialized) {
14073                 throw new Error("initializeWasm() must be awaited first!");
14074         }
14075         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
14076         // debug statements here
14077 }
14078         // uintptr_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
14079 /* @internal */
14080 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14081         if(!isWasmInitialized) {
14082                 throw new Error("initializeWasm() must be awaited first!");
14083         }
14084         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
14085         return nativeResponseValue;
14086 }
14087         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
14088 /* @internal */
14089 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: number): number {
14090         if(!isWasmInitialized) {
14091                 throw new Error("initializeWasm() must be awaited first!");
14092         }
14093         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
14094         return nativeResponseValue;
14095 }
14096         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
14097 /* @internal */
14098 export function CResult_PingDecodeErrorZ_ok(o: number): number {
14099         if(!isWasmInitialized) {
14100                 throw new Error("initializeWasm() must be awaited first!");
14101         }
14102         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
14103         return nativeResponseValue;
14104 }
14105         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
14106 /* @internal */
14107 export function CResult_PingDecodeErrorZ_err(e: number): number {
14108         if(!isWasmInitialized) {
14109                 throw new Error("initializeWasm() must be awaited first!");
14110         }
14111         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
14112         return nativeResponseValue;
14113 }
14114         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
14115 /* @internal */
14116 export function CResult_PingDecodeErrorZ_is_ok(o: number): boolean {
14117         if(!isWasmInitialized) {
14118                 throw new Error("initializeWasm() must be awaited first!");
14119         }
14120         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
14121         return nativeResponseValue;
14122 }
14123         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
14124 /* @internal */
14125 export function CResult_PingDecodeErrorZ_free(_res: number): void {
14126         if(!isWasmInitialized) {
14127                 throw new Error("initializeWasm() must be awaited first!");
14128         }
14129         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
14130         // debug statements here
14131 }
14132         // uintptr_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
14133 /* @internal */
14134 export function CResult_PingDecodeErrorZ_clone_ptr(arg: number): number {
14135         if(!isWasmInitialized) {
14136                 throw new Error("initializeWasm() must be awaited first!");
14137         }
14138         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
14139         return nativeResponseValue;
14140 }
14141         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
14142 /* @internal */
14143 export function CResult_PingDecodeErrorZ_clone(orig: number): number {
14144         if(!isWasmInitialized) {
14145                 throw new Error("initializeWasm() must be awaited first!");
14146         }
14147         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
14148         return nativeResponseValue;
14149 }
14150         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
14151 /* @internal */
14152 export function CResult_PongDecodeErrorZ_ok(o: number): number {
14153         if(!isWasmInitialized) {
14154                 throw new Error("initializeWasm() must be awaited first!");
14155         }
14156         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
14157         return nativeResponseValue;
14158 }
14159         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
14160 /* @internal */
14161 export function CResult_PongDecodeErrorZ_err(e: number): number {
14162         if(!isWasmInitialized) {
14163                 throw new Error("initializeWasm() must be awaited first!");
14164         }
14165         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
14166         return nativeResponseValue;
14167 }
14168         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
14169 /* @internal */
14170 export function CResult_PongDecodeErrorZ_is_ok(o: number): boolean {
14171         if(!isWasmInitialized) {
14172                 throw new Error("initializeWasm() must be awaited first!");
14173         }
14174         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
14175         return nativeResponseValue;
14176 }
14177         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
14178 /* @internal */
14179 export function CResult_PongDecodeErrorZ_free(_res: number): void {
14180         if(!isWasmInitialized) {
14181                 throw new Error("initializeWasm() must be awaited first!");
14182         }
14183         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
14184         // debug statements here
14185 }
14186         // uintptr_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
14187 /* @internal */
14188 export function CResult_PongDecodeErrorZ_clone_ptr(arg: number): number {
14189         if(!isWasmInitialized) {
14190                 throw new Error("initializeWasm() must be awaited first!");
14191         }
14192         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
14193         return nativeResponseValue;
14194 }
14195         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
14196 /* @internal */
14197 export function CResult_PongDecodeErrorZ_clone(orig: number): number {
14198         if(!isWasmInitialized) {
14199                 throw new Error("initializeWasm() must be awaited first!");
14200         }
14201         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
14202         return nativeResponseValue;
14203 }
14204         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
14205 /* @internal */
14206 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: number): number {
14207         if(!isWasmInitialized) {
14208                 throw new Error("initializeWasm() must be awaited first!");
14209         }
14210         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
14211         return nativeResponseValue;
14212 }
14213         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14214 /* @internal */
14215 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: number): number {
14216         if(!isWasmInitialized) {
14217                 throw new Error("initializeWasm() must be awaited first!");
14218         }
14219         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
14220         return nativeResponseValue;
14221 }
14222         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
14223 /* @internal */
14224 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14225         if(!isWasmInitialized) {
14226                 throw new Error("initializeWasm() must be awaited first!");
14227         }
14228         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
14229         return nativeResponseValue;
14230 }
14231         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
14232 /* @internal */
14233 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: number): void {
14234         if(!isWasmInitialized) {
14235                 throw new Error("initializeWasm() must be awaited first!");
14236         }
14237         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
14238         // debug statements here
14239 }
14240         // uintptr_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14241 /* @internal */
14242 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14243         if(!isWasmInitialized) {
14244                 throw new Error("initializeWasm() must be awaited first!");
14245         }
14246         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
14247         return nativeResponseValue;
14248 }
14249         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14250 /* @internal */
14251 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
14252         if(!isWasmInitialized) {
14253                 throw new Error("initializeWasm() must be awaited first!");
14254         }
14255         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
14256         return nativeResponseValue;
14257 }
14258         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
14259 /* @internal */
14260 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: number): number {
14261         if(!isWasmInitialized) {
14262                 throw new Error("initializeWasm() must be awaited first!");
14263         }
14264         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
14265         return nativeResponseValue;
14266 }
14267         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14268 /* @internal */
14269 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: number): number {
14270         if(!isWasmInitialized) {
14271                 throw new Error("initializeWasm() must be awaited first!");
14272         }
14273         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
14274         return nativeResponseValue;
14275 }
14276         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
14277 /* @internal */
14278 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14279         if(!isWasmInitialized) {
14280                 throw new Error("initializeWasm() must be awaited first!");
14281         }
14282         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
14283         return nativeResponseValue;
14284 }
14285         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
14286 /* @internal */
14287 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: number): void {
14288         if(!isWasmInitialized) {
14289                 throw new Error("initializeWasm() must be awaited first!");
14290         }
14291         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
14292         // debug statements here
14293 }
14294         // uintptr_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14295 /* @internal */
14296 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14297         if(!isWasmInitialized) {
14298                 throw new Error("initializeWasm() must be awaited first!");
14299         }
14300         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
14301         return nativeResponseValue;
14302 }
14303         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14304 /* @internal */
14305 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
14306         if(!isWasmInitialized) {
14307                 throw new Error("initializeWasm() must be awaited first!");
14308         }
14309         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
14310         return nativeResponseValue;
14311 }
14312         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
14313 /* @internal */
14314 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: number): number {
14315         if(!isWasmInitialized) {
14316                 throw new Error("initializeWasm() must be awaited first!");
14317         }
14318         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
14319         return nativeResponseValue;
14320 }
14321         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14322 /* @internal */
14323 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: number): number {
14324         if(!isWasmInitialized) {
14325                 throw new Error("initializeWasm() must be awaited first!");
14326         }
14327         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
14328         return nativeResponseValue;
14329 }
14330         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14331 /* @internal */
14332 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14333         if(!isWasmInitialized) {
14334                 throw new Error("initializeWasm() must be awaited first!");
14335         }
14336         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
14337         return nativeResponseValue;
14338 }
14339         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
14340 /* @internal */
14341 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: number): void {
14342         if(!isWasmInitialized) {
14343                 throw new Error("initializeWasm() must be awaited first!");
14344         }
14345         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
14346         // debug statements here
14347 }
14348         // uintptr_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14349 /* @internal */
14350 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14351         if(!isWasmInitialized) {
14352                 throw new Error("initializeWasm() must be awaited first!");
14353         }
14354         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
14355         return nativeResponseValue;
14356 }
14357         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14358 /* @internal */
14359 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: number): number {
14360         if(!isWasmInitialized) {
14361                 throw new Error("initializeWasm() must be awaited first!");
14362         }
14363         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
14364         return nativeResponseValue;
14365 }
14366         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
14367 /* @internal */
14368 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: number): number {
14369         if(!isWasmInitialized) {
14370                 throw new Error("initializeWasm() must be awaited first!");
14371         }
14372         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
14373         return nativeResponseValue;
14374 }
14375         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14376 /* @internal */
14377 export function CResult_ChannelUpdateDecodeErrorZ_err(e: number): number {
14378         if(!isWasmInitialized) {
14379                 throw new Error("initializeWasm() must be awaited first!");
14380         }
14381         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
14382         return nativeResponseValue;
14383 }
14384         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14385 /* @internal */
14386 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14387         if(!isWasmInitialized) {
14388                 throw new Error("initializeWasm() must be awaited first!");
14389         }
14390         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
14391         return nativeResponseValue;
14392 }
14393         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
14394 /* @internal */
14395 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: number): void {
14396         if(!isWasmInitialized) {
14397                 throw new Error("initializeWasm() must be awaited first!");
14398         }
14399         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
14400         // debug statements here
14401 }
14402         // uintptr_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14403 /* @internal */
14404 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14405         if(!isWasmInitialized) {
14406                 throw new Error("initializeWasm() must be awaited first!");
14407         }
14408         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
14409         return nativeResponseValue;
14410 }
14411         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14412 /* @internal */
14413 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: number): number {
14414         if(!isWasmInitialized) {
14415                 throw new Error("initializeWasm() must be awaited first!");
14416         }
14417         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
14418         return nativeResponseValue;
14419 }
14420         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
14421 /* @internal */
14422 export function CResult_ErrorMessageDecodeErrorZ_ok(o: number): number {
14423         if(!isWasmInitialized) {
14424                 throw new Error("initializeWasm() must be awaited first!");
14425         }
14426         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
14427         return nativeResponseValue;
14428 }
14429         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
14430 /* @internal */
14431 export function CResult_ErrorMessageDecodeErrorZ_err(e: number): number {
14432         if(!isWasmInitialized) {
14433                 throw new Error("initializeWasm() must be awaited first!");
14434         }
14435         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
14436         return nativeResponseValue;
14437 }
14438         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
14439 /* @internal */
14440 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: number): boolean {
14441         if(!isWasmInitialized) {
14442                 throw new Error("initializeWasm() must be awaited first!");
14443         }
14444         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
14445         return nativeResponseValue;
14446 }
14447         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
14448 /* @internal */
14449 export function CResult_ErrorMessageDecodeErrorZ_free(_res: number): void {
14450         if(!isWasmInitialized) {
14451                 throw new Error("initializeWasm() must be awaited first!");
14452         }
14453         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
14454         // debug statements here
14455 }
14456         // uintptr_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
14457 /* @internal */
14458 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: number): number {
14459         if(!isWasmInitialized) {
14460                 throw new Error("initializeWasm() must be awaited first!");
14461         }
14462         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
14463         return nativeResponseValue;
14464 }
14465         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
14466 /* @internal */
14467 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: number): number {
14468         if(!isWasmInitialized) {
14469                 throw new Error("initializeWasm() must be awaited first!");
14470         }
14471         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
14472         return nativeResponseValue;
14473 }
14474         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
14475 /* @internal */
14476 export function CResult_WarningMessageDecodeErrorZ_ok(o: number): number {
14477         if(!isWasmInitialized) {
14478                 throw new Error("initializeWasm() must be awaited first!");
14479         }
14480         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
14481         return nativeResponseValue;
14482 }
14483         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
14484 /* @internal */
14485 export function CResult_WarningMessageDecodeErrorZ_err(e: number): number {
14486         if(!isWasmInitialized) {
14487                 throw new Error("initializeWasm() must be awaited first!");
14488         }
14489         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
14490         return nativeResponseValue;
14491 }
14492         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
14493 /* @internal */
14494 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: number): boolean {
14495         if(!isWasmInitialized) {
14496                 throw new Error("initializeWasm() must be awaited first!");
14497         }
14498         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
14499         return nativeResponseValue;
14500 }
14501         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
14502 /* @internal */
14503 export function CResult_WarningMessageDecodeErrorZ_free(_res: number): void {
14504         if(!isWasmInitialized) {
14505                 throw new Error("initializeWasm() must be awaited first!");
14506         }
14507         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
14508         // debug statements here
14509 }
14510         // uintptr_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
14511 /* @internal */
14512 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: number): number {
14513         if(!isWasmInitialized) {
14514                 throw new Error("initializeWasm() must be awaited first!");
14515         }
14516         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
14517         return nativeResponseValue;
14518 }
14519         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
14520 /* @internal */
14521 export function CResult_WarningMessageDecodeErrorZ_clone(orig: number): number {
14522         if(!isWasmInitialized) {
14523                 throw new Error("initializeWasm() must be awaited first!");
14524         }
14525         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
14526         return nativeResponseValue;
14527 }
14528         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
14529 /* @internal */
14530 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: number): number {
14531         if(!isWasmInitialized) {
14532                 throw new Error("initializeWasm() must be awaited first!");
14533         }
14534         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
14535         return nativeResponseValue;
14536 }
14537         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14538 /* @internal */
14539 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: number): number {
14540         if(!isWasmInitialized) {
14541                 throw new Error("initializeWasm() must be awaited first!");
14542         }
14543         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
14544         return nativeResponseValue;
14545 }
14546         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14547 /* @internal */
14548 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14549         if(!isWasmInitialized) {
14550                 throw new Error("initializeWasm() must be awaited first!");
14551         }
14552         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
14553         return nativeResponseValue;
14554 }
14555         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
14556 /* @internal */
14557 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: number): void {
14558         if(!isWasmInitialized) {
14559                 throw new Error("initializeWasm() must be awaited first!");
14560         }
14561         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
14562         // debug statements here
14563 }
14564         // uintptr_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14565 /* @internal */
14566 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14567         if(!isWasmInitialized) {
14568                 throw new Error("initializeWasm() must be awaited first!");
14569         }
14570         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14571         return nativeResponseValue;
14572 }
14573         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14574 /* @internal */
14575 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14576         if(!isWasmInitialized) {
14577                 throw new Error("initializeWasm() must be awaited first!");
14578         }
14579         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
14580         return nativeResponseValue;
14581 }
14582         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
14583 /* @internal */
14584 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: number): number {
14585         if(!isWasmInitialized) {
14586                 throw new Error("initializeWasm() must be awaited first!");
14587         }
14588         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
14589         return nativeResponseValue;
14590 }
14591         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14592 /* @internal */
14593 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: number): number {
14594         if(!isWasmInitialized) {
14595                 throw new Error("initializeWasm() must be awaited first!");
14596         }
14597         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
14598         return nativeResponseValue;
14599 }
14600         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14601 /* @internal */
14602 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14603         if(!isWasmInitialized) {
14604                 throw new Error("initializeWasm() must be awaited first!");
14605         }
14606         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
14607         return nativeResponseValue;
14608 }
14609         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
14610 /* @internal */
14611 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: number): void {
14612         if(!isWasmInitialized) {
14613                 throw new Error("initializeWasm() must be awaited first!");
14614         }
14615         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
14616         // debug statements here
14617 }
14618         // uintptr_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14619 /* @internal */
14620 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14621         if(!isWasmInitialized) {
14622                 throw new Error("initializeWasm() must be awaited first!");
14623         }
14624         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14625         return nativeResponseValue;
14626 }
14627         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14628 /* @internal */
14629 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14630         if(!isWasmInitialized) {
14631                 throw new Error("initializeWasm() must be awaited first!");
14632         }
14633         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
14634         return nativeResponseValue;
14635 }
14636         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
14637 /* @internal */
14638 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: number): number {
14639         if(!isWasmInitialized) {
14640                 throw new Error("initializeWasm() must be awaited first!");
14641         }
14642         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
14643         return nativeResponseValue;
14644 }
14645         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
14646 /* @internal */
14647 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: number): number {
14648         if(!isWasmInitialized) {
14649                 throw new Error("initializeWasm() must be awaited first!");
14650         }
14651         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
14652         return nativeResponseValue;
14653 }
14654         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
14655 /* @internal */
14656 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: number): boolean {
14657         if(!isWasmInitialized) {
14658                 throw new Error("initializeWasm() must be awaited first!");
14659         }
14660         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
14661         return nativeResponseValue;
14662 }
14663         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
14664 /* @internal */
14665 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: number): void {
14666         if(!isWasmInitialized) {
14667                 throw new Error("initializeWasm() must be awaited first!");
14668         }
14669         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
14670         // debug statements here
14671 }
14672         // uintptr_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
14673 /* @internal */
14674 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: number): number {
14675         if(!isWasmInitialized) {
14676                 throw new Error("initializeWasm() must be awaited first!");
14677         }
14678         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
14679         return nativeResponseValue;
14680 }
14681         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
14682 /* @internal */
14683 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: number): number {
14684         if(!isWasmInitialized) {
14685                 throw new Error("initializeWasm() must be awaited first!");
14686         }
14687         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
14688         return nativeResponseValue;
14689 }
14690         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
14691 /* @internal */
14692 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: number): number {
14693         if(!isWasmInitialized) {
14694                 throw new Error("initializeWasm() must be awaited first!");
14695         }
14696         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
14697         return nativeResponseValue;
14698 }
14699         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
14700 /* @internal */
14701 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: number): number {
14702         if(!isWasmInitialized) {
14703                 throw new Error("initializeWasm() must be awaited first!");
14704         }
14705         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
14706         return nativeResponseValue;
14707 }
14708         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
14709 /* @internal */
14710 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: number): boolean {
14711         if(!isWasmInitialized) {
14712                 throw new Error("initializeWasm() must be awaited first!");
14713         }
14714         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
14715         return nativeResponseValue;
14716 }
14717         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
14718 /* @internal */
14719 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: number): void {
14720         if(!isWasmInitialized) {
14721                 throw new Error("initializeWasm() must be awaited first!");
14722         }
14723         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
14724         // debug statements here
14725 }
14726         // uintptr_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
14727 /* @internal */
14728 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: number): number {
14729         if(!isWasmInitialized) {
14730                 throw new Error("initializeWasm() must be awaited first!");
14731         }
14732         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
14733         return nativeResponseValue;
14734 }
14735         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
14736 /* @internal */
14737 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: number): number {
14738         if(!isWasmInitialized) {
14739                 throw new Error("initializeWasm() must be awaited first!");
14740         }
14741         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
14742         return nativeResponseValue;
14743 }
14744         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
14745 /* @internal */
14746 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: number): number {
14747         if(!isWasmInitialized) {
14748                 throw new Error("initializeWasm() must be awaited first!");
14749         }
14750         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
14751         return nativeResponseValue;
14752 }
14753         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14754 /* @internal */
14755 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: number): number {
14756         if(!isWasmInitialized) {
14757                 throw new Error("initializeWasm() must be awaited first!");
14758         }
14759         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
14760         return nativeResponseValue;
14761 }
14762         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
14763 /* @internal */
14764 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14765         if(!isWasmInitialized) {
14766                 throw new Error("initializeWasm() must be awaited first!");
14767         }
14768         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
14769         return nativeResponseValue;
14770 }
14771         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
14772 /* @internal */
14773 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: number): void {
14774         if(!isWasmInitialized) {
14775                 throw new Error("initializeWasm() must be awaited first!");
14776         }
14777         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
14778         // debug statements here
14779 }
14780         // uintptr_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14781 /* @internal */
14782 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
14783         if(!isWasmInitialized) {
14784                 throw new Error("initializeWasm() must be awaited first!");
14785         }
14786         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
14787         return nativeResponseValue;
14788 }
14789         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
14790 /* @internal */
14791 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: number): number {
14792         if(!isWasmInitialized) {
14793                 throw new Error("initializeWasm() must be awaited first!");
14794         }
14795         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
14796         return nativeResponseValue;
14797 }
14798         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
14799 /* @internal */
14800 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: number): number {
14801         if(!isWasmInitialized) {
14802                 throw new Error("initializeWasm() must be awaited first!");
14803         }
14804         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
14805         return nativeResponseValue;
14806 }
14807         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14808 /* @internal */
14809 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: number): number {
14810         if(!isWasmInitialized) {
14811                 throw new Error("initializeWasm() must be awaited first!");
14812         }
14813         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
14814         return nativeResponseValue;
14815 }
14816         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
14817 /* @internal */
14818 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14819         if(!isWasmInitialized) {
14820                 throw new Error("initializeWasm() must be awaited first!");
14821         }
14822         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
14823         return nativeResponseValue;
14824 }
14825         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
14826 /* @internal */
14827 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: number): void {
14828         if(!isWasmInitialized) {
14829                 throw new Error("initializeWasm() must be awaited first!");
14830         }
14831         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
14832         // debug statements here
14833 }
14834         // uintptr_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14835 /* @internal */
14836 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
14837         if(!isWasmInitialized) {
14838                 throw new Error("initializeWasm() must be awaited first!");
14839         }
14840         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
14841         return nativeResponseValue;
14842 }
14843         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
14844 /* @internal */
14845 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: number): number {
14846         if(!isWasmInitialized) {
14847                 throw new Error("initializeWasm() must be awaited first!");
14848         }
14849         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
14850         return nativeResponseValue;
14851 }
14852         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
14853 /* @internal */
14854 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: number): number {
14855         if(!isWasmInitialized) {
14856                 throw new Error("initializeWasm() must be awaited first!");
14857         }
14858         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
14859         return nativeResponseValue;
14860 }
14861         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
14862 /* @internal */
14863 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: number): number {
14864         if(!isWasmInitialized) {
14865                 throw new Error("initializeWasm() must be awaited first!");
14866         }
14867         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
14868         return nativeResponseValue;
14869 }
14870         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
14871 /* @internal */
14872 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: number): boolean {
14873         if(!isWasmInitialized) {
14874                 throw new Error("initializeWasm() must be awaited first!");
14875         }
14876         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
14877         return nativeResponseValue;
14878 }
14879         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
14880 /* @internal */
14881 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: number): void {
14882         if(!isWasmInitialized) {
14883                 throw new Error("initializeWasm() must be awaited first!");
14884         }
14885         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
14886         // debug statements here
14887 }
14888         // uintptr_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
14889 /* @internal */
14890 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: number): number {
14891         if(!isWasmInitialized) {
14892                 throw new Error("initializeWasm() must be awaited first!");
14893         }
14894         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
14895         return nativeResponseValue;
14896 }
14897         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
14898 /* @internal */
14899 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: number): number {
14900         if(!isWasmInitialized) {
14901                 throw new Error("initializeWasm() must be awaited first!");
14902         }
14903         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
14904         return nativeResponseValue;
14905 }
14906         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
14907 /* @internal */
14908 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: number): number {
14909         if(!isWasmInitialized) {
14910                 throw new Error("initializeWasm() must be awaited first!");
14911         }
14912         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
14913         return nativeResponseValue;
14914 }
14915         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
14916 /* @internal */
14917 export function CResult_InvoiceSignOrCreationErrorZ_err(e: number): number {
14918         if(!isWasmInitialized) {
14919                 throw new Error("initializeWasm() must be awaited first!");
14920         }
14921         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
14922         return nativeResponseValue;
14923 }
14924         // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
14925 /* @internal */
14926 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: number): boolean {
14927         if(!isWasmInitialized) {
14928                 throw new Error("initializeWasm() must be awaited first!");
14929         }
14930         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
14931         return nativeResponseValue;
14932 }
14933         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
14934 /* @internal */
14935 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: number): void {
14936         if(!isWasmInitialized) {
14937                 throw new Error("initializeWasm() must be awaited first!");
14938         }
14939         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
14940         // debug statements here
14941 }
14942         // uintptr_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
14943 /* @internal */
14944 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: number): number {
14945         if(!isWasmInitialized) {
14946                 throw new Error("initializeWasm() must be awaited first!");
14947         }
14948         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
14949         return nativeResponseValue;
14950 }
14951         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
14952 /* @internal */
14953 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: number): number {
14954         if(!isWasmInitialized) {
14955                 throw new Error("initializeWasm() must be awaited first!");
14956         }
14957         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
14958         return nativeResponseValue;
14959 }
14960         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
14961 /* @internal */
14962 export function COption_FilterZ_some(o: number): number {
14963         if(!isWasmInitialized) {
14964                 throw new Error("initializeWasm() must be awaited first!");
14965         }
14966         const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
14967         return nativeResponseValue;
14968 }
14969         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
14970 /* @internal */
14971 export function COption_FilterZ_none(): number {
14972         if(!isWasmInitialized) {
14973                 throw new Error("initializeWasm() must be awaited first!");
14974         }
14975         const nativeResponseValue = wasm.TS_COption_FilterZ_none();
14976         return nativeResponseValue;
14977 }
14978         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
14979 /* @internal */
14980 export function COption_FilterZ_free(_res: number): void {
14981         if(!isWasmInitialized) {
14982                 throw new Error("initializeWasm() must be awaited first!");
14983         }
14984         const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
14985         // debug statements here
14986 }
14987         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
14988 /* @internal */
14989 export function CResult_LockedChannelMonitorNoneZ_ok(o: number): number {
14990         if(!isWasmInitialized) {
14991                 throw new Error("initializeWasm() must be awaited first!");
14992         }
14993         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
14994         return nativeResponseValue;
14995 }
14996         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
14997 /* @internal */
14998 export function CResult_LockedChannelMonitorNoneZ_err(): number {
14999         if(!isWasmInitialized) {
15000                 throw new Error("initializeWasm() must be awaited first!");
15001         }
15002         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
15003         return nativeResponseValue;
15004 }
15005         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
15006 /* @internal */
15007 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: number): boolean {
15008         if(!isWasmInitialized) {
15009                 throw new Error("initializeWasm() must be awaited first!");
15010         }
15011         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
15012         return nativeResponseValue;
15013 }
15014         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
15015 /* @internal */
15016 export function CResult_LockedChannelMonitorNoneZ_free(_res: number): void {
15017         if(!isWasmInitialized) {
15018                 throw new Error("initializeWasm() must be awaited first!");
15019         }
15020         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
15021         // debug statements here
15022 }
15023         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
15024 /* @internal */
15025 export function CVec_OutPointZ_free(_res: number): void {
15026         if(!isWasmInitialized) {
15027                 throw new Error("initializeWasm() must be awaited first!");
15028         }
15029         const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
15030         // debug statements here
15031 }
15032         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
15033 /* @internal */
15034 export function PaymentPurpose_free(this_ptr: number): void {
15035         if(!isWasmInitialized) {
15036                 throw new Error("initializeWasm() must be awaited first!");
15037         }
15038         const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
15039         // debug statements here
15040 }
15041         // uintptr_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
15042 /* @internal */
15043 export function PaymentPurpose_clone_ptr(arg: number): number {
15044         if(!isWasmInitialized) {
15045                 throw new Error("initializeWasm() must be awaited first!");
15046         }
15047         const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
15048         return nativeResponseValue;
15049 }
15050         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
15051 /* @internal */
15052 export function PaymentPurpose_clone(orig: number): number {
15053         if(!isWasmInitialized) {
15054                 throw new Error("initializeWasm() must be awaited first!");
15055         }
15056         const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
15057         return nativeResponseValue;
15058 }
15059         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
15060 /* @internal */
15061 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): number {
15062         if(!isWasmInitialized) {
15063                 throw new Error("initializeWasm() must be awaited first!");
15064         }
15065         const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
15066         return nativeResponseValue;
15067 }
15068         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
15069 /* @internal */
15070 export function PaymentPurpose_spontaneous_payment(a: number): number {
15071         if(!isWasmInitialized) {
15072                 throw new Error("initializeWasm() must be awaited first!");
15073         }
15074         const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
15075         return nativeResponseValue;
15076 }
15077         // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
15078 /* @internal */
15079 export function PaymentPurpose_write(obj: number): number {
15080         if(!isWasmInitialized) {
15081                 throw new Error("initializeWasm() must be awaited first!");
15082         }
15083         const nativeResponseValue = wasm.TS_PaymentPurpose_write(obj);
15084         return nativeResponseValue;
15085 }
15086         // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
15087 /* @internal */
15088 export function PaymentPurpose_read(ser: number): number {
15089         if(!isWasmInitialized) {
15090                 throw new Error("initializeWasm() must be awaited first!");
15091         }
15092         const nativeResponseValue = wasm.TS_PaymentPurpose_read(ser);
15093         return nativeResponseValue;
15094 }
15095         // void ClosureReason_free(struct LDKClosureReason this_ptr);
15096 /* @internal */
15097 export function ClosureReason_free(this_ptr: number): void {
15098         if(!isWasmInitialized) {
15099                 throw new Error("initializeWasm() must be awaited first!");
15100         }
15101         const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
15102         // debug statements here
15103 }
15104         // uintptr_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
15105 /* @internal */
15106 export function ClosureReason_clone_ptr(arg: number): number {
15107         if(!isWasmInitialized) {
15108                 throw new Error("initializeWasm() must be awaited first!");
15109         }
15110         const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
15111         return nativeResponseValue;
15112 }
15113         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
15114 /* @internal */
15115 export function ClosureReason_clone(orig: number): number {
15116         if(!isWasmInitialized) {
15117                 throw new Error("initializeWasm() must be awaited first!");
15118         }
15119         const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
15120         return nativeResponseValue;
15121 }
15122         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
15123 /* @internal */
15124 export function ClosureReason_counterparty_force_closed(peer_msg: number): number {
15125         if(!isWasmInitialized) {
15126                 throw new Error("initializeWasm() must be awaited first!");
15127         }
15128         const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
15129         return nativeResponseValue;
15130 }
15131         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
15132 /* @internal */
15133 export function ClosureReason_holder_force_closed(): number {
15134         if(!isWasmInitialized) {
15135                 throw new Error("initializeWasm() must be awaited first!");
15136         }
15137         const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
15138         return nativeResponseValue;
15139 }
15140         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
15141 /* @internal */
15142 export function ClosureReason_cooperative_closure(): number {
15143         if(!isWasmInitialized) {
15144                 throw new Error("initializeWasm() must be awaited first!");
15145         }
15146         const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
15147         return nativeResponseValue;
15148 }
15149         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
15150 /* @internal */
15151 export function ClosureReason_commitment_tx_confirmed(): number {
15152         if(!isWasmInitialized) {
15153                 throw new Error("initializeWasm() must be awaited first!");
15154         }
15155         const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
15156         return nativeResponseValue;
15157 }
15158         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
15159 /* @internal */
15160 export function ClosureReason_funding_timed_out(): number {
15161         if(!isWasmInitialized) {
15162                 throw new Error("initializeWasm() must be awaited first!");
15163         }
15164         const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
15165         return nativeResponseValue;
15166 }
15167         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
15168 /* @internal */
15169 export function ClosureReason_processing_error(err: number): number {
15170         if(!isWasmInitialized) {
15171                 throw new Error("initializeWasm() must be awaited first!");
15172         }
15173         const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
15174         return nativeResponseValue;
15175 }
15176         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
15177 /* @internal */
15178 export function ClosureReason_disconnected_peer(): number {
15179         if(!isWasmInitialized) {
15180                 throw new Error("initializeWasm() must be awaited first!");
15181         }
15182         const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
15183         return nativeResponseValue;
15184 }
15185         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
15186 /* @internal */
15187 export function ClosureReason_outdated_channel_manager(): number {
15188         if(!isWasmInitialized) {
15189                 throw new Error("initializeWasm() must be awaited first!");
15190         }
15191         const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
15192         return nativeResponseValue;
15193 }
15194         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
15195 /* @internal */
15196 export function ClosureReason_write(obj: number): number {
15197         if(!isWasmInitialized) {
15198                 throw new Error("initializeWasm() must be awaited first!");
15199         }
15200         const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
15201         return nativeResponseValue;
15202 }
15203         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
15204 /* @internal */
15205 export function ClosureReason_read(ser: number): number {
15206         if(!isWasmInitialized) {
15207                 throw new Error("initializeWasm() must be awaited first!");
15208         }
15209         const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
15210         return nativeResponseValue;
15211 }
15212         // void Event_free(struct LDKEvent this_ptr);
15213 /* @internal */
15214 export function Event_free(this_ptr: number): void {
15215         if(!isWasmInitialized) {
15216                 throw new Error("initializeWasm() must be awaited first!");
15217         }
15218         const nativeResponseValue = wasm.TS_Event_free(this_ptr);
15219         // debug statements here
15220 }
15221         // uintptr_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
15222 /* @internal */
15223 export function Event_clone_ptr(arg: number): number {
15224         if(!isWasmInitialized) {
15225                 throw new Error("initializeWasm() must be awaited first!");
15226         }
15227         const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
15228         return nativeResponseValue;
15229 }
15230         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
15231 /* @internal */
15232 export function Event_clone(orig: number): number {
15233         if(!isWasmInitialized) {
15234                 throw new Error("initializeWasm() must be awaited first!");
15235         }
15236         const nativeResponseValue = wasm.TS_Event_clone(orig);
15237         return nativeResponseValue;
15238 }
15239         // 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);
15240 /* @internal */
15241 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 {
15242         if(!isWasmInitialized) {
15243                 throw new Error("initializeWasm() must be awaited first!");
15244         }
15245         const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, counterparty_node_id, channel_value_satoshis, output_script, user_channel_id);
15246         return nativeResponseValue;
15247 }
15248         // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
15249 /* @internal */
15250 export function Event_payment_received(payment_hash: number, amount_msat: bigint, purpose: number): number {
15251         if(!isWasmInitialized) {
15252                 throw new Error("initializeWasm() must be awaited first!");
15253         }
15254         const nativeResponseValue = wasm.TS_Event_payment_received(payment_hash, amount_msat, purpose);
15255         return nativeResponseValue;
15256 }
15257         // struct LDKEvent Event_payment_claimed(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
15258 /* @internal */
15259 export function Event_payment_claimed(payment_hash: number, amount_msat: bigint, purpose: number): number {
15260         if(!isWasmInitialized) {
15261                 throw new Error("initializeWasm() must be awaited first!");
15262         }
15263         const nativeResponseValue = wasm.TS_Event_payment_claimed(payment_hash, amount_msat, purpose);
15264         return nativeResponseValue;
15265 }
15266         // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
15267 /* @internal */
15268 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: number): number {
15269         if(!isWasmInitialized) {
15270                 throw new Error("initializeWasm() must be awaited first!");
15271         }
15272         const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
15273         return nativeResponseValue;
15274 }
15275         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
15276 /* @internal */
15277 export function Event_payment_failed(payment_id: number, payment_hash: number): number {
15278         if(!isWasmInitialized) {
15279                 throw new Error("initializeWasm() must be awaited first!");
15280         }
15281         const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash);
15282         return nativeResponseValue;
15283 }
15284         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
15285 /* @internal */
15286 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: number): number {
15287         if(!isWasmInitialized) {
15288                 throw new Error("initializeWasm() must be awaited first!");
15289         }
15290         const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
15291         return nativeResponseValue;
15292 }
15293         // 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);
15294 /* @internal */
15295 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 {
15296         if(!isWasmInitialized) {
15297                 throw new Error("initializeWasm() must be awaited first!");
15298         }
15299         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);
15300         return nativeResponseValue;
15301 }
15302         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
15303 /* @internal */
15304 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): number {
15305         if(!isWasmInitialized) {
15306                 throw new Error("initializeWasm() must be awaited first!");
15307         }
15308         const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
15309         return nativeResponseValue;
15310 }
15311         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
15312 /* @internal */
15313 export function Event_spendable_outputs(outputs: number): number {
15314         if(!isWasmInitialized) {
15315                 throw new Error("initializeWasm() must be awaited first!");
15316         }
15317         const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
15318         return nativeResponseValue;
15319 }
15320         // 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);
15321 /* @internal */
15322 export function Event_payment_forwarded(prev_channel_id: number, next_channel_id: number, fee_earned_msat: number, claim_from_onchain_tx: boolean): number {
15323         if(!isWasmInitialized) {
15324                 throw new Error("initializeWasm() must be awaited first!");
15325         }
15326         const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, fee_earned_msat, claim_from_onchain_tx);
15327         return nativeResponseValue;
15328 }
15329         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
15330 /* @internal */
15331 export function Event_channel_closed(channel_id: number, user_channel_id: bigint, reason: number): number {
15332         if(!isWasmInitialized) {
15333                 throw new Error("initializeWasm() must be awaited first!");
15334         }
15335         const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
15336         return nativeResponseValue;
15337 }
15338         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
15339 /* @internal */
15340 export function Event_discard_funding(channel_id: number, transaction: number): number {
15341         if(!isWasmInitialized) {
15342                 throw new Error("initializeWasm() must be awaited first!");
15343         }
15344         const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
15345         return nativeResponseValue;
15346 }
15347         // 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);
15348 /* @internal */
15349 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: number): number {
15350         if(!isWasmInitialized) {
15351                 throw new Error("initializeWasm() must be awaited first!");
15352         }
15353         const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type);
15354         return nativeResponseValue;
15355 }
15356         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
15357 /* @internal */
15358 export function Event_write(obj: number): number {
15359         if(!isWasmInitialized) {
15360                 throw new Error("initializeWasm() must be awaited first!");
15361         }
15362         const nativeResponseValue = wasm.TS_Event_write(obj);
15363         return nativeResponseValue;
15364 }
15365         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
15366 /* @internal */
15367 export function Event_read(ser: number): number {
15368         if(!isWasmInitialized) {
15369                 throw new Error("initializeWasm() must be awaited first!");
15370         }
15371         const nativeResponseValue = wasm.TS_Event_read(ser);
15372         return nativeResponseValue;
15373 }
15374         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
15375 /* @internal */
15376 export function MessageSendEvent_free(this_ptr: number): void {
15377         if(!isWasmInitialized) {
15378                 throw new Error("initializeWasm() must be awaited first!");
15379         }
15380         const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
15381         // debug statements here
15382 }
15383         // uintptr_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
15384 /* @internal */
15385 export function MessageSendEvent_clone_ptr(arg: number): number {
15386         if(!isWasmInitialized) {
15387                 throw new Error("initializeWasm() must be awaited first!");
15388         }
15389         const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
15390         return nativeResponseValue;
15391 }
15392         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
15393 /* @internal */
15394 export function MessageSendEvent_clone(orig: number): number {
15395         if(!isWasmInitialized) {
15396                 throw new Error("initializeWasm() must be awaited first!");
15397         }
15398         const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
15399         return nativeResponseValue;
15400 }
15401         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
15402 /* @internal */
15403 export function MessageSendEvent_send_accept_channel(node_id: number, msg: number): number {
15404         if(!isWasmInitialized) {
15405                 throw new Error("initializeWasm() must be awaited first!");
15406         }
15407         const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
15408         return nativeResponseValue;
15409 }
15410         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
15411 /* @internal */
15412 export function MessageSendEvent_send_open_channel(node_id: number, msg: number): number {
15413         if(!isWasmInitialized) {
15414                 throw new Error("initializeWasm() must be awaited first!");
15415         }
15416         const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
15417         return nativeResponseValue;
15418 }
15419         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
15420 /* @internal */
15421 export function MessageSendEvent_send_funding_created(node_id: number, msg: number): number {
15422         if(!isWasmInitialized) {
15423                 throw new Error("initializeWasm() must be awaited first!");
15424         }
15425         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
15426         return nativeResponseValue;
15427 }
15428         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
15429 /* @internal */
15430 export function MessageSendEvent_send_funding_signed(node_id: number, msg: number): number {
15431         if(!isWasmInitialized) {
15432                 throw new Error("initializeWasm() must be awaited first!");
15433         }
15434         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
15435         return nativeResponseValue;
15436 }
15437         // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
15438 /* @internal */
15439 export function MessageSendEvent_send_channel_ready(node_id: number, msg: number): number {
15440         if(!isWasmInitialized) {
15441                 throw new Error("initializeWasm() must be awaited first!");
15442         }
15443         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_ready(node_id, msg);
15444         return nativeResponseValue;
15445 }
15446         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
15447 /* @internal */
15448 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: number): number {
15449         if(!isWasmInitialized) {
15450                 throw new Error("initializeWasm() must be awaited first!");
15451         }
15452         const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
15453         return nativeResponseValue;
15454 }
15455         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
15456 /* @internal */
15457 export function MessageSendEvent_update_htlcs(node_id: number, updates: number): number {
15458         if(!isWasmInitialized) {
15459                 throw new Error("initializeWasm() must be awaited first!");
15460         }
15461         const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
15462         return nativeResponseValue;
15463 }
15464         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
15465 /* @internal */
15466 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: number): number {
15467         if(!isWasmInitialized) {
15468                 throw new Error("initializeWasm() must be awaited first!");
15469         }
15470         const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
15471         return nativeResponseValue;
15472 }
15473         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
15474 /* @internal */
15475 export function MessageSendEvent_send_closing_signed(node_id: number, msg: number): number {
15476         if(!isWasmInitialized) {
15477                 throw new Error("initializeWasm() must be awaited first!");
15478         }
15479         const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
15480         return nativeResponseValue;
15481 }
15482         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
15483 /* @internal */
15484 export function MessageSendEvent_send_shutdown(node_id: number, msg: number): number {
15485         if(!isWasmInitialized) {
15486                 throw new Error("initializeWasm() must be awaited first!");
15487         }
15488         const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
15489         return nativeResponseValue;
15490 }
15491         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
15492 /* @internal */
15493 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: number): number {
15494         if(!isWasmInitialized) {
15495                 throw new Error("initializeWasm() must be awaited first!");
15496         }
15497         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
15498         return nativeResponseValue;
15499 }
15500         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
15501 /* @internal */
15502 export function MessageSendEvent_broadcast_channel_announcement(msg: number, update_msg: number): number {
15503         if(!isWasmInitialized) {
15504                 throw new Error("initializeWasm() must be awaited first!");
15505         }
15506         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
15507         return nativeResponseValue;
15508 }
15509         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
15510 /* @internal */
15511 export function MessageSendEvent_broadcast_node_announcement(msg: number): number {
15512         if(!isWasmInitialized) {
15513                 throw new Error("initializeWasm() must be awaited first!");
15514         }
15515         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_node_announcement(msg);
15516         return nativeResponseValue;
15517 }
15518         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
15519 /* @internal */
15520 export function MessageSendEvent_broadcast_channel_update(msg: number): number {
15521         if(!isWasmInitialized) {
15522                 throw new Error("initializeWasm() must be awaited first!");
15523         }
15524         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
15525         return nativeResponseValue;
15526 }
15527         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
15528 /* @internal */
15529 export function MessageSendEvent_send_channel_update(node_id: number, msg: number): number {
15530         if(!isWasmInitialized) {
15531                 throw new Error("initializeWasm() must be awaited first!");
15532         }
15533         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
15534         return nativeResponseValue;
15535 }
15536         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
15537 /* @internal */
15538 export function MessageSendEvent_handle_error(node_id: number, action: number): number {
15539         if(!isWasmInitialized) {
15540                 throw new Error("initializeWasm() must be awaited first!");
15541         }
15542         const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
15543         return nativeResponseValue;
15544 }
15545         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
15546 /* @internal */
15547 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: number): number {
15548         if(!isWasmInitialized) {
15549                 throw new Error("initializeWasm() must be awaited first!");
15550         }
15551         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
15552         return nativeResponseValue;
15553 }
15554         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
15555 /* @internal */
15556 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: number): number {
15557         if(!isWasmInitialized) {
15558                 throw new Error("initializeWasm() must be awaited first!");
15559         }
15560         const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
15561         return nativeResponseValue;
15562 }
15563         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
15564 /* @internal */
15565 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: number): number {
15566         if(!isWasmInitialized) {
15567                 throw new Error("initializeWasm() must be awaited first!");
15568         }
15569         const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
15570         return nativeResponseValue;
15571 }
15572         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
15573 /* @internal */
15574 export function MessageSendEvent_send_gossip_timestamp_filter(node_id: number, msg: number): number {
15575         if(!isWasmInitialized) {
15576                 throw new Error("initializeWasm() must be awaited first!");
15577         }
15578         const nativeResponseValue = wasm.TS_MessageSendEvent_send_gossip_timestamp_filter(node_id, msg);
15579         return nativeResponseValue;
15580 }
15581         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
15582 /* @internal */
15583 export function MessageSendEventsProvider_free(this_ptr: number): void {
15584         if(!isWasmInitialized) {
15585                 throw new Error("initializeWasm() must be awaited first!");
15586         }
15587         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
15588         // debug statements here
15589 }
15590         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
15591 /* @internal */
15592 export function EventsProvider_free(this_ptr: number): void {
15593         if(!isWasmInitialized) {
15594                 throw new Error("initializeWasm() must be awaited first!");
15595         }
15596         const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
15597         // debug statements here
15598 }
15599         // void EventHandler_free(struct LDKEventHandler this_ptr);
15600 /* @internal */
15601 export function EventHandler_free(this_ptr: number): void {
15602         if(!isWasmInitialized) {
15603                 throw new Error("initializeWasm() must be awaited first!");
15604         }
15605         const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
15606         // debug statements here
15607 }
15608         // void APIError_free(struct LDKAPIError this_ptr);
15609 /* @internal */
15610 export function APIError_free(this_ptr: number): void {
15611         if(!isWasmInitialized) {
15612                 throw new Error("initializeWasm() must be awaited first!");
15613         }
15614         const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
15615         // debug statements here
15616 }
15617         // uintptr_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
15618 /* @internal */
15619 export function APIError_clone_ptr(arg: number): number {
15620         if(!isWasmInitialized) {
15621                 throw new Error("initializeWasm() must be awaited first!");
15622         }
15623         const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
15624         return nativeResponseValue;
15625 }
15626         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
15627 /* @internal */
15628 export function APIError_clone(orig: number): number {
15629         if(!isWasmInitialized) {
15630                 throw new Error("initializeWasm() must be awaited first!");
15631         }
15632         const nativeResponseValue = wasm.TS_APIError_clone(orig);
15633         return nativeResponseValue;
15634 }
15635         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
15636 /* @internal */
15637 export function APIError_apimisuse_error(err: number): number {
15638         if(!isWasmInitialized) {
15639                 throw new Error("initializeWasm() must be awaited first!");
15640         }
15641         const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
15642         return nativeResponseValue;
15643 }
15644         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
15645 /* @internal */
15646 export function APIError_fee_rate_too_high(err: number, feerate: number): number {
15647         if(!isWasmInitialized) {
15648                 throw new Error("initializeWasm() must be awaited first!");
15649         }
15650         const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
15651         return nativeResponseValue;
15652 }
15653         // struct LDKAPIError APIError_route_error(struct LDKStr err);
15654 /* @internal */
15655 export function APIError_route_error(err: number): number {
15656         if(!isWasmInitialized) {
15657                 throw new Error("initializeWasm() must be awaited first!");
15658         }
15659         const nativeResponseValue = wasm.TS_APIError_route_error(err);
15660         return nativeResponseValue;
15661 }
15662         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
15663 /* @internal */
15664 export function APIError_channel_unavailable(err: number): number {
15665         if(!isWasmInitialized) {
15666                 throw new Error("initializeWasm() must be awaited first!");
15667         }
15668         const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
15669         return nativeResponseValue;
15670 }
15671         // struct LDKAPIError APIError_monitor_update_failed(void);
15672 /* @internal */
15673 export function APIError_monitor_update_failed(): number {
15674         if(!isWasmInitialized) {
15675                 throw new Error("initializeWasm() must be awaited first!");
15676         }
15677         const nativeResponseValue = wasm.TS_APIError_monitor_update_failed();
15678         return nativeResponseValue;
15679 }
15680         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
15681 /* @internal */
15682 export function APIError_incompatible_shutdown_script(script: number): number {
15683         if(!isWasmInitialized) {
15684                 throw new Error("initializeWasm() must be awaited first!");
15685         }
15686         const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
15687         return nativeResponseValue;
15688 }
15689         // void BigSize_free(struct LDKBigSize this_obj);
15690 /* @internal */
15691 export function BigSize_free(this_obj: number): void {
15692         if(!isWasmInitialized) {
15693                 throw new Error("initializeWasm() must be awaited first!");
15694         }
15695         const nativeResponseValue = wasm.TS_BigSize_free(this_obj);
15696         // debug statements here
15697 }
15698         // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
15699 /* @internal */
15700 export function BigSize_get_a(this_ptr: number): bigint {
15701         if(!isWasmInitialized) {
15702                 throw new Error("initializeWasm() must be awaited first!");
15703         }
15704         const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr);
15705         return nativeResponseValue;
15706 }
15707         // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
15708 /* @internal */
15709 export function BigSize_set_a(this_ptr: number, val: bigint): void {
15710         if(!isWasmInitialized) {
15711                 throw new Error("initializeWasm() must be awaited first!");
15712         }
15713         const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val);
15714         // debug statements here
15715 }
15716         // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
15717 /* @internal */
15718 export function BigSize_new(a_arg: bigint): number {
15719         if(!isWasmInitialized) {
15720                 throw new Error("initializeWasm() must be awaited first!");
15721         }
15722         const nativeResponseValue = wasm.TS_BigSize_new(a_arg);
15723         return nativeResponseValue;
15724 }
15725         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
15726 /* @internal */
15727 export function sign(msg: number, sk: number): number {
15728         if(!isWasmInitialized) {
15729                 throw new Error("initializeWasm() must be awaited first!");
15730         }
15731         const nativeResponseValue = wasm.TS_sign(msg, sk);
15732         return nativeResponseValue;
15733 }
15734         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
15735 /* @internal */
15736 export function recover_pk(msg: number, sig: number): number {
15737         if(!isWasmInitialized) {
15738                 throw new Error("initializeWasm() must be awaited first!");
15739         }
15740         const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
15741         return nativeResponseValue;
15742 }
15743         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
15744 /* @internal */
15745 export function verify(msg: number, sig: number, pk: number): boolean {
15746         if(!isWasmInitialized) {
15747                 throw new Error("initializeWasm() must be awaited first!");
15748         }
15749         const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
15750         return nativeResponseValue;
15751 }
15752         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
15753 /* @internal */
15754 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
15755         if(!isWasmInitialized) {
15756                 throw new Error("initializeWasm() must be awaited first!");
15757         }
15758         const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
15759         return nativeResponseValue;
15760 }
15761         // void Persister_free(struct LDKPersister this_ptr);
15762 /* @internal */
15763 export function Persister_free(this_ptr: number): void {
15764         if(!isWasmInitialized) {
15765                 throw new Error("initializeWasm() must be awaited first!");
15766         }
15767         const nativeResponseValue = wasm.TS_Persister_free(this_ptr);
15768         // debug statements here
15769 }
15770         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
15771 /* @internal */
15772 export function Level_clone(orig: number): Level {
15773         if(!isWasmInitialized) {
15774                 throw new Error("initializeWasm() must be awaited first!");
15775         }
15776         const nativeResponseValue = wasm.TS_Level_clone(orig);
15777         return nativeResponseValue;
15778 }
15779         // enum LDKLevel Level_gossip(void);
15780 /* @internal */
15781 export function Level_gossip(): Level {
15782         if(!isWasmInitialized) {
15783                 throw new Error("initializeWasm() must be awaited first!");
15784         }
15785         const nativeResponseValue = wasm.TS_Level_gossip();
15786         return nativeResponseValue;
15787 }
15788         // enum LDKLevel Level_trace(void);
15789 /* @internal */
15790 export function Level_trace(): Level {
15791         if(!isWasmInitialized) {
15792                 throw new Error("initializeWasm() must be awaited first!");
15793         }
15794         const nativeResponseValue = wasm.TS_Level_trace();
15795         return nativeResponseValue;
15796 }
15797         // enum LDKLevel Level_debug(void);
15798 /* @internal */
15799 export function Level_debug(): Level {
15800         if(!isWasmInitialized) {
15801                 throw new Error("initializeWasm() must be awaited first!");
15802         }
15803         const nativeResponseValue = wasm.TS_Level_debug();
15804         return nativeResponseValue;
15805 }
15806         // enum LDKLevel Level_info(void);
15807 /* @internal */
15808 export function Level_info(): Level {
15809         if(!isWasmInitialized) {
15810                 throw new Error("initializeWasm() must be awaited first!");
15811         }
15812         const nativeResponseValue = wasm.TS_Level_info();
15813         return nativeResponseValue;
15814 }
15815         // enum LDKLevel Level_warn(void);
15816 /* @internal */
15817 export function Level_warn(): Level {
15818         if(!isWasmInitialized) {
15819                 throw new Error("initializeWasm() must be awaited first!");
15820         }
15821         const nativeResponseValue = wasm.TS_Level_warn();
15822         return nativeResponseValue;
15823 }
15824         // enum LDKLevel Level_error(void);
15825 /* @internal */
15826 export function Level_error(): Level {
15827         if(!isWasmInitialized) {
15828                 throw new Error("initializeWasm() must be awaited first!");
15829         }
15830         const nativeResponseValue = wasm.TS_Level_error();
15831         return nativeResponseValue;
15832 }
15833         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
15834 /* @internal */
15835 export function Level_eq(a: number, b: number): boolean {
15836         if(!isWasmInitialized) {
15837                 throw new Error("initializeWasm() must be awaited first!");
15838         }
15839         const nativeResponseValue = wasm.TS_Level_eq(a, b);
15840         return nativeResponseValue;
15841 }
15842         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
15843 /* @internal */
15844 export function Level_hash(o: number): bigint {
15845         if(!isWasmInitialized) {
15846                 throw new Error("initializeWasm() must be awaited first!");
15847         }
15848         const nativeResponseValue = wasm.TS_Level_hash(o);
15849         return nativeResponseValue;
15850 }
15851         // MUST_USE_RES enum LDKLevel Level_max(void);
15852 /* @internal */
15853 export function Level_max(): Level {
15854         if(!isWasmInitialized) {
15855                 throw new Error("initializeWasm() must be awaited first!");
15856         }
15857         const nativeResponseValue = wasm.TS_Level_max();
15858         return nativeResponseValue;
15859 }
15860         // void Record_free(struct LDKRecord this_obj);
15861 /* @internal */
15862 export function Record_free(this_obj: number): void {
15863         if(!isWasmInitialized) {
15864                 throw new Error("initializeWasm() must be awaited first!");
15865         }
15866         const nativeResponseValue = wasm.TS_Record_free(this_obj);
15867         // debug statements here
15868 }
15869         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
15870 /* @internal */
15871 export function Record_get_level(this_ptr: number): Level {
15872         if(!isWasmInitialized) {
15873                 throw new Error("initializeWasm() must be awaited first!");
15874         }
15875         const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
15876         return nativeResponseValue;
15877 }
15878         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
15879 /* @internal */
15880 export function Record_set_level(this_ptr: number, val: Level): void {
15881         if(!isWasmInitialized) {
15882                 throw new Error("initializeWasm() must be awaited first!");
15883         }
15884         const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
15885         // debug statements here
15886 }
15887         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
15888 /* @internal */
15889 export function Record_get_args(this_ptr: number): number {
15890         if(!isWasmInitialized) {
15891                 throw new Error("initializeWasm() must be awaited first!");
15892         }
15893         const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
15894         return nativeResponseValue;
15895 }
15896         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15897 /* @internal */
15898 export function Record_set_args(this_ptr: number, val: number): void {
15899         if(!isWasmInitialized) {
15900                 throw new Error("initializeWasm() must be awaited first!");
15901         }
15902         const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
15903         // debug statements here
15904 }
15905         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
15906 /* @internal */
15907 export function Record_get_module_path(this_ptr: number): number {
15908         if(!isWasmInitialized) {
15909                 throw new Error("initializeWasm() must be awaited first!");
15910         }
15911         const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
15912         return nativeResponseValue;
15913 }
15914         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15915 /* @internal */
15916 export function Record_set_module_path(this_ptr: number, val: number): void {
15917         if(!isWasmInitialized) {
15918                 throw new Error("initializeWasm() must be awaited first!");
15919         }
15920         const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
15921         // debug statements here
15922 }
15923         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
15924 /* @internal */
15925 export function Record_get_file(this_ptr: number): number {
15926         if(!isWasmInitialized) {
15927                 throw new Error("initializeWasm() must be awaited first!");
15928         }
15929         const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
15930         return nativeResponseValue;
15931 }
15932         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15933 /* @internal */
15934 export function Record_set_file(this_ptr: number, val: number): void {
15935         if(!isWasmInitialized) {
15936                 throw new Error("initializeWasm() must be awaited first!");
15937         }
15938         const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
15939         // debug statements here
15940 }
15941         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
15942 /* @internal */
15943 export function Record_get_line(this_ptr: number): number {
15944         if(!isWasmInitialized) {
15945                 throw new Error("initializeWasm() must be awaited first!");
15946         }
15947         const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
15948         return nativeResponseValue;
15949 }
15950         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
15951 /* @internal */
15952 export function Record_set_line(this_ptr: number, val: number): void {
15953         if(!isWasmInitialized) {
15954                 throw new Error("initializeWasm() must be awaited first!");
15955         }
15956         const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
15957         // debug statements here
15958 }
15959         // uintptr_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
15960 /* @internal */
15961 export function Record_clone_ptr(arg: number): number {
15962         if(!isWasmInitialized) {
15963                 throw new Error("initializeWasm() must be awaited first!");
15964         }
15965         const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
15966         return nativeResponseValue;
15967 }
15968         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
15969 /* @internal */
15970 export function Record_clone(orig: number): number {
15971         if(!isWasmInitialized) {
15972                 throw new Error("initializeWasm() must be awaited first!");
15973         }
15974         const nativeResponseValue = wasm.TS_Record_clone(orig);
15975         return nativeResponseValue;
15976 }
15977         // void Logger_free(struct LDKLogger this_ptr);
15978 /* @internal */
15979 export function Logger_free(this_ptr: number): void {
15980         if(!isWasmInitialized) {
15981                 throw new Error("initializeWasm() must be awaited first!");
15982         }
15983         const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
15984         // debug statements here
15985 }
15986         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
15987 /* @internal */
15988 export function ChannelHandshakeConfig_free(this_obj: number): void {
15989         if(!isWasmInitialized) {
15990                 throw new Error("initializeWasm() must be awaited first!");
15991         }
15992         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
15993         // debug statements here
15994 }
15995         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15996 /* @internal */
15997 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: number): number {
15998         if(!isWasmInitialized) {
15999                 throw new Error("initializeWasm() must be awaited first!");
16000         }
16001         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
16002         return nativeResponseValue;
16003 }
16004         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
16005 /* @internal */
16006 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: number, val: number): void {
16007         if(!isWasmInitialized) {
16008                 throw new Error("initializeWasm() must be awaited first!");
16009         }
16010         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
16011         // debug statements here
16012 }
16013         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16014 /* @internal */
16015 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: number): number {
16016         if(!isWasmInitialized) {
16017                 throw new Error("initializeWasm() must be awaited first!");
16018         }
16019         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
16020         return nativeResponseValue;
16021 }
16022         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
16023 /* @internal */
16024 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: number, val: number): void {
16025         if(!isWasmInitialized) {
16026                 throw new Error("initializeWasm() must be awaited first!");
16027         }
16028         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
16029         // debug statements here
16030 }
16031         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16032 /* @internal */
16033 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: number): bigint {
16034         if(!isWasmInitialized) {
16035                 throw new Error("initializeWasm() must be awaited first!");
16036         }
16037         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
16038         return nativeResponseValue;
16039 }
16040         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
16041 /* @internal */
16042 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: number, val: bigint): void {
16043         if(!isWasmInitialized) {
16044                 throw new Error("initializeWasm() must be awaited first!");
16045         }
16046         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
16047         // debug statements here
16048 }
16049         // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16050 /* @internal */
16051 export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: number): number {
16052         if(!isWasmInitialized) {
16053                 throw new Error("initializeWasm() must be awaited first!");
16054         }
16055         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr);
16056         return nativeResponseValue;
16057 }
16058         // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
16059 /* @internal */
16060 export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: number, val: number): void {
16061         if(!isWasmInitialized) {
16062                 throw new Error("initializeWasm() must be awaited first!");
16063         }
16064         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val);
16065         // debug statements here
16066 }
16067         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16068 /* @internal */
16069 export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: number): boolean {
16070         if(!isWasmInitialized) {
16071                 throw new Error("initializeWasm() must be awaited first!");
16072         }
16073         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr);
16074         return nativeResponseValue;
16075 }
16076         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16077 /* @internal */
16078 export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: number, val: boolean): void {
16079         if(!isWasmInitialized) {
16080                 throw new Error("initializeWasm() must be awaited first!");
16081         }
16082         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val);
16083         // debug statements here
16084 }
16085         // 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);
16086 /* @internal */
16087 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): number {
16088         if(!isWasmInitialized) {
16089                 throw new Error("initializeWasm() must be awaited first!");
16090         }
16091         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);
16092         return nativeResponseValue;
16093 }
16094         // uintptr_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
16095 /* @internal */
16096 export function ChannelHandshakeConfig_clone_ptr(arg: number): number {
16097         if(!isWasmInitialized) {
16098                 throw new Error("initializeWasm() must be awaited first!");
16099         }
16100         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
16101         return nativeResponseValue;
16102 }
16103         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
16104 /* @internal */
16105 export function ChannelHandshakeConfig_clone(orig: number): number {
16106         if(!isWasmInitialized) {
16107                 throw new Error("initializeWasm() must be awaited first!");
16108         }
16109         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
16110         return nativeResponseValue;
16111 }
16112         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
16113 /* @internal */
16114 export function ChannelHandshakeConfig_default(): number {
16115         if(!isWasmInitialized) {
16116                 throw new Error("initializeWasm() must be awaited first!");
16117         }
16118         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
16119         return nativeResponseValue;
16120 }
16121         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
16122 /* @internal */
16123 export function ChannelHandshakeLimits_free(this_obj: number): void {
16124         if(!isWasmInitialized) {
16125                 throw new Error("initializeWasm() must be awaited first!");
16126         }
16127         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
16128         // debug statements here
16129 }
16130         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16131 /* @internal */
16132 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: number): bigint {
16133         if(!isWasmInitialized) {
16134                 throw new Error("initializeWasm() must be awaited first!");
16135         }
16136         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
16137         return nativeResponseValue;
16138 }
16139         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16140 /* @internal */
16141 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: number, val: bigint): void {
16142         if(!isWasmInitialized) {
16143                 throw new Error("initializeWasm() must be awaited first!");
16144         }
16145         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
16146         // debug statements here
16147 }
16148         // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16149 /* @internal */
16150 export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: number): bigint {
16151         if(!isWasmInitialized) {
16152                 throw new Error("initializeWasm() must be awaited first!");
16153         }
16154         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr);
16155         return nativeResponseValue;
16156 }
16157         // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16158 /* @internal */
16159 export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: number, val: bigint): void {
16160         if(!isWasmInitialized) {
16161                 throw new Error("initializeWasm() must be awaited first!");
16162         }
16163         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val);
16164         // debug statements here
16165 }
16166         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16167 /* @internal */
16168 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: number): bigint {
16169         if(!isWasmInitialized) {
16170                 throw new Error("initializeWasm() must be awaited first!");
16171         }
16172         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
16173         return nativeResponseValue;
16174 }
16175         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16176 /* @internal */
16177 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: number, val: bigint): void {
16178         if(!isWasmInitialized) {
16179                 throw new Error("initializeWasm() must be awaited first!");
16180         }
16181         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
16182         // debug statements here
16183 }
16184         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16185 /* @internal */
16186 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
16187         if(!isWasmInitialized) {
16188                 throw new Error("initializeWasm() must be awaited first!");
16189         }
16190         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
16191         return nativeResponseValue;
16192 }
16193         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16194 /* @internal */
16195 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
16196         if(!isWasmInitialized) {
16197                 throw new Error("initializeWasm() must be awaited first!");
16198         }
16199         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
16200         // debug statements here
16201 }
16202         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16203 /* @internal */
16204 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: number): bigint {
16205         if(!isWasmInitialized) {
16206                 throw new Error("initializeWasm() must be awaited first!");
16207         }
16208         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
16209         return nativeResponseValue;
16210 }
16211         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16212 /* @internal */
16213 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
16214         if(!isWasmInitialized) {
16215                 throw new Error("initializeWasm() must be awaited first!");
16216         }
16217         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
16218         // debug statements here
16219 }
16220         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16221 /* @internal */
16222 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: number): number {
16223         if(!isWasmInitialized) {
16224                 throw new Error("initializeWasm() must be awaited first!");
16225         }
16226         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
16227         return nativeResponseValue;
16228 }
16229         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
16230 /* @internal */
16231 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: number, val: number): void {
16232         if(!isWasmInitialized) {
16233                 throw new Error("initializeWasm() must be awaited first!");
16234         }
16235         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
16236         // debug statements here
16237 }
16238         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16239 /* @internal */
16240 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: number): number {
16241         if(!isWasmInitialized) {
16242                 throw new Error("initializeWasm() must be awaited first!");
16243         }
16244         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
16245         return nativeResponseValue;
16246 }
16247         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
16248 /* @internal */
16249 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: number, val: number): void {
16250         if(!isWasmInitialized) {
16251                 throw new Error("initializeWasm() must be awaited first!");
16252         }
16253         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
16254         // debug statements here
16255 }
16256         // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16257 /* @internal */
16258 export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: number): boolean {
16259         if(!isWasmInitialized) {
16260                 throw new Error("initializeWasm() must be awaited first!");
16261         }
16262         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr);
16263         return nativeResponseValue;
16264 }
16265         // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
16266 /* @internal */
16267 export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: number, val: boolean): void {
16268         if(!isWasmInitialized) {
16269                 throw new Error("initializeWasm() must be awaited first!");
16270         }
16271         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val);
16272         // debug statements here
16273 }
16274         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16275 /* @internal */
16276 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: number): boolean {
16277         if(!isWasmInitialized) {
16278                 throw new Error("initializeWasm() must be awaited first!");
16279         }
16280         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
16281         return nativeResponseValue;
16282 }
16283         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
16284 /* @internal */
16285 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: number, val: boolean): void {
16286         if(!isWasmInitialized) {
16287                 throw new Error("initializeWasm() must be awaited first!");
16288         }
16289         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
16290         // debug statements here
16291 }
16292         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16293 /* @internal */
16294 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: number): number {
16295         if(!isWasmInitialized) {
16296                 throw new Error("initializeWasm() must be awaited first!");
16297         }
16298         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
16299         return nativeResponseValue;
16300 }
16301         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
16302 /* @internal */
16303 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: number, val: number): void {
16304         if(!isWasmInitialized) {
16305                 throw new Error("initializeWasm() must be awaited first!");
16306         }
16307         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
16308         // debug statements here
16309 }
16310         // 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);
16311 /* @internal */
16312 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 {
16313         if(!isWasmInitialized) {
16314                 throw new Error("initializeWasm() must be awaited first!");
16315         }
16316         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);
16317         return nativeResponseValue;
16318 }
16319         // uintptr_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
16320 /* @internal */
16321 export function ChannelHandshakeLimits_clone_ptr(arg: number): number {
16322         if(!isWasmInitialized) {
16323                 throw new Error("initializeWasm() must be awaited first!");
16324         }
16325         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
16326         return nativeResponseValue;
16327 }
16328         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
16329 /* @internal */
16330 export function ChannelHandshakeLimits_clone(orig: number): number {
16331         if(!isWasmInitialized) {
16332                 throw new Error("initializeWasm() must be awaited first!");
16333         }
16334         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
16335         return nativeResponseValue;
16336 }
16337         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
16338 /* @internal */
16339 export function ChannelHandshakeLimits_default(): number {
16340         if(!isWasmInitialized) {
16341                 throw new Error("initializeWasm() must be awaited first!");
16342         }
16343         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
16344         return nativeResponseValue;
16345 }
16346         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
16347 /* @internal */
16348 export function ChannelConfig_free(this_obj: number): void {
16349         if(!isWasmInitialized) {
16350                 throw new Error("initializeWasm() must be awaited first!");
16351         }
16352         const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
16353         // debug statements here
16354 }
16355         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16356 /* @internal */
16357 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: number): number {
16358         if(!isWasmInitialized) {
16359                 throw new Error("initializeWasm() must be awaited first!");
16360         }
16361         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
16362         return nativeResponseValue;
16363 }
16364         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
16365 /* @internal */
16366 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: number, val: number): void {
16367         if(!isWasmInitialized) {
16368                 throw new Error("initializeWasm() must be awaited first!");
16369         }
16370         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
16371         // debug statements here
16372 }
16373         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16374 /* @internal */
16375 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: number): number {
16376         if(!isWasmInitialized) {
16377                 throw new Error("initializeWasm() must be awaited first!");
16378         }
16379         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
16380         return nativeResponseValue;
16381 }
16382         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
16383 /* @internal */
16384 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: number, val: number): void {
16385         if(!isWasmInitialized) {
16386                 throw new Error("initializeWasm() must be awaited first!");
16387         }
16388         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
16389         // debug statements here
16390 }
16391         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16392 /* @internal */
16393 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: number): number {
16394         if(!isWasmInitialized) {
16395                 throw new Error("initializeWasm() must be awaited first!");
16396         }
16397         const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
16398         return nativeResponseValue;
16399 }
16400         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
16401 /* @internal */
16402 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: number, val: number): void {
16403         if(!isWasmInitialized) {
16404                 throw new Error("initializeWasm() must be awaited first!");
16405         }
16406         const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
16407         // debug statements here
16408 }
16409         // bool ChannelConfig_get_announced_channel(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16410 /* @internal */
16411 export function ChannelConfig_get_announced_channel(this_ptr: number): boolean {
16412         if(!isWasmInitialized) {
16413                 throw new Error("initializeWasm() must be awaited first!");
16414         }
16415         const nativeResponseValue = wasm.TS_ChannelConfig_get_announced_channel(this_ptr);
16416         return nativeResponseValue;
16417 }
16418         // void ChannelConfig_set_announced_channel(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
16419 /* @internal */
16420 export function ChannelConfig_set_announced_channel(this_ptr: number, val: boolean): void {
16421         if(!isWasmInitialized) {
16422                 throw new Error("initializeWasm() must be awaited first!");
16423         }
16424         const nativeResponseValue = wasm.TS_ChannelConfig_set_announced_channel(this_ptr, val);
16425         // debug statements here
16426 }
16427         // bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16428 /* @internal */
16429 export function ChannelConfig_get_commit_upfront_shutdown_pubkey(this_ptr: number): boolean {
16430         if(!isWasmInitialized) {
16431                 throw new Error("initializeWasm() must be awaited first!");
16432         }
16433         const nativeResponseValue = wasm.TS_ChannelConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
16434         return nativeResponseValue;
16435 }
16436         // void ChannelConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
16437 /* @internal */
16438 export function ChannelConfig_set_commit_upfront_shutdown_pubkey(this_ptr: number, val: boolean): void {
16439         if(!isWasmInitialized) {
16440                 throw new Error("initializeWasm() must be awaited first!");
16441         }
16442         const nativeResponseValue = wasm.TS_ChannelConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
16443         // debug statements here
16444 }
16445         // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16446 /* @internal */
16447 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: number): bigint {
16448         if(!isWasmInitialized) {
16449                 throw new Error("initializeWasm() must be awaited first!");
16450         }
16451         const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
16452         return nativeResponseValue;
16453 }
16454         // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16455 /* @internal */
16456 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: number, val: bigint): void {
16457         if(!isWasmInitialized) {
16458                 throw new Error("initializeWasm() must be awaited first!");
16459         }
16460         const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
16461         // debug statements here
16462 }
16463         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16464 /* @internal */
16465 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: number): bigint {
16466         if(!isWasmInitialized) {
16467                 throw new Error("initializeWasm() must be awaited first!");
16468         }
16469         const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
16470         return nativeResponseValue;
16471 }
16472         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16473 /* @internal */
16474 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: number, val: bigint): void {
16475         if(!isWasmInitialized) {
16476                 throw new Error("initializeWasm() must be awaited first!");
16477         }
16478         const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
16479         // debug statements here
16480 }
16481         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
16482 /* @internal */
16483 export function ChannelConfig_new(forwarding_fee_proportional_millionths_arg: number, forwarding_fee_base_msat_arg: number, cltv_expiry_delta_arg: number, announced_channel_arg: boolean, commit_upfront_shutdown_pubkey_arg: boolean, max_dust_htlc_exposure_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): number {
16484         if(!isWasmInitialized) {
16485                 throw new Error("initializeWasm() must be awaited first!");
16486         }
16487         const nativeResponseValue = wasm.TS_ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg);
16488         return nativeResponseValue;
16489 }
16490         // uintptr_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
16491 /* @internal */
16492 export function ChannelConfig_clone_ptr(arg: number): number {
16493         if(!isWasmInitialized) {
16494                 throw new Error("initializeWasm() must be awaited first!");
16495         }
16496         const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
16497         return nativeResponseValue;
16498 }
16499         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
16500 /* @internal */
16501 export function ChannelConfig_clone(orig: number): number {
16502         if(!isWasmInitialized) {
16503                 throw new Error("initializeWasm() must be awaited first!");
16504         }
16505         const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
16506         return nativeResponseValue;
16507 }
16508         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
16509 /* @internal */
16510 export function ChannelConfig_default(): number {
16511         if(!isWasmInitialized) {
16512                 throw new Error("initializeWasm() must be awaited first!");
16513         }
16514         const nativeResponseValue = wasm.TS_ChannelConfig_default();
16515         return nativeResponseValue;
16516 }
16517         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
16518 /* @internal */
16519 export function ChannelConfig_write(obj: number): number {
16520         if(!isWasmInitialized) {
16521                 throw new Error("initializeWasm() must be awaited first!");
16522         }
16523         const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
16524         return nativeResponseValue;
16525 }
16526         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
16527 /* @internal */
16528 export function ChannelConfig_read(ser: number): number {
16529         if(!isWasmInitialized) {
16530                 throw new Error("initializeWasm() must be awaited first!");
16531         }
16532         const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
16533         return nativeResponseValue;
16534 }
16535         // void UserConfig_free(struct LDKUserConfig this_obj);
16536 /* @internal */
16537 export function UserConfig_free(this_obj: number): void {
16538         if(!isWasmInitialized) {
16539                 throw new Error("initializeWasm() must be awaited first!");
16540         }
16541         const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
16542         // debug statements here
16543 }
16544         // struct LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16545 /* @internal */
16546 export function UserConfig_get_own_channel_config(this_ptr: number): number {
16547         if(!isWasmInitialized) {
16548                 throw new Error("initializeWasm() must be awaited first!");
16549         }
16550         const nativeResponseValue = wasm.TS_UserConfig_get_own_channel_config(this_ptr);
16551         return nativeResponseValue;
16552 }
16553         // void UserConfig_set_own_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
16554 /* @internal */
16555 export function UserConfig_set_own_channel_config(this_ptr: number, val: number): void {
16556         if(!isWasmInitialized) {
16557                 throw new Error("initializeWasm() must be awaited first!");
16558         }
16559         const nativeResponseValue = wasm.TS_UserConfig_set_own_channel_config(this_ptr, val);
16560         // debug statements here
16561 }
16562         // struct LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16563 /* @internal */
16564 export function UserConfig_get_peer_channel_config_limits(this_ptr: number): number {
16565         if(!isWasmInitialized) {
16566                 throw new Error("initializeWasm() must be awaited first!");
16567         }
16568         const nativeResponseValue = wasm.TS_UserConfig_get_peer_channel_config_limits(this_ptr);
16569         return nativeResponseValue;
16570 }
16571         // void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
16572 /* @internal */
16573 export function UserConfig_set_peer_channel_config_limits(this_ptr: number, val: number): void {
16574         if(!isWasmInitialized) {
16575                 throw new Error("initializeWasm() must be awaited first!");
16576         }
16577         const nativeResponseValue = wasm.TS_UserConfig_set_peer_channel_config_limits(this_ptr, val);
16578         // debug statements here
16579 }
16580         // struct LDKChannelConfig UserConfig_get_channel_options(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16581 /* @internal */
16582 export function UserConfig_get_channel_options(this_ptr: number): number {
16583         if(!isWasmInitialized) {
16584                 throw new Error("initializeWasm() must be awaited first!");
16585         }
16586         const nativeResponseValue = wasm.TS_UserConfig_get_channel_options(this_ptr);
16587         return nativeResponseValue;
16588 }
16589         // void UserConfig_set_channel_options(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
16590 /* @internal */
16591 export function UserConfig_set_channel_options(this_ptr: number, val: number): void {
16592         if(!isWasmInitialized) {
16593                 throw new Error("initializeWasm() must be awaited first!");
16594         }
16595         const nativeResponseValue = wasm.TS_UserConfig_set_channel_options(this_ptr, val);
16596         // debug statements here
16597 }
16598         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16599 /* @internal */
16600 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: number): boolean {
16601         if(!isWasmInitialized) {
16602                 throw new Error("initializeWasm() must be awaited first!");
16603         }
16604         const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
16605         return nativeResponseValue;
16606 }
16607         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16608 /* @internal */
16609 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: number, val: boolean): void {
16610         if(!isWasmInitialized) {
16611                 throw new Error("initializeWasm() must be awaited first!");
16612         }
16613         const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
16614         // debug statements here
16615 }
16616         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16617 /* @internal */
16618 export function UserConfig_get_accept_inbound_channels(this_ptr: number): boolean {
16619         if(!isWasmInitialized) {
16620                 throw new Error("initializeWasm() must be awaited first!");
16621         }
16622         const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
16623         return nativeResponseValue;
16624 }
16625         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16626 /* @internal */
16627 export function UserConfig_set_accept_inbound_channels(this_ptr: number, val: boolean): void {
16628         if(!isWasmInitialized) {
16629                 throw new Error("initializeWasm() must be awaited first!");
16630         }
16631         const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
16632         // debug statements here
16633 }
16634         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16635 /* @internal */
16636 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: number): boolean {
16637         if(!isWasmInitialized) {
16638                 throw new Error("initializeWasm() must be awaited first!");
16639         }
16640         const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
16641         return nativeResponseValue;
16642 }
16643         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16644 /* @internal */
16645 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: number, val: boolean): void {
16646         if(!isWasmInitialized) {
16647                 throw new Error("initializeWasm() must be awaited first!");
16648         }
16649         const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
16650         // debug statements here
16651 }
16652         // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig own_channel_config_arg, struct LDKChannelHandshakeLimits peer_channel_config_limits_arg, struct LDKChannelConfig channel_options_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg);
16653 /* @internal */
16654 export function UserConfig_new(own_channel_config_arg: number, peer_channel_config_limits_arg: number, channel_options_arg: number, accept_forwards_to_priv_channels_arg: boolean, accept_inbound_channels_arg: boolean, manually_accept_inbound_channels_arg: boolean): number {
16655         if(!isWasmInitialized) {
16656                 throw new Error("initializeWasm() must be awaited first!");
16657         }
16658         const nativeResponseValue = wasm.TS_UserConfig_new(own_channel_config_arg, peer_channel_config_limits_arg, channel_options_arg, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg);
16659         return nativeResponseValue;
16660 }
16661         // uintptr_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
16662 /* @internal */
16663 export function UserConfig_clone_ptr(arg: number): number {
16664         if(!isWasmInitialized) {
16665                 throw new Error("initializeWasm() must be awaited first!");
16666         }
16667         const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
16668         return nativeResponseValue;
16669 }
16670         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
16671 /* @internal */
16672 export function UserConfig_clone(orig: number): number {
16673         if(!isWasmInitialized) {
16674                 throw new Error("initializeWasm() must be awaited first!");
16675         }
16676         const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
16677         return nativeResponseValue;
16678 }
16679         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
16680 /* @internal */
16681 export function UserConfig_default(): number {
16682         if(!isWasmInitialized) {
16683                 throw new Error("initializeWasm() must be awaited first!");
16684         }
16685         const nativeResponseValue = wasm.TS_UserConfig_default();
16686         return nativeResponseValue;
16687 }
16688         // void BestBlock_free(struct LDKBestBlock this_obj);
16689 /* @internal */
16690 export function BestBlock_free(this_obj: number): void {
16691         if(!isWasmInitialized) {
16692                 throw new Error("initializeWasm() must be awaited first!");
16693         }
16694         const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
16695         // debug statements here
16696 }
16697         // uintptr_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
16698 /* @internal */
16699 export function BestBlock_clone_ptr(arg: number): number {
16700         if(!isWasmInitialized) {
16701                 throw new Error("initializeWasm() must be awaited first!");
16702         }
16703         const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
16704         return nativeResponseValue;
16705 }
16706         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
16707 /* @internal */
16708 export function BestBlock_clone(orig: number): number {
16709         if(!isWasmInitialized) {
16710                 throw new Error("initializeWasm() must be awaited first!");
16711         }
16712         const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
16713         return nativeResponseValue;
16714 }
16715         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
16716 /* @internal */
16717 export function BestBlock_from_genesis(network: Network): number {
16718         if(!isWasmInitialized) {
16719                 throw new Error("initializeWasm() must be awaited first!");
16720         }
16721         const nativeResponseValue = wasm.TS_BestBlock_from_genesis(network);
16722         return nativeResponseValue;
16723 }
16724         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
16725 /* @internal */
16726 export function BestBlock_new(block_hash: number, height: number): number {
16727         if(!isWasmInitialized) {
16728                 throw new Error("initializeWasm() must be awaited first!");
16729         }
16730         const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
16731         return nativeResponseValue;
16732 }
16733         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
16734 /* @internal */
16735 export function BestBlock_block_hash(this_arg: number): number {
16736         if(!isWasmInitialized) {
16737                 throw new Error("initializeWasm() must be awaited first!");
16738         }
16739         const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
16740         return nativeResponseValue;
16741 }
16742         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
16743 /* @internal */
16744 export function BestBlock_height(this_arg: number): number {
16745         if(!isWasmInitialized) {
16746                 throw new Error("initializeWasm() must be awaited first!");
16747         }
16748         const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
16749         return nativeResponseValue;
16750 }
16751         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
16752 /* @internal */
16753 export function AccessError_clone(orig: number): AccessError {
16754         if(!isWasmInitialized) {
16755                 throw new Error("initializeWasm() must be awaited first!");
16756         }
16757         const nativeResponseValue = wasm.TS_AccessError_clone(orig);
16758         return nativeResponseValue;
16759 }
16760         // enum LDKAccessError AccessError_unknown_chain(void);
16761 /* @internal */
16762 export function AccessError_unknown_chain(): AccessError {
16763         if(!isWasmInitialized) {
16764                 throw new Error("initializeWasm() must be awaited first!");
16765         }
16766         const nativeResponseValue = wasm.TS_AccessError_unknown_chain();
16767         return nativeResponseValue;
16768 }
16769         // enum LDKAccessError AccessError_unknown_tx(void);
16770 /* @internal */
16771 export function AccessError_unknown_tx(): AccessError {
16772         if(!isWasmInitialized) {
16773                 throw new Error("initializeWasm() must be awaited first!");
16774         }
16775         const nativeResponseValue = wasm.TS_AccessError_unknown_tx();
16776         return nativeResponseValue;
16777 }
16778         // void Access_free(struct LDKAccess this_ptr);
16779 /* @internal */
16780 export function Access_free(this_ptr: number): void {
16781         if(!isWasmInitialized) {
16782                 throw new Error("initializeWasm() must be awaited first!");
16783         }
16784         const nativeResponseValue = wasm.TS_Access_free(this_ptr);
16785         // debug statements here
16786 }
16787         // void Listen_free(struct LDKListen this_ptr);
16788 /* @internal */
16789 export function Listen_free(this_ptr: number): void {
16790         if(!isWasmInitialized) {
16791                 throw new Error("initializeWasm() must be awaited first!");
16792         }
16793         const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
16794         // debug statements here
16795 }
16796         // void Confirm_free(struct LDKConfirm this_ptr);
16797 /* @internal */
16798 export function Confirm_free(this_ptr: number): void {
16799         if(!isWasmInitialized) {
16800                 throw new Error("initializeWasm() must be awaited first!");
16801         }
16802         const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
16803         // debug statements here
16804 }
16805         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
16806 /* @internal */
16807 export function ChannelMonitorUpdateErr_clone(orig: number): ChannelMonitorUpdateErr {
16808         if(!isWasmInitialized) {
16809                 throw new Error("initializeWasm() must be awaited first!");
16810         }
16811         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_clone(orig);
16812         return nativeResponseValue;
16813 }
16814         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
16815 /* @internal */
16816 export function ChannelMonitorUpdateErr_temporary_failure(): ChannelMonitorUpdateErr {
16817         if(!isWasmInitialized) {
16818                 throw new Error("initializeWasm() must be awaited first!");
16819         }
16820         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_temporary_failure();
16821         return nativeResponseValue;
16822 }
16823         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
16824 /* @internal */
16825 export function ChannelMonitorUpdateErr_permanent_failure(): ChannelMonitorUpdateErr {
16826         if(!isWasmInitialized) {
16827                 throw new Error("initializeWasm() must be awaited first!");
16828         }
16829         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_permanent_failure();
16830         return nativeResponseValue;
16831 }
16832         // void Watch_free(struct LDKWatch this_ptr);
16833 /* @internal */
16834 export function Watch_free(this_ptr: number): void {
16835         if(!isWasmInitialized) {
16836                 throw new Error("initializeWasm() must be awaited first!");
16837         }
16838         const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
16839         // debug statements here
16840 }
16841         // void Filter_free(struct LDKFilter this_ptr);
16842 /* @internal */
16843 export function Filter_free(this_ptr: number): void {
16844         if(!isWasmInitialized) {
16845                 throw new Error("initializeWasm() must be awaited first!");
16846         }
16847         const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
16848         // debug statements here
16849 }
16850         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
16851 /* @internal */
16852 export function WatchedOutput_free(this_obj: number): void {
16853         if(!isWasmInitialized) {
16854                 throw new Error("initializeWasm() must be awaited first!");
16855         }
16856         const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
16857         // debug statements here
16858 }
16859         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16860 /* @internal */
16861 export function WatchedOutput_get_block_hash(this_ptr: number): number {
16862         if(!isWasmInitialized) {
16863                 throw new Error("initializeWasm() must be awaited first!");
16864         }
16865         const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
16866         return nativeResponseValue;
16867 }
16868         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
16869 /* @internal */
16870 export function WatchedOutput_set_block_hash(this_ptr: number, val: number): void {
16871         if(!isWasmInitialized) {
16872                 throw new Error("initializeWasm() must be awaited first!");
16873         }
16874         const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
16875         // debug statements here
16876 }
16877         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16878 /* @internal */
16879 export function WatchedOutput_get_outpoint(this_ptr: number): number {
16880         if(!isWasmInitialized) {
16881                 throw new Error("initializeWasm() must be awaited first!");
16882         }
16883         const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
16884         return nativeResponseValue;
16885 }
16886         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
16887 /* @internal */
16888 export function WatchedOutput_set_outpoint(this_ptr: number, val: number): void {
16889         if(!isWasmInitialized) {
16890                 throw new Error("initializeWasm() must be awaited first!");
16891         }
16892         const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
16893         // debug statements here
16894 }
16895         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16896 /* @internal */
16897 export function WatchedOutput_get_script_pubkey(this_ptr: number): number {
16898         if(!isWasmInitialized) {
16899                 throw new Error("initializeWasm() must be awaited first!");
16900         }
16901         const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
16902         return nativeResponseValue;
16903 }
16904         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
16905 /* @internal */
16906 export function WatchedOutput_set_script_pubkey(this_ptr: number, val: number): void {
16907         if(!isWasmInitialized) {
16908                 throw new Error("initializeWasm() must be awaited first!");
16909         }
16910         const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
16911         // debug statements here
16912 }
16913         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
16914 /* @internal */
16915 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: number, script_pubkey_arg: number): number {
16916         if(!isWasmInitialized) {
16917                 throw new Error("initializeWasm() must be awaited first!");
16918         }
16919         const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
16920         return nativeResponseValue;
16921 }
16922         // uintptr_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
16923 /* @internal */
16924 export function WatchedOutput_clone_ptr(arg: number): number {
16925         if(!isWasmInitialized) {
16926                 throw new Error("initializeWasm() must be awaited first!");
16927         }
16928         const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
16929         return nativeResponseValue;
16930 }
16931         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
16932 /* @internal */
16933 export function WatchedOutput_clone(orig: number): number {
16934         if(!isWasmInitialized) {
16935                 throw new Error("initializeWasm() must be awaited first!");
16936         }
16937         const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
16938         return nativeResponseValue;
16939 }
16940         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
16941 /* @internal */
16942 export function WatchedOutput_hash(o: number): bigint {
16943         if(!isWasmInitialized) {
16944                 throw new Error("initializeWasm() must be awaited first!");
16945         }
16946         const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
16947         return nativeResponseValue;
16948 }
16949         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
16950 /* @internal */
16951 export function BroadcasterInterface_free(this_ptr: number): void {
16952         if(!isWasmInitialized) {
16953                 throw new Error("initializeWasm() must be awaited first!");
16954         }
16955         const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
16956         // debug statements here
16957 }
16958         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
16959 /* @internal */
16960 export function ConfirmationTarget_clone(orig: number): ConfirmationTarget {
16961         if(!isWasmInitialized) {
16962                 throw new Error("initializeWasm() must be awaited first!");
16963         }
16964         const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
16965         return nativeResponseValue;
16966 }
16967         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
16968 /* @internal */
16969 export function ConfirmationTarget_background(): ConfirmationTarget {
16970         if(!isWasmInitialized) {
16971                 throw new Error("initializeWasm() must be awaited first!");
16972         }
16973         const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
16974         return nativeResponseValue;
16975 }
16976         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
16977 /* @internal */
16978 export function ConfirmationTarget_normal(): ConfirmationTarget {
16979         if(!isWasmInitialized) {
16980                 throw new Error("initializeWasm() must be awaited first!");
16981         }
16982         const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
16983         return nativeResponseValue;
16984 }
16985         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
16986 /* @internal */
16987 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
16988         if(!isWasmInitialized) {
16989                 throw new Error("initializeWasm() must be awaited first!");
16990         }
16991         const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
16992         return nativeResponseValue;
16993 }
16994         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
16995 /* @internal */
16996 export function ConfirmationTarget_eq(a: number, b: number): boolean {
16997         if(!isWasmInitialized) {
16998                 throw new Error("initializeWasm() must be awaited first!");
16999         }
17000         const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
17001         return nativeResponseValue;
17002 }
17003         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
17004 /* @internal */
17005 export function FeeEstimator_free(this_ptr: number): void {
17006         if(!isWasmInitialized) {
17007                 throw new Error("initializeWasm() must be awaited first!");
17008         }
17009         const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
17010         // debug statements here
17011 }
17012         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
17013 /* @internal */
17014 export function MonitorUpdateId_free(this_obj: number): void {
17015         if(!isWasmInitialized) {
17016                 throw new Error("initializeWasm() must be awaited first!");
17017         }
17018         const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
17019         // debug statements here
17020 }
17021         // uintptr_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
17022 /* @internal */
17023 export function MonitorUpdateId_clone_ptr(arg: number): number {
17024         if(!isWasmInitialized) {
17025                 throw new Error("initializeWasm() must be awaited first!");
17026         }
17027         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
17028         return nativeResponseValue;
17029 }
17030         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
17031 /* @internal */
17032 export function MonitorUpdateId_clone(orig: number): number {
17033         if(!isWasmInitialized) {
17034                 throw new Error("initializeWasm() must be awaited first!");
17035         }
17036         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
17037         return nativeResponseValue;
17038 }
17039         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
17040 /* @internal */
17041 export function MonitorUpdateId_hash(o: number): bigint {
17042         if(!isWasmInitialized) {
17043                 throw new Error("initializeWasm() must be awaited first!");
17044         }
17045         const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
17046         return nativeResponseValue;
17047 }
17048         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
17049 /* @internal */
17050 export function MonitorUpdateId_eq(a: number, b: number): boolean {
17051         if(!isWasmInitialized) {
17052                 throw new Error("initializeWasm() must be awaited first!");
17053         }
17054         const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
17055         return nativeResponseValue;
17056 }
17057         // void Persist_free(struct LDKPersist this_ptr);
17058 /* @internal */
17059 export function Persist_free(this_ptr: number): void {
17060         if(!isWasmInitialized) {
17061                 throw new Error("initializeWasm() must be awaited first!");
17062         }
17063         const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
17064         // debug statements here
17065 }
17066         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
17067 /* @internal */
17068 export function LockedChannelMonitor_free(this_obj: number): void {
17069         if(!isWasmInitialized) {
17070                 throw new Error("initializeWasm() must be awaited first!");
17071         }
17072         const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
17073         // debug statements here
17074 }
17075         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
17076 /* @internal */
17077 export function ChainMonitor_free(this_obj: number): void {
17078         if(!isWasmInitialized) {
17079                 throw new Error("initializeWasm() must be awaited first!");
17080         }
17081         const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
17082         // debug statements here
17083 }
17084         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
17085 /* @internal */
17086 export function ChainMonitor_new(chain_source: number, broadcaster: number, logger: number, feeest: number, persister: number): number {
17087         if(!isWasmInitialized) {
17088                 throw new Error("initializeWasm() must be awaited first!");
17089         }
17090         const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
17091         return nativeResponseValue;
17092 }
17093         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
17094 /* @internal */
17095 export function ChainMonitor_get_claimable_balances(this_arg: number, ignored_channels: number): number {
17096         if(!isWasmInitialized) {
17097                 throw new Error("initializeWasm() must be awaited first!");
17098         }
17099         const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
17100         return nativeResponseValue;
17101 }
17102         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
17103 /* @internal */
17104 export function ChainMonitor_get_monitor(this_arg: number, funding_txo: number): number {
17105         if(!isWasmInitialized) {
17106                 throw new Error("initializeWasm() must be awaited first!");
17107         }
17108         const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
17109         return nativeResponseValue;
17110 }
17111         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17112 /* @internal */
17113 export function ChainMonitor_list_monitors(this_arg: number): number {
17114         if(!isWasmInitialized) {
17115                 throw new Error("initializeWasm() must be awaited first!");
17116         }
17117         const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
17118         return nativeResponseValue;
17119 }
17120         // 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);
17121 /* @internal */
17122 export function ChainMonitor_channel_monitor_updated(this_arg: number, funding_txo: number, completed_update_id: number): number {
17123         if(!isWasmInitialized) {
17124                 throw new Error("initializeWasm() must be awaited first!");
17125         }
17126         const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
17127         return nativeResponseValue;
17128 }
17129         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17130 /* @internal */
17131 export function ChainMonitor_as_Listen(this_arg: number): number {
17132         if(!isWasmInitialized) {
17133                 throw new Error("initializeWasm() must be awaited first!");
17134         }
17135         const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
17136         return nativeResponseValue;
17137 }
17138         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17139 /* @internal */
17140 export function ChainMonitor_as_Confirm(this_arg: number): number {
17141         if(!isWasmInitialized) {
17142                 throw new Error("initializeWasm() must be awaited first!");
17143         }
17144         const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
17145         return nativeResponseValue;
17146 }
17147         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17148 /* @internal */
17149 export function ChainMonitor_as_Watch(this_arg: number): number {
17150         if(!isWasmInitialized) {
17151                 throw new Error("initializeWasm() must be awaited first!");
17152         }
17153         const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
17154         return nativeResponseValue;
17155 }
17156         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17157 /* @internal */
17158 export function ChainMonitor_as_EventsProvider(this_arg: number): number {
17159         if(!isWasmInitialized) {
17160                 throw new Error("initializeWasm() must be awaited first!");
17161         }
17162         const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
17163         return nativeResponseValue;
17164 }
17165         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
17166 /* @internal */
17167 export function ChannelMonitorUpdate_free(this_obj: number): void {
17168         if(!isWasmInitialized) {
17169                 throw new Error("initializeWasm() must be awaited first!");
17170         }
17171         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
17172         // debug statements here
17173 }
17174         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
17175 /* @internal */
17176 export function ChannelMonitorUpdate_get_update_id(this_ptr: number): bigint {
17177         if(!isWasmInitialized) {
17178                 throw new Error("initializeWasm() must be awaited first!");
17179         }
17180         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
17181         return nativeResponseValue;
17182 }
17183         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
17184 /* @internal */
17185 export function ChannelMonitorUpdate_set_update_id(this_ptr: number, val: bigint): void {
17186         if(!isWasmInitialized) {
17187                 throw new Error("initializeWasm() must be awaited first!");
17188         }
17189         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
17190         // debug statements here
17191 }
17192         // uintptr_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
17193 /* @internal */
17194 export function ChannelMonitorUpdate_clone_ptr(arg: number): number {
17195         if(!isWasmInitialized) {
17196                 throw new Error("initializeWasm() must be awaited first!");
17197         }
17198         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
17199         return nativeResponseValue;
17200 }
17201         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
17202 /* @internal */
17203 export function ChannelMonitorUpdate_clone(orig: number): number {
17204         if(!isWasmInitialized) {
17205                 throw new Error("initializeWasm() must be awaited first!");
17206         }
17207         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
17208         return nativeResponseValue;
17209 }
17210         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
17211 /* @internal */
17212 export function ChannelMonitorUpdate_write(obj: number): number {
17213         if(!isWasmInitialized) {
17214                 throw new Error("initializeWasm() must be awaited first!");
17215         }
17216         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
17217         return nativeResponseValue;
17218 }
17219         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
17220 /* @internal */
17221 export function ChannelMonitorUpdate_read(ser: number): number {
17222         if(!isWasmInitialized) {
17223                 throw new Error("initializeWasm() must be awaited first!");
17224         }
17225         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
17226         return nativeResponseValue;
17227 }
17228         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
17229 /* @internal */
17230 export function MonitorEvent_free(this_ptr: number): void {
17231         if(!isWasmInitialized) {
17232                 throw new Error("initializeWasm() must be awaited first!");
17233         }
17234         const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
17235         // debug statements here
17236 }
17237         // uintptr_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
17238 /* @internal */
17239 export function MonitorEvent_clone_ptr(arg: number): number {
17240         if(!isWasmInitialized) {
17241                 throw new Error("initializeWasm() must be awaited first!");
17242         }
17243         const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
17244         return nativeResponseValue;
17245 }
17246         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
17247 /* @internal */
17248 export function MonitorEvent_clone(orig: number): number {
17249         if(!isWasmInitialized) {
17250                 throw new Error("initializeWasm() must be awaited first!");
17251         }
17252         const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
17253         return nativeResponseValue;
17254 }
17255         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
17256 /* @internal */
17257 export function MonitorEvent_htlcevent(a: number): number {
17258         if(!isWasmInitialized) {
17259                 throw new Error("initializeWasm() must be awaited first!");
17260         }
17261         const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
17262         return nativeResponseValue;
17263 }
17264         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
17265 /* @internal */
17266 export function MonitorEvent_commitment_tx_confirmed(a: number): number {
17267         if(!isWasmInitialized) {
17268                 throw new Error("initializeWasm() must be awaited first!");
17269         }
17270         const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
17271         return nativeResponseValue;
17272 }
17273         // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
17274 /* @internal */
17275 export function MonitorEvent_update_completed(funding_txo: number, monitor_update_id: bigint): number {
17276         if(!isWasmInitialized) {
17277                 throw new Error("initializeWasm() must be awaited first!");
17278         }
17279         const nativeResponseValue = wasm.TS_MonitorEvent_update_completed(funding_txo, monitor_update_id);
17280         return nativeResponseValue;
17281 }
17282         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
17283 /* @internal */
17284 export function MonitorEvent_update_failed(a: number): number {
17285         if(!isWasmInitialized) {
17286                 throw new Error("initializeWasm() must be awaited first!");
17287         }
17288         const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
17289         return nativeResponseValue;
17290 }
17291         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
17292 /* @internal */
17293 export function MonitorEvent_write(obj: number): number {
17294         if(!isWasmInitialized) {
17295                 throw new Error("initializeWasm() must be awaited first!");
17296         }
17297         const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
17298         return nativeResponseValue;
17299 }
17300         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
17301 /* @internal */
17302 export function MonitorEvent_read(ser: number): number {
17303         if(!isWasmInitialized) {
17304                 throw new Error("initializeWasm() must be awaited first!");
17305         }
17306         const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
17307         return nativeResponseValue;
17308 }
17309         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
17310 /* @internal */
17311 export function HTLCUpdate_free(this_obj: number): void {
17312         if(!isWasmInitialized) {
17313                 throw new Error("initializeWasm() must be awaited first!");
17314         }
17315         const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
17316         // debug statements here
17317 }
17318         // uintptr_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
17319 /* @internal */
17320 export function HTLCUpdate_clone_ptr(arg: number): number {
17321         if(!isWasmInitialized) {
17322                 throw new Error("initializeWasm() must be awaited first!");
17323         }
17324         const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
17325         return nativeResponseValue;
17326 }
17327         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
17328 /* @internal */
17329 export function HTLCUpdate_clone(orig: number): number {
17330         if(!isWasmInitialized) {
17331                 throw new Error("initializeWasm() must be awaited first!");
17332         }
17333         const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
17334         return nativeResponseValue;
17335 }
17336         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
17337 /* @internal */
17338 export function HTLCUpdate_write(obj: number): number {
17339         if(!isWasmInitialized) {
17340                 throw new Error("initializeWasm() must be awaited first!");
17341         }
17342         const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
17343         return nativeResponseValue;
17344 }
17345         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
17346 /* @internal */
17347 export function HTLCUpdate_read(ser: number): number {
17348         if(!isWasmInitialized) {
17349                 throw new Error("initializeWasm() must be awaited first!");
17350         }
17351         const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
17352         return nativeResponseValue;
17353 }
17354         // void Balance_free(struct LDKBalance this_ptr);
17355 /* @internal */
17356 export function Balance_free(this_ptr: number): void {
17357         if(!isWasmInitialized) {
17358                 throw new Error("initializeWasm() must be awaited first!");
17359         }
17360         const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
17361         // debug statements here
17362 }
17363         // uintptr_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
17364 /* @internal */
17365 export function Balance_clone_ptr(arg: number): number {
17366         if(!isWasmInitialized) {
17367                 throw new Error("initializeWasm() must be awaited first!");
17368         }
17369         const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
17370         return nativeResponseValue;
17371 }
17372         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
17373 /* @internal */
17374 export function Balance_clone(orig: number): number {
17375         if(!isWasmInitialized) {
17376                 throw new Error("initializeWasm() must be awaited first!");
17377         }
17378         const nativeResponseValue = wasm.TS_Balance_clone(orig);
17379         return nativeResponseValue;
17380 }
17381         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
17382 /* @internal */
17383 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): number {
17384         if(!isWasmInitialized) {
17385                 throw new Error("initializeWasm() must be awaited first!");
17386         }
17387         const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
17388         return nativeResponseValue;
17389 }
17390         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
17391 /* @internal */
17392 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): number {
17393         if(!isWasmInitialized) {
17394                 throw new Error("initializeWasm() must be awaited first!");
17395         }
17396         const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
17397         return nativeResponseValue;
17398 }
17399         // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
17400 /* @internal */
17401 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): number {
17402         if(!isWasmInitialized) {
17403                 throw new Error("initializeWasm() must be awaited first!");
17404         }
17405         const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
17406         return nativeResponseValue;
17407 }
17408         // struct LDKBalance Balance_maybe_claimable_htlcawaiting_timeout(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
17409 /* @internal */
17410 export function Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis: bigint, claimable_height: number): number {
17411         if(!isWasmInitialized) {
17412                 throw new Error("initializeWasm() must be awaited first!");
17413         }
17414         const nativeResponseValue = wasm.TS_Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis, claimable_height);
17415         return nativeResponseValue;
17416 }
17417         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
17418 /* @internal */
17419 export function Balance_eq(a: number, b: number): boolean {
17420         if(!isWasmInitialized) {
17421                 throw new Error("initializeWasm() must be awaited first!");
17422         }
17423         const nativeResponseValue = wasm.TS_Balance_eq(a, b);
17424         return nativeResponseValue;
17425 }
17426         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
17427 /* @internal */
17428 export function ChannelMonitor_free(this_obj: number): void {
17429         if(!isWasmInitialized) {
17430                 throw new Error("initializeWasm() must be awaited first!");
17431         }
17432         const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
17433         // debug statements here
17434 }
17435         // uintptr_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
17436 /* @internal */
17437 export function ChannelMonitor_clone_ptr(arg: number): number {
17438         if(!isWasmInitialized) {
17439                 throw new Error("initializeWasm() must be awaited first!");
17440         }
17441         const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
17442         return nativeResponseValue;
17443 }
17444         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
17445 /* @internal */
17446 export function ChannelMonitor_clone(orig: number): number {
17447         if(!isWasmInitialized) {
17448                 throw new Error("initializeWasm() must be awaited first!");
17449         }
17450         const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
17451         return nativeResponseValue;
17452 }
17453         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
17454 /* @internal */
17455 export function ChannelMonitor_write(obj: number): number {
17456         if(!isWasmInitialized) {
17457                 throw new Error("initializeWasm() must be awaited first!");
17458         }
17459         const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
17460         return nativeResponseValue;
17461 }
17462         // 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);
17463 /* @internal */
17464 export function ChannelMonitor_update_monitor(this_arg: number, updates: number, broadcaster: number, fee_estimator: number, logger: number): number {
17465         if(!isWasmInitialized) {
17466                 throw new Error("initializeWasm() must be awaited first!");
17467         }
17468         const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
17469         return nativeResponseValue;
17470 }
17471         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17472 /* @internal */
17473 export function ChannelMonitor_get_latest_update_id(this_arg: number): bigint {
17474         if(!isWasmInitialized) {
17475                 throw new Error("initializeWasm() must be awaited first!");
17476         }
17477         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
17478         return nativeResponseValue;
17479 }
17480         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17481 /* @internal */
17482 export function ChannelMonitor_get_funding_txo(this_arg: number): number {
17483         if(!isWasmInitialized) {
17484                 throw new Error("initializeWasm() must be awaited first!");
17485         }
17486         const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
17487         return nativeResponseValue;
17488 }
17489         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17490 /* @internal */
17491 export function ChannelMonitor_get_outputs_to_watch(this_arg: number): number {
17492         if(!isWasmInitialized) {
17493                 throw new Error("initializeWasm() must be awaited first!");
17494         }
17495         const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
17496         return nativeResponseValue;
17497 }
17498         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
17499 /* @internal */
17500 export function ChannelMonitor_load_outputs_to_watch(this_arg: number, filter: number): void {
17501         if(!isWasmInitialized) {
17502                 throw new Error("initializeWasm() must be awaited first!");
17503         }
17504         const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
17505         // debug statements here
17506 }
17507         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17508 /* @internal */
17509 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: number): number {
17510         if(!isWasmInitialized) {
17511                 throw new Error("initializeWasm() must be awaited first!");
17512         }
17513         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
17514         return nativeResponseValue;
17515 }
17516         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17517 /* @internal */
17518 export function ChannelMonitor_get_and_clear_pending_events(this_arg: number): number {
17519         if(!isWasmInitialized) {
17520                 throw new Error("initializeWasm() must be awaited first!");
17521         }
17522         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
17523         return nativeResponseValue;
17524 }
17525         // 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);
17526 /* @internal */
17527 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: number, logger: number): number {
17528         if(!isWasmInitialized) {
17529                 throw new Error("initializeWasm() must be awaited first!");
17530         }
17531         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
17532         return nativeResponseValue;
17533 }
17534         // 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);
17535 /* @internal */
17536 export function ChannelMonitor_block_connected(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17537         if(!isWasmInitialized) {
17538                 throw new Error("initializeWasm() must be awaited first!");
17539         }
17540         const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17541         return nativeResponseValue;
17542 }
17543         // 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);
17544 /* @internal */
17545 export function ChannelMonitor_block_disconnected(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): void {
17546         if(!isWasmInitialized) {
17547                 throw new Error("initializeWasm() must be awaited first!");
17548         }
17549         const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
17550         // debug statements here
17551 }
17552         // 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);
17553 /* @internal */
17554 export function ChannelMonitor_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17555         if(!isWasmInitialized) {
17556                 throw new Error("initializeWasm() must be awaited first!");
17557         }
17558         const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17559         return nativeResponseValue;
17560 }
17561         // 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);
17562 /* @internal */
17563 export function ChannelMonitor_transaction_unconfirmed(this_arg: number, txid: number, broadcaster: number, fee_estimator: number, logger: number): void {
17564         if(!isWasmInitialized) {
17565                 throw new Error("initializeWasm() must be awaited first!");
17566         }
17567         const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
17568         // debug statements here
17569 }
17570         // 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);
17571 /* @internal */
17572 export function ChannelMonitor_best_block_updated(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17573         if(!isWasmInitialized) {
17574                 throw new Error("initializeWasm() must be awaited first!");
17575         }
17576         const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
17577         return nativeResponseValue;
17578 }
17579         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17580 /* @internal */
17581 export function ChannelMonitor_get_relevant_txids(this_arg: number): number {
17582         if(!isWasmInitialized) {
17583                 throw new Error("initializeWasm() must be awaited first!");
17584         }
17585         const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
17586         return nativeResponseValue;
17587 }
17588         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17589 /* @internal */
17590 export function ChannelMonitor_current_best_block(this_arg: number): number {
17591         if(!isWasmInitialized) {
17592                 throw new Error("initializeWasm() must be awaited first!");
17593         }
17594         const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
17595         return nativeResponseValue;
17596 }
17597         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17598 /* @internal */
17599 export function ChannelMonitor_get_claimable_balances(this_arg: number): number {
17600         if(!isWasmInitialized) {
17601                 throw new Error("initializeWasm() must be awaited first!");
17602         }
17603         const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
17604         return nativeResponseValue;
17605 }
17606         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
17607 /* @internal */
17608 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg: number): number {
17609         if(!isWasmInitialized) {
17610                 throw new Error("initializeWasm() must be awaited first!");
17611         }
17612         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg);
17613         return nativeResponseValue;
17614 }
17615         // void OutPoint_free(struct LDKOutPoint this_obj);
17616 /* @internal */
17617 export function OutPoint_free(this_obj: number): void {
17618         if(!isWasmInitialized) {
17619                 throw new Error("initializeWasm() must be awaited first!");
17620         }
17621         const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
17622         // debug statements here
17623 }
17624         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
17625 /* @internal */
17626 export function OutPoint_get_txid(this_ptr: number): number {
17627         if(!isWasmInitialized) {
17628                 throw new Error("initializeWasm() must be awaited first!");
17629         }
17630         const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
17631         return nativeResponseValue;
17632 }
17633         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17634 /* @internal */
17635 export function OutPoint_set_txid(this_ptr: number, val: number): void {
17636         if(!isWasmInitialized) {
17637                 throw new Error("initializeWasm() must be awaited first!");
17638         }
17639         const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
17640         // debug statements here
17641 }
17642         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
17643 /* @internal */
17644 export function OutPoint_get_index(this_ptr: number): number {
17645         if(!isWasmInitialized) {
17646                 throw new Error("initializeWasm() must be awaited first!");
17647         }
17648         const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
17649         return nativeResponseValue;
17650 }
17651         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
17652 /* @internal */
17653 export function OutPoint_set_index(this_ptr: number, val: number): void {
17654         if(!isWasmInitialized) {
17655                 throw new Error("initializeWasm() must be awaited first!");
17656         }
17657         const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
17658         // debug statements here
17659 }
17660         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
17661 /* @internal */
17662 export function OutPoint_new(txid_arg: number, index_arg: number): number {
17663         if(!isWasmInitialized) {
17664                 throw new Error("initializeWasm() must be awaited first!");
17665         }
17666         const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
17667         return nativeResponseValue;
17668 }
17669         // uintptr_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
17670 /* @internal */
17671 export function OutPoint_clone_ptr(arg: number): number {
17672         if(!isWasmInitialized) {
17673                 throw new Error("initializeWasm() must be awaited first!");
17674         }
17675         const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
17676         return nativeResponseValue;
17677 }
17678         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
17679 /* @internal */
17680 export function OutPoint_clone(orig: number): number {
17681         if(!isWasmInitialized) {
17682                 throw new Error("initializeWasm() must be awaited first!");
17683         }
17684         const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
17685         return nativeResponseValue;
17686 }
17687         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
17688 /* @internal */
17689 export function OutPoint_eq(a: number, b: number): boolean {
17690         if(!isWasmInitialized) {
17691                 throw new Error("initializeWasm() must be awaited first!");
17692         }
17693         const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
17694         return nativeResponseValue;
17695 }
17696         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
17697 /* @internal */
17698 export function OutPoint_hash(o: number): bigint {
17699         if(!isWasmInitialized) {
17700                 throw new Error("initializeWasm() must be awaited first!");
17701         }
17702         const nativeResponseValue = wasm.TS_OutPoint_hash(o);
17703         return nativeResponseValue;
17704 }
17705         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
17706 /* @internal */
17707 export function OutPoint_to_channel_id(this_arg: number): number {
17708         if(!isWasmInitialized) {
17709                 throw new Error("initializeWasm() must be awaited first!");
17710         }
17711         const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
17712         return nativeResponseValue;
17713 }
17714         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
17715 /* @internal */
17716 export function OutPoint_write(obj: number): number {
17717         if(!isWasmInitialized) {
17718                 throw new Error("initializeWasm() must be awaited first!");
17719         }
17720         const nativeResponseValue = wasm.TS_OutPoint_write(obj);
17721         return nativeResponseValue;
17722 }
17723         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
17724 /* @internal */
17725 export function OutPoint_read(ser: number): number {
17726         if(!isWasmInitialized) {
17727                 throw new Error("initializeWasm() must be awaited first!");
17728         }
17729         const nativeResponseValue = wasm.TS_OutPoint_read(ser);
17730         return nativeResponseValue;
17731 }
17732         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
17733 /* @internal */
17734 export function DelayedPaymentOutputDescriptor_free(this_obj: number): void {
17735         if(!isWasmInitialized) {
17736                 throw new Error("initializeWasm() must be awaited first!");
17737         }
17738         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
17739         // debug statements here
17740 }
17741         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17742 /* @internal */
17743 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17744         if(!isWasmInitialized) {
17745                 throw new Error("initializeWasm() must be awaited first!");
17746         }
17747         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
17748         return nativeResponseValue;
17749 }
17750         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17751 /* @internal */
17752 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17753         if(!isWasmInitialized) {
17754                 throw new Error("initializeWasm() must be awaited first!");
17755         }
17756         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17757         // debug statements here
17758 }
17759         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17760 /* @internal */
17761 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: number): number {
17762         if(!isWasmInitialized) {
17763                 throw new Error("initializeWasm() must be awaited first!");
17764         }
17765         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
17766         return nativeResponseValue;
17767 }
17768         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17769 /* @internal */
17770 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: number, val: number): void {
17771         if(!isWasmInitialized) {
17772                 throw new Error("initializeWasm() must be awaited first!");
17773         }
17774         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
17775         // debug statements here
17776 }
17777         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17778 /* @internal */
17779 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: number): number {
17780         if(!isWasmInitialized) {
17781                 throw new Error("initializeWasm() must be awaited first!");
17782         }
17783         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
17784         return nativeResponseValue;
17785 }
17786         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
17787 /* @internal */
17788 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: number, val: number): void {
17789         if(!isWasmInitialized) {
17790                 throw new Error("initializeWasm() must be awaited first!");
17791         }
17792         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
17793         // debug statements here
17794 }
17795         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
17796 /* @internal */
17797 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
17798         if(!isWasmInitialized) {
17799                 throw new Error("initializeWasm() must be awaited first!");
17800         }
17801         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
17802         // debug statements here
17803 }
17804         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17805 /* @internal */
17806 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: number): number {
17807         if(!isWasmInitialized) {
17808                 throw new Error("initializeWasm() must be awaited first!");
17809         }
17810         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
17811         return nativeResponseValue;
17812 }
17813         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17814 /* @internal */
17815 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: number, val: number): void {
17816         if(!isWasmInitialized) {
17817                 throw new Error("initializeWasm() must be awaited first!");
17818         }
17819         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
17820         // debug statements here
17821 }
17822         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
17823 /* @internal */
17824 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
17825         if(!isWasmInitialized) {
17826                 throw new Error("initializeWasm() must be awaited first!");
17827         }
17828         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
17829         return nativeResponseValue;
17830 }
17831         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17832 /* @internal */
17833 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
17834         if(!isWasmInitialized) {
17835                 throw new Error("initializeWasm() must be awaited first!");
17836         }
17837         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
17838         // debug statements here
17839 }
17840         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17841 /* @internal */
17842 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
17843         if(!isWasmInitialized) {
17844                 throw new Error("initializeWasm() must be awaited first!");
17845         }
17846         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
17847         return nativeResponseValue;
17848 }
17849         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
17850 /* @internal */
17851 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
17852         if(!isWasmInitialized) {
17853                 throw new Error("initializeWasm() must be awaited first!");
17854         }
17855         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
17856         // debug statements here
17857 }
17858         // 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);
17859 /* @internal */
17860 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 {
17861         if(!isWasmInitialized) {
17862                 throw new Error("initializeWasm() must be awaited first!");
17863         }
17864         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);
17865         return nativeResponseValue;
17866 }
17867         // uintptr_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
17868 /* @internal */
17869 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: number): number {
17870         if(!isWasmInitialized) {
17871                 throw new Error("initializeWasm() must be awaited first!");
17872         }
17873         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
17874         return nativeResponseValue;
17875 }
17876         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
17877 /* @internal */
17878 export function DelayedPaymentOutputDescriptor_clone(orig: number): number {
17879         if(!isWasmInitialized) {
17880                 throw new Error("initializeWasm() must be awaited first!");
17881         }
17882         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
17883         return nativeResponseValue;
17884 }
17885         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
17886 /* @internal */
17887 export function DelayedPaymentOutputDescriptor_write(obj: number): number {
17888         if(!isWasmInitialized) {
17889                 throw new Error("initializeWasm() must be awaited first!");
17890         }
17891         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
17892         return nativeResponseValue;
17893 }
17894         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
17895 /* @internal */
17896 export function DelayedPaymentOutputDescriptor_read(ser: number): number {
17897         if(!isWasmInitialized) {
17898                 throw new Error("initializeWasm() must be awaited first!");
17899         }
17900         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
17901         return nativeResponseValue;
17902 }
17903         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
17904 /* @internal */
17905 export function StaticPaymentOutputDescriptor_free(this_obj: number): void {
17906         if(!isWasmInitialized) {
17907                 throw new Error("initializeWasm() must be awaited first!");
17908         }
17909         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
17910         // debug statements here
17911 }
17912         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17913 /* @internal */
17914 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17915         if(!isWasmInitialized) {
17916                 throw new Error("initializeWasm() must be awaited first!");
17917         }
17918         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
17919         return nativeResponseValue;
17920 }
17921         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17922 /* @internal */
17923 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17924         if(!isWasmInitialized) {
17925                 throw new Error("initializeWasm() must be awaited first!");
17926         }
17927         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17928         // debug statements here
17929 }
17930         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
17931 /* @internal */
17932 export function StaticPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
17933         if(!isWasmInitialized) {
17934                 throw new Error("initializeWasm() must be awaited first!");
17935         }
17936         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
17937         // debug statements here
17938 }
17939         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
17940 /* @internal */
17941 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
17942         if(!isWasmInitialized) {
17943                 throw new Error("initializeWasm() must be awaited first!");
17944         }
17945         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
17946         return nativeResponseValue;
17947 }
17948         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17949 /* @internal */
17950 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
17951         if(!isWasmInitialized) {
17952                 throw new Error("initializeWasm() must be awaited first!");
17953         }
17954         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
17955         // debug statements here
17956 }
17957         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17958 /* @internal */
17959 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
17960         if(!isWasmInitialized) {
17961                 throw new Error("initializeWasm() must be awaited first!");
17962         }
17963         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
17964         return nativeResponseValue;
17965 }
17966         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
17967 /* @internal */
17968 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
17969         if(!isWasmInitialized) {
17970                 throw new Error("initializeWasm() must be awaited first!");
17971         }
17972         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
17973         // debug statements here
17974 }
17975         // 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);
17976 /* @internal */
17977 export function StaticPaymentOutputDescriptor_new(outpoint_arg: number, output_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): number {
17978         if(!isWasmInitialized) {
17979                 throw new Error("initializeWasm() must be awaited first!");
17980         }
17981         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
17982         return nativeResponseValue;
17983 }
17984         // uintptr_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
17985 /* @internal */
17986 export function StaticPaymentOutputDescriptor_clone_ptr(arg: number): number {
17987         if(!isWasmInitialized) {
17988                 throw new Error("initializeWasm() must be awaited first!");
17989         }
17990         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
17991         return nativeResponseValue;
17992 }
17993         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
17994 /* @internal */
17995 export function StaticPaymentOutputDescriptor_clone(orig: number): number {
17996         if(!isWasmInitialized) {
17997                 throw new Error("initializeWasm() must be awaited first!");
17998         }
17999         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
18000         return nativeResponseValue;
18001 }
18002         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
18003 /* @internal */
18004 export function StaticPaymentOutputDescriptor_write(obj: number): number {
18005         if(!isWasmInitialized) {
18006                 throw new Error("initializeWasm() must be awaited first!");
18007         }
18008         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
18009         return nativeResponseValue;
18010 }
18011         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
18012 /* @internal */
18013 export function StaticPaymentOutputDescriptor_read(ser: number): number {
18014         if(!isWasmInitialized) {
18015                 throw new Error("initializeWasm() must be awaited first!");
18016         }
18017         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
18018         return nativeResponseValue;
18019 }
18020         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
18021 /* @internal */
18022 export function SpendableOutputDescriptor_free(this_ptr: number): void {
18023         if(!isWasmInitialized) {
18024                 throw new Error("initializeWasm() must be awaited first!");
18025         }
18026         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
18027         // debug statements here
18028 }
18029         // uintptr_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
18030 /* @internal */
18031 export function SpendableOutputDescriptor_clone_ptr(arg: number): number {
18032         if(!isWasmInitialized) {
18033                 throw new Error("initializeWasm() must be awaited first!");
18034         }
18035         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
18036         return nativeResponseValue;
18037 }
18038         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
18039 /* @internal */
18040 export function SpendableOutputDescriptor_clone(orig: number): number {
18041         if(!isWasmInitialized) {
18042                 throw new Error("initializeWasm() must be awaited first!");
18043         }
18044         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
18045         return nativeResponseValue;
18046 }
18047         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
18048 /* @internal */
18049 export function SpendableOutputDescriptor_static_output(outpoint: number, output: number): number {
18050         if(!isWasmInitialized) {
18051                 throw new Error("initializeWasm() must be awaited first!");
18052         }
18053         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
18054         return nativeResponseValue;
18055 }
18056         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
18057 /* @internal */
18058 export function SpendableOutputDescriptor_delayed_payment_output(a: number): number {
18059         if(!isWasmInitialized) {
18060                 throw new Error("initializeWasm() must be awaited first!");
18061         }
18062         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
18063         return nativeResponseValue;
18064 }
18065         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
18066 /* @internal */
18067 export function SpendableOutputDescriptor_static_payment_output(a: number): number {
18068         if(!isWasmInitialized) {
18069                 throw new Error("initializeWasm() must be awaited first!");
18070         }
18071         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
18072         return nativeResponseValue;
18073 }
18074         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
18075 /* @internal */
18076 export function SpendableOutputDescriptor_write(obj: number): number {
18077         if(!isWasmInitialized) {
18078                 throw new Error("initializeWasm() must be awaited first!");
18079         }
18080         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
18081         return nativeResponseValue;
18082 }
18083         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
18084 /* @internal */
18085 export function SpendableOutputDescriptor_read(ser: number): number {
18086         if(!isWasmInitialized) {
18087                 throw new Error("initializeWasm() must be awaited first!");
18088         }
18089         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
18090         return nativeResponseValue;
18091 }
18092         // void BaseSign_free(struct LDKBaseSign this_ptr);
18093 /* @internal */
18094 export function BaseSign_free(this_ptr: number): void {
18095         if(!isWasmInitialized) {
18096                 throw new Error("initializeWasm() must be awaited first!");
18097         }
18098         const nativeResponseValue = wasm.TS_BaseSign_free(this_ptr);
18099         // debug statements here
18100 }
18101         // uintptr_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
18102 /* @internal */
18103 export function Sign_clone_ptr(arg: number): number {
18104         if(!isWasmInitialized) {
18105                 throw new Error("initializeWasm() must be awaited first!");
18106         }
18107         const nativeResponseValue = wasm.TS_Sign_clone_ptr(arg);
18108         return nativeResponseValue;
18109 }
18110         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
18111 /* @internal */
18112 export function Sign_clone(orig: number): number {
18113         if(!isWasmInitialized) {
18114                 throw new Error("initializeWasm() must be awaited first!");
18115         }
18116         const nativeResponseValue = wasm.TS_Sign_clone(orig);
18117         return nativeResponseValue;
18118 }
18119         // void Sign_free(struct LDKSign this_ptr);
18120 /* @internal */
18121 export function Sign_free(this_ptr: number): void {
18122         if(!isWasmInitialized) {
18123                 throw new Error("initializeWasm() must be awaited first!");
18124         }
18125         const nativeResponseValue = wasm.TS_Sign_free(this_ptr);
18126         // debug statements here
18127 }
18128         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
18129 /* @internal */
18130 export function Recipient_clone(orig: number): Recipient {
18131         if(!isWasmInitialized) {
18132                 throw new Error("initializeWasm() must be awaited first!");
18133         }
18134         const nativeResponseValue = wasm.TS_Recipient_clone(orig);
18135         return nativeResponseValue;
18136 }
18137         // enum LDKRecipient Recipient_node(void);
18138 /* @internal */
18139 export function Recipient_node(): Recipient {
18140         if(!isWasmInitialized) {
18141                 throw new Error("initializeWasm() must be awaited first!");
18142         }
18143         const nativeResponseValue = wasm.TS_Recipient_node();
18144         return nativeResponseValue;
18145 }
18146         // enum LDKRecipient Recipient_phantom_node(void);
18147 /* @internal */
18148 export function Recipient_phantom_node(): Recipient {
18149         if(!isWasmInitialized) {
18150                 throw new Error("initializeWasm() must be awaited first!");
18151         }
18152         const nativeResponseValue = wasm.TS_Recipient_phantom_node();
18153         return nativeResponseValue;
18154 }
18155         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
18156 /* @internal */
18157 export function KeysInterface_free(this_ptr: number): void {
18158         if(!isWasmInitialized) {
18159                 throw new Error("initializeWasm() must be awaited first!");
18160         }
18161         const nativeResponseValue = wasm.TS_KeysInterface_free(this_ptr);
18162         // debug statements here
18163 }
18164         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
18165 /* @internal */
18166 export function InMemorySigner_free(this_obj: number): void {
18167         if(!isWasmInitialized) {
18168                 throw new Error("initializeWasm() must be awaited first!");
18169         }
18170         const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
18171         // debug statements here
18172 }
18173         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18174 /* @internal */
18175 export function InMemorySigner_get_funding_key(this_ptr: number): number {
18176         if(!isWasmInitialized) {
18177                 throw new Error("initializeWasm() must be awaited first!");
18178         }
18179         const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
18180         return nativeResponseValue;
18181 }
18182         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18183 /* @internal */
18184 export function InMemorySigner_set_funding_key(this_ptr: number, val: number): void {
18185         if(!isWasmInitialized) {
18186                 throw new Error("initializeWasm() must be awaited first!");
18187         }
18188         const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
18189         // debug statements here
18190 }
18191         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18192 /* @internal */
18193 export function InMemorySigner_get_revocation_base_key(this_ptr: number): number {
18194         if(!isWasmInitialized) {
18195                 throw new Error("initializeWasm() must be awaited first!");
18196         }
18197         const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
18198         return nativeResponseValue;
18199 }
18200         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18201 /* @internal */
18202 export function InMemorySigner_set_revocation_base_key(this_ptr: number, val: number): void {
18203         if(!isWasmInitialized) {
18204                 throw new Error("initializeWasm() must be awaited first!");
18205         }
18206         const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
18207         // debug statements here
18208 }
18209         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18210 /* @internal */
18211 export function InMemorySigner_get_payment_key(this_ptr: number): number {
18212         if(!isWasmInitialized) {
18213                 throw new Error("initializeWasm() must be awaited first!");
18214         }
18215         const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
18216         return nativeResponseValue;
18217 }
18218         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18219 /* @internal */
18220 export function InMemorySigner_set_payment_key(this_ptr: number, val: number): void {
18221         if(!isWasmInitialized) {
18222                 throw new Error("initializeWasm() must be awaited first!");
18223         }
18224         const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
18225         // debug statements here
18226 }
18227         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18228 /* @internal */
18229 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: number): number {
18230         if(!isWasmInitialized) {
18231                 throw new Error("initializeWasm() must be awaited first!");
18232         }
18233         const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
18234         return nativeResponseValue;
18235 }
18236         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18237 /* @internal */
18238 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: number, val: number): void {
18239         if(!isWasmInitialized) {
18240                 throw new Error("initializeWasm() must be awaited first!");
18241         }
18242         const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
18243         // debug statements here
18244 }
18245         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18246 /* @internal */
18247 export function InMemorySigner_get_htlc_base_key(this_ptr: number): number {
18248         if(!isWasmInitialized) {
18249                 throw new Error("initializeWasm() must be awaited first!");
18250         }
18251         const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
18252         return nativeResponseValue;
18253 }
18254         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18255 /* @internal */
18256 export function InMemorySigner_set_htlc_base_key(this_ptr: number, val: number): void {
18257         if(!isWasmInitialized) {
18258                 throw new Error("initializeWasm() must be awaited first!");
18259         }
18260         const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
18261         // debug statements here
18262 }
18263         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18264 /* @internal */
18265 export function InMemorySigner_get_commitment_seed(this_ptr: number): number {
18266         if(!isWasmInitialized) {
18267                 throw new Error("initializeWasm() must be awaited first!");
18268         }
18269         const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
18270         return nativeResponseValue;
18271 }
18272         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18273 /* @internal */
18274 export function InMemorySigner_set_commitment_seed(this_ptr: number, val: number): void {
18275         if(!isWasmInitialized) {
18276                 throw new Error("initializeWasm() must be awaited first!");
18277         }
18278         const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
18279         // debug statements here
18280 }
18281         // uintptr_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
18282 /* @internal */
18283 export function InMemorySigner_clone_ptr(arg: number): number {
18284         if(!isWasmInitialized) {
18285                 throw new Error("initializeWasm() must be awaited first!");
18286         }
18287         const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
18288         return nativeResponseValue;
18289 }
18290         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
18291 /* @internal */
18292 export function InMemorySigner_clone(orig: number): number {
18293         if(!isWasmInitialized) {
18294                 throw new Error("initializeWasm() must be awaited first!");
18295         }
18296         const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
18297         return nativeResponseValue;
18298 }
18299         // 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);
18300 /* @internal */
18301 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 {
18302         if(!isWasmInitialized) {
18303                 throw new Error("initializeWasm() must be awaited first!");
18304         }
18305         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);
18306         return nativeResponseValue;
18307 }
18308         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18309 /* @internal */
18310 export function InMemorySigner_counterparty_pubkeys(this_arg: number): number {
18311         if(!isWasmInitialized) {
18312                 throw new Error("initializeWasm() must be awaited first!");
18313         }
18314         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
18315         return nativeResponseValue;
18316 }
18317         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18318 /* @internal */
18319 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: number): number {
18320         if(!isWasmInitialized) {
18321                 throw new Error("initializeWasm() must be awaited first!");
18322         }
18323         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
18324         return nativeResponseValue;
18325 }
18326         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18327 /* @internal */
18328 export function InMemorySigner_holder_selected_contest_delay(this_arg: number): number {
18329         if(!isWasmInitialized) {
18330                 throw new Error("initializeWasm() must be awaited first!");
18331         }
18332         const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
18333         return nativeResponseValue;
18334 }
18335         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18336 /* @internal */
18337 export function InMemorySigner_is_outbound(this_arg: number): boolean {
18338         if(!isWasmInitialized) {
18339                 throw new Error("initializeWasm() must be awaited first!");
18340         }
18341         const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
18342         return nativeResponseValue;
18343 }
18344         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18345 /* @internal */
18346 export function InMemorySigner_funding_outpoint(this_arg: number): number {
18347         if(!isWasmInitialized) {
18348                 throw new Error("initializeWasm() must be awaited first!");
18349         }
18350         const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
18351         return nativeResponseValue;
18352 }
18353         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18354 /* @internal */
18355 export function InMemorySigner_get_channel_parameters(this_arg: number): number {
18356         if(!isWasmInitialized) {
18357                 throw new Error("initializeWasm() must be awaited first!");
18358         }
18359         const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
18360         return nativeResponseValue;
18361 }
18362         // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18363 /* @internal */
18364 export function InMemorySigner_opt_anchors(this_arg: number): boolean {
18365         if(!isWasmInitialized) {
18366                 throw new Error("initializeWasm() must be awaited first!");
18367         }
18368         const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
18369         return nativeResponseValue;
18370 }
18371         // 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);
18372 /* @internal */
18373 export function InMemorySigner_sign_counterparty_payment_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
18374         if(!isWasmInitialized) {
18375                 throw new Error("initializeWasm() must be awaited first!");
18376         }
18377         const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
18378         return nativeResponseValue;
18379 }
18380         // 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);
18381 /* @internal */
18382 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
18383         if(!isWasmInitialized) {
18384                 throw new Error("initializeWasm() must be awaited first!");
18385         }
18386         const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
18387         return nativeResponseValue;
18388 }
18389         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18390 /* @internal */
18391 export function InMemorySigner_as_BaseSign(this_arg: number): number {
18392         if(!isWasmInitialized) {
18393                 throw new Error("initializeWasm() must be awaited first!");
18394         }
18395         const nativeResponseValue = wasm.TS_InMemorySigner_as_BaseSign(this_arg);
18396         return nativeResponseValue;
18397 }
18398         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18399 /* @internal */
18400 export function InMemorySigner_as_Sign(this_arg: number): number {
18401         if(!isWasmInitialized) {
18402                 throw new Error("initializeWasm() must be awaited first!");
18403         }
18404         const nativeResponseValue = wasm.TS_InMemorySigner_as_Sign(this_arg);
18405         return nativeResponseValue;
18406 }
18407         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
18408 /* @internal */
18409 export function InMemorySigner_write(obj: number): number {
18410         if(!isWasmInitialized) {
18411                 throw new Error("initializeWasm() must be awaited first!");
18412         }
18413         const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
18414         return nativeResponseValue;
18415 }
18416         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
18417 /* @internal */
18418 export function InMemorySigner_read(ser: number, arg: number): number {
18419         if(!isWasmInitialized) {
18420                 throw new Error("initializeWasm() must be awaited first!");
18421         }
18422         const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
18423         return nativeResponseValue;
18424 }
18425         // void KeysManager_free(struct LDKKeysManager this_obj);
18426 /* @internal */
18427 export function KeysManager_free(this_obj: number): void {
18428         if(!isWasmInitialized) {
18429                 throw new Error("initializeWasm() must be awaited first!");
18430         }
18431         const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
18432         // debug statements here
18433 }
18434         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
18435 /* @internal */
18436 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): number {
18437         if(!isWasmInitialized) {
18438                 throw new Error("initializeWasm() must be awaited first!");
18439         }
18440         const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
18441         return nativeResponseValue;
18442 }
18443         // 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]);
18444 /* @internal */
18445 export function KeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18446         if(!isWasmInitialized) {
18447                 throw new Error("initializeWasm() must be awaited first!");
18448         }
18449         const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18450         return nativeResponseValue;
18451 }
18452         // 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);
18453 /* @internal */
18454 export function KeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18455         if(!isWasmInitialized) {
18456                 throw new Error("initializeWasm() must be awaited first!");
18457         }
18458         const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18459         return nativeResponseValue;
18460 }
18461         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
18462 /* @internal */
18463 export function KeysManager_as_KeysInterface(this_arg: number): number {
18464         if(!isWasmInitialized) {
18465                 throw new Error("initializeWasm() must be awaited first!");
18466         }
18467         const nativeResponseValue = wasm.TS_KeysManager_as_KeysInterface(this_arg);
18468         return nativeResponseValue;
18469 }
18470         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
18471 /* @internal */
18472 export function PhantomKeysManager_free(this_obj: number): void {
18473         if(!isWasmInitialized) {
18474                 throw new Error("initializeWasm() must be awaited first!");
18475         }
18476         const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
18477         // debug statements here
18478 }
18479         // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
18480 /* @internal */
18481 export function PhantomKeysManager_as_KeysInterface(this_arg: number): number {
18482         if(!isWasmInitialized) {
18483                 throw new Error("initializeWasm() must be awaited first!");
18484         }
18485         const nativeResponseValue = wasm.TS_PhantomKeysManager_as_KeysInterface(this_arg);
18486         return nativeResponseValue;
18487 }
18488         // 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]);
18489 /* @internal */
18490 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): number {
18491         if(!isWasmInitialized) {
18492                 throw new Error("initializeWasm() must be awaited first!");
18493         }
18494         const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
18495         return nativeResponseValue;
18496 }
18497         // 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);
18498 /* @internal */
18499 export function PhantomKeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18500         if(!isWasmInitialized) {
18501                 throw new Error("initializeWasm() must be awaited first!");
18502         }
18503         const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18504         return nativeResponseValue;
18505 }
18506         // 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]);
18507 /* @internal */
18508 export function PhantomKeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18509         if(!isWasmInitialized) {
18510                 throw new Error("initializeWasm() must be awaited first!");
18511         }
18512         const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18513         return nativeResponseValue;
18514 }
18515         // void ChannelManager_free(struct LDKChannelManager this_obj);
18516 /* @internal */
18517 export function ChannelManager_free(this_obj: number): void {
18518         if(!isWasmInitialized) {
18519                 throw new Error("initializeWasm() must be awaited first!");
18520         }
18521         const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
18522         // debug statements here
18523 }
18524         // void ChainParameters_free(struct LDKChainParameters this_obj);
18525 /* @internal */
18526 export function ChainParameters_free(this_obj: number): void {
18527         if(!isWasmInitialized) {
18528                 throw new Error("initializeWasm() must be awaited first!");
18529         }
18530         const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
18531         // debug statements here
18532 }
18533         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18534 /* @internal */
18535 export function ChainParameters_get_network(this_ptr: number): Network {
18536         if(!isWasmInitialized) {
18537                 throw new Error("initializeWasm() must be awaited first!");
18538         }
18539         const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
18540         return nativeResponseValue;
18541 }
18542         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
18543 /* @internal */
18544 export function ChainParameters_set_network(this_ptr: number, val: Network): void {
18545         if(!isWasmInitialized) {
18546                 throw new Error("initializeWasm() must be awaited first!");
18547         }
18548         const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
18549         // debug statements here
18550 }
18551         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18552 /* @internal */
18553 export function ChainParameters_get_best_block(this_ptr: number): number {
18554         if(!isWasmInitialized) {
18555                 throw new Error("initializeWasm() must be awaited first!");
18556         }
18557         const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
18558         return nativeResponseValue;
18559 }
18560         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
18561 /* @internal */
18562 export function ChainParameters_set_best_block(this_ptr: number, val: number): void {
18563         if(!isWasmInitialized) {
18564                 throw new Error("initializeWasm() must be awaited first!");
18565         }
18566         const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
18567         // debug statements here
18568 }
18569         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
18570 /* @internal */
18571 export function ChainParameters_new(network_arg: Network, best_block_arg: number): number {
18572         if(!isWasmInitialized) {
18573                 throw new Error("initializeWasm() must be awaited first!");
18574         }
18575         const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
18576         return nativeResponseValue;
18577 }
18578         // uintptr_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
18579 /* @internal */
18580 export function ChainParameters_clone_ptr(arg: number): number {
18581         if(!isWasmInitialized) {
18582                 throw new Error("initializeWasm() must be awaited first!");
18583         }
18584         const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
18585         return nativeResponseValue;
18586 }
18587         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
18588 /* @internal */
18589 export function ChainParameters_clone(orig: number): number {
18590         if(!isWasmInitialized) {
18591                 throw new Error("initializeWasm() must be awaited first!");
18592         }
18593         const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
18594         return nativeResponseValue;
18595 }
18596         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
18597 /* @internal */
18598 export function CounterpartyForwardingInfo_free(this_obj: number): void {
18599         if(!isWasmInitialized) {
18600                 throw new Error("initializeWasm() must be awaited first!");
18601         }
18602         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
18603         // debug statements here
18604 }
18605         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18606 /* @internal */
18607 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: number): number {
18608         if(!isWasmInitialized) {
18609                 throw new Error("initializeWasm() must be awaited first!");
18610         }
18611         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
18612         return nativeResponseValue;
18613 }
18614         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18615 /* @internal */
18616 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: number, val: number): void {
18617         if(!isWasmInitialized) {
18618                 throw new Error("initializeWasm() must be awaited first!");
18619         }
18620         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
18621         // debug statements here
18622 }
18623         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18624 /* @internal */
18625 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: number): number {
18626         if(!isWasmInitialized) {
18627                 throw new Error("initializeWasm() must be awaited first!");
18628         }
18629         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
18630         return nativeResponseValue;
18631 }
18632         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18633 /* @internal */
18634 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: number, val: number): void {
18635         if(!isWasmInitialized) {
18636                 throw new Error("initializeWasm() must be awaited first!");
18637         }
18638         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
18639         // debug statements here
18640 }
18641         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18642 /* @internal */
18643 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: number): number {
18644         if(!isWasmInitialized) {
18645                 throw new Error("initializeWasm() must be awaited first!");
18646         }
18647         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
18648         return nativeResponseValue;
18649 }
18650         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
18651 /* @internal */
18652 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
18653         if(!isWasmInitialized) {
18654                 throw new Error("initializeWasm() must be awaited first!");
18655         }
18656         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
18657         // debug statements here
18658 }
18659         // 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);
18660 /* @internal */
18661 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): number {
18662         if(!isWasmInitialized) {
18663                 throw new Error("initializeWasm() must be awaited first!");
18664         }
18665         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
18666         return nativeResponseValue;
18667 }
18668         // uintptr_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
18669 /* @internal */
18670 export function CounterpartyForwardingInfo_clone_ptr(arg: number): number {
18671         if(!isWasmInitialized) {
18672                 throw new Error("initializeWasm() must be awaited first!");
18673         }
18674         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
18675         return nativeResponseValue;
18676 }
18677         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
18678 /* @internal */
18679 export function CounterpartyForwardingInfo_clone(orig: number): number {
18680         if(!isWasmInitialized) {
18681                 throw new Error("initializeWasm() must be awaited first!");
18682         }
18683         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
18684         return nativeResponseValue;
18685 }
18686         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
18687 /* @internal */
18688 export function ChannelCounterparty_free(this_obj: number): void {
18689         if(!isWasmInitialized) {
18690                 throw new Error("initializeWasm() must be awaited first!");
18691         }
18692         const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
18693         // debug statements here
18694 }
18695         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18696 /* @internal */
18697 export function ChannelCounterparty_get_node_id(this_ptr: number): number {
18698         if(!isWasmInitialized) {
18699                 throw new Error("initializeWasm() must be awaited first!");
18700         }
18701         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
18702         return nativeResponseValue;
18703 }
18704         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18705 /* @internal */
18706 export function ChannelCounterparty_set_node_id(this_ptr: number, val: number): void {
18707         if(!isWasmInitialized) {
18708                 throw new Error("initializeWasm() must be awaited first!");
18709         }
18710         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
18711         // debug statements here
18712 }
18713         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18714 /* @internal */
18715 export function ChannelCounterparty_get_features(this_ptr: number): number {
18716         if(!isWasmInitialized) {
18717                 throw new Error("initializeWasm() must be awaited first!");
18718         }
18719         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
18720         return nativeResponseValue;
18721 }
18722         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
18723 /* @internal */
18724 export function ChannelCounterparty_set_features(this_ptr: number, val: number): void {
18725         if(!isWasmInitialized) {
18726                 throw new Error("initializeWasm() must be awaited first!");
18727         }
18728         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
18729         // debug statements here
18730 }
18731         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18732 /* @internal */
18733 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: number): bigint {
18734         if(!isWasmInitialized) {
18735                 throw new Error("initializeWasm() must be awaited first!");
18736         }
18737         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
18738         return nativeResponseValue;
18739 }
18740         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
18741 /* @internal */
18742 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: number, val: bigint): void {
18743         if(!isWasmInitialized) {
18744                 throw new Error("initializeWasm() must be awaited first!");
18745         }
18746         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
18747         // debug statements here
18748 }
18749         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18750 /* @internal */
18751 export function ChannelCounterparty_get_forwarding_info(this_ptr: number): number {
18752         if(!isWasmInitialized) {
18753                 throw new Error("initializeWasm() must be awaited first!");
18754         }
18755         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
18756         return nativeResponseValue;
18757 }
18758         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
18759 /* @internal */
18760 export function ChannelCounterparty_set_forwarding_info(this_ptr: number, val: number): void {
18761         if(!isWasmInitialized) {
18762                 throw new Error("initializeWasm() must be awaited first!");
18763         }
18764         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
18765         // debug statements here
18766 }
18767         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18768 /* @internal */
18769 export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: number): number {
18770         if(!isWasmInitialized) {
18771                 throw new Error("initializeWasm() must be awaited first!");
18772         }
18773         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr);
18774         return nativeResponseValue;
18775 }
18776         // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18777 /* @internal */
18778 export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: number, val: number): void {
18779         if(!isWasmInitialized) {
18780                 throw new Error("initializeWasm() must be awaited first!");
18781         }
18782         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val);
18783         // debug statements here
18784 }
18785         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18786 /* @internal */
18787 export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: number): number {
18788         if(!isWasmInitialized) {
18789                 throw new Error("initializeWasm() must be awaited first!");
18790         }
18791         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr);
18792         return nativeResponseValue;
18793 }
18794         // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18795 /* @internal */
18796 export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: number, val: number): void {
18797         if(!isWasmInitialized) {
18798                 throw new Error("initializeWasm() must be awaited first!");
18799         }
18800         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val);
18801         // debug statements here
18802 }
18803         // 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);
18804 /* @internal */
18805 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 {
18806         if(!isWasmInitialized) {
18807                 throw new Error("initializeWasm() must be awaited first!");
18808         }
18809         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);
18810         return nativeResponseValue;
18811 }
18812         // uintptr_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
18813 /* @internal */
18814 export function ChannelCounterparty_clone_ptr(arg: number): number {
18815         if(!isWasmInitialized) {
18816                 throw new Error("initializeWasm() must be awaited first!");
18817         }
18818         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
18819         return nativeResponseValue;
18820 }
18821         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
18822 /* @internal */
18823 export function ChannelCounterparty_clone(orig: number): number {
18824         if(!isWasmInitialized) {
18825                 throw new Error("initializeWasm() must be awaited first!");
18826         }
18827         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
18828         return nativeResponseValue;
18829 }
18830         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
18831 /* @internal */
18832 export function ChannelDetails_free(this_obj: number): void {
18833         if(!isWasmInitialized) {
18834                 throw new Error("initializeWasm() must be awaited first!");
18835         }
18836         const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
18837         // debug statements here
18838 }
18839         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
18840 /* @internal */
18841 export function ChannelDetails_get_channel_id(this_ptr: number): number {
18842         if(!isWasmInitialized) {
18843                 throw new Error("initializeWasm() must be awaited first!");
18844         }
18845         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
18846         return nativeResponseValue;
18847 }
18848         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18849 /* @internal */
18850 export function ChannelDetails_set_channel_id(this_ptr: number, val: number): void {
18851         if(!isWasmInitialized) {
18852                 throw new Error("initializeWasm() must be awaited first!");
18853         }
18854         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
18855         // debug statements here
18856 }
18857         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18858 /* @internal */
18859 export function ChannelDetails_get_counterparty(this_ptr: number): number {
18860         if(!isWasmInitialized) {
18861                 throw new Error("initializeWasm() must be awaited first!");
18862         }
18863         const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
18864         return nativeResponseValue;
18865 }
18866         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
18867 /* @internal */
18868 export function ChannelDetails_set_counterparty(this_ptr: number, val: number): void {
18869         if(!isWasmInitialized) {
18870                 throw new Error("initializeWasm() must be awaited first!");
18871         }
18872         const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
18873         // debug statements here
18874 }
18875         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18876 /* @internal */
18877 export function ChannelDetails_get_funding_txo(this_ptr: number): number {
18878         if(!isWasmInitialized) {
18879                 throw new Error("initializeWasm() must be awaited first!");
18880         }
18881         const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
18882         return nativeResponseValue;
18883 }
18884         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
18885 /* @internal */
18886 export function ChannelDetails_set_funding_txo(this_ptr: number, val: number): void {
18887         if(!isWasmInitialized) {
18888                 throw new Error("initializeWasm() must be awaited first!");
18889         }
18890         const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
18891         // debug statements here
18892 }
18893         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18894 /* @internal */
18895 export function ChannelDetails_get_channel_type(this_ptr: number): number {
18896         if(!isWasmInitialized) {
18897                 throw new Error("initializeWasm() must be awaited first!");
18898         }
18899         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr);
18900         return nativeResponseValue;
18901 }
18902         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
18903 /* @internal */
18904 export function ChannelDetails_set_channel_type(this_ptr: number, val: number): void {
18905         if(!isWasmInitialized) {
18906                 throw new Error("initializeWasm() must be awaited first!");
18907         }
18908         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val);
18909         // debug statements here
18910 }
18911         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18912 /* @internal */
18913 export function ChannelDetails_get_short_channel_id(this_ptr: number): number {
18914         if(!isWasmInitialized) {
18915                 throw new Error("initializeWasm() must be awaited first!");
18916         }
18917         const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
18918         return nativeResponseValue;
18919 }
18920         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18921 /* @internal */
18922 export function ChannelDetails_set_short_channel_id(this_ptr: number, val: number): void {
18923         if(!isWasmInitialized) {
18924                 throw new Error("initializeWasm() must be awaited first!");
18925         }
18926         const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
18927         // debug statements here
18928 }
18929         // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18930 /* @internal */
18931 export function ChannelDetails_get_outbound_scid_alias(this_ptr: number): number {
18932         if(!isWasmInitialized) {
18933                 throw new Error("initializeWasm() must be awaited first!");
18934         }
18935         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr);
18936         return nativeResponseValue;
18937 }
18938         // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18939 /* @internal */
18940 export function ChannelDetails_set_outbound_scid_alias(this_ptr: number, val: number): void {
18941         if(!isWasmInitialized) {
18942                 throw new Error("initializeWasm() must be awaited first!");
18943         }
18944         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val);
18945         // debug statements here
18946 }
18947         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18948 /* @internal */
18949 export function ChannelDetails_get_inbound_scid_alias(this_ptr: number): number {
18950         if(!isWasmInitialized) {
18951                 throw new Error("initializeWasm() must be awaited first!");
18952         }
18953         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr);
18954         return nativeResponseValue;
18955 }
18956         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18957 /* @internal */
18958 export function ChannelDetails_set_inbound_scid_alias(this_ptr: number, val: number): void {
18959         if(!isWasmInitialized) {
18960                 throw new Error("initializeWasm() must be awaited first!");
18961         }
18962         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val);
18963         // debug statements here
18964 }
18965         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18966 /* @internal */
18967 export function ChannelDetails_get_channel_value_satoshis(this_ptr: number): bigint {
18968         if(!isWasmInitialized) {
18969                 throw new Error("initializeWasm() must be awaited first!");
18970         }
18971         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
18972         return nativeResponseValue;
18973 }
18974         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18975 /* @internal */
18976 export function ChannelDetails_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18977         if(!isWasmInitialized) {
18978                 throw new Error("initializeWasm() must be awaited first!");
18979         }
18980         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
18981         // debug statements here
18982 }
18983         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18984 /* @internal */
18985 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: number): number {
18986         if(!isWasmInitialized) {
18987                 throw new Error("initializeWasm() must be awaited first!");
18988         }
18989         const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
18990         return nativeResponseValue;
18991 }
18992         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18993 /* @internal */
18994 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: number, val: number): void {
18995         if(!isWasmInitialized) {
18996                 throw new Error("initializeWasm() must be awaited first!");
18997         }
18998         const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
18999         // debug statements here
19000 }
19001         // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19002 /* @internal */
19003 export function ChannelDetails_get_user_channel_id(this_ptr: number): bigint {
19004         if(!isWasmInitialized) {
19005                 throw new Error("initializeWasm() must be awaited first!");
19006         }
19007         const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
19008         return nativeResponseValue;
19009 }
19010         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19011 /* @internal */
19012 export function ChannelDetails_set_user_channel_id(this_ptr: number, val: bigint): void {
19013         if(!isWasmInitialized) {
19014                 throw new Error("initializeWasm() must be awaited first!");
19015         }
19016         const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
19017         // debug statements here
19018 }
19019         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19020 /* @internal */
19021 export function ChannelDetails_get_balance_msat(this_ptr: number): bigint {
19022         if(!isWasmInitialized) {
19023                 throw new Error("initializeWasm() must be awaited first!");
19024         }
19025         const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
19026         return nativeResponseValue;
19027 }
19028         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19029 /* @internal */
19030 export function ChannelDetails_set_balance_msat(this_ptr: number, val: bigint): void {
19031         if(!isWasmInitialized) {
19032                 throw new Error("initializeWasm() must be awaited first!");
19033         }
19034         const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
19035         // debug statements here
19036 }
19037         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19038 /* @internal */
19039 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: number): bigint {
19040         if(!isWasmInitialized) {
19041                 throw new Error("initializeWasm() must be awaited first!");
19042         }
19043         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
19044         return nativeResponseValue;
19045 }
19046         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19047 /* @internal */
19048 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: number, val: bigint): void {
19049         if(!isWasmInitialized) {
19050                 throw new Error("initializeWasm() must be awaited first!");
19051         }
19052         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
19053         // debug statements here
19054 }
19055         // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19056 /* @internal */
19057 export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: number): bigint {
19058         if(!isWasmInitialized) {
19059                 throw new Error("initializeWasm() must be awaited first!");
19060         }
19061         const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr);
19062         return nativeResponseValue;
19063 }
19064         // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19065 /* @internal */
19066 export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: number, val: bigint): void {
19067         if(!isWasmInitialized) {
19068                 throw new Error("initializeWasm() must be awaited first!");
19069         }
19070         const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val);
19071         // debug statements here
19072 }
19073         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19074 /* @internal */
19075 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: number): bigint {
19076         if(!isWasmInitialized) {
19077                 throw new Error("initializeWasm() must be awaited first!");
19078         }
19079         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
19080         return nativeResponseValue;
19081 }
19082         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19083 /* @internal */
19084 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: number, val: bigint): void {
19085         if(!isWasmInitialized) {
19086                 throw new Error("initializeWasm() must be awaited first!");
19087         }
19088         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
19089         // debug statements here
19090 }
19091         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19092 /* @internal */
19093 export function ChannelDetails_get_confirmations_required(this_ptr: number): number {
19094         if(!isWasmInitialized) {
19095                 throw new Error("initializeWasm() must be awaited first!");
19096         }
19097         const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
19098         return nativeResponseValue;
19099 }
19100         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
19101 /* @internal */
19102 export function ChannelDetails_set_confirmations_required(this_ptr: number, val: number): void {
19103         if(!isWasmInitialized) {
19104                 throw new Error("initializeWasm() must be awaited first!");
19105         }
19106         const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
19107         // debug statements here
19108 }
19109         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19110 /* @internal */
19111 export function ChannelDetails_get_force_close_spend_delay(this_ptr: number): number {
19112         if(!isWasmInitialized) {
19113                 throw new Error("initializeWasm() must be awaited first!");
19114         }
19115         const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
19116         return nativeResponseValue;
19117 }
19118         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
19119 /* @internal */
19120 export function ChannelDetails_set_force_close_spend_delay(this_ptr: number, val: number): void {
19121         if(!isWasmInitialized) {
19122                 throw new Error("initializeWasm() must be awaited first!");
19123         }
19124         const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
19125         // debug statements here
19126 }
19127         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19128 /* @internal */
19129 export function ChannelDetails_get_is_outbound(this_ptr: number): boolean {
19130         if(!isWasmInitialized) {
19131                 throw new Error("initializeWasm() must be awaited first!");
19132         }
19133         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
19134         return nativeResponseValue;
19135 }
19136         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19137 /* @internal */
19138 export function ChannelDetails_set_is_outbound(this_ptr: number, val: boolean): void {
19139         if(!isWasmInitialized) {
19140                 throw new Error("initializeWasm() must be awaited first!");
19141         }
19142         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
19143         // debug statements here
19144 }
19145         // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19146 /* @internal */
19147 export function ChannelDetails_get_is_channel_ready(this_ptr: number): boolean {
19148         if(!isWasmInitialized) {
19149                 throw new Error("initializeWasm() must be awaited first!");
19150         }
19151         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr);
19152         return nativeResponseValue;
19153 }
19154         // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19155 /* @internal */
19156 export function ChannelDetails_set_is_channel_ready(this_ptr: number, val: boolean): void {
19157         if(!isWasmInitialized) {
19158                 throw new Error("initializeWasm() must be awaited first!");
19159         }
19160         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val);
19161         // debug statements here
19162 }
19163         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19164 /* @internal */
19165 export function ChannelDetails_get_is_usable(this_ptr: number): boolean {
19166         if(!isWasmInitialized) {
19167                 throw new Error("initializeWasm() must be awaited first!");
19168         }
19169         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
19170         return nativeResponseValue;
19171 }
19172         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19173 /* @internal */
19174 export function ChannelDetails_set_is_usable(this_ptr: number, val: boolean): void {
19175         if(!isWasmInitialized) {
19176                 throw new Error("initializeWasm() must be awaited first!");
19177         }
19178         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
19179         // debug statements here
19180 }
19181         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19182 /* @internal */
19183 export function ChannelDetails_get_is_public(this_ptr: number): boolean {
19184         if(!isWasmInitialized) {
19185                 throw new Error("initializeWasm() must be awaited first!");
19186         }
19187         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
19188         return nativeResponseValue;
19189 }
19190         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19191 /* @internal */
19192 export function ChannelDetails_set_is_public(this_ptr: number, val: boolean): void {
19193         if(!isWasmInitialized) {
19194                 throw new Error("initializeWasm() must be awaited first!");
19195         }
19196         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
19197         // debug statements here
19198 }
19199         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19200 /* @internal */
19201 export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: number): number {
19202         if(!isWasmInitialized) {
19203                 throw new Error("initializeWasm() must be awaited first!");
19204         }
19205         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr);
19206         return nativeResponseValue;
19207 }
19208         // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19209 /* @internal */
19210 export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: number, val: number): void {
19211         if(!isWasmInitialized) {
19212                 throw new Error("initializeWasm() must be awaited first!");
19213         }
19214         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val);
19215         // debug statements here
19216 }
19217         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19218 /* @internal */
19219 export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: number): number {
19220         if(!isWasmInitialized) {
19221                 throw new Error("initializeWasm() must be awaited first!");
19222         }
19223         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr);
19224         return nativeResponseValue;
19225 }
19226         // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19227 /* @internal */
19228 export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: number, val: number): void {
19229         if(!isWasmInitialized) {
19230                 throw new Error("initializeWasm() must be awaited first!");
19231         }
19232         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val);
19233         // debug statements here
19234 }
19235         // 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);
19236 /* @internal */
19237 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): number {
19238         if(!isWasmInitialized) {
19239                 throw new Error("initializeWasm() must be awaited first!");
19240         }
19241         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);
19242         return nativeResponseValue;
19243 }
19244         // uintptr_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
19245 /* @internal */
19246 export function ChannelDetails_clone_ptr(arg: number): number {
19247         if(!isWasmInitialized) {
19248                 throw new Error("initializeWasm() must be awaited first!");
19249         }
19250         const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
19251         return nativeResponseValue;
19252 }
19253         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
19254 /* @internal */
19255 export function ChannelDetails_clone(orig: number): number {
19256         if(!isWasmInitialized) {
19257                 throw new Error("initializeWasm() must be awaited first!");
19258         }
19259         const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
19260         return nativeResponseValue;
19261 }
19262         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
19263 /* @internal */
19264 export function ChannelDetails_get_inbound_payment_scid(this_arg: number): number {
19265         if(!isWasmInitialized) {
19266                 throw new Error("initializeWasm() must be awaited first!");
19267         }
19268         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg);
19269         return nativeResponseValue;
19270 }
19271         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
19272 /* @internal */
19273 export function ChannelDetails_get_outbound_payment_scid(this_arg: number): number {
19274         if(!isWasmInitialized) {
19275                 throw new Error("initializeWasm() must be awaited first!");
19276         }
19277         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg);
19278         return nativeResponseValue;
19279 }
19280         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
19281 /* @internal */
19282 export function PaymentSendFailure_free(this_ptr: number): void {
19283         if(!isWasmInitialized) {
19284                 throw new Error("initializeWasm() must be awaited first!");
19285         }
19286         const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
19287         // debug statements here
19288 }
19289         // uintptr_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
19290 /* @internal */
19291 export function PaymentSendFailure_clone_ptr(arg: number): number {
19292         if(!isWasmInitialized) {
19293                 throw new Error("initializeWasm() must be awaited first!");
19294         }
19295         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
19296         return nativeResponseValue;
19297 }
19298         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
19299 /* @internal */
19300 export function PaymentSendFailure_clone(orig: number): number {
19301         if(!isWasmInitialized) {
19302                 throw new Error("initializeWasm() must be awaited first!");
19303         }
19304         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
19305         return nativeResponseValue;
19306 }
19307         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
19308 /* @internal */
19309 export function PaymentSendFailure_parameter_error(a: number): number {
19310         if(!isWasmInitialized) {
19311                 throw new Error("initializeWasm() must be awaited first!");
19312         }
19313         const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
19314         return nativeResponseValue;
19315 }
19316         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
19317 /* @internal */
19318 export function PaymentSendFailure_path_parameter_error(a: number): number {
19319         if(!isWasmInitialized) {
19320                 throw new Error("initializeWasm() must be awaited first!");
19321         }
19322         const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
19323         return nativeResponseValue;
19324 }
19325         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
19326 /* @internal */
19327 export function PaymentSendFailure_all_failed_retry_safe(a: number): number {
19328         if(!isWasmInitialized) {
19329                 throw new Error("initializeWasm() must be awaited first!");
19330         }
19331         const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_retry_safe(a);
19332         return nativeResponseValue;
19333 }
19334         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
19335 /* @internal */
19336 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: number, payment_id: number): number {
19337         if(!isWasmInitialized) {
19338                 throw new Error("initializeWasm() must be awaited first!");
19339         }
19340         const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
19341         return nativeResponseValue;
19342 }
19343         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
19344 /* @internal */
19345 export function PhantomRouteHints_free(this_obj: number): void {
19346         if(!isWasmInitialized) {
19347                 throw new Error("initializeWasm() must be awaited first!");
19348         }
19349         const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
19350         // debug statements here
19351 }
19352         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19353 /* @internal */
19354 export function PhantomRouteHints_get_channels(this_ptr: number): number {
19355         if(!isWasmInitialized) {
19356                 throw new Error("initializeWasm() must be awaited first!");
19357         }
19358         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
19359         return nativeResponseValue;
19360 }
19361         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
19362 /* @internal */
19363 export function PhantomRouteHints_set_channels(this_ptr: number, val: number): void {
19364         if(!isWasmInitialized) {
19365                 throw new Error("initializeWasm() must be awaited first!");
19366         }
19367         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
19368         // debug statements here
19369 }
19370         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19371 /* @internal */
19372 export function PhantomRouteHints_get_phantom_scid(this_ptr: number): bigint {
19373         if(!isWasmInitialized) {
19374                 throw new Error("initializeWasm() must be awaited first!");
19375         }
19376         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
19377         return nativeResponseValue;
19378 }
19379         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
19380 /* @internal */
19381 export function PhantomRouteHints_set_phantom_scid(this_ptr: number, val: bigint): void {
19382         if(!isWasmInitialized) {
19383                 throw new Error("initializeWasm() must be awaited first!");
19384         }
19385         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
19386         // debug statements here
19387 }
19388         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19389 /* @internal */
19390 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: number): number {
19391         if(!isWasmInitialized) {
19392                 throw new Error("initializeWasm() must be awaited first!");
19393         }
19394         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
19395         return nativeResponseValue;
19396 }
19397         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19398 /* @internal */
19399 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: number, val: number): void {
19400         if(!isWasmInitialized) {
19401                 throw new Error("initializeWasm() must be awaited first!");
19402         }
19403         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
19404         // debug statements here
19405 }
19406         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
19407 /* @internal */
19408 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): number {
19409         if(!isWasmInitialized) {
19410                 throw new Error("initializeWasm() must be awaited first!");
19411         }
19412         const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
19413         return nativeResponseValue;
19414 }
19415         // uintptr_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
19416 /* @internal */
19417 export function PhantomRouteHints_clone_ptr(arg: number): number {
19418         if(!isWasmInitialized) {
19419                 throw new Error("initializeWasm() must be awaited first!");
19420         }
19421         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
19422         return nativeResponseValue;
19423 }
19424         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
19425 /* @internal */
19426 export function PhantomRouteHints_clone(orig: number): number {
19427         if(!isWasmInitialized) {
19428                 throw new Error("initializeWasm() must be awaited first!");
19429         }
19430         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
19431         return nativeResponseValue;
19432 }
19433         // 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);
19434 /* @internal */
19435 export function ChannelManager_new(fee_est: number, chain_monitor: number, tx_broadcaster: number, logger: number, keys_manager: number, config: number, params: number): number {
19436         if(!isWasmInitialized) {
19437                 throw new Error("initializeWasm() must be awaited first!");
19438         }
19439         const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, logger, keys_manager, config, params);
19440         return nativeResponseValue;
19441 }
19442         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
19443 /* @internal */
19444 export function ChannelManager_get_current_default_configuration(this_arg: number): number {
19445         if(!isWasmInitialized) {
19446                 throw new Error("initializeWasm() must be awaited first!");
19447         }
19448         const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
19449         return nativeResponseValue;
19450 }
19451         // 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);
19452 /* @internal */
19453 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 {
19454         if(!isWasmInitialized) {
19455                 throw new Error("initializeWasm() must be awaited first!");
19456         }
19457         const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
19458         return nativeResponseValue;
19459 }
19460         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19461 /* @internal */
19462 export function ChannelManager_list_channels(this_arg: number): number {
19463         if(!isWasmInitialized) {
19464                 throw new Error("initializeWasm() must be awaited first!");
19465         }
19466         const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
19467         return nativeResponseValue;
19468 }
19469         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19470 /* @internal */
19471 export function ChannelManager_list_usable_channels(this_arg: number): number {
19472         if(!isWasmInitialized) {
19473                 throw new Error("initializeWasm() must be awaited first!");
19474         }
19475         const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
19476         return nativeResponseValue;
19477 }
19478         // 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);
19479 /* @internal */
19480 export function ChannelManager_close_channel(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19481         if(!isWasmInitialized) {
19482                 throw new Error("initializeWasm() must be awaited first!");
19483         }
19484         const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id);
19485         return nativeResponseValue;
19486 }
19487         // 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);
19488 /* @internal */
19489 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 {
19490         if(!isWasmInitialized) {
19491                 throw new Error("initializeWasm() must be awaited first!");
19492         }
19493         const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight);
19494         return nativeResponseValue;
19495 }
19496         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
19497 /* @internal */
19498 export function ChannelManager_force_close_channel(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19499         if(!isWasmInitialized) {
19500                 throw new Error("initializeWasm() must be awaited first!");
19501         }
19502         const nativeResponseValue = wasm.TS_ChannelManager_force_close_channel(this_arg, channel_id, counterparty_node_id);
19503         return nativeResponseValue;
19504 }
19505         // void ChannelManager_force_close_all_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19506 /* @internal */
19507 export function ChannelManager_force_close_all_channels(this_arg: number): void {
19508         if(!isWasmInitialized) {
19509                 throw new Error("initializeWasm() must be awaited first!");
19510         }
19511         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels(this_arg);
19512         // debug statements here
19513 }
19514         // 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);
19515 /* @internal */
19516 export function ChannelManager_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
19517         if(!isWasmInitialized) {
19518                 throw new Error("initializeWasm() must be awaited first!");
19519         }
19520         const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, route, payment_hash, payment_secret);
19521         return nativeResponseValue;
19522 }
19523         // 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);
19524 /* @internal */
19525 export function ChannelManager_retry_payment(this_arg: number, route: number, payment_id: number): number {
19526         if(!isWasmInitialized) {
19527                 throw new Error("initializeWasm() must be awaited first!");
19528         }
19529         const nativeResponseValue = wasm.TS_ChannelManager_retry_payment(this_arg, route, payment_id);
19530         return nativeResponseValue;
19531 }
19532         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
19533 /* @internal */
19534 export function ChannelManager_abandon_payment(this_arg: number, payment_id: number): void {
19535         if(!isWasmInitialized) {
19536                 throw new Error("initializeWasm() must be awaited first!");
19537         }
19538         const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
19539         // debug statements here
19540 }
19541         // 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);
19542 /* @internal */
19543 export function ChannelManager_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
19544         if(!isWasmInitialized) {
19545                 throw new Error("initializeWasm() must be awaited first!");
19546         }
19547         const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage);
19548         return nativeResponseValue;
19549 }
19550         // 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);
19551 /* @internal */
19552 export function ChannelManager_funding_transaction_generated(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, funding_transaction: number): number {
19553         if(!isWasmInitialized) {
19554                 throw new Error("initializeWasm() must be awaited first!");
19555         }
19556         const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction);
19557         return nativeResponseValue;
19558 }
19559         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
19560 /* @internal */
19561 export function ChannelManager_broadcast_node_announcement(this_arg: number, rgb: number, alias: number, addresses: number): void {
19562         if(!isWasmInitialized) {
19563                 throw new Error("initializeWasm() must be awaited first!");
19564         }
19565         const nativeResponseValue = wasm.TS_ChannelManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
19566         // debug statements here
19567 }
19568         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
19569 /* @internal */
19570 export function ChannelManager_process_pending_htlc_forwards(this_arg: number): void {
19571         if(!isWasmInitialized) {
19572                 throw new Error("initializeWasm() must be awaited first!");
19573         }
19574         const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
19575         // debug statements here
19576 }
19577         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
19578 /* @internal */
19579 export function ChannelManager_timer_tick_occurred(this_arg: number): void {
19580         if(!isWasmInitialized) {
19581                 throw new Error("initializeWasm() must be awaited first!");
19582         }
19583         const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
19584         // debug statements here
19585 }
19586         // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
19587 /* @internal */
19588 export function ChannelManager_fail_htlc_backwards(this_arg: number, payment_hash: number): void {
19589         if(!isWasmInitialized) {
19590                 throw new Error("initializeWasm() must be awaited first!");
19591         }
19592         const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
19593         // debug statements here
19594 }
19595         // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
19596 /* @internal */
19597 export function ChannelManager_claim_funds(this_arg: number, payment_preimage: number): void {
19598         if(!isWasmInitialized) {
19599                 throw new Error("initializeWasm() must be awaited first!");
19600         }
19601         const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
19602         // debug statements here
19603 }
19604         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
19605 /* @internal */
19606 export function ChannelManager_get_our_node_id(this_arg: number): number {
19607         if(!isWasmInitialized) {
19608                 throw new Error("initializeWasm() must be awaited first!");
19609         }
19610         const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
19611         return nativeResponseValue;
19612 }
19613         // 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);
19614 /* @internal */
19615 export function ChannelManager_accept_inbound_channel(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: bigint): number {
19616         if(!isWasmInitialized) {
19617                 throw new Error("initializeWasm() must be awaited first!");
19618         }
19619         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
19620         return nativeResponseValue;
19621 }
19622         // 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);
19623 /* @internal */
19624 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 {
19625         if(!isWasmInitialized) {
19626                 throw new Error("initializeWasm() must be awaited first!");
19627         }
19628         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
19629         return nativeResponseValue;
19630 }
19631         // 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);
19632 /* @internal */
19633 export function ChannelManager_create_inbound_payment(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19634         if(!isWasmInitialized) {
19635                 throw new Error("initializeWasm() must be awaited first!");
19636         }
19637         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs);
19638         return nativeResponseValue;
19639 }
19640         // 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);
19641 /* @internal */
19642 export function ChannelManager_create_inbound_payment_legacy(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19643         if(!isWasmInitialized) {
19644                 throw new Error("initializeWasm() must be awaited first!");
19645         }
19646         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
19647         return nativeResponseValue;
19648 }
19649         // 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);
19650 /* @internal */
19651 export function ChannelManager_create_inbound_payment_for_hash(this_arg: number, payment_hash: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19652         if(!isWasmInitialized) {
19653                 throw new Error("initializeWasm() must be awaited first!");
19654         }
19655         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19656         return nativeResponseValue;
19657 }
19658         // 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);
19659 /* @internal */
19660 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 {
19661         if(!isWasmInitialized) {
19662                 throw new Error("initializeWasm() must be awaited first!");
19663         }
19664         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19665         return nativeResponseValue;
19666 }
19667         // 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);
19668 /* @internal */
19669 export function ChannelManager_get_payment_preimage(this_arg: number, payment_hash: number, payment_secret: number): number {
19670         if(!isWasmInitialized) {
19671                 throw new Error("initializeWasm() must be awaited first!");
19672         }
19673         const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
19674         return nativeResponseValue;
19675 }
19676         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
19677 /* @internal */
19678 export function ChannelManager_get_phantom_scid(this_arg: number): bigint {
19679         if(!isWasmInitialized) {
19680                 throw new Error("initializeWasm() must be awaited first!");
19681         }
19682         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
19683         return nativeResponseValue;
19684 }
19685         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
19686 /* @internal */
19687 export function ChannelManager_get_phantom_route_hints(this_arg: number): number {
19688         if(!isWasmInitialized) {
19689                 throw new Error("initializeWasm() must be awaited first!");
19690         }
19691         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
19692         return nativeResponseValue;
19693 }
19694         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19695 /* @internal */
19696 export function ChannelManager_as_MessageSendEventsProvider(this_arg: number): number {
19697         if(!isWasmInitialized) {
19698                 throw new Error("initializeWasm() must be awaited first!");
19699         }
19700         const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
19701         return nativeResponseValue;
19702 }
19703         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19704 /* @internal */
19705 export function ChannelManager_as_EventsProvider(this_arg: number): number {
19706         if(!isWasmInitialized) {
19707                 throw new Error("initializeWasm() must be awaited first!");
19708         }
19709         const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
19710         return nativeResponseValue;
19711 }
19712         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
19713 /* @internal */
19714 export function ChannelManager_as_Listen(this_arg: number): number {
19715         if(!isWasmInitialized) {
19716                 throw new Error("initializeWasm() must be awaited first!");
19717         }
19718         const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
19719         return nativeResponseValue;
19720 }
19721         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
19722 /* @internal */
19723 export function ChannelManager_as_Confirm(this_arg: number): number {
19724         if(!isWasmInitialized) {
19725                 throw new Error("initializeWasm() must be awaited first!");
19726         }
19727         const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
19728         return nativeResponseValue;
19729 }
19730         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
19731 /* @internal */
19732 export function ChannelManager_await_persistable_update(this_arg: number): void {
19733         if(!isWasmInitialized) {
19734                 throw new Error("initializeWasm() must be awaited first!");
19735         }
19736         const nativeResponseValue = wasm.TS_ChannelManager_await_persistable_update(this_arg);
19737         // debug statements here
19738 }
19739         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
19740 /* @internal */
19741 export function ChannelManager_current_best_block(this_arg: number): number {
19742         if(!isWasmInitialized) {
19743                 throw new Error("initializeWasm() must be awaited first!");
19744         }
19745         const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
19746         return nativeResponseValue;
19747 }
19748         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
19749 /* @internal */
19750 export function ChannelManager_as_ChannelMessageHandler(this_arg: number): number {
19751         if(!isWasmInitialized) {
19752                 throw new Error("initializeWasm() must be awaited first!");
19753         }
19754         const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
19755         return nativeResponseValue;
19756 }
19757         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
19758 /* @internal */
19759 export function CounterpartyForwardingInfo_write(obj: number): number {
19760         if(!isWasmInitialized) {
19761                 throw new Error("initializeWasm() must be awaited first!");
19762         }
19763         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
19764         return nativeResponseValue;
19765 }
19766         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
19767 /* @internal */
19768 export function CounterpartyForwardingInfo_read(ser: number): number {
19769         if(!isWasmInitialized) {
19770                 throw new Error("initializeWasm() must be awaited first!");
19771         }
19772         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
19773         return nativeResponseValue;
19774 }
19775         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
19776 /* @internal */
19777 export function ChannelCounterparty_write(obj: number): number {
19778         if(!isWasmInitialized) {
19779                 throw new Error("initializeWasm() must be awaited first!");
19780         }
19781         const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
19782         return nativeResponseValue;
19783 }
19784         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
19785 /* @internal */
19786 export function ChannelCounterparty_read(ser: number): number {
19787         if(!isWasmInitialized) {
19788                 throw new Error("initializeWasm() must be awaited first!");
19789         }
19790         const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
19791         return nativeResponseValue;
19792 }
19793         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
19794 /* @internal */
19795 export function ChannelDetails_write(obj: number): number {
19796         if(!isWasmInitialized) {
19797                 throw new Error("initializeWasm() must be awaited first!");
19798         }
19799         const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
19800         return nativeResponseValue;
19801 }
19802         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
19803 /* @internal */
19804 export function ChannelDetails_read(ser: number): number {
19805         if(!isWasmInitialized) {
19806                 throw new Error("initializeWasm() must be awaited first!");
19807         }
19808         const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
19809         return nativeResponseValue;
19810 }
19811         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
19812 /* @internal */
19813 export function PhantomRouteHints_write(obj: number): number {
19814         if(!isWasmInitialized) {
19815                 throw new Error("initializeWasm() must be awaited first!");
19816         }
19817         const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
19818         return nativeResponseValue;
19819 }
19820         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
19821 /* @internal */
19822 export function PhantomRouteHints_read(ser: number): number {
19823         if(!isWasmInitialized) {
19824                 throw new Error("initializeWasm() must be awaited first!");
19825         }
19826         const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
19827         return nativeResponseValue;
19828 }
19829         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
19830 /* @internal */
19831 export function ChannelManager_write(obj: number): number {
19832         if(!isWasmInitialized) {
19833                 throw new Error("initializeWasm() must be awaited first!");
19834         }
19835         const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
19836         return nativeResponseValue;
19837 }
19838         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
19839 /* @internal */
19840 export function ChannelManagerReadArgs_free(this_obj: number): void {
19841         if(!isWasmInitialized) {
19842                 throw new Error("initializeWasm() must be awaited first!");
19843         }
19844         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
19845         // debug statements here
19846 }
19847         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19848 /* @internal */
19849 export function ChannelManagerReadArgs_get_keys_manager(this_ptr: number): number {
19850         if(!isWasmInitialized) {
19851                 throw new Error("initializeWasm() must be awaited first!");
19852         }
19853         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_keys_manager(this_ptr);
19854         return nativeResponseValue;
19855 }
19856         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
19857 /* @internal */
19858 export function ChannelManagerReadArgs_set_keys_manager(this_ptr: number, val: number): void {
19859         if(!isWasmInitialized) {
19860                 throw new Error("initializeWasm() must be awaited first!");
19861         }
19862         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_keys_manager(this_ptr, val);
19863         // debug statements here
19864 }
19865         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19866 /* @internal */
19867 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: number): number {
19868         if(!isWasmInitialized) {
19869                 throw new Error("initializeWasm() must be awaited first!");
19870         }
19871         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
19872         return nativeResponseValue;
19873 }
19874         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
19875 /* @internal */
19876 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: number, val: number): void {
19877         if(!isWasmInitialized) {
19878                 throw new Error("initializeWasm() must be awaited first!");
19879         }
19880         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
19881         // debug statements here
19882 }
19883         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19884 /* @internal */
19885 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: number): number {
19886         if(!isWasmInitialized) {
19887                 throw new Error("initializeWasm() must be awaited first!");
19888         }
19889         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
19890         return nativeResponseValue;
19891 }
19892         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
19893 /* @internal */
19894 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: number, val: number): void {
19895         if(!isWasmInitialized) {
19896                 throw new Error("initializeWasm() must be awaited first!");
19897         }
19898         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
19899         // debug statements here
19900 }
19901         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19902 /* @internal */
19903 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: number): number {
19904         if(!isWasmInitialized) {
19905                 throw new Error("initializeWasm() must be awaited first!");
19906         }
19907         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
19908         return nativeResponseValue;
19909 }
19910         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
19911 /* @internal */
19912 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: number, val: number): void {
19913         if(!isWasmInitialized) {
19914                 throw new Error("initializeWasm() must be awaited first!");
19915         }
19916         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
19917         // debug statements here
19918 }
19919         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19920 /* @internal */
19921 export function ChannelManagerReadArgs_get_logger(this_ptr: number): number {
19922         if(!isWasmInitialized) {
19923                 throw new Error("initializeWasm() must be awaited first!");
19924         }
19925         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
19926         return nativeResponseValue;
19927 }
19928         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
19929 /* @internal */
19930 export function ChannelManagerReadArgs_set_logger(this_ptr: number, val: number): void {
19931         if(!isWasmInitialized) {
19932                 throw new Error("initializeWasm() must be awaited first!");
19933         }
19934         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
19935         // debug statements here
19936 }
19937         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19938 /* @internal */
19939 export function ChannelManagerReadArgs_get_default_config(this_ptr: number): number {
19940         if(!isWasmInitialized) {
19941                 throw new Error("initializeWasm() must be awaited first!");
19942         }
19943         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
19944         return nativeResponseValue;
19945 }
19946         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
19947 /* @internal */
19948 export function ChannelManagerReadArgs_set_default_config(this_ptr: number, val: number): void {
19949         if(!isWasmInitialized) {
19950                 throw new Error("initializeWasm() must be awaited first!");
19951         }
19952         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
19953         // debug statements here
19954 }
19955         // 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);
19956 /* @internal */
19957 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 {
19958         if(!isWasmInitialized) {
19959                 throw new Error("initializeWasm() must be awaited first!");
19960         }
19961         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(keys_manager, fee_estimator, chain_monitor, tx_broadcaster, logger, default_config, channel_monitors);
19962         return nativeResponseValue;
19963 }
19964         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
19965 /* @internal */
19966 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: number): number {
19967         if(!isWasmInitialized) {
19968                 throw new Error("initializeWasm() must be awaited first!");
19969         }
19970         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
19971         return nativeResponseValue;
19972 }
19973         // void ExpandedKey_free(struct LDKExpandedKey this_obj);
19974 /* @internal */
19975 export function ExpandedKey_free(this_obj: number): void {
19976         if(!isWasmInitialized) {
19977                 throw new Error("initializeWasm() must be awaited first!");
19978         }
19979         const nativeResponseValue = wasm.TS_ExpandedKey_free(this_obj);
19980         // debug statements here
19981 }
19982         // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
19983 /* @internal */
19984 export function ExpandedKey_new(key_material: number): number {
19985         if(!isWasmInitialized) {
19986                 throw new Error("initializeWasm() must be awaited first!");
19987         }
19988         const nativeResponseValue = wasm.TS_ExpandedKey_new(key_material);
19989         return nativeResponseValue;
19990 }
19991         // 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);
19992 /* @internal */
19993 export function create(keys: number, min_value_msat: number, invoice_expiry_delta_secs: number, keys_manager: number, current_time: bigint): number {
19994         if(!isWasmInitialized) {
19995                 throw new Error("initializeWasm() must be awaited first!");
19996         }
19997         const nativeResponseValue = wasm.TS_create(keys, min_value_msat, invoice_expiry_delta_secs, keys_manager, current_time);
19998         return nativeResponseValue;
19999 }
20000         // 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);
20001 /* @internal */
20002 export function create_from_hash(keys: number, min_value_msat: number, payment_hash: number, invoice_expiry_delta_secs: number, current_time: bigint): number {
20003         if(!isWasmInitialized) {
20004                 throw new Error("initializeWasm() must be awaited first!");
20005         }
20006         const nativeResponseValue = wasm.TS_create_from_hash(keys, min_value_msat, payment_hash, invoice_expiry_delta_secs, current_time);
20007         return nativeResponseValue;
20008 }
20009         // void DecodeError_free(struct LDKDecodeError this_obj);
20010 /* @internal */
20011 export function DecodeError_free(this_obj: number): void {
20012         if(!isWasmInitialized) {
20013                 throw new Error("initializeWasm() must be awaited first!");
20014         }
20015         const nativeResponseValue = wasm.TS_DecodeError_free(this_obj);
20016         // debug statements here
20017 }
20018         // uintptr_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
20019 /* @internal */
20020 export function DecodeError_clone_ptr(arg: number): number {
20021         if(!isWasmInitialized) {
20022                 throw new Error("initializeWasm() must be awaited first!");
20023         }
20024         const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
20025         return nativeResponseValue;
20026 }
20027         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
20028 /* @internal */
20029 export function DecodeError_clone(orig: number): number {
20030         if(!isWasmInitialized) {
20031                 throw new Error("initializeWasm() must be awaited first!");
20032         }
20033         const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
20034         return nativeResponseValue;
20035 }
20036         // void Init_free(struct LDKInit this_obj);
20037 /* @internal */
20038 export function Init_free(this_obj: number): void {
20039         if(!isWasmInitialized) {
20040                 throw new Error("initializeWasm() must be awaited first!");
20041         }
20042         const nativeResponseValue = wasm.TS_Init_free(this_obj);
20043         // debug statements here
20044 }
20045         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
20046 /* @internal */
20047 export function Init_get_features(this_ptr: number): number {
20048         if(!isWasmInitialized) {
20049                 throw new Error("initializeWasm() must be awaited first!");
20050         }
20051         const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
20052         return nativeResponseValue;
20053 }
20054         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
20055 /* @internal */
20056 export function Init_set_features(this_ptr: number, val: number): void {
20057         if(!isWasmInitialized) {
20058                 throw new Error("initializeWasm() must be awaited first!");
20059         }
20060         const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
20061         // debug statements here
20062 }
20063         // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
20064 /* @internal */
20065 export function Init_get_remote_network_address(this_ptr: number): number {
20066         if(!isWasmInitialized) {
20067                 throw new Error("initializeWasm() must be awaited first!");
20068         }
20069         const nativeResponseValue = wasm.TS_Init_get_remote_network_address(this_ptr);
20070         return nativeResponseValue;
20071 }
20072         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
20073 /* @internal */
20074 export function Init_set_remote_network_address(this_ptr: number, val: number): void {
20075         if(!isWasmInitialized) {
20076                 throw new Error("initializeWasm() must be awaited first!");
20077         }
20078         const nativeResponseValue = wasm.TS_Init_set_remote_network_address(this_ptr, val);
20079         // debug statements here
20080 }
20081         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
20082 /* @internal */
20083 export function Init_new(features_arg: number, remote_network_address_arg: number): number {
20084         if(!isWasmInitialized) {
20085                 throw new Error("initializeWasm() must be awaited first!");
20086         }
20087         const nativeResponseValue = wasm.TS_Init_new(features_arg, remote_network_address_arg);
20088         return nativeResponseValue;
20089 }
20090         // uintptr_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
20091 /* @internal */
20092 export function Init_clone_ptr(arg: number): number {
20093         if(!isWasmInitialized) {
20094                 throw new Error("initializeWasm() must be awaited first!");
20095         }
20096         const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
20097         return nativeResponseValue;
20098 }
20099         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
20100 /* @internal */
20101 export function Init_clone(orig: number): number {
20102         if(!isWasmInitialized) {
20103                 throw new Error("initializeWasm() must be awaited first!");
20104         }
20105         const nativeResponseValue = wasm.TS_Init_clone(orig);
20106         return nativeResponseValue;
20107 }
20108         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
20109 /* @internal */
20110 export function ErrorMessage_free(this_obj: number): void {
20111         if(!isWasmInitialized) {
20112                 throw new Error("initializeWasm() must be awaited first!");
20113         }
20114         const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
20115         // debug statements here
20116 }
20117         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
20118 /* @internal */
20119 export function ErrorMessage_get_channel_id(this_ptr: number): number {
20120         if(!isWasmInitialized) {
20121                 throw new Error("initializeWasm() must be awaited first!");
20122         }
20123         const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
20124         return nativeResponseValue;
20125 }
20126         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20127 /* @internal */
20128 export function ErrorMessage_set_channel_id(this_ptr: number, val: number): void {
20129         if(!isWasmInitialized) {
20130                 throw new Error("initializeWasm() must be awaited first!");
20131         }
20132         const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
20133         // debug statements here
20134 }
20135         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
20136 /* @internal */
20137 export function ErrorMessage_get_data(this_ptr: number): number {
20138         if(!isWasmInitialized) {
20139                 throw new Error("initializeWasm() must be awaited first!");
20140         }
20141         const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
20142         return nativeResponseValue;
20143 }
20144         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
20145 /* @internal */
20146 export function ErrorMessage_set_data(this_ptr: number, val: number): void {
20147         if(!isWasmInitialized) {
20148                 throw new Error("initializeWasm() must be awaited first!");
20149         }
20150         const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
20151         // debug statements here
20152 }
20153         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
20154 /* @internal */
20155 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): number {
20156         if(!isWasmInitialized) {
20157                 throw new Error("initializeWasm() must be awaited first!");
20158         }
20159         const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
20160         return nativeResponseValue;
20161 }
20162         // uintptr_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
20163 /* @internal */
20164 export function ErrorMessage_clone_ptr(arg: number): number {
20165         if(!isWasmInitialized) {
20166                 throw new Error("initializeWasm() must be awaited first!");
20167         }
20168         const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
20169         return nativeResponseValue;
20170 }
20171         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
20172 /* @internal */
20173 export function ErrorMessage_clone(orig: number): number {
20174         if(!isWasmInitialized) {
20175                 throw new Error("initializeWasm() must be awaited first!");
20176         }
20177         const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
20178         return nativeResponseValue;
20179 }
20180         // void WarningMessage_free(struct LDKWarningMessage this_obj);
20181 /* @internal */
20182 export function WarningMessage_free(this_obj: number): void {
20183         if(!isWasmInitialized) {
20184                 throw new Error("initializeWasm() must be awaited first!");
20185         }
20186         const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
20187         // debug statements here
20188 }
20189         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
20190 /* @internal */
20191 export function WarningMessage_get_channel_id(this_ptr: number): number {
20192         if(!isWasmInitialized) {
20193                 throw new Error("initializeWasm() must be awaited first!");
20194         }
20195         const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
20196         return nativeResponseValue;
20197 }
20198         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20199 /* @internal */
20200 export function WarningMessage_set_channel_id(this_ptr: number, val: number): void {
20201         if(!isWasmInitialized) {
20202                 throw new Error("initializeWasm() must be awaited first!");
20203         }
20204         const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
20205         // debug statements here
20206 }
20207         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
20208 /* @internal */
20209 export function WarningMessage_get_data(this_ptr: number): number {
20210         if(!isWasmInitialized) {
20211                 throw new Error("initializeWasm() must be awaited first!");
20212         }
20213         const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
20214         return nativeResponseValue;
20215 }
20216         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
20217 /* @internal */
20218 export function WarningMessage_set_data(this_ptr: number, val: number): void {
20219         if(!isWasmInitialized) {
20220                 throw new Error("initializeWasm() must be awaited first!");
20221         }
20222         const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
20223         // debug statements here
20224 }
20225         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
20226 /* @internal */
20227 export function WarningMessage_new(channel_id_arg: number, data_arg: number): number {
20228         if(!isWasmInitialized) {
20229                 throw new Error("initializeWasm() must be awaited first!");
20230         }
20231         const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
20232         return nativeResponseValue;
20233 }
20234         // uintptr_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
20235 /* @internal */
20236 export function WarningMessage_clone_ptr(arg: number): number {
20237         if(!isWasmInitialized) {
20238                 throw new Error("initializeWasm() must be awaited first!");
20239         }
20240         const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
20241         return nativeResponseValue;
20242 }
20243         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
20244 /* @internal */
20245 export function WarningMessage_clone(orig: number): number {
20246         if(!isWasmInitialized) {
20247                 throw new Error("initializeWasm() must be awaited first!");
20248         }
20249         const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
20250         return nativeResponseValue;
20251 }
20252         // void Ping_free(struct LDKPing this_obj);
20253 /* @internal */
20254 export function Ping_free(this_obj: number): void {
20255         if(!isWasmInitialized) {
20256                 throw new Error("initializeWasm() must be awaited first!");
20257         }
20258         const nativeResponseValue = wasm.TS_Ping_free(this_obj);
20259         // debug statements here
20260 }
20261         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
20262 /* @internal */
20263 export function Ping_get_ponglen(this_ptr: number): number {
20264         if(!isWasmInitialized) {
20265                 throw new Error("initializeWasm() must be awaited first!");
20266         }
20267         const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
20268         return nativeResponseValue;
20269 }
20270         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
20271 /* @internal */
20272 export function Ping_set_ponglen(this_ptr: number, val: number): void {
20273         if(!isWasmInitialized) {
20274                 throw new Error("initializeWasm() must be awaited first!");
20275         }
20276         const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
20277         // debug statements here
20278 }
20279         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
20280 /* @internal */
20281 export function Ping_get_byteslen(this_ptr: number): number {
20282         if(!isWasmInitialized) {
20283                 throw new Error("initializeWasm() must be awaited first!");
20284         }
20285         const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
20286         return nativeResponseValue;
20287 }
20288         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
20289 /* @internal */
20290 export function Ping_set_byteslen(this_ptr: number, val: number): void {
20291         if(!isWasmInitialized) {
20292                 throw new Error("initializeWasm() must be awaited first!");
20293         }
20294         const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
20295         // debug statements here
20296 }
20297         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
20298 /* @internal */
20299 export function Ping_new(ponglen_arg: number, byteslen_arg: number): number {
20300         if(!isWasmInitialized) {
20301                 throw new Error("initializeWasm() must be awaited first!");
20302         }
20303         const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
20304         return nativeResponseValue;
20305 }
20306         // uintptr_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
20307 /* @internal */
20308 export function Ping_clone_ptr(arg: number): number {
20309         if(!isWasmInitialized) {
20310                 throw new Error("initializeWasm() must be awaited first!");
20311         }
20312         const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
20313         return nativeResponseValue;
20314 }
20315         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
20316 /* @internal */
20317 export function Ping_clone(orig: number): number {
20318         if(!isWasmInitialized) {
20319                 throw new Error("initializeWasm() must be awaited first!");
20320         }
20321         const nativeResponseValue = wasm.TS_Ping_clone(orig);
20322         return nativeResponseValue;
20323 }
20324         // void Pong_free(struct LDKPong this_obj);
20325 /* @internal */
20326 export function Pong_free(this_obj: number): void {
20327         if(!isWasmInitialized) {
20328                 throw new Error("initializeWasm() must be awaited first!");
20329         }
20330         const nativeResponseValue = wasm.TS_Pong_free(this_obj);
20331         // debug statements here
20332 }
20333         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
20334 /* @internal */
20335 export function Pong_get_byteslen(this_ptr: number): number {
20336         if(!isWasmInitialized) {
20337                 throw new Error("initializeWasm() must be awaited first!");
20338         }
20339         const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
20340         return nativeResponseValue;
20341 }
20342         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
20343 /* @internal */
20344 export function Pong_set_byteslen(this_ptr: number, val: number): void {
20345         if(!isWasmInitialized) {
20346                 throw new Error("initializeWasm() must be awaited first!");
20347         }
20348         const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
20349         // debug statements here
20350 }
20351         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
20352 /* @internal */
20353 export function Pong_new(byteslen_arg: number): number {
20354         if(!isWasmInitialized) {
20355                 throw new Error("initializeWasm() must be awaited first!");
20356         }
20357         const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
20358         return nativeResponseValue;
20359 }
20360         // uintptr_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
20361 /* @internal */
20362 export function Pong_clone_ptr(arg: number): number {
20363         if(!isWasmInitialized) {
20364                 throw new Error("initializeWasm() must be awaited first!");
20365         }
20366         const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
20367         return nativeResponseValue;
20368 }
20369         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
20370 /* @internal */
20371 export function Pong_clone(orig: number): number {
20372         if(!isWasmInitialized) {
20373                 throw new Error("initializeWasm() must be awaited first!");
20374         }
20375         const nativeResponseValue = wasm.TS_Pong_clone(orig);
20376         return nativeResponseValue;
20377 }
20378         // void OpenChannel_free(struct LDKOpenChannel this_obj);
20379 /* @internal */
20380 export function OpenChannel_free(this_obj: number): void {
20381         if(!isWasmInitialized) {
20382                 throw new Error("initializeWasm() must be awaited first!");
20383         }
20384         const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
20385         // debug statements here
20386 }
20387         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
20388 /* @internal */
20389 export function OpenChannel_get_chain_hash(this_ptr: number): number {
20390         if(!isWasmInitialized) {
20391                 throw new Error("initializeWasm() must be awaited first!");
20392         }
20393         const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
20394         return nativeResponseValue;
20395 }
20396         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20397 /* @internal */
20398 export function OpenChannel_set_chain_hash(this_ptr: number, val: number): void {
20399         if(!isWasmInitialized) {
20400                 throw new Error("initializeWasm() must be awaited first!");
20401         }
20402         const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
20403         // debug statements here
20404 }
20405         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
20406 /* @internal */
20407 export function OpenChannel_get_temporary_channel_id(this_ptr: number): number {
20408         if(!isWasmInitialized) {
20409                 throw new Error("initializeWasm() must be awaited first!");
20410         }
20411         const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
20412         return nativeResponseValue;
20413 }
20414         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20415 /* @internal */
20416 export function OpenChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
20417         if(!isWasmInitialized) {
20418                 throw new Error("initializeWasm() must be awaited first!");
20419         }
20420         const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
20421         // debug statements here
20422 }
20423         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20424 /* @internal */
20425 export function OpenChannel_get_funding_satoshis(this_ptr: number): bigint {
20426         if(!isWasmInitialized) {
20427                 throw new Error("initializeWasm() must be awaited first!");
20428         }
20429         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
20430         return nativeResponseValue;
20431 }
20432         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20433 /* @internal */
20434 export function OpenChannel_set_funding_satoshis(this_ptr: number, val: bigint): void {
20435         if(!isWasmInitialized) {
20436                 throw new Error("initializeWasm() must be awaited first!");
20437         }
20438         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
20439         // debug statements here
20440 }
20441         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20442 /* @internal */
20443 export function OpenChannel_get_push_msat(this_ptr: number): bigint {
20444         if(!isWasmInitialized) {
20445                 throw new Error("initializeWasm() must be awaited first!");
20446         }
20447         const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
20448         return nativeResponseValue;
20449 }
20450         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20451 /* @internal */
20452 export function OpenChannel_set_push_msat(this_ptr: number, val: bigint): void {
20453         if(!isWasmInitialized) {
20454                 throw new Error("initializeWasm() must be awaited first!");
20455         }
20456         const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
20457         // debug statements here
20458 }
20459         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20460 /* @internal */
20461 export function OpenChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
20462         if(!isWasmInitialized) {
20463                 throw new Error("initializeWasm() must be awaited first!");
20464         }
20465         const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
20466         return nativeResponseValue;
20467 }
20468         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20469 /* @internal */
20470 export function OpenChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
20471         if(!isWasmInitialized) {
20472                 throw new Error("initializeWasm() must be awaited first!");
20473         }
20474         const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
20475         // debug statements here
20476 }
20477         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20478 /* @internal */
20479 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
20480         if(!isWasmInitialized) {
20481                 throw new Error("initializeWasm() must be awaited first!");
20482         }
20483         const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
20484         return nativeResponseValue;
20485 }
20486         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20487 /* @internal */
20488 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
20489         if(!isWasmInitialized) {
20490                 throw new Error("initializeWasm() must be awaited first!");
20491         }
20492         const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
20493         // debug statements here
20494 }
20495         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20496 /* @internal */
20497 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
20498         if(!isWasmInitialized) {
20499                 throw new Error("initializeWasm() must be awaited first!");
20500         }
20501         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
20502         return nativeResponseValue;
20503 }
20504         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20505 /* @internal */
20506 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
20507         if(!isWasmInitialized) {
20508                 throw new Error("initializeWasm() must be awaited first!");
20509         }
20510         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
20511         // debug statements here
20512 }
20513         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20514 /* @internal */
20515 export function OpenChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
20516         if(!isWasmInitialized) {
20517                 throw new Error("initializeWasm() must be awaited first!");
20518         }
20519         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
20520         return nativeResponseValue;
20521 }
20522         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20523 /* @internal */
20524 export function OpenChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
20525         if(!isWasmInitialized) {
20526                 throw new Error("initializeWasm() must be awaited first!");
20527         }
20528         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
20529         // debug statements here
20530 }
20531         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20532 /* @internal */
20533 export function OpenChannel_get_feerate_per_kw(this_ptr: number): number {
20534         if(!isWasmInitialized) {
20535                 throw new Error("initializeWasm() must be awaited first!");
20536         }
20537         const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
20538         return nativeResponseValue;
20539 }
20540         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
20541 /* @internal */
20542 export function OpenChannel_set_feerate_per_kw(this_ptr: number, val: number): void {
20543         if(!isWasmInitialized) {
20544                 throw new Error("initializeWasm() must be awaited first!");
20545         }
20546         const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
20547         // debug statements here
20548 }
20549         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20550 /* @internal */
20551 export function OpenChannel_get_to_self_delay(this_ptr: number): number {
20552         if(!isWasmInitialized) {
20553                 throw new Error("initializeWasm() must be awaited first!");
20554         }
20555         const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
20556         return nativeResponseValue;
20557 }
20558         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
20559 /* @internal */
20560 export function OpenChannel_set_to_self_delay(this_ptr: number, val: number): void {
20561         if(!isWasmInitialized) {
20562                 throw new Error("initializeWasm() must be awaited first!");
20563         }
20564         const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
20565         // debug statements here
20566 }
20567         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20568 /* @internal */
20569 export function OpenChannel_get_max_accepted_htlcs(this_ptr: number): number {
20570         if(!isWasmInitialized) {
20571                 throw new Error("initializeWasm() must be awaited first!");
20572         }
20573         const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
20574         return nativeResponseValue;
20575 }
20576         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
20577 /* @internal */
20578 export function OpenChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
20579         if(!isWasmInitialized) {
20580                 throw new Error("initializeWasm() must be awaited first!");
20581         }
20582         const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
20583         // debug statements here
20584 }
20585         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20586 /* @internal */
20587 export function OpenChannel_get_funding_pubkey(this_ptr: number): number {
20588         if(!isWasmInitialized) {
20589                 throw new Error("initializeWasm() must be awaited first!");
20590         }
20591         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
20592         return nativeResponseValue;
20593 }
20594         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20595 /* @internal */
20596 export function OpenChannel_set_funding_pubkey(this_ptr: number, val: number): void {
20597         if(!isWasmInitialized) {
20598                 throw new Error("initializeWasm() must be awaited first!");
20599         }
20600         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
20601         // debug statements here
20602 }
20603         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20604 /* @internal */
20605 export function OpenChannel_get_revocation_basepoint(this_ptr: number): number {
20606         if(!isWasmInitialized) {
20607                 throw new Error("initializeWasm() must be awaited first!");
20608         }
20609         const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
20610         return nativeResponseValue;
20611 }
20612         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20613 /* @internal */
20614 export function OpenChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
20615         if(!isWasmInitialized) {
20616                 throw new Error("initializeWasm() must be awaited first!");
20617         }
20618         const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
20619         // debug statements here
20620 }
20621         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20622 /* @internal */
20623 export function OpenChannel_get_payment_point(this_ptr: number): number {
20624         if(!isWasmInitialized) {
20625                 throw new Error("initializeWasm() must be awaited first!");
20626         }
20627         const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
20628         return nativeResponseValue;
20629 }
20630         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20631 /* @internal */
20632 export function OpenChannel_set_payment_point(this_ptr: number, val: number): void {
20633         if(!isWasmInitialized) {
20634                 throw new Error("initializeWasm() must be awaited first!");
20635         }
20636         const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
20637         // debug statements here
20638 }
20639         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20640 /* @internal */
20641 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20642         if(!isWasmInitialized) {
20643                 throw new Error("initializeWasm() must be awaited first!");
20644         }
20645         const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
20646         return nativeResponseValue;
20647 }
20648         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20649 /* @internal */
20650 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20651         if(!isWasmInitialized) {
20652                 throw new Error("initializeWasm() must be awaited first!");
20653         }
20654         const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
20655         // debug statements here
20656 }
20657         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20658 /* @internal */
20659 export function OpenChannel_get_htlc_basepoint(this_ptr: number): number {
20660         if(!isWasmInitialized) {
20661                 throw new Error("initializeWasm() must be awaited first!");
20662         }
20663         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
20664         return nativeResponseValue;
20665 }
20666         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20667 /* @internal */
20668 export function OpenChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20669         if(!isWasmInitialized) {
20670                 throw new Error("initializeWasm() must be awaited first!");
20671         }
20672         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
20673         // debug statements here
20674 }
20675         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20676 /* @internal */
20677 export function OpenChannel_get_first_per_commitment_point(this_ptr: number): number {
20678         if(!isWasmInitialized) {
20679                 throw new Error("initializeWasm() must be awaited first!");
20680         }
20681         const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
20682         return nativeResponseValue;
20683 }
20684         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20685 /* @internal */
20686 export function OpenChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
20687         if(!isWasmInitialized) {
20688                 throw new Error("initializeWasm() must be awaited first!");
20689         }
20690         const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
20691         // debug statements here
20692 }
20693         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20694 /* @internal */
20695 export function OpenChannel_get_channel_flags(this_ptr: number): number {
20696         if(!isWasmInitialized) {
20697                 throw new Error("initializeWasm() must be awaited first!");
20698         }
20699         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
20700         return nativeResponseValue;
20701 }
20702         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
20703 /* @internal */
20704 export function OpenChannel_set_channel_flags(this_ptr: number, val: number): void {
20705         if(!isWasmInitialized) {
20706                 throw new Error("initializeWasm() must be awaited first!");
20707         }
20708         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
20709         // debug statements here
20710 }
20711         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20712 /* @internal */
20713 export function OpenChannel_get_channel_type(this_ptr: number): number {
20714         if(!isWasmInitialized) {
20715                 throw new Error("initializeWasm() must be awaited first!");
20716         }
20717         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
20718         return nativeResponseValue;
20719 }
20720         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
20721 /* @internal */
20722 export function OpenChannel_set_channel_type(this_ptr: number, val: number): void {
20723         if(!isWasmInitialized) {
20724                 throw new Error("initializeWasm() must be awaited first!");
20725         }
20726         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
20727         // debug statements here
20728 }
20729         // uintptr_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
20730 /* @internal */
20731 export function OpenChannel_clone_ptr(arg: number): number {
20732         if(!isWasmInitialized) {
20733                 throw new Error("initializeWasm() must be awaited first!");
20734         }
20735         const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
20736         return nativeResponseValue;
20737 }
20738         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
20739 /* @internal */
20740 export function OpenChannel_clone(orig: number): number {
20741         if(!isWasmInitialized) {
20742                 throw new Error("initializeWasm() must be awaited first!");
20743         }
20744         const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
20745         return nativeResponseValue;
20746 }
20747         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
20748 /* @internal */
20749 export function AcceptChannel_free(this_obj: number): void {
20750         if(!isWasmInitialized) {
20751                 throw new Error("initializeWasm() must be awaited first!");
20752         }
20753         const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
20754         // debug statements here
20755 }
20756         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
20757 /* @internal */
20758 export function AcceptChannel_get_temporary_channel_id(this_ptr: number): number {
20759         if(!isWasmInitialized) {
20760                 throw new Error("initializeWasm() must be awaited first!");
20761         }
20762         const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
20763         return nativeResponseValue;
20764 }
20765         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20766 /* @internal */
20767 export function AcceptChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
20768         if(!isWasmInitialized) {
20769                 throw new Error("initializeWasm() must be awaited first!");
20770         }
20771         const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
20772         // debug statements here
20773 }
20774         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20775 /* @internal */
20776 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
20777         if(!isWasmInitialized) {
20778                 throw new Error("initializeWasm() must be awaited first!");
20779         }
20780         const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
20781         return nativeResponseValue;
20782 }
20783         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20784 /* @internal */
20785 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
20786         if(!isWasmInitialized) {
20787                 throw new Error("initializeWasm() must be awaited first!");
20788         }
20789         const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
20790         // debug statements here
20791 }
20792         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20793 /* @internal */
20794 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
20795         if(!isWasmInitialized) {
20796                 throw new Error("initializeWasm() must be awaited first!");
20797         }
20798         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
20799         return nativeResponseValue;
20800 }
20801         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20802 /* @internal */
20803 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
20804         if(!isWasmInitialized) {
20805                 throw new Error("initializeWasm() must be awaited first!");
20806         }
20807         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
20808         // debug statements here
20809 }
20810         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20811 /* @internal */
20812 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
20813         if(!isWasmInitialized) {
20814                 throw new Error("initializeWasm() must be awaited first!");
20815         }
20816         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
20817         return nativeResponseValue;
20818 }
20819         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20820 /* @internal */
20821 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
20822         if(!isWasmInitialized) {
20823                 throw new Error("initializeWasm() must be awaited first!");
20824         }
20825         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
20826         // debug statements here
20827 }
20828         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20829 /* @internal */
20830 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
20831         if(!isWasmInitialized) {
20832                 throw new Error("initializeWasm() must be awaited first!");
20833         }
20834         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
20835         return nativeResponseValue;
20836 }
20837         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20838 /* @internal */
20839 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
20840         if(!isWasmInitialized) {
20841                 throw new Error("initializeWasm() must be awaited first!");
20842         }
20843         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
20844         // debug statements here
20845 }
20846         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20847 /* @internal */
20848 export function AcceptChannel_get_minimum_depth(this_ptr: number): number {
20849         if(!isWasmInitialized) {
20850                 throw new Error("initializeWasm() must be awaited first!");
20851         }
20852         const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
20853         return nativeResponseValue;
20854 }
20855         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
20856 /* @internal */
20857 export function AcceptChannel_set_minimum_depth(this_ptr: number, val: number): void {
20858         if(!isWasmInitialized) {
20859                 throw new Error("initializeWasm() must be awaited first!");
20860         }
20861         const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
20862         // debug statements here
20863 }
20864         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20865 /* @internal */
20866 export function AcceptChannel_get_to_self_delay(this_ptr: number): number {
20867         if(!isWasmInitialized) {
20868                 throw new Error("initializeWasm() must be awaited first!");
20869         }
20870         const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
20871         return nativeResponseValue;
20872 }
20873         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
20874 /* @internal */
20875 export function AcceptChannel_set_to_self_delay(this_ptr: number, val: number): void {
20876         if(!isWasmInitialized) {
20877                 throw new Error("initializeWasm() must be awaited first!");
20878         }
20879         const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
20880         // debug statements here
20881 }
20882         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20883 /* @internal */
20884 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: number): number {
20885         if(!isWasmInitialized) {
20886                 throw new Error("initializeWasm() must be awaited first!");
20887         }
20888         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
20889         return nativeResponseValue;
20890 }
20891         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
20892 /* @internal */
20893 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
20894         if(!isWasmInitialized) {
20895                 throw new Error("initializeWasm() must be awaited first!");
20896         }
20897         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
20898         // debug statements here
20899 }
20900         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20901 /* @internal */
20902 export function AcceptChannel_get_funding_pubkey(this_ptr: number): number {
20903         if(!isWasmInitialized) {
20904                 throw new Error("initializeWasm() must be awaited first!");
20905         }
20906         const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
20907         return nativeResponseValue;
20908 }
20909         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20910 /* @internal */
20911 export function AcceptChannel_set_funding_pubkey(this_ptr: number, val: number): void {
20912         if(!isWasmInitialized) {
20913                 throw new Error("initializeWasm() must be awaited first!");
20914         }
20915         const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
20916         // debug statements here
20917 }
20918         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20919 /* @internal */
20920 export function AcceptChannel_get_revocation_basepoint(this_ptr: number): number {
20921         if(!isWasmInitialized) {
20922                 throw new Error("initializeWasm() must be awaited first!");
20923         }
20924         const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
20925         return nativeResponseValue;
20926 }
20927         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20928 /* @internal */
20929 export function AcceptChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
20930         if(!isWasmInitialized) {
20931                 throw new Error("initializeWasm() must be awaited first!");
20932         }
20933         const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
20934         // debug statements here
20935 }
20936         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20937 /* @internal */
20938 export function AcceptChannel_get_payment_point(this_ptr: number): number {
20939         if(!isWasmInitialized) {
20940                 throw new Error("initializeWasm() must be awaited first!");
20941         }
20942         const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
20943         return nativeResponseValue;
20944 }
20945         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20946 /* @internal */
20947 export function AcceptChannel_set_payment_point(this_ptr: number, val: number): void {
20948         if(!isWasmInitialized) {
20949                 throw new Error("initializeWasm() must be awaited first!");
20950         }
20951         const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
20952         // debug statements here
20953 }
20954         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20955 /* @internal */
20956 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20957         if(!isWasmInitialized) {
20958                 throw new Error("initializeWasm() must be awaited first!");
20959         }
20960         const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
20961         return nativeResponseValue;
20962 }
20963         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20964 /* @internal */
20965 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20966         if(!isWasmInitialized) {
20967                 throw new Error("initializeWasm() must be awaited first!");
20968         }
20969         const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
20970         // debug statements here
20971 }
20972         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20973 /* @internal */
20974 export function AcceptChannel_get_htlc_basepoint(this_ptr: number): number {
20975         if(!isWasmInitialized) {
20976                 throw new Error("initializeWasm() must be awaited first!");
20977         }
20978         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
20979         return nativeResponseValue;
20980 }
20981         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20982 /* @internal */
20983 export function AcceptChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20984         if(!isWasmInitialized) {
20985                 throw new Error("initializeWasm() must be awaited first!");
20986         }
20987         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
20988         // debug statements here
20989 }
20990         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20991 /* @internal */
20992 export function AcceptChannel_get_first_per_commitment_point(this_ptr: number): number {
20993         if(!isWasmInitialized) {
20994                 throw new Error("initializeWasm() must be awaited first!");
20995         }
20996         const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
20997         return nativeResponseValue;
20998 }
20999         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21000 /* @internal */
21001 export function AcceptChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
21002         if(!isWasmInitialized) {
21003                 throw new Error("initializeWasm() must be awaited first!");
21004         }
21005         const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
21006         // debug statements here
21007 }
21008         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21009 /* @internal */
21010 export function AcceptChannel_get_channel_type(this_ptr: number): number {
21011         if(!isWasmInitialized) {
21012                 throw new Error("initializeWasm() must be awaited first!");
21013         }
21014         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
21015         return nativeResponseValue;
21016 }
21017         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
21018 /* @internal */
21019 export function AcceptChannel_set_channel_type(this_ptr: number, val: number): void {
21020         if(!isWasmInitialized) {
21021                 throw new Error("initializeWasm() must be awaited first!");
21022         }
21023         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
21024         // debug statements here
21025 }
21026         // uintptr_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
21027 /* @internal */
21028 export function AcceptChannel_clone_ptr(arg: number): number {
21029         if(!isWasmInitialized) {
21030                 throw new Error("initializeWasm() must be awaited first!");
21031         }
21032         const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
21033         return nativeResponseValue;
21034 }
21035         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
21036 /* @internal */
21037 export function AcceptChannel_clone(orig: number): number {
21038         if(!isWasmInitialized) {
21039                 throw new Error("initializeWasm() must be awaited first!");
21040         }
21041         const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
21042         return nativeResponseValue;
21043 }
21044         // void FundingCreated_free(struct LDKFundingCreated this_obj);
21045 /* @internal */
21046 export function FundingCreated_free(this_obj: number): void {
21047         if(!isWasmInitialized) {
21048                 throw new Error("initializeWasm() must be awaited first!");
21049         }
21050         const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
21051         // debug statements here
21052 }
21053         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
21054 /* @internal */
21055 export function FundingCreated_get_temporary_channel_id(this_ptr: number): number {
21056         if(!isWasmInitialized) {
21057                 throw new Error("initializeWasm() must be awaited first!");
21058         }
21059         const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
21060         return nativeResponseValue;
21061 }
21062         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21063 /* @internal */
21064 export function FundingCreated_set_temporary_channel_id(this_ptr: number, val: number): void {
21065         if(!isWasmInitialized) {
21066                 throw new Error("initializeWasm() must be awaited first!");
21067         }
21068         const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
21069         // debug statements here
21070 }
21071         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
21072 /* @internal */
21073 export function FundingCreated_get_funding_txid(this_ptr: number): number {
21074         if(!isWasmInitialized) {
21075                 throw new Error("initializeWasm() must be awaited first!");
21076         }
21077         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
21078         return nativeResponseValue;
21079 }
21080         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21081 /* @internal */
21082 export function FundingCreated_set_funding_txid(this_ptr: number, val: number): void {
21083         if(!isWasmInitialized) {
21084                 throw new Error("initializeWasm() must be awaited first!");
21085         }
21086         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
21087         // debug statements here
21088 }
21089         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
21090 /* @internal */
21091 export function FundingCreated_get_funding_output_index(this_ptr: number): number {
21092         if(!isWasmInitialized) {
21093                 throw new Error("initializeWasm() must be awaited first!");
21094         }
21095         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
21096         return nativeResponseValue;
21097 }
21098         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
21099 /* @internal */
21100 export function FundingCreated_set_funding_output_index(this_ptr: number, val: number): void {
21101         if(!isWasmInitialized) {
21102                 throw new Error("initializeWasm() must be awaited first!");
21103         }
21104         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
21105         // debug statements here
21106 }
21107         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
21108 /* @internal */
21109 export function FundingCreated_get_signature(this_ptr: number): number {
21110         if(!isWasmInitialized) {
21111                 throw new Error("initializeWasm() must be awaited first!");
21112         }
21113         const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
21114         return nativeResponseValue;
21115 }
21116         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
21117 /* @internal */
21118 export function FundingCreated_set_signature(this_ptr: number, val: number): void {
21119         if(!isWasmInitialized) {
21120                 throw new Error("initializeWasm() must be awaited first!");
21121         }
21122         const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
21123         // debug statements here
21124 }
21125         // 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);
21126 /* @internal */
21127 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): number {
21128         if(!isWasmInitialized) {
21129                 throw new Error("initializeWasm() must be awaited first!");
21130         }
21131         const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
21132         return nativeResponseValue;
21133 }
21134         // uintptr_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
21135 /* @internal */
21136 export function FundingCreated_clone_ptr(arg: number): number {
21137         if(!isWasmInitialized) {
21138                 throw new Error("initializeWasm() must be awaited first!");
21139         }
21140         const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
21141         return nativeResponseValue;
21142 }
21143         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
21144 /* @internal */
21145 export function FundingCreated_clone(orig: number): number {
21146         if(!isWasmInitialized) {
21147                 throw new Error("initializeWasm() must be awaited first!");
21148         }
21149         const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
21150         return nativeResponseValue;
21151 }
21152         // void FundingSigned_free(struct LDKFundingSigned this_obj);
21153 /* @internal */
21154 export function FundingSigned_free(this_obj: number): void {
21155         if(!isWasmInitialized) {
21156                 throw new Error("initializeWasm() must be awaited first!");
21157         }
21158         const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
21159         // debug statements here
21160 }
21161         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
21162 /* @internal */
21163 export function FundingSigned_get_channel_id(this_ptr: number): number {
21164         if(!isWasmInitialized) {
21165                 throw new Error("initializeWasm() must be awaited first!");
21166         }
21167         const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
21168         return nativeResponseValue;
21169 }
21170         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21171 /* @internal */
21172 export function FundingSigned_set_channel_id(this_ptr: number, val: number): void {
21173         if(!isWasmInitialized) {
21174                 throw new Error("initializeWasm() must be awaited first!");
21175         }
21176         const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
21177         // debug statements here
21178 }
21179         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
21180 /* @internal */
21181 export function FundingSigned_get_signature(this_ptr: number): number {
21182         if(!isWasmInitialized) {
21183                 throw new Error("initializeWasm() must be awaited first!");
21184         }
21185         const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
21186         return nativeResponseValue;
21187 }
21188         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21189 /* @internal */
21190 export function FundingSigned_set_signature(this_ptr: number, val: number): void {
21191         if(!isWasmInitialized) {
21192                 throw new Error("initializeWasm() must be awaited first!");
21193         }
21194         const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
21195         // debug statements here
21196 }
21197         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
21198 /* @internal */
21199 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): number {
21200         if(!isWasmInitialized) {
21201                 throw new Error("initializeWasm() must be awaited first!");
21202         }
21203         const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
21204         return nativeResponseValue;
21205 }
21206         // uintptr_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
21207 /* @internal */
21208 export function FundingSigned_clone_ptr(arg: number): number {
21209         if(!isWasmInitialized) {
21210                 throw new Error("initializeWasm() must be awaited first!");
21211         }
21212         const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
21213         return nativeResponseValue;
21214 }
21215         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
21216 /* @internal */
21217 export function FundingSigned_clone(orig: number): number {
21218         if(!isWasmInitialized) {
21219                 throw new Error("initializeWasm() must be awaited first!");
21220         }
21221         const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
21222         return nativeResponseValue;
21223 }
21224         // void ChannelReady_free(struct LDKChannelReady this_obj);
21225 /* @internal */
21226 export function ChannelReady_free(this_obj: number): void {
21227         if(!isWasmInitialized) {
21228                 throw new Error("initializeWasm() must be awaited first!");
21229         }
21230         const nativeResponseValue = wasm.TS_ChannelReady_free(this_obj);
21231         // debug statements here
21232 }
21233         // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
21234 /* @internal */
21235 export function ChannelReady_get_channel_id(this_ptr: number): number {
21236         if(!isWasmInitialized) {
21237                 throw new Error("initializeWasm() must be awaited first!");
21238         }
21239         const nativeResponseValue = wasm.TS_ChannelReady_get_channel_id(this_ptr);
21240         return nativeResponseValue;
21241 }
21242         // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21243 /* @internal */
21244 export function ChannelReady_set_channel_id(this_ptr: number, val: number): void {
21245         if(!isWasmInitialized) {
21246                 throw new Error("initializeWasm() must be awaited first!");
21247         }
21248         const nativeResponseValue = wasm.TS_ChannelReady_set_channel_id(this_ptr, val);
21249         // debug statements here
21250 }
21251         // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
21252 /* @internal */
21253 export function ChannelReady_get_next_per_commitment_point(this_ptr: number): number {
21254         if(!isWasmInitialized) {
21255                 throw new Error("initializeWasm() must be awaited first!");
21256         }
21257         const nativeResponseValue = wasm.TS_ChannelReady_get_next_per_commitment_point(this_ptr);
21258         return nativeResponseValue;
21259 }
21260         // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21261 /* @internal */
21262 export function ChannelReady_set_next_per_commitment_point(this_ptr: number, val: number): void {
21263         if(!isWasmInitialized) {
21264                 throw new Error("initializeWasm() must be awaited first!");
21265         }
21266         const nativeResponseValue = wasm.TS_ChannelReady_set_next_per_commitment_point(this_ptr, val);
21267         // debug statements here
21268 }
21269         // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
21270 /* @internal */
21271 export function ChannelReady_get_short_channel_id_alias(this_ptr: number): number {
21272         if(!isWasmInitialized) {
21273                 throw new Error("initializeWasm() must be awaited first!");
21274         }
21275         const nativeResponseValue = wasm.TS_ChannelReady_get_short_channel_id_alias(this_ptr);
21276         return nativeResponseValue;
21277 }
21278         // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
21279 /* @internal */
21280 export function ChannelReady_set_short_channel_id_alias(this_ptr: number, val: number): void {
21281         if(!isWasmInitialized) {
21282                 throw new Error("initializeWasm() must be awaited first!");
21283         }
21284         const nativeResponseValue = wasm.TS_ChannelReady_set_short_channel_id_alias(this_ptr, val);
21285         // debug statements here
21286 }
21287         // 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);
21288 /* @internal */
21289 export function ChannelReady_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: number): number {
21290         if(!isWasmInitialized) {
21291                 throw new Error("initializeWasm() must be awaited first!");
21292         }
21293         const nativeResponseValue = wasm.TS_ChannelReady_new(channel_id_arg, next_per_commitment_point_arg, short_channel_id_alias_arg);
21294         return nativeResponseValue;
21295 }
21296         // uintptr_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
21297 /* @internal */
21298 export function ChannelReady_clone_ptr(arg: number): number {
21299         if(!isWasmInitialized) {
21300                 throw new Error("initializeWasm() must be awaited first!");
21301         }
21302         const nativeResponseValue = wasm.TS_ChannelReady_clone_ptr(arg);
21303         return nativeResponseValue;
21304 }
21305         // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
21306 /* @internal */
21307 export function ChannelReady_clone(orig: number): number {
21308         if(!isWasmInitialized) {
21309                 throw new Error("initializeWasm() must be awaited first!");
21310         }
21311         const nativeResponseValue = wasm.TS_ChannelReady_clone(orig);
21312         return nativeResponseValue;
21313 }
21314         // void Shutdown_free(struct LDKShutdown this_obj);
21315 /* @internal */
21316 export function Shutdown_free(this_obj: number): void {
21317         if(!isWasmInitialized) {
21318                 throw new Error("initializeWasm() must be awaited first!");
21319         }
21320         const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
21321         // debug statements here
21322 }
21323         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
21324 /* @internal */
21325 export function Shutdown_get_channel_id(this_ptr: number): number {
21326         if(!isWasmInitialized) {
21327                 throw new Error("initializeWasm() must be awaited first!");
21328         }
21329         const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
21330         return nativeResponseValue;
21331 }
21332         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21333 /* @internal */
21334 export function Shutdown_set_channel_id(this_ptr: number, val: number): void {
21335         if(!isWasmInitialized) {
21336                 throw new Error("initializeWasm() must be awaited first!");
21337         }
21338         const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
21339         // debug statements here
21340 }
21341         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
21342 /* @internal */
21343 export function Shutdown_get_scriptpubkey(this_ptr: number): number {
21344         if(!isWasmInitialized) {
21345                 throw new Error("initializeWasm() must be awaited first!");
21346         }
21347         const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
21348         return nativeResponseValue;
21349 }
21350         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
21351 /* @internal */
21352 export function Shutdown_set_scriptpubkey(this_ptr: number, val: number): void {
21353         if(!isWasmInitialized) {
21354                 throw new Error("initializeWasm() must be awaited first!");
21355         }
21356         const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
21357         // debug statements here
21358 }
21359         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
21360 /* @internal */
21361 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): number {
21362         if(!isWasmInitialized) {
21363                 throw new Error("initializeWasm() must be awaited first!");
21364         }
21365         const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
21366         return nativeResponseValue;
21367 }
21368         // uintptr_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
21369 /* @internal */
21370 export function Shutdown_clone_ptr(arg: number): number {
21371         if(!isWasmInitialized) {
21372                 throw new Error("initializeWasm() must be awaited first!");
21373         }
21374         const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
21375         return nativeResponseValue;
21376 }
21377         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
21378 /* @internal */
21379 export function Shutdown_clone(orig: number): number {
21380         if(!isWasmInitialized) {
21381                 throw new Error("initializeWasm() must be awaited first!");
21382         }
21383         const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
21384         return nativeResponseValue;
21385 }
21386         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
21387 /* @internal */
21388 export function ClosingSignedFeeRange_free(this_obj: number): void {
21389         if(!isWasmInitialized) {
21390                 throw new Error("initializeWasm() must be awaited first!");
21391         }
21392         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
21393         // debug statements here
21394 }
21395         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
21396 /* @internal */
21397 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: number): bigint {
21398         if(!isWasmInitialized) {
21399                 throw new Error("initializeWasm() must be awaited first!");
21400         }
21401         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
21402         return nativeResponseValue;
21403 }
21404         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
21405 /* @internal */
21406 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: number, val: bigint): void {
21407         if(!isWasmInitialized) {
21408                 throw new Error("initializeWasm() must be awaited first!");
21409         }
21410         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
21411         // debug statements here
21412 }
21413         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
21414 /* @internal */
21415 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: number): bigint {
21416         if(!isWasmInitialized) {
21417                 throw new Error("initializeWasm() must be awaited first!");
21418         }
21419         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
21420         return nativeResponseValue;
21421 }
21422         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
21423 /* @internal */
21424 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: number, val: bigint): void {
21425         if(!isWasmInitialized) {
21426                 throw new Error("initializeWasm() must be awaited first!");
21427         }
21428         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
21429         // debug statements here
21430 }
21431         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
21432 /* @internal */
21433 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): number {
21434         if(!isWasmInitialized) {
21435                 throw new Error("initializeWasm() must be awaited first!");
21436         }
21437         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
21438         return nativeResponseValue;
21439 }
21440         // uintptr_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
21441 /* @internal */
21442 export function ClosingSignedFeeRange_clone_ptr(arg: number): number {
21443         if(!isWasmInitialized) {
21444                 throw new Error("initializeWasm() must be awaited first!");
21445         }
21446         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
21447         return nativeResponseValue;
21448 }
21449         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
21450 /* @internal */
21451 export function ClosingSignedFeeRange_clone(orig: number): number {
21452         if(!isWasmInitialized) {
21453                 throw new Error("initializeWasm() must be awaited first!");
21454         }
21455         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
21456         return nativeResponseValue;
21457 }
21458         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
21459 /* @internal */
21460 export function ClosingSigned_free(this_obj: number): void {
21461         if(!isWasmInitialized) {
21462                 throw new Error("initializeWasm() must be awaited first!");
21463         }
21464         const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
21465         // debug statements here
21466 }
21467         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
21468 /* @internal */
21469 export function ClosingSigned_get_channel_id(this_ptr: number): number {
21470         if(!isWasmInitialized) {
21471                 throw new Error("initializeWasm() must be awaited first!");
21472         }
21473         const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
21474         return nativeResponseValue;
21475 }
21476         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21477 /* @internal */
21478 export function ClosingSigned_set_channel_id(this_ptr: number, val: number): void {
21479         if(!isWasmInitialized) {
21480                 throw new Error("initializeWasm() must be awaited first!");
21481         }
21482         const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
21483         // debug statements here
21484 }
21485         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21486 /* @internal */
21487 export function ClosingSigned_get_fee_satoshis(this_ptr: number): bigint {
21488         if(!isWasmInitialized) {
21489                 throw new Error("initializeWasm() must be awaited first!");
21490         }
21491         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
21492         return nativeResponseValue;
21493 }
21494         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
21495 /* @internal */
21496 export function ClosingSigned_set_fee_satoshis(this_ptr: number, val: bigint): void {
21497         if(!isWasmInitialized) {
21498                 throw new Error("initializeWasm() must be awaited first!");
21499         }
21500         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
21501         // debug statements here
21502 }
21503         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21504 /* @internal */
21505 export function ClosingSigned_get_signature(this_ptr: number): number {
21506         if(!isWasmInitialized) {
21507                 throw new Error("initializeWasm() must be awaited first!");
21508         }
21509         const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
21510         return nativeResponseValue;
21511 }
21512         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21513 /* @internal */
21514 export function ClosingSigned_set_signature(this_ptr: number, val: number): void {
21515         if(!isWasmInitialized) {
21516                 throw new Error("initializeWasm() must be awaited first!");
21517         }
21518         const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
21519         // debug statements here
21520 }
21521         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21522 /* @internal */
21523 export function ClosingSigned_get_fee_range(this_ptr: number): number {
21524         if(!isWasmInitialized) {
21525                 throw new Error("initializeWasm() must be awaited first!");
21526         }
21527         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
21528         return nativeResponseValue;
21529 }
21530         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
21531 /* @internal */
21532 export function ClosingSigned_set_fee_range(this_ptr: number, val: number): void {
21533         if(!isWasmInitialized) {
21534                 throw new Error("initializeWasm() must be awaited first!");
21535         }
21536         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
21537         // debug statements here
21538 }
21539         // 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);
21540 /* @internal */
21541 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: number): number {
21542         if(!isWasmInitialized) {
21543                 throw new Error("initializeWasm() must be awaited first!");
21544         }
21545         const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
21546         return nativeResponseValue;
21547 }
21548         // uintptr_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
21549 /* @internal */
21550 export function ClosingSigned_clone_ptr(arg: number): number {
21551         if(!isWasmInitialized) {
21552                 throw new Error("initializeWasm() must be awaited first!");
21553         }
21554         const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
21555         return nativeResponseValue;
21556 }
21557         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
21558 /* @internal */
21559 export function ClosingSigned_clone(orig: number): number {
21560         if(!isWasmInitialized) {
21561                 throw new Error("initializeWasm() must be awaited first!");
21562         }
21563         const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
21564         return nativeResponseValue;
21565 }
21566         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
21567 /* @internal */
21568 export function UpdateAddHTLC_free(this_obj: number): void {
21569         if(!isWasmInitialized) {
21570                 throw new Error("initializeWasm() must be awaited first!");
21571         }
21572         const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
21573         // debug statements here
21574 }
21575         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21576 /* @internal */
21577 export function UpdateAddHTLC_get_channel_id(this_ptr: number): number {
21578         if(!isWasmInitialized) {
21579                 throw new Error("initializeWasm() must be awaited first!");
21580         }
21581         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
21582         return nativeResponseValue;
21583 }
21584         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21585 /* @internal */
21586 export function UpdateAddHTLC_set_channel_id(this_ptr: number, val: number): void {
21587         if(!isWasmInitialized) {
21588                 throw new Error("initializeWasm() must be awaited first!");
21589         }
21590         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
21591         // debug statements here
21592 }
21593         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21594 /* @internal */
21595 export function UpdateAddHTLC_get_htlc_id(this_ptr: number): bigint {
21596         if(!isWasmInitialized) {
21597                 throw new Error("initializeWasm() must be awaited first!");
21598         }
21599         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
21600         return nativeResponseValue;
21601 }
21602         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
21603 /* @internal */
21604 export function UpdateAddHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21605         if(!isWasmInitialized) {
21606                 throw new Error("initializeWasm() must be awaited first!");
21607         }
21608         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
21609         // debug statements here
21610 }
21611         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21612 /* @internal */
21613 export function UpdateAddHTLC_get_amount_msat(this_ptr: number): bigint {
21614         if(!isWasmInitialized) {
21615                 throw new Error("initializeWasm() must be awaited first!");
21616         }
21617         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
21618         return nativeResponseValue;
21619 }
21620         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
21621 /* @internal */
21622 export function UpdateAddHTLC_set_amount_msat(this_ptr: number, val: bigint): void {
21623         if(!isWasmInitialized) {
21624                 throw new Error("initializeWasm() must be awaited first!");
21625         }
21626         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
21627         // debug statements here
21628 }
21629         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21630 /* @internal */
21631 export function UpdateAddHTLC_get_payment_hash(this_ptr: number): number {
21632         if(!isWasmInitialized) {
21633                 throw new Error("initializeWasm() must be awaited first!");
21634         }
21635         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
21636         return nativeResponseValue;
21637 }
21638         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21639 /* @internal */
21640 export function UpdateAddHTLC_set_payment_hash(this_ptr: number, val: number): void {
21641         if(!isWasmInitialized) {
21642                 throw new Error("initializeWasm() must be awaited first!");
21643         }
21644         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
21645         // debug statements here
21646 }
21647         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21648 /* @internal */
21649 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: number): number {
21650         if(!isWasmInitialized) {
21651                 throw new Error("initializeWasm() must be awaited first!");
21652         }
21653         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
21654         return nativeResponseValue;
21655 }
21656         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
21657 /* @internal */
21658 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: number, val: number): void {
21659         if(!isWasmInitialized) {
21660                 throw new Error("initializeWasm() must be awaited first!");
21661         }
21662         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
21663         // debug statements here
21664 }
21665         // uintptr_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
21666 /* @internal */
21667 export function UpdateAddHTLC_clone_ptr(arg: number): number {
21668         if(!isWasmInitialized) {
21669                 throw new Error("initializeWasm() must be awaited first!");
21670         }
21671         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
21672         return nativeResponseValue;
21673 }
21674         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
21675 /* @internal */
21676 export function UpdateAddHTLC_clone(orig: number): number {
21677         if(!isWasmInitialized) {
21678                 throw new Error("initializeWasm() must be awaited first!");
21679         }
21680         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
21681         return nativeResponseValue;
21682 }
21683         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
21684 /* @internal */
21685 export function UpdateFulfillHTLC_free(this_obj: number): void {
21686         if(!isWasmInitialized) {
21687                 throw new Error("initializeWasm() must be awaited first!");
21688         }
21689         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
21690         // debug statements here
21691 }
21692         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21693 /* @internal */
21694 export function UpdateFulfillHTLC_get_channel_id(this_ptr: number): number {
21695         if(!isWasmInitialized) {
21696                 throw new Error("initializeWasm() must be awaited first!");
21697         }
21698         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
21699         return nativeResponseValue;
21700 }
21701         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21702 /* @internal */
21703 export function UpdateFulfillHTLC_set_channel_id(this_ptr: number, val: number): void {
21704         if(!isWasmInitialized) {
21705                 throw new Error("initializeWasm() must be awaited first!");
21706         }
21707         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
21708         // debug statements here
21709 }
21710         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
21711 /* @internal */
21712 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: number): bigint {
21713         if(!isWasmInitialized) {
21714                 throw new Error("initializeWasm() must be awaited first!");
21715         }
21716         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
21717         return nativeResponseValue;
21718 }
21719         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
21720 /* @internal */
21721 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21722         if(!isWasmInitialized) {
21723                 throw new Error("initializeWasm() must be awaited first!");
21724         }
21725         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
21726         // debug statements here
21727 }
21728         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21729 /* @internal */
21730 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: number): number {
21731         if(!isWasmInitialized) {
21732                 throw new Error("initializeWasm() must be awaited first!");
21733         }
21734         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
21735         return nativeResponseValue;
21736 }
21737         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21738 /* @internal */
21739 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: number, val: number): void {
21740         if(!isWasmInitialized) {
21741                 throw new Error("initializeWasm() must be awaited first!");
21742         }
21743         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
21744         // debug statements here
21745 }
21746         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
21747 /* @internal */
21748 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): number {
21749         if(!isWasmInitialized) {
21750                 throw new Error("initializeWasm() must be awaited first!");
21751         }
21752         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
21753         return nativeResponseValue;
21754 }
21755         // uintptr_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
21756 /* @internal */
21757 export function UpdateFulfillHTLC_clone_ptr(arg: number): number {
21758         if(!isWasmInitialized) {
21759                 throw new Error("initializeWasm() must be awaited first!");
21760         }
21761         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
21762         return nativeResponseValue;
21763 }
21764         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
21765 /* @internal */
21766 export function UpdateFulfillHTLC_clone(orig: number): number {
21767         if(!isWasmInitialized) {
21768                 throw new Error("initializeWasm() must be awaited first!");
21769         }
21770         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
21771         return nativeResponseValue;
21772 }
21773         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
21774 /* @internal */
21775 export function UpdateFailHTLC_free(this_obj: number): void {
21776         if(!isWasmInitialized) {
21777                 throw new Error("initializeWasm() must be awaited first!");
21778         }
21779         const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
21780         // debug statements here
21781 }
21782         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
21783 /* @internal */
21784 export function UpdateFailHTLC_get_channel_id(this_ptr: number): number {
21785         if(!isWasmInitialized) {
21786                 throw new Error("initializeWasm() must be awaited first!");
21787         }
21788         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
21789         return nativeResponseValue;
21790 }
21791         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21792 /* @internal */
21793 export function UpdateFailHTLC_set_channel_id(this_ptr: number, val: number): void {
21794         if(!isWasmInitialized) {
21795                 throw new Error("initializeWasm() must be awaited first!");
21796         }
21797         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
21798         // debug statements here
21799 }
21800         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
21801 /* @internal */
21802 export function UpdateFailHTLC_get_htlc_id(this_ptr: number): bigint {
21803         if(!isWasmInitialized) {
21804                 throw new Error("initializeWasm() must be awaited first!");
21805         }
21806         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
21807         return nativeResponseValue;
21808 }
21809         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
21810 /* @internal */
21811 export function UpdateFailHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21812         if(!isWasmInitialized) {
21813                 throw new Error("initializeWasm() must be awaited first!");
21814         }
21815         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
21816         // debug statements here
21817 }
21818         // uintptr_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
21819 /* @internal */
21820 export function UpdateFailHTLC_clone_ptr(arg: number): number {
21821         if(!isWasmInitialized) {
21822                 throw new Error("initializeWasm() must be awaited first!");
21823         }
21824         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
21825         return nativeResponseValue;
21826 }
21827         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
21828 /* @internal */
21829 export function UpdateFailHTLC_clone(orig: number): number {
21830         if(!isWasmInitialized) {
21831                 throw new Error("initializeWasm() must be awaited first!");
21832         }
21833         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
21834         return nativeResponseValue;
21835 }
21836         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
21837 /* @internal */
21838 export function UpdateFailMalformedHTLC_free(this_obj: number): void {
21839         if(!isWasmInitialized) {
21840                 throw new Error("initializeWasm() must be awaited first!");
21841         }
21842         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
21843         // debug statements here
21844 }
21845         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
21846 /* @internal */
21847 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: number): number {
21848         if(!isWasmInitialized) {
21849                 throw new Error("initializeWasm() must be awaited first!");
21850         }
21851         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
21852         return nativeResponseValue;
21853 }
21854         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21855 /* @internal */
21856 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: number, val: number): void {
21857         if(!isWasmInitialized) {
21858                 throw new Error("initializeWasm() must be awaited first!");
21859         }
21860         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
21861         // debug statements here
21862 }
21863         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
21864 /* @internal */
21865 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: number): bigint {
21866         if(!isWasmInitialized) {
21867                 throw new Error("initializeWasm() must be awaited first!");
21868         }
21869         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
21870         return nativeResponseValue;
21871 }
21872         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
21873 /* @internal */
21874 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21875         if(!isWasmInitialized) {
21876                 throw new Error("initializeWasm() must be awaited first!");
21877         }
21878         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
21879         // debug statements here
21880 }
21881         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
21882 /* @internal */
21883 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: number): number {
21884         if(!isWasmInitialized) {
21885                 throw new Error("initializeWasm() must be awaited first!");
21886         }
21887         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
21888         return nativeResponseValue;
21889 }
21890         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
21891 /* @internal */
21892 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: number, val: number): void {
21893         if(!isWasmInitialized) {
21894                 throw new Error("initializeWasm() must be awaited first!");
21895         }
21896         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
21897         // debug statements here
21898 }
21899         // uintptr_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
21900 /* @internal */
21901 export function UpdateFailMalformedHTLC_clone_ptr(arg: number): number {
21902         if(!isWasmInitialized) {
21903                 throw new Error("initializeWasm() must be awaited first!");
21904         }
21905         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
21906         return nativeResponseValue;
21907 }
21908         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
21909 /* @internal */
21910 export function UpdateFailMalformedHTLC_clone(orig: number): number {
21911         if(!isWasmInitialized) {
21912                 throw new Error("initializeWasm() must be awaited first!");
21913         }
21914         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
21915         return nativeResponseValue;
21916 }
21917         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
21918 /* @internal */
21919 export function CommitmentSigned_free(this_obj: number): void {
21920         if(!isWasmInitialized) {
21921                 throw new Error("initializeWasm() must be awaited first!");
21922         }
21923         const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
21924         // debug statements here
21925 }
21926         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
21927 /* @internal */
21928 export function CommitmentSigned_get_channel_id(this_ptr: number): number {
21929         if(!isWasmInitialized) {
21930                 throw new Error("initializeWasm() must be awaited first!");
21931         }
21932         const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
21933         return nativeResponseValue;
21934 }
21935         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21936 /* @internal */
21937 export function CommitmentSigned_set_channel_id(this_ptr: number, val: number): void {
21938         if(!isWasmInitialized) {
21939                 throw new Error("initializeWasm() must be awaited first!");
21940         }
21941         const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
21942         // debug statements here
21943 }
21944         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
21945 /* @internal */
21946 export function CommitmentSigned_get_signature(this_ptr: number): number {
21947         if(!isWasmInitialized) {
21948                 throw new Error("initializeWasm() must be awaited first!");
21949         }
21950         const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
21951         return nativeResponseValue;
21952 }
21953         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21954 /* @internal */
21955 export function CommitmentSigned_set_signature(this_ptr: number, val: number): void {
21956         if(!isWasmInitialized) {
21957                 throw new Error("initializeWasm() must be awaited first!");
21958         }
21959         const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
21960         // debug statements here
21961 }
21962         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
21963 /* @internal */
21964 export function CommitmentSigned_set_htlc_signatures(this_ptr: number, val: number): void {
21965         if(!isWasmInitialized) {
21966                 throw new Error("initializeWasm() must be awaited first!");
21967         }
21968         const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
21969         // debug statements here
21970 }
21971         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
21972 /* @internal */
21973 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): number {
21974         if(!isWasmInitialized) {
21975                 throw new Error("initializeWasm() must be awaited first!");
21976         }
21977         const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
21978         return nativeResponseValue;
21979 }
21980         // uintptr_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
21981 /* @internal */
21982 export function CommitmentSigned_clone_ptr(arg: number): number {
21983         if(!isWasmInitialized) {
21984                 throw new Error("initializeWasm() must be awaited first!");
21985         }
21986         const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
21987         return nativeResponseValue;
21988 }
21989         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
21990 /* @internal */
21991 export function CommitmentSigned_clone(orig: number): number {
21992         if(!isWasmInitialized) {
21993                 throw new Error("initializeWasm() must be awaited first!");
21994         }
21995         const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
21996         return nativeResponseValue;
21997 }
21998         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
21999 /* @internal */
22000 export function RevokeAndACK_free(this_obj: number): void {
22001         if(!isWasmInitialized) {
22002                 throw new Error("initializeWasm() must be awaited first!");
22003         }
22004         const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
22005         // debug statements here
22006 }
22007         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
22008 /* @internal */
22009 export function RevokeAndACK_get_channel_id(this_ptr: number): number {
22010         if(!isWasmInitialized) {
22011                 throw new Error("initializeWasm() must be awaited first!");
22012         }
22013         const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
22014         return nativeResponseValue;
22015 }
22016         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22017 /* @internal */
22018 export function RevokeAndACK_set_channel_id(this_ptr: number, val: number): void {
22019         if(!isWasmInitialized) {
22020                 throw new Error("initializeWasm() must be awaited first!");
22021         }
22022         const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
22023         // debug statements here
22024 }
22025         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
22026 /* @internal */
22027 export function RevokeAndACK_get_per_commitment_secret(this_ptr: number): number {
22028         if(!isWasmInitialized) {
22029                 throw new Error("initializeWasm() must be awaited first!");
22030         }
22031         const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
22032         return nativeResponseValue;
22033 }
22034         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22035 /* @internal */
22036 export function RevokeAndACK_set_per_commitment_secret(this_ptr: number, val: number): void {
22037         if(!isWasmInitialized) {
22038                 throw new Error("initializeWasm() must be awaited first!");
22039         }
22040         const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
22041         // debug statements here
22042 }
22043         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
22044 /* @internal */
22045 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: number): number {
22046         if(!isWasmInitialized) {
22047                 throw new Error("initializeWasm() must be awaited first!");
22048         }
22049         const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
22050         return nativeResponseValue;
22051 }
22052         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22053 /* @internal */
22054 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: number, val: number): void {
22055         if(!isWasmInitialized) {
22056                 throw new Error("initializeWasm() must be awaited first!");
22057         }
22058         const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
22059         // debug statements here
22060 }
22061         // 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);
22062 /* @internal */
22063 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): number {
22064         if(!isWasmInitialized) {
22065                 throw new Error("initializeWasm() must be awaited first!");
22066         }
22067         const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
22068         return nativeResponseValue;
22069 }
22070         // uintptr_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
22071 /* @internal */
22072 export function RevokeAndACK_clone_ptr(arg: number): number {
22073         if(!isWasmInitialized) {
22074                 throw new Error("initializeWasm() must be awaited first!");
22075         }
22076         const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
22077         return nativeResponseValue;
22078 }
22079         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
22080 /* @internal */
22081 export function RevokeAndACK_clone(orig: number): number {
22082         if(!isWasmInitialized) {
22083                 throw new Error("initializeWasm() must be awaited first!");
22084         }
22085         const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
22086         return nativeResponseValue;
22087 }
22088         // void UpdateFee_free(struct LDKUpdateFee this_obj);
22089 /* @internal */
22090 export function UpdateFee_free(this_obj: number): void {
22091         if(!isWasmInitialized) {
22092                 throw new Error("initializeWasm() must be awaited first!");
22093         }
22094         const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
22095         // debug statements here
22096 }
22097         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
22098 /* @internal */
22099 export function UpdateFee_get_channel_id(this_ptr: number): number {
22100         if(!isWasmInitialized) {
22101                 throw new Error("initializeWasm() must be awaited first!");
22102         }
22103         const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
22104         return nativeResponseValue;
22105 }
22106         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22107 /* @internal */
22108 export function UpdateFee_set_channel_id(this_ptr: number, val: number): void {
22109         if(!isWasmInitialized) {
22110                 throw new Error("initializeWasm() must be awaited first!");
22111         }
22112         const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
22113         // debug statements here
22114 }
22115         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
22116 /* @internal */
22117 export function UpdateFee_get_feerate_per_kw(this_ptr: number): number {
22118         if(!isWasmInitialized) {
22119                 throw new Error("initializeWasm() must be awaited first!");
22120         }
22121         const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
22122         return nativeResponseValue;
22123 }
22124         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
22125 /* @internal */
22126 export function UpdateFee_set_feerate_per_kw(this_ptr: number, val: number): void {
22127         if(!isWasmInitialized) {
22128                 throw new Error("initializeWasm() must be awaited first!");
22129         }
22130         const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
22131         // debug statements here
22132 }
22133         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
22134 /* @internal */
22135 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): number {
22136         if(!isWasmInitialized) {
22137                 throw new Error("initializeWasm() must be awaited first!");
22138         }
22139         const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
22140         return nativeResponseValue;
22141 }
22142         // uintptr_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
22143 /* @internal */
22144 export function UpdateFee_clone_ptr(arg: number): number {
22145         if(!isWasmInitialized) {
22146                 throw new Error("initializeWasm() must be awaited first!");
22147         }
22148         const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
22149         return nativeResponseValue;
22150 }
22151         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
22152 /* @internal */
22153 export function UpdateFee_clone(orig: number): number {
22154         if(!isWasmInitialized) {
22155                 throw new Error("initializeWasm() must be awaited first!");
22156         }
22157         const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
22158         return nativeResponseValue;
22159 }
22160         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
22161 /* @internal */
22162 export function DataLossProtect_free(this_obj: number): void {
22163         if(!isWasmInitialized) {
22164                 throw new Error("initializeWasm() must be awaited first!");
22165         }
22166         const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
22167         // debug statements here
22168 }
22169         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
22170 /* @internal */
22171 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: number): number {
22172         if(!isWasmInitialized) {
22173                 throw new Error("initializeWasm() must be awaited first!");
22174         }
22175         const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
22176         return nativeResponseValue;
22177 }
22178         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22179 /* @internal */
22180 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: number, val: number): void {
22181         if(!isWasmInitialized) {
22182                 throw new Error("initializeWasm() must be awaited first!");
22183         }
22184         const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
22185         // debug statements here
22186 }
22187         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
22188 /* @internal */
22189 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: number): number {
22190         if(!isWasmInitialized) {
22191                 throw new Error("initializeWasm() must be awaited first!");
22192         }
22193         const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
22194         return nativeResponseValue;
22195 }
22196         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22197 /* @internal */
22198 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: number, val: number): void {
22199         if(!isWasmInitialized) {
22200                 throw new Error("initializeWasm() must be awaited first!");
22201         }
22202         const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
22203         // debug statements here
22204 }
22205         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
22206 /* @internal */
22207 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): number {
22208         if(!isWasmInitialized) {
22209                 throw new Error("initializeWasm() must be awaited first!");
22210         }
22211         const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
22212         return nativeResponseValue;
22213 }
22214         // uintptr_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
22215 /* @internal */
22216 export function DataLossProtect_clone_ptr(arg: number): number {
22217         if(!isWasmInitialized) {
22218                 throw new Error("initializeWasm() must be awaited first!");
22219         }
22220         const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
22221         return nativeResponseValue;
22222 }
22223         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
22224 /* @internal */
22225 export function DataLossProtect_clone(orig: number): number {
22226         if(!isWasmInitialized) {
22227                 throw new Error("initializeWasm() must be awaited first!");
22228         }
22229         const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
22230         return nativeResponseValue;
22231 }
22232         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
22233 /* @internal */
22234 export function ChannelReestablish_free(this_obj: number): void {
22235         if(!isWasmInitialized) {
22236                 throw new Error("initializeWasm() must be awaited first!");
22237         }
22238         const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
22239         // debug statements here
22240 }
22241         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
22242 /* @internal */
22243 export function ChannelReestablish_get_channel_id(this_ptr: number): number {
22244         if(!isWasmInitialized) {
22245                 throw new Error("initializeWasm() must be awaited first!");
22246         }
22247         const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
22248         return nativeResponseValue;
22249 }
22250         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22251 /* @internal */
22252 export function ChannelReestablish_set_channel_id(this_ptr: number, val: number): void {
22253         if(!isWasmInitialized) {
22254                 throw new Error("initializeWasm() must be awaited first!");
22255         }
22256         const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
22257         // debug statements here
22258 }
22259         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
22260 /* @internal */
22261 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: number): bigint {
22262         if(!isWasmInitialized) {
22263                 throw new Error("initializeWasm() must be awaited first!");
22264         }
22265         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
22266         return nativeResponseValue;
22267 }
22268         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
22269 /* @internal */
22270 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: number, val: bigint): void {
22271         if(!isWasmInitialized) {
22272                 throw new Error("initializeWasm() must be awaited first!");
22273         }
22274         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
22275         // debug statements here
22276 }
22277         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
22278 /* @internal */
22279 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: number): bigint {
22280         if(!isWasmInitialized) {
22281                 throw new Error("initializeWasm() must be awaited first!");
22282         }
22283         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
22284         return nativeResponseValue;
22285 }
22286         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
22287 /* @internal */
22288 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: number, val: bigint): void {
22289         if(!isWasmInitialized) {
22290                 throw new Error("initializeWasm() must be awaited first!");
22291         }
22292         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
22293         // debug statements here
22294 }
22295         // uintptr_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
22296 /* @internal */
22297 export function ChannelReestablish_clone_ptr(arg: number): number {
22298         if(!isWasmInitialized) {
22299                 throw new Error("initializeWasm() must be awaited first!");
22300         }
22301         const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
22302         return nativeResponseValue;
22303 }
22304         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
22305 /* @internal */
22306 export function ChannelReestablish_clone(orig: number): number {
22307         if(!isWasmInitialized) {
22308                 throw new Error("initializeWasm() must be awaited first!");
22309         }
22310         const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
22311         return nativeResponseValue;
22312 }
22313         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
22314 /* @internal */
22315 export function AnnouncementSignatures_free(this_obj: number): void {
22316         if(!isWasmInitialized) {
22317                 throw new Error("initializeWasm() must be awaited first!");
22318         }
22319         const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
22320         // debug statements here
22321 }
22322         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
22323 /* @internal */
22324 export function AnnouncementSignatures_get_channel_id(this_ptr: number): number {
22325         if(!isWasmInitialized) {
22326                 throw new Error("initializeWasm() must be awaited first!");
22327         }
22328         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
22329         return nativeResponseValue;
22330 }
22331         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22332 /* @internal */
22333 export function AnnouncementSignatures_set_channel_id(this_ptr: number, val: number): void {
22334         if(!isWasmInitialized) {
22335                 throw new Error("initializeWasm() must be awaited first!");
22336         }
22337         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
22338         // debug statements here
22339 }
22340         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22341 /* @internal */
22342 export function AnnouncementSignatures_get_short_channel_id(this_ptr: number): bigint {
22343         if(!isWasmInitialized) {
22344                 throw new Error("initializeWasm() must be awaited first!");
22345         }
22346         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
22347         return nativeResponseValue;
22348 }
22349         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
22350 /* @internal */
22351 export function AnnouncementSignatures_set_short_channel_id(this_ptr: number, val: bigint): void {
22352         if(!isWasmInitialized) {
22353                 throw new Error("initializeWasm() must be awaited first!");
22354         }
22355         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
22356         // debug statements here
22357 }
22358         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22359 /* @internal */
22360 export function AnnouncementSignatures_get_node_signature(this_ptr: number): number {
22361         if(!isWasmInitialized) {
22362                 throw new Error("initializeWasm() must be awaited first!");
22363         }
22364         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
22365         return nativeResponseValue;
22366 }
22367         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
22368 /* @internal */
22369 export function AnnouncementSignatures_set_node_signature(this_ptr: number, val: number): void {
22370         if(!isWasmInitialized) {
22371                 throw new Error("initializeWasm() must be awaited first!");
22372         }
22373         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
22374         // debug statements here
22375 }
22376         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22377 /* @internal */
22378 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: number): number {
22379         if(!isWasmInitialized) {
22380                 throw new Error("initializeWasm() must be awaited first!");
22381         }
22382         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
22383         return nativeResponseValue;
22384 }
22385         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
22386 /* @internal */
22387 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: number, val: number): void {
22388         if(!isWasmInitialized) {
22389                 throw new Error("initializeWasm() must be awaited first!");
22390         }
22391         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
22392         // debug statements here
22393 }
22394         // 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);
22395 /* @internal */
22396 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): number {
22397         if(!isWasmInitialized) {
22398                 throw new Error("initializeWasm() must be awaited first!");
22399         }
22400         const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
22401         return nativeResponseValue;
22402 }
22403         // uintptr_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
22404 /* @internal */
22405 export function AnnouncementSignatures_clone_ptr(arg: number): number {
22406         if(!isWasmInitialized) {
22407                 throw new Error("initializeWasm() must be awaited first!");
22408         }
22409         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
22410         return nativeResponseValue;
22411 }
22412         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
22413 /* @internal */
22414 export function AnnouncementSignatures_clone(orig: number): number {
22415         if(!isWasmInitialized) {
22416                 throw new Error("initializeWasm() must be awaited first!");
22417         }
22418         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
22419         return nativeResponseValue;
22420 }
22421         // void NetAddress_free(struct LDKNetAddress this_ptr);
22422 /* @internal */
22423 export function NetAddress_free(this_ptr: number): void {
22424         if(!isWasmInitialized) {
22425                 throw new Error("initializeWasm() must be awaited first!");
22426         }
22427         const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
22428         // debug statements here
22429 }
22430         // uintptr_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
22431 /* @internal */
22432 export function NetAddress_clone_ptr(arg: number): number {
22433         if(!isWasmInitialized) {
22434                 throw new Error("initializeWasm() must be awaited first!");
22435         }
22436         const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
22437         return nativeResponseValue;
22438 }
22439         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
22440 /* @internal */
22441 export function NetAddress_clone(orig: number): number {
22442         if(!isWasmInitialized) {
22443                 throw new Error("initializeWasm() must be awaited first!");
22444         }
22445         const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
22446         return nativeResponseValue;
22447 }
22448         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
22449 /* @internal */
22450 export function NetAddress_ipv4(addr: number, port: number): number {
22451         if(!isWasmInitialized) {
22452                 throw new Error("initializeWasm() must be awaited first!");
22453         }
22454         const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
22455         return nativeResponseValue;
22456 }
22457         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
22458 /* @internal */
22459 export function NetAddress_ipv6(addr: number, port: number): number {
22460         if(!isWasmInitialized) {
22461                 throw new Error("initializeWasm() must be awaited first!");
22462         }
22463         const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
22464         return nativeResponseValue;
22465 }
22466         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
22467 /* @internal */
22468 export function NetAddress_onion_v2(a: number): number {
22469         if(!isWasmInitialized) {
22470                 throw new Error("initializeWasm() must be awaited first!");
22471         }
22472         const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
22473         return nativeResponseValue;
22474 }
22475         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
22476 /* @internal */
22477 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): number {
22478         if(!isWasmInitialized) {
22479                 throw new Error("initializeWasm() must be awaited first!");
22480         }
22481         const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
22482         return nativeResponseValue;
22483 }
22484         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
22485 /* @internal */
22486 export function NetAddress_write(obj: number): number {
22487         if(!isWasmInitialized) {
22488                 throw new Error("initializeWasm() must be awaited first!");
22489         }
22490         const nativeResponseValue = wasm.TS_NetAddress_write(obj);
22491         return nativeResponseValue;
22492 }
22493         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
22494 /* @internal */
22495 export function NetAddress_read(ser: number): number {
22496         if(!isWasmInitialized) {
22497                 throw new Error("initializeWasm() must be awaited first!");
22498         }
22499         const nativeResponseValue = wasm.TS_NetAddress_read(ser);
22500         return nativeResponseValue;
22501 }
22502         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
22503 /* @internal */
22504 export function UnsignedNodeAnnouncement_free(this_obj: number): void {
22505         if(!isWasmInitialized) {
22506                 throw new Error("initializeWasm() must be awaited first!");
22507         }
22508         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
22509         // debug statements here
22510 }
22511         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22512 /* @internal */
22513 export function UnsignedNodeAnnouncement_get_features(this_ptr: number): number {
22514         if(!isWasmInitialized) {
22515                 throw new Error("initializeWasm() must be awaited first!");
22516         }
22517         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
22518         return nativeResponseValue;
22519 }
22520         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
22521 /* @internal */
22522 export function UnsignedNodeAnnouncement_set_features(this_ptr: number, val: number): void {
22523         if(!isWasmInitialized) {
22524                 throw new Error("initializeWasm() must be awaited first!");
22525         }
22526         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
22527         // debug statements here
22528 }
22529         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22530 /* @internal */
22531 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: number): number {
22532         if(!isWasmInitialized) {
22533                 throw new Error("initializeWasm() must be awaited first!");
22534         }
22535         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
22536         return nativeResponseValue;
22537 }
22538         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
22539 /* @internal */
22540 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: number, val: number): void {
22541         if(!isWasmInitialized) {
22542                 throw new Error("initializeWasm() must be awaited first!");
22543         }
22544         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
22545         // debug statements here
22546 }
22547         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22548 /* @internal */
22549 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: number): number {
22550         if(!isWasmInitialized) {
22551                 throw new Error("initializeWasm() must be awaited first!");
22552         }
22553         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
22554         return nativeResponseValue;
22555 }
22556         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22557 /* @internal */
22558 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: number, val: number): void {
22559         if(!isWasmInitialized) {
22560                 throw new Error("initializeWasm() must be awaited first!");
22561         }
22562         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
22563         // debug statements here
22564 }
22565         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
22566 /* @internal */
22567 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: number): number {
22568         if(!isWasmInitialized) {
22569                 throw new Error("initializeWasm() must be awaited first!");
22570         }
22571         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
22572         return nativeResponseValue;
22573 }
22574         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
22575 /* @internal */
22576 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: number, val: number): void {
22577         if(!isWasmInitialized) {
22578                 throw new Error("initializeWasm() must be awaited first!");
22579         }
22580         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
22581         // debug statements here
22582 }
22583         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
22584 /* @internal */
22585 export function UnsignedNodeAnnouncement_get_alias(this_ptr: number): number {
22586         if(!isWasmInitialized) {
22587                 throw new Error("initializeWasm() must be awaited first!");
22588         }
22589         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
22590         return nativeResponseValue;
22591 }
22592         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22593 /* @internal */
22594 export function UnsignedNodeAnnouncement_set_alias(this_ptr: number, val: number): void {
22595         if(!isWasmInitialized) {
22596                 throw new Error("initializeWasm() must be awaited first!");
22597         }
22598         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
22599         // debug statements here
22600 }
22601         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
22602 /* @internal */
22603 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: number, val: number): void {
22604         if(!isWasmInitialized) {
22605                 throw new Error("initializeWasm() must be awaited first!");
22606         }
22607         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
22608         // debug statements here
22609 }
22610         // uintptr_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
22611 /* @internal */
22612 export function UnsignedNodeAnnouncement_clone_ptr(arg: number): number {
22613         if(!isWasmInitialized) {
22614                 throw new Error("initializeWasm() must be awaited first!");
22615         }
22616         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
22617         return nativeResponseValue;
22618 }
22619         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
22620 /* @internal */
22621 export function UnsignedNodeAnnouncement_clone(orig: number): number {
22622         if(!isWasmInitialized) {
22623                 throw new Error("initializeWasm() must be awaited first!");
22624         }
22625         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
22626         return nativeResponseValue;
22627 }
22628         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
22629 /* @internal */
22630 export function NodeAnnouncement_free(this_obj: number): void {
22631         if(!isWasmInitialized) {
22632                 throw new Error("initializeWasm() must be awaited first!");
22633         }
22634         const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
22635         // debug statements here
22636 }
22637         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22638 /* @internal */
22639 export function NodeAnnouncement_get_signature(this_ptr: number): number {
22640         if(!isWasmInitialized) {
22641                 throw new Error("initializeWasm() must be awaited first!");
22642         }
22643         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
22644         return nativeResponseValue;
22645 }
22646         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22647 /* @internal */
22648 export function NodeAnnouncement_set_signature(this_ptr: number, val: number): void {
22649         if(!isWasmInitialized) {
22650                 throw new Error("initializeWasm() must be awaited first!");
22651         }
22652         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
22653         // debug statements here
22654 }
22655         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22656 /* @internal */
22657 export function NodeAnnouncement_get_contents(this_ptr: number): number {
22658         if(!isWasmInitialized) {
22659                 throw new Error("initializeWasm() must be awaited first!");
22660         }
22661         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
22662         return nativeResponseValue;
22663 }
22664         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
22665 /* @internal */
22666 export function NodeAnnouncement_set_contents(this_ptr: number, val: number): void {
22667         if(!isWasmInitialized) {
22668                 throw new Error("initializeWasm() must be awaited first!");
22669         }
22670         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
22671         // debug statements here
22672 }
22673         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
22674 /* @internal */
22675 export function NodeAnnouncement_new(signature_arg: number, contents_arg: number): number {
22676         if(!isWasmInitialized) {
22677                 throw new Error("initializeWasm() must be awaited first!");
22678         }
22679         const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
22680         return nativeResponseValue;
22681 }
22682         // uintptr_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
22683 /* @internal */
22684 export function NodeAnnouncement_clone_ptr(arg: number): number {
22685         if(!isWasmInitialized) {
22686                 throw new Error("initializeWasm() must be awaited first!");
22687         }
22688         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
22689         return nativeResponseValue;
22690 }
22691         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
22692 /* @internal */
22693 export function NodeAnnouncement_clone(orig: number): number {
22694         if(!isWasmInitialized) {
22695                 throw new Error("initializeWasm() must be awaited first!");
22696         }
22697         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
22698         return nativeResponseValue;
22699 }
22700         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
22701 /* @internal */
22702 export function UnsignedChannelAnnouncement_free(this_obj: number): void {
22703         if(!isWasmInitialized) {
22704                 throw new Error("initializeWasm() must be awaited first!");
22705         }
22706         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
22707         // debug statements here
22708 }
22709         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22710 /* @internal */
22711 export function UnsignedChannelAnnouncement_get_features(this_ptr: number): number {
22712         if(!isWasmInitialized) {
22713                 throw new Error("initializeWasm() must be awaited first!");
22714         }
22715         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
22716         return nativeResponseValue;
22717 }
22718         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
22719 /* @internal */
22720 export function UnsignedChannelAnnouncement_set_features(this_ptr: number, val: number): void {
22721         if(!isWasmInitialized) {
22722                 throw new Error("initializeWasm() must be awaited first!");
22723         }
22724         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
22725         // debug statements here
22726 }
22727         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
22728 /* @internal */
22729 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: number): number {
22730         if(!isWasmInitialized) {
22731                 throw new Error("initializeWasm() must be awaited first!");
22732         }
22733         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
22734         return nativeResponseValue;
22735 }
22736         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22737 /* @internal */
22738 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: number, val: number): void {
22739         if(!isWasmInitialized) {
22740                 throw new Error("initializeWasm() must be awaited first!");
22741         }
22742         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
22743         // debug statements here
22744 }
22745         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22746 /* @internal */
22747 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: number): bigint {
22748         if(!isWasmInitialized) {
22749                 throw new Error("initializeWasm() must be awaited first!");
22750         }
22751         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
22752         return nativeResponseValue;
22753 }
22754         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
22755 /* @internal */
22756 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: number, val: bigint): void {
22757         if(!isWasmInitialized) {
22758                 throw new Error("initializeWasm() must be awaited first!");
22759         }
22760         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
22761         // debug statements here
22762 }
22763         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22764 /* @internal */
22765 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: number): number {
22766         if(!isWasmInitialized) {
22767                 throw new Error("initializeWasm() must be awaited first!");
22768         }
22769         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
22770         return nativeResponseValue;
22771 }
22772         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22773 /* @internal */
22774 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: number, val: number): void {
22775         if(!isWasmInitialized) {
22776                 throw new Error("initializeWasm() must be awaited first!");
22777         }
22778         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
22779         // debug statements here
22780 }
22781         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22782 /* @internal */
22783 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: number): number {
22784         if(!isWasmInitialized) {
22785                 throw new Error("initializeWasm() must be awaited first!");
22786         }
22787         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
22788         return nativeResponseValue;
22789 }
22790         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22791 /* @internal */
22792 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: number, val: number): void {
22793         if(!isWasmInitialized) {
22794                 throw new Error("initializeWasm() must be awaited first!");
22795         }
22796         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
22797         // debug statements here
22798 }
22799         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22800 /* @internal */
22801 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: number): number {
22802         if(!isWasmInitialized) {
22803                 throw new Error("initializeWasm() must be awaited first!");
22804         }
22805         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
22806         return nativeResponseValue;
22807 }
22808         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22809 /* @internal */
22810 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: number, val: number): void {
22811         if(!isWasmInitialized) {
22812                 throw new Error("initializeWasm() must be awaited first!");
22813         }
22814         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
22815         // debug statements here
22816 }
22817         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22818 /* @internal */
22819 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: number): number {
22820         if(!isWasmInitialized) {
22821                 throw new Error("initializeWasm() must be awaited first!");
22822         }
22823         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
22824         return nativeResponseValue;
22825 }
22826         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22827 /* @internal */
22828 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: number, val: number): void {
22829         if(!isWasmInitialized) {
22830                 throw new Error("initializeWasm() must be awaited first!");
22831         }
22832         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
22833         // debug statements here
22834 }
22835         // uintptr_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
22836 /* @internal */
22837 export function UnsignedChannelAnnouncement_clone_ptr(arg: number): number {
22838         if(!isWasmInitialized) {
22839                 throw new Error("initializeWasm() must be awaited first!");
22840         }
22841         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
22842         return nativeResponseValue;
22843 }
22844         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
22845 /* @internal */
22846 export function UnsignedChannelAnnouncement_clone(orig: number): number {
22847         if(!isWasmInitialized) {
22848                 throw new Error("initializeWasm() must be awaited first!");
22849         }
22850         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
22851         return nativeResponseValue;
22852 }
22853         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
22854 /* @internal */
22855 export function ChannelAnnouncement_free(this_obj: number): void {
22856         if(!isWasmInitialized) {
22857                 throw new Error("initializeWasm() must be awaited first!");
22858         }
22859         const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
22860         // debug statements here
22861 }
22862         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22863 /* @internal */
22864 export function ChannelAnnouncement_get_node_signature_1(this_ptr: number): number {
22865         if(!isWasmInitialized) {
22866                 throw new Error("initializeWasm() must be awaited first!");
22867         }
22868         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
22869         return nativeResponseValue;
22870 }
22871         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22872 /* @internal */
22873 export function ChannelAnnouncement_set_node_signature_1(this_ptr: number, val: number): void {
22874         if(!isWasmInitialized) {
22875                 throw new Error("initializeWasm() must be awaited first!");
22876         }
22877         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
22878         // debug statements here
22879 }
22880         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22881 /* @internal */
22882 export function ChannelAnnouncement_get_node_signature_2(this_ptr: number): number {
22883         if(!isWasmInitialized) {
22884                 throw new Error("initializeWasm() must be awaited first!");
22885         }
22886         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
22887         return nativeResponseValue;
22888 }
22889         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22890 /* @internal */
22891 export function ChannelAnnouncement_set_node_signature_2(this_ptr: number, val: number): void {
22892         if(!isWasmInitialized) {
22893                 throw new Error("initializeWasm() must be awaited first!");
22894         }
22895         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
22896         // debug statements here
22897 }
22898         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22899 /* @internal */
22900 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: number): number {
22901         if(!isWasmInitialized) {
22902                 throw new Error("initializeWasm() must be awaited first!");
22903         }
22904         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
22905         return nativeResponseValue;
22906 }
22907         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22908 /* @internal */
22909 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: number, val: number): void {
22910         if(!isWasmInitialized) {
22911                 throw new Error("initializeWasm() must be awaited first!");
22912         }
22913         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
22914         // debug statements here
22915 }
22916         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22917 /* @internal */
22918 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: number): number {
22919         if(!isWasmInitialized) {
22920                 throw new Error("initializeWasm() must be awaited first!");
22921         }
22922         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
22923         return nativeResponseValue;
22924 }
22925         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22926 /* @internal */
22927 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: number, val: number): void {
22928         if(!isWasmInitialized) {
22929                 throw new Error("initializeWasm() must be awaited first!");
22930         }
22931         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
22932         // debug statements here
22933 }
22934         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22935 /* @internal */
22936 export function ChannelAnnouncement_get_contents(this_ptr: number): number {
22937         if(!isWasmInitialized) {
22938                 throw new Error("initializeWasm() must be awaited first!");
22939         }
22940         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
22941         return nativeResponseValue;
22942 }
22943         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
22944 /* @internal */
22945 export function ChannelAnnouncement_set_contents(this_ptr: number, val: number): void {
22946         if(!isWasmInitialized) {
22947                 throw new Error("initializeWasm() must be awaited first!");
22948         }
22949         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
22950         // debug statements here
22951 }
22952         // 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);
22953 /* @internal */
22954 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 {
22955         if(!isWasmInitialized) {
22956                 throw new Error("initializeWasm() must be awaited first!");
22957         }
22958         const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
22959         return nativeResponseValue;
22960 }
22961         // uintptr_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
22962 /* @internal */
22963 export function ChannelAnnouncement_clone_ptr(arg: number): number {
22964         if(!isWasmInitialized) {
22965                 throw new Error("initializeWasm() must be awaited first!");
22966         }
22967         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
22968         return nativeResponseValue;
22969 }
22970         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
22971 /* @internal */
22972 export function ChannelAnnouncement_clone(orig: number): number {
22973         if(!isWasmInitialized) {
22974                 throw new Error("initializeWasm() must be awaited first!");
22975         }
22976         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
22977         return nativeResponseValue;
22978 }
22979         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
22980 /* @internal */
22981 export function UnsignedChannelUpdate_free(this_obj: number): void {
22982         if(!isWasmInitialized) {
22983                 throw new Error("initializeWasm() must be awaited first!");
22984         }
22985         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
22986         // debug statements here
22987 }
22988         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
22989 /* @internal */
22990 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: number): number {
22991         if(!isWasmInitialized) {
22992                 throw new Error("initializeWasm() must be awaited first!");
22993         }
22994         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
22995         return nativeResponseValue;
22996 }
22997         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22998 /* @internal */
22999 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: number, val: number): void {
23000         if(!isWasmInitialized) {
23001                 throw new Error("initializeWasm() must be awaited first!");
23002         }
23003         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
23004         // debug statements here
23005 }
23006         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23007 /* @internal */
23008 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: number): bigint {
23009         if(!isWasmInitialized) {
23010                 throw new Error("initializeWasm() must be awaited first!");
23011         }
23012         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
23013         return nativeResponseValue;
23014 }
23015         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
23016 /* @internal */
23017 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: number, val: bigint): void {
23018         if(!isWasmInitialized) {
23019                 throw new Error("initializeWasm() must be awaited first!");
23020         }
23021         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
23022         // debug statements here
23023 }
23024         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23025 /* @internal */
23026 export function UnsignedChannelUpdate_get_timestamp(this_ptr: number): number {
23027         if(!isWasmInitialized) {
23028                 throw new Error("initializeWasm() must be awaited first!");
23029         }
23030         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
23031         return nativeResponseValue;
23032 }
23033         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23034 /* @internal */
23035 export function UnsignedChannelUpdate_set_timestamp(this_ptr: number, val: number): void {
23036         if(!isWasmInitialized) {
23037                 throw new Error("initializeWasm() must be awaited first!");
23038         }
23039         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
23040         // debug statements here
23041 }
23042         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23043 /* @internal */
23044 export function UnsignedChannelUpdate_get_flags(this_ptr: number): number {
23045         if(!isWasmInitialized) {
23046                 throw new Error("initializeWasm() must be awaited first!");
23047         }
23048         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
23049         return nativeResponseValue;
23050 }
23051         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
23052 /* @internal */
23053 export function UnsignedChannelUpdate_set_flags(this_ptr: number, val: number): void {
23054         if(!isWasmInitialized) {
23055                 throw new Error("initializeWasm() must be awaited first!");
23056         }
23057         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
23058         // debug statements here
23059 }
23060         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23061 /* @internal */
23062 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: number): number {
23063         if(!isWasmInitialized) {
23064                 throw new Error("initializeWasm() must be awaited first!");
23065         }
23066         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
23067         return nativeResponseValue;
23068 }
23069         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
23070 /* @internal */
23071 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: number, val: number): void {
23072         if(!isWasmInitialized) {
23073                 throw new Error("initializeWasm() must be awaited first!");
23074         }
23075         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
23076         // debug statements here
23077 }
23078         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23079 /* @internal */
23080 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: number): bigint {
23081         if(!isWasmInitialized) {
23082                 throw new Error("initializeWasm() must be awaited first!");
23083         }
23084         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
23085         return nativeResponseValue;
23086 }
23087         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
23088 /* @internal */
23089 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
23090         if(!isWasmInitialized) {
23091                 throw new Error("initializeWasm() must be awaited first!");
23092         }
23093         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
23094         // debug statements here
23095 }
23096         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23097 /* @internal */
23098 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: number): number {
23099         if(!isWasmInitialized) {
23100                 throw new Error("initializeWasm() must be awaited first!");
23101         }
23102         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
23103         return nativeResponseValue;
23104 }
23105         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23106 /* @internal */
23107 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: number, val: number): void {
23108         if(!isWasmInitialized) {
23109                 throw new Error("initializeWasm() must be awaited first!");
23110         }
23111         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
23112         // debug statements here
23113 }
23114         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23115 /* @internal */
23116 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: number): number {
23117         if(!isWasmInitialized) {
23118                 throw new Error("initializeWasm() must be awaited first!");
23119         }
23120         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
23121         return nativeResponseValue;
23122 }
23123         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23124 /* @internal */
23125 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: number, val: number): void {
23126         if(!isWasmInitialized) {
23127                 throw new Error("initializeWasm() must be awaited first!");
23128         }
23129         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
23130         // debug statements here
23131 }
23132         // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
23133 /* @internal */
23134 export function UnsignedChannelUpdate_set_excess_data(this_ptr: number, val: number): void {
23135         if(!isWasmInitialized) {
23136                 throw new Error("initializeWasm() must be awaited first!");
23137         }
23138         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_excess_data(this_ptr, val);
23139         // debug statements here
23140 }
23141         // uintptr_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
23142 /* @internal */
23143 export function UnsignedChannelUpdate_clone_ptr(arg: number): number {
23144         if(!isWasmInitialized) {
23145                 throw new Error("initializeWasm() must be awaited first!");
23146         }
23147         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
23148         return nativeResponseValue;
23149 }
23150         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
23151 /* @internal */
23152 export function UnsignedChannelUpdate_clone(orig: number): number {
23153         if(!isWasmInitialized) {
23154                 throw new Error("initializeWasm() must be awaited first!");
23155         }
23156         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
23157         return nativeResponseValue;
23158 }
23159         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
23160 /* @internal */
23161 export function ChannelUpdate_free(this_obj: number): void {
23162         if(!isWasmInitialized) {
23163                 throw new Error("initializeWasm() must be awaited first!");
23164         }
23165         const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
23166         // debug statements here
23167 }
23168         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
23169 /* @internal */
23170 export function ChannelUpdate_get_signature(this_ptr: number): number {
23171         if(!isWasmInitialized) {
23172                 throw new Error("initializeWasm() must be awaited first!");
23173         }
23174         const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
23175         return nativeResponseValue;
23176 }
23177         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
23178 /* @internal */
23179 export function ChannelUpdate_set_signature(this_ptr: number, val: number): void {
23180         if(!isWasmInitialized) {
23181                 throw new Error("initializeWasm() must be awaited first!");
23182         }
23183         const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
23184         // debug statements here
23185 }
23186         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
23187 /* @internal */
23188 export function ChannelUpdate_get_contents(this_ptr: number): number {
23189         if(!isWasmInitialized) {
23190                 throw new Error("initializeWasm() must be awaited first!");
23191         }
23192         const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
23193         return nativeResponseValue;
23194 }
23195         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
23196 /* @internal */
23197 export function ChannelUpdate_set_contents(this_ptr: number, val: number): void {
23198         if(!isWasmInitialized) {
23199                 throw new Error("initializeWasm() must be awaited first!");
23200         }
23201         const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
23202         // debug statements here
23203 }
23204         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
23205 /* @internal */
23206 export function ChannelUpdate_new(signature_arg: number, contents_arg: number): number {
23207         if(!isWasmInitialized) {
23208                 throw new Error("initializeWasm() must be awaited first!");
23209         }
23210         const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
23211         return nativeResponseValue;
23212 }
23213         // uintptr_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
23214 /* @internal */
23215 export function ChannelUpdate_clone_ptr(arg: number): number {
23216         if(!isWasmInitialized) {
23217                 throw new Error("initializeWasm() must be awaited first!");
23218         }
23219         const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
23220         return nativeResponseValue;
23221 }
23222         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
23223 /* @internal */
23224 export function ChannelUpdate_clone(orig: number): number {
23225         if(!isWasmInitialized) {
23226                 throw new Error("initializeWasm() must be awaited first!");
23227         }
23228         const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
23229         return nativeResponseValue;
23230 }
23231         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
23232 /* @internal */
23233 export function QueryChannelRange_free(this_obj: number): void {
23234         if(!isWasmInitialized) {
23235                 throw new Error("initializeWasm() must be awaited first!");
23236         }
23237         const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
23238         // debug statements here
23239 }
23240         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
23241 /* @internal */
23242 export function QueryChannelRange_get_chain_hash(this_ptr: number): number {
23243         if(!isWasmInitialized) {
23244                 throw new Error("initializeWasm() must be awaited first!");
23245         }
23246         const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
23247         return nativeResponseValue;
23248 }
23249         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23250 /* @internal */
23251 export function QueryChannelRange_set_chain_hash(this_ptr: number, val: number): void {
23252         if(!isWasmInitialized) {
23253                 throw new Error("initializeWasm() must be awaited first!");
23254         }
23255         const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
23256         // debug statements here
23257 }
23258         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
23259 /* @internal */
23260 export function QueryChannelRange_get_first_blocknum(this_ptr: number): number {
23261         if(!isWasmInitialized) {
23262                 throw new Error("initializeWasm() must be awaited first!");
23263         }
23264         const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
23265         return nativeResponseValue;
23266 }
23267         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23268 /* @internal */
23269 export function QueryChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
23270         if(!isWasmInitialized) {
23271                 throw new Error("initializeWasm() must be awaited first!");
23272         }
23273         const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
23274         // debug statements here
23275 }
23276         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
23277 /* @internal */
23278 export function QueryChannelRange_get_number_of_blocks(this_ptr: number): number {
23279         if(!isWasmInitialized) {
23280                 throw new Error("initializeWasm() must be awaited first!");
23281         }
23282         const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
23283         return nativeResponseValue;
23284 }
23285         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23286 /* @internal */
23287 export function QueryChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
23288         if(!isWasmInitialized) {
23289                 throw new Error("initializeWasm() must be awaited first!");
23290         }
23291         const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
23292         // debug statements here
23293 }
23294         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
23295 /* @internal */
23296 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): number {
23297         if(!isWasmInitialized) {
23298                 throw new Error("initializeWasm() must be awaited first!");
23299         }
23300         const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
23301         return nativeResponseValue;
23302 }
23303         // uintptr_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
23304 /* @internal */
23305 export function QueryChannelRange_clone_ptr(arg: number): number {
23306         if(!isWasmInitialized) {
23307                 throw new Error("initializeWasm() must be awaited first!");
23308         }
23309         const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
23310         return nativeResponseValue;
23311 }
23312         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
23313 /* @internal */
23314 export function QueryChannelRange_clone(orig: number): number {
23315         if(!isWasmInitialized) {
23316                 throw new Error("initializeWasm() must be awaited first!");
23317         }
23318         const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
23319         return nativeResponseValue;
23320 }
23321         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
23322 /* @internal */
23323 export function ReplyChannelRange_free(this_obj: number): void {
23324         if(!isWasmInitialized) {
23325                 throw new Error("initializeWasm() must be awaited first!");
23326         }
23327         const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
23328         // debug statements here
23329 }
23330         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
23331 /* @internal */
23332 export function ReplyChannelRange_get_chain_hash(this_ptr: number): number {
23333         if(!isWasmInitialized) {
23334                 throw new Error("initializeWasm() must be awaited first!");
23335         }
23336         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
23337         return nativeResponseValue;
23338 }
23339         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23340 /* @internal */
23341 export function ReplyChannelRange_set_chain_hash(this_ptr: number, val: number): void {
23342         if(!isWasmInitialized) {
23343                 throw new Error("initializeWasm() must be awaited first!");
23344         }
23345         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
23346         // debug statements here
23347 }
23348         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23349 /* @internal */
23350 export function ReplyChannelRange_get_first_blocknum(this_ptr: number): number {
23351         if(!isWasmInitialized) {
23352                 throw new Error("initializeWasm() must be awaited first!");
23353         }
23354         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
23355         return nativeResponseValue;
23356 }
23357         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23358 /* @internal */
23359 export function ReplyChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
23360         if(!isWasmInitialized) {
23361                 throw new Error("initializeWasm() must be awaited first!");
23362         }
23363         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
23364         // debug statements here
23365 }
23366         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23367 /* @internal */
23368 export function ReplyChannelRange_get_number_of_blocks(this_ptr: number): number {
23369         if(!isWasmInitialized) {
23370                 throw new Error("initializeWasm() must be awaited first!");
23371         }
23372         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
23373         return nativeResponseValue;
23374 }
23375         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23376 /* @internal */
23377 export function ReplyChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
23378         if(!isWasmInitialized) {
23379                 throw new Error("initializeWasm() must be awaited first!");
23380         }
23381         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
23382         // debug statements here
23383 }
23384         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23385 /* @internal */
23386 export function ReplyChannelRange_get_sync_complete(this_ptr: number): boolean {
23387         if(!isWasmInitialized) {
23388                 throw new Error("initializeWasm() must be awaited first!");
23389         }
23390         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
23391         return nativeResponseValue;
23392 }
23393         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
23394 /* @internal */
23395 export function ReplyChannelRange_set_sync_complete(this_ptr: number, val: boolean): void {
23396         if(!isWasmInitialized) {
23397                 throw new Error("initializeWasm() must be awaited first!");
23398         }
23399         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
23400         // debug statements here
23401 }
23402         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
23403 /* @internal */
23404 export function ReplyChannelRange_set_short_channel_ids(this_ptr: number, val: number): void {
23405         if(!isWasmInitialized) {
23406                 throw new Error("initializeWasm() must be awaited first!");
23407         }
23408         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
23409         // debug statements here
23410 }
23411         // 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);
23412 /* @internal */
23413 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 {
23414         if(!isWasmInitialized) {
23415                 throw new Error("initializeWasm() must be awaited first!");
23416         }
23417         const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
23418         return nativeResponseValue;
23419 }
23420         // uintptr_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
23421 /* @internal */
23422 export function ReplyChannelRange_clone_ptr(arg: number): number {
23423         if(!isWasmInitialized) {
23424                 throw new Error("initializeWasm() must be awaited first!");
23425         }
23426         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
23427         return nativeResponseValue;
23428 }
23429         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
23430 /* @internal */
23431 export function ReplyChannelRange_clone(orig: number): number {
23432         if(!isWasmInitialized) {
23433                 throw new Error("initializeWasm() must be awaited first!");
23434         }
23435         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
23436         return nativeResponseValue;
23437 }
23438         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
23439 /* @internal */
23440 export function QueryShortChannelIds_free(this_obj: number): void {
23441         if(!isWasmInitialized) {
23442                 throw new Error("initializeWasm() must be awaited first!");
23443         }
23444         const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
23445         // debug statements here
23446 }
23447         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
23448 /* @internal */
23449 export function QueryShortChannelIds_get_chain_hash(this_ptr: number): number {
23450         if(!isWasmInitialized) {
23451                 throw new Error("initializeWasm() must be awaited first!");
23452         }
23453         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
23454         return nativeResponseValue;
23455 }
23456         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23457 /* @internal */
23458 export function QueryShortChannelIds_set_chain_hash(this_ptr: number, val: number): void {
23459         if(!isWasmInitialized) {
23460                 throw new Error("initializeWasm() must be awaited first!");
23461         }
23462         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
23463         // debug statements here
23464 }
23465         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
23466 /* @internal */
23467 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: number, val: number): void {
23468         if(!isWasmInitialized) {
23469                 throw new Error("initializeWasm() must be awaited first!");
23470         }
23471         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
23472         // debug statements here
23473 }
23474         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
23475 /* @internal */
23476 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): number {
23477         if(!isWasmInitialized) {
23478                 throw new Error("initializeWasm() must be awaited first!");
23479         }
23480         const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
23481         return nativeResponseValue;
23482 }
23483         // uintptr_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
23484 /* @internal */
23485 export function QueryShortChannelIds_clone_ptr(arg: number): number {
23486         if(!isWasmInitialized) {
23487                 throw new Error("initializeWasm() must be awaited first!");
23488         }
23489         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
23490         return nativeResponseValue;
23491 }
23492         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
23493 /* @internal */
23494 export function QueryShortChannelIds_clone(orig: number): number {
23495         if(!isWasmInitialized) {
23496                 throw new Error("initializeWasm() must be awaited first!");
23497         }
23498         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
23499         return nativeResponseValue;
23500 }
23501         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
23502 /* @internal */
23503 export function ReplyShortChannelIdsEnd_free(this_obj: number): void {
23504         if(!isWasmInitialized) {
23505                 throw new Error("initializeWasm() must be awaited first!");
23506         }
23507         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
23508         // debug statements here
23509 }
23510         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
23511 /* @internal */
23512 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: number): number {
23513         if(!isWasmInitialized) {
23514                 throw new Error("initializeWasm() must be awaited first!");
23515         }
23516         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
23517         return nativeResponseValue;
23518 }
23519         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23520 /* @internal */
23521 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: number, val: number): void {
23522         if(!isWasmInitialized) {
23523                 throw new Error("initializeWasm() must be awaited first!");
23524         }
23525         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
23526         // debug statements here
23527 }
23528         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
23529 /* @internal */
23530 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: number): boolean {
23531         if(!isWasmInitialized) {
23532                 throw new Error("initializeWasm() must be awaited first!");
23533         }
23534         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
23535         return nativeResponseValue;
23536 }
23537         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
23538 /* @internal */
23539 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: number, val: boolean): void {
23540         if(!isWasmInitialized) {
23541                 throw new Error("initializeWasm() must be awaited first!");
23542         }
23543         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
23544         // debug statements here
23545 }
23546         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
23547 /* @internal */
23548 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): number {
23549         if(!isWasmInitialized) {
23550                 throw new Error("initializeWasm() must be awaited first!");
23551         }
23552         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
23553         return nativeResponseValue;
23554 }
23555         // uintptr_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
23556 /* @internal */
23557 export function ReplyShortChannelIdsEnd_clone_ptr(arg: number): number {
23558         if(!isWasmInitialized) {
23559                 throw new Error("initializeWasm() must be awaited first!");
23560         }
23561         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
23562         return nativeResponseValue;
23563 }
23564         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
23565 /* @internal */
23566 export function ReplyShortChannelIdsEnd_clone(orig: number): number {
23567         if(!isWasmInitialized) {
23568                 throw new Error("initializeWasm() must be awaited first!");
23569         }
23570         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
23571         return nativeResponseValue;
23572 }
23573         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
23574 /* @internal */
23575 export function GossipTimestampFilter_free(this_obj: number): void {
23576         if(!isWasmInitialized) {
23577                 throw new Error("initializeWasm() must be awaited first!");
23578         }
23579         const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
23580         // debug statements here
23581 }
23582         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
23583 /* @internal */
23584 export function GossipTimestampFilter_get_chain_hash(this_ptr: number): number {
23585         if(!isWasmInitialized) {
23586                 throw new Error("initializeWasm() must be awaited first!");
23587         }
23588         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
23589         return nativeResponseValue;
23590 }
23591         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23592 /* @internal */
23593 export function GossipTimestampFilter_set_chain_hash(this_ptr: number, val: number): void {
23594         if(!isWasmInitialized) {
23595                 throw new Error("initializeWasm() must be awaited first!");
23596         }
23597         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
23598         // debug statements here
23599 }
23600         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
23601 /* @internal */
23602 export function GossipTimestampFilter_get_first_timestamp(this_ptr: number): number {
23603         if(!isWasmInitialized) {
23604                 throw new Error("initializeWasm() must be awaited first!");
23605         }
23606         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
23607         return nativeResponseValue;
23608 }
23609         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
23610 /* @internal */
23611 export function GossipTimestampFilter_set_first_timestamp(this_ptr: number, val: number): void {
23612         if(!isWasmInitialized) {
23613                 throw new Error("initializeWasm() must be awaited first!");
23614         }
23615         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
23616         // debug statements here
23617 }
23618         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
23619 /* @internal */
23620 export function GossipTimestampFilter_get_timestamp_range(this_ptr: number): number {
23621         if(!isWasmInitialized) {
23622                 throw new Error("initializeWasm() must be awaited first!");
23623         }
23624         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
23625         return nativeResponseValue;
23626 }
23627         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
23628 /* @internal */
23629 export function GossipTimestampFilter_set_timestamp_range(this_ptr: number, val: number): void {
23630         if(!isWasmInitialized) {
23631                 throw new Error("initializeWasm() must be awaited first!");
23632         }
23633         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
23634         // debug statements here
23635 }
23636         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
23637 /* @internal */
23638 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): number {
23639         if(!isWasmInitialized) {
23640                 throw new Error("initializeWasm() must be awaited first!");
23641         }
23642         const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
23643         return nativeResponseValue;
23644 }
23645         // uintptr_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
23646 /* @internal */
23647 export function GossipTimestampFilter_clone_ptr(arg: number): number {
23648         if(!isWasmInitialized) {
23649                 throw new Error("initializeWasm() must be awaited first!");
23650         }
23651         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
23652         return nativeResponseValue;
23653 }
23654         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
23655 /* @internal */
23656 export function GossipTimestampFilter_clone(orig: number): number {
23657         if(!isWasmInitialized) {
23658                 throw new Error("initializeWasm() must be awaited first!");
23659         }
23660         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
23661         return nativeResponseValue;
23662 }
23663         // void ErrorAction_free(struct LDKErrorAction this_ptr);
23664 /* @internal */
23665 export function ErrorAction_free(this_ptr: number): void {
23666         if(!isWasmInitialized) {
23667                 throw new Error("initializeWasm() must be awaited first!");
23668         }
23669         const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
23670         // debug statements here
23671 }
23672         // uintptr_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
23673 /* @internal */
23674 export function ErrorAction_clone_ptr(arg: number): number {
23675         if(!isWasmInitialized) {
23676                 throw new Error("initializeWasm() must be awaited first!");
23677         }
23678         const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
23679         return nativeResponseValue;
23680 }
23681         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
23682 /* @internal */
23683 export function ErrorAction_clone(orig: number): number {
23684         if(!isWasmInitialized) {
23685                 throw new Error("initializeWasm() must be awaited first!");
23686         }
23687         const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
23688         return nativeResponseValue;
23689 }
23690         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
23691 /* @internal */
23692 export function ErrorAction_disconnect_peer(msg: number): number {
23693         if(!isWasmInitialized) {
23694                 throw new Error("initializeWasm() must be awaited first!");
23695         }
23696         const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
23697         return nativeResponseValue;
23698 }
23699         // struct LDKErrorAction ErrorAction_ignore_error(void);
23700 /* @internal */
23701 export function ErrorAction_ignore_error(): number {
23702         if(!isWasmInitialized) {
23703                 throw new Error("initializeWasm() must be awaited first!");
23704         }
23705         const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
23706         return nativeResponseValue;
23707 }
23708         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
23709 /* @internal */
23710 export function ErrorAction_ignore_and_log(a: Level): number {
23711         if(!isWasmInitialized) {
23712                 throw new Error("initializeWasm() must be awaited first!");
23713         }
23714         const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
23715         return nativeResponseValue;
23716 }
23717         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
23718 /* @internal */
23719 export function ErrorAction_ignore_duplicate_gossip(): number {
23720         if(!isWasmInitialized) {
23721                 throw new Error("initializeWasm() must be awaited first!");
23722         }
23723         const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
23724         return nativeResponseValue;
23725 }
23726         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
23727 /* @internal */
23728 export function ErrorAction_send_error_message(msg: number): number {
23729         if(!isWasmInitialized) {
23730                 throw new Error("initializeWasm() must be awaited first!");
23731         }
23732         const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
23733         return nativeResponseValue;
23734 }
23735         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
23736 /* @internal */
23737 export function ErrorAction_send_warning_message(msg: number, log_level: Level): number {
23738         if(!isWasmInitialized) {
23739                 throw new Error("initializeWasm() must be awaited first!");
23740         }
23741         const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
23742         return nativeResponseValue;
23743 }
23744         // void LightningError_free(struct LDKLightningError this_obj);
23745 /* @internal */
23746 export function LightningError_free(this_obj: number): void {
23747         if(!isWasmInitialized) {
23748                 throw new Error("initializeWasm() must be awaited first!");
23749         }
23750         const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
23751         // debug statements here
23752 }
23753         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
23754 /* @internal */
23755 export function LightningError_get_err(this_ptr: number): number {
23756         if(!isWasmInitialized) {
23757                 throw new Error("initializeWasm() must be awaited first!");
23758         }
23759         const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
23760         return nativeResponseValue;
23761 }
23762         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
23763 /* @internal */
23764 export function LightningError_set_err(this_ptr: number, val: number): void {
23765         if(!isWasmInitialized) {
23766                 throw new Error("initializeWasm() must be awaited first!");
23767         }
23768         const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
23769         // debug statements here
23770 }
23771         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
23772 /* @internal */
23773 export function LightningError_get_action(this_ptr: number): number {
23774         if(!isWasmInitialized) {
23775                 throw new Error("initializeWasm() must be awaited first!");
23776         }
23777         const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
23778         return nativeResponseValue;
23779 }
23780         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
23781 /* @internal */
23782 export function LightningError_set_action(this_ptr: number, val: number): void {
23783         if(!isWasmInitialized) {
23784                 throw new Error("initializeWasm() must be awaited first!");
23785         }
23786         const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
23787         // debug statements here
23788 }
23789         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
23790 /* @internal */
23791 export function LightningError_new(err_arg: number, action_arg: number): number {
23792         if(!isWasmInitialized) {
23793                 throw new Error("initializeWasm() must be awaited first!");
23794         }
23795         const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
23796         return nativeResponseValue;
23797 }
23798         // uintptr_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
23799 /* @internal */
23800 export function LightningError_clone_ptr(arg: number): number {
23801         if(!isWasmInitialized) {
23802                 throw new Error("initializeWasm() must be awaited first!");
23803         }
23804         const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
23805         return nativeResponseValue;
23806 }
23807         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
23808 /* @internal */
23809 export function LightningError_clone(orig: number): number {
23810         if(!isWasmInitialized) {
23811                 throw new Error("initializeWasm() must be awaited first!");
23812         }
23813         const nativeResponseValue = wasm.TS_LightningError_clone(orig);
23814         return nativeResponseValue;
23815 }
23816         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
23817 /* @internal */
23818 export function CommitmentUpdate_free(this_obj: number): void {
23819         if(!isWasmInitialized) {
23820                 throw new Error("initializeWasm() must be awaited first!");
23821         }
23822         const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
23823         // debug statements here
23824 }
23825         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23826 /* @internal */
23827 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: number): number {
23828         if(!isWasmInitialized) {
23829                 throw new Error("initializeWasm() must be awaited first!");
23830         }
23831         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
23832         return nativeResponseValue;
23833 }
23834         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
23835 /* @internal */
23836 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: number, val: number): void {
23837         if(!isWasmInitialized) {
23838                 throw new Error("initializeWasm() must be awaited first!");
23839         }
23840         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
23841         // debug statements here
23842 }
23843         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23844 /* @internal */
23845 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: number): number {
23846         if(!isWasmInitialized) {
23847                 throw new Error("initializeWasm() must be awaited first!");
23848         }
23849         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
23850         return nativeResponseValue;
23851 }
23852         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
23853 /* @internal */
23854 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: number, val: number): void {
23855         if(!isWasmInitialized) {
23856                 throw new Error("initializeWasm() must be awaited first!");
23857         }
23858         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
23859         // debug statements here
23860 }
23861         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23862 /* @internal */
23863 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: number): number {
23864         if(!isWasmInitialized) {
23865                 throw new Error("initializeWasm() must be awaited first!");
23866         }
23867         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
23868         return nativeResponseValue;
23869 }
23870         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
23871 /* @internal */
23872 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: number, val: number): void {
23873         if(!isWasmInitialized) {
23874                 throw new Error("initializeWasm() must be awaited first!");
23875         }
23876         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
23877         // debug statements here
23878 }
23879         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23880 /* @internal */
23881 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: number): number {
23882         if(!isWasmInitialized) {
23883                 throw new Error("initializeWasm() must be awaited first!");
23884         }
23885         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
23886         return nativeResponseValue;
23887 }
23888         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
23889 /* @internal */
23890 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: number, val: number): void {
23891         if(!isWasmInitialized) {
23892                 throw new Error("initializeWasm() must be awaited first!");
23893         }
23894         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
23895         // debug statements here
23896 }
23897         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23898 /* @internal */
23899 export function CommitmentUpdate_get_update_fee(this_ptr: number): number {
23900         if(!isWasmInitialized) {
23901                 throw new Error("initializeWasm() must be awaited first!");
23902         }
23903         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
23904         return nativeResponseValue;
23905 }
23906         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
23907 /* @internal */
23908 export function CommitmentUpdate_set_update_fee(this_ptr: number, val: number): void {
23909         if(!isWasmInitialized) {
23910                 throw new Error("initializeWasm() must be awaited first!");
23911         }
23912         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
23913         // debug statements here
23914 }
23915         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23916 /* @internal */
23917 export function CommitmentUpdate_get_commitment_signed(this_ptr: number): number {
23918         if(!isWasmInitialized) {
23919                 throw new Error("initializeWasm() must be awaited first!");
23920         }
23921         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
23922         return nativeResponseValue;
23923 }
23924         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
23925 /* @internal */
23926 export function CommitmentUpdate_set_commitment_signed(this_ptr: number, val: number): void {
23927         if(!isWasmInitialized) {
23928                 throw new Error("initializeWasm() must be awaited first!");
23929         }
23930         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
23931         // debug statements here
23932 }
23933         // 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);
23934 /* @internal */
23935 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 {
23936         if(!isWasmInitialized) {
23937                 throw new Error("initializeWasm() must be awaited first!");
23938         }
23939         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);
23940         return nativeResponseValue;
23941 }
23942         // uintptr_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
23943 /* @internal */
23944 export function CommitmentUpdate_clone_ptr(arg: number): number {
23945         if(!isWasmInitialized) {
23946                 throw new Error("initializeWasm() must be awaited first!");
23947         }
23948         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
23949         return nativeResponseValue;
23950 }
23951         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
23952 /* @internal */
23953 export function CommitmentUpdate_clone(orig: number): number {
23954         if(!isWasmInitialized) {
23955                 throw new Error("initializeWasm() must be awaited first!");
23956         }
23957         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
23958         return nativeResponseValue;
23959 }
23960         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
23961 /* @internal */
23962 export function ChannelMessageHandler_free(this_ptr: number): void {
23963         if(!isWasmInitialized) {
23964                 throw new Error("initializeWasm() must be awaited first!");
23965         }
23966         const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
23967         // debug statements here
23968 }
23969         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
23970 /* @internal */
23971 export function RoutingMessageHandler_free(this_ptr: number): void {
23972         if(!isWasmInitialized) {
23973                 throw new Error("initializeWasm() must be awaited first!");
23974         }
23975         const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
23976         // debug statements here
23977 }
23978         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
23979 /* @internal */
23980 export function AcceptChannel_write(obj: number): number {
23981         if(!isWasmInitialized) {
23982                 throw new Error("initializeWasm() must be awaited first!");
23983         }
23984         const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
23985         return nativeResponseValue;
23986 }
23987         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
23988 /* @internal */
23989 export function AcceptChannel_read(ser: number): number {
23990         if(!isWasmInitialized) {
23991                 throw new Error("initializeWasm() must be awaited first!");
23992         }
23993         const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
23994         return nativeResponseValue;
23995 }
23996         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
23997 /* @internal */
23998 export function AnnouncementSignatures_write(obj: number): number {
23999         if(!isWasmInitialized) {
24000                 throw new Error("initializeWasm() must be awaited first!");
24001         }
24002         const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
24003         return nativeResponseValue;
24004 }
24005         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
24006 /* @internal */
24007 export function AnnouncementSignatures_read(ser: number): number {
24008         if(!isWasmInitialized) {
24009                 throw new Error("initializeWasm() must be awaited first!");
24010         }
24011         const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
24012         return nativeResponseValue;
24013 }
24014         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
24015 /* @internal */
24016 export function ChannelReestablish_write(obj: number): number {
24017         if(!isWasmInitialized) {
24018                 throw new Error("initializeWasm() must be awaited first!");
24019         }
24020         const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
24021         return nativeResponseValue;
24022 }
24023         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
24024 /* @internal */
24025 export function ChannelReestablish_read(ser: number): number {
24026         if(!isWasmInitialized) {
24027                 throw new Error("initializeWasm() must be awaited first!");
24028         }
24029         const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
24030         return nativeResponseValue;
24031 }
24032         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
24033 /* @internal */
24034 export function ClosingSigned_write(obj: number): number {
24035         if(!isWasmInitialized) {
24036                 throw new Error("initializeWasm() must be awaited first!");
24037         }
24038         const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
24039         return nativeResponseValue;
24040 }
24041         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
24042 /* @internal */
24043 export function ClosingSigned_read(ser: number): number {
24044         if(!isWasmInitialized) {
24045                 throw new Error("initializeWasm() must be awaited first!");
24046         }
24047         const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
24048         return nativeResponseValue;
24049 }
24050         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
24051 /* @internal */
24052 export function ClosingSignedFeeRange_write(obj: number): number {
24053         if(!isWasmInitialized) {
24054                 throw new Error("initializeWasm() must be awaited first!");
24055         }
24056         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
24057         return nativeResponseValue;
24058 }
24059         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
24060 /* @internal */
24061 export function ClosingSignedFeeRange_read(ser: number): number {
24062         if(!isWasmInitialized) {
24063                 throw new Error("initializeWasm() must be awaited first!");
24064         }
24065         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
24066         return nativeResponseValue;
24067 }
24068         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
24069 /* @internal */
24070 export function CommitmentSigned_write(obj: number): number {
24071         if(!isWasmInitialized) {
24072                 throw new Error("initializeWasm() must be awaited first!");
24073         }
24074         const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
24075         return nativeResponseValue;
24076 }
24077         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
24078 /* @internal */
24079 export function CommitmentSigned_read(ser: number): number {
24080         if(!isWasmInitialized) {
24081                 throw new Error("initializeWasm() must be awaited first!");
24082         }
24083         const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
24084         return nativeResponseValue;
24085 }
24086         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
24087 /* @internal */
24088 export function FundingCreated_write(obj: number): number {
24089         if(!isWasmInitialized) {
24090                 throw new Error("initializeWasm() must be awaited first!");
24091         }
24092         const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
24093         return nativeResponseValue;
24094 }
24095         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
24096 /* @internal */
24097 export function FundingCreated_read(ser: number): number {
24098         if(!isWasmInitialized) {
24099                 throw new Error("initializeWasm() must be awaited first!");
24100         }
24101         const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
24102         return nativeResponseValue;
24103 }
24104         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
24105 /* @internal */
24106 export function FundingSigned_write(obj: number): number {
24107         if(!isWasmInitialized) {
24108                 throw new Error("initializeWasm() must be awaited first!");
24109         }
24110         const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
24111         return nativeResponseValue;
24112 }
24113         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
24114 /* @internal */
24115 export function FundingSigned_read(ser: number): number {
24116         if(!isWasmInitialized) {
24117                 throw new Error("initializeWasm() must be awaited first!");
24118         }
24119         const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
24120         return nativeResponseValue;
24121 }
24122         // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
24123 /* @internal */
24124 export function ChannelReady_write(obj: number): number {
24125         if(!isWasmInitialized) {
24126                 throw new Error("initializeWasm() must be awaited first!");
24127         }
24128         const nativeResponseValue = wasm.TS_ChannelReady_write(obj);
24129         return nativeResponseValue;
24130 }
24131         // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
24132 /* @internal */
24133 export function ChannelReady_read(ser: number): number {
24134         if(!isWasmInitialized) {
24135                 throw new Error("initializeWasm() must be awaited first!");
24136         }
24137         const nativeResponseValue = wasm.TS_ChannelReady_read(ser);
24138         return nativeResponseValue;
24139 }
24140         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
24141 /* @internal */
24142 export function Init_write(obj: number): number {
24143         if(!isWasmInitialized) {
24144                 throw new Error("initializeWasm() must be awaited first!");
24145         }
24146         const nativeResponseValue = wasm.TS_Init_write(obj);
24147         return nativeResponseValue;
24148 }
24149         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
24150 /* @internal */
24151 export function Init_read(ser: number): number {
24152         if(!isWasmInitialized) {
24153                 throw new Error("initializeWasm() must be awaited first!");
24154         }
24155         const nativeResponseValue = wasm.TS_Init_read(ser);
24156         return nativeResponseValue;
24157 }
24158         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
24159 /* @internal */
24160 export function OpenChannel_write(obj: number): number {
24161         if(!isWasmInitialized) {
24162                 throw new Error("initializeWasm() must be awaited first!");
24163         }
24164         const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
24165         return nativeResponseValue;
24166 }
24167         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
24168 /* @internal */
24169 export function OpenChannel_read(ser: number): number {
24170         if(!isWasmInitialized) {
24171                 throw new Error("initializeWasm() must be awaited first!");
24172         }
24173         const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
24174         return nativeResponseValue;
24175 }
24176         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
24177 /* @internal */
24178 export function RevokeAndACK_write(obj: number): number {
24179         if(!isWasmInitialized) {
24180                 throw new Error("initializeWasm() must be awaited first!");
24181         }
24182         const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
24183         return nativeResponseValue;
24184 }
24185         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
24186 /* @internal */
24187 export function RevokeAndACK_read(ser: number): number {
24188         if(!isWasmInitialized) {
24189                 throw new Error("initializeWasm() must be awaited first!");
24190         }
24191         const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
24192         return nativeResponseValue;
24193 }
24194         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
24195 /* @internal */
24196 export function Shutdown_write(obj: number): number {
24197         if(!isWasmInitialized) {
24198                 throw new Error("initializeWasm() must be awaited first!");
24199         }
24200         const nativeResponseValue = wasm.TS_Shutdown_write(obj);
24201         return nativeResponseValue;
24202 }
24203         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
24204 /* @internal */
24205 export function Shutdown_read(ser: number): number {
24206         if(!isWasmInitialized) {
24207                 throw new Error("initializeWasm() must be awaited first!");
24208         }
24209         const nativeResponseValue = wasm.TS_Shutdown_read(ser);
24210         return nativeResponseValue;
24211 }
24212         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
24213 /* @internal */
24214 export function UpdateFailHTLC_write(obj: number): number {
24215         if(!isWasmInitialized) {
24216                 throw new Error("initializeWasm() must be awaited first!");
24217         }
24218         const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
24219         return nativeResponseValue;
24220 }
24221         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
24222 /* @internal */
24223 export function UpdateFailHTLC_read(ser: number): number {
24224         if(!isWasmInitialized) {
24225                 throw new Error("initializeWasm() must be awaited first!");
24226         }
24227         const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
24228         return nativeResponseValue;
24229 }
24230         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
24231 /* @internal */
24232 export function UpdateFailMalformedHTLC_write(obj: number): number {
24233         if(!isWasmInitialized) {
24234                 throw new Error("initializeWasm() must be awaited first!");
24235         }
24236         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
24237         return nativeResponseValue;
24238 }
24239         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
24240 /* @internal */
24241 export function UpdateFailMalformedHTLC_read(ser: number): number {
24242         if(!isWasmInitialized) {
24243                 throw new Error("initializeWasm() must be awaited first!");
24244         }
24245         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
24246         return nativeResponseValue;
24247 }
24248         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
24249 /* @internal */
24250 export function UpdateFee_write(obj: number): number {
24251         if(!isWasmInitialized) {
24252                 throw new Error("initializeWasm() must be awaited first!");
24253         }
24254         const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
24255         return nativeResponseValue;
24256 }
24257         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
24258 /* @internal */
24259 export function UpdateFee_read(ser: number): number {
24260         if(!isWasmInitialized) {
24261                 throw new Error("initializeWasm() must be awaited first!");
24262         }
24263         const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
24264         return nativeResponseValue;
24265 }
24266         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
24267 /* @internal */
24268 export function UpdateFulfillHTLC_write(obj: number): number {
24269         if(!isWasmInitialized) {
24270                 throw new Error("initializeWasm() must be awaited first!");
24271         }
24272         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
24273         return nativeResponseValue;
24274 }
24275         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
24276 /* @internal */
24277 export function UpdateFulfillHTLC_read(ser: number): number {
24278         if(!isWasmInitialized) {
24279                 throw new Error("initializeWasm() must be awaited first!");
24280         }
24281         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
24282         return nativeResponseValue;
24283 }
24284         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
24285 /* @internal */
24286 export function UpdateAddHTLC_write(obj: number): number {
24287         if(!isWasmInitialized) {
24288                 throw new Error("initializeWasm() must be awaited first!");
24289         }
24290         const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
24291         return nativeResponseValue;
24292 }
24293         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
24294 /* @internal */
24295 export function UpdateAddHTLC_read(ser: number): number {
24296         if(!isWasmInitialized) {
24297                 throw new Error("initializeWasm() must be awaited first!");
24298         }
24299         const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
24300         return nativeResponseValue;
24301 }
24302         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
24303 /* @internal */
24304 export function Ping_write(obj: number): number {
24305         if(!isWasmInitialized) {
24306                 throw new Error("initializeWasm() must be awaited first!");
24307         }
24308         const nativeResponseValue = wasm.TS_Ping_write(obj);
24309         return nativeResponseValue;
24310 }
24311         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
24312 /* @internal */
24313 export function Ping_read(ser: number): number {
24314         if(!isWasmInitialized) {
24315                 throw new Error("initializeWasm() must be awaited first!");
24316         }
24317         const nativeResponseValue = wasm.TS_Ping_read(ser);
24318         return nativeResponseValue;
24319 }
24320         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
24321 /* @internal */
24322 export function Pong_write(obj: number): number {
24323         if(!isWasmInitialized) {
24324                 throw new Error("initializeWasm() must be awaited first!");
24325         }
24326         const nativeResponseValue = wasm.TS_Pong_write(obj);
24327         return nativeResponseValue;
24328 }
24329         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
24330 /* @internal */
24331 export function Pong_read(ser: number): number {
24332         if(!isWasmInitialized) {
24333                 throw new Error("initializeWasm() must be awaited first!");
24334         }
24335         const nativeResponseValue = wasm.TS_Pong_read(ser);
24336         return nativeResponseValue;
24337 }
24338         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
24339 /* @internal */
24340 export function UnsignedChannelAnnouncement_write(obj: number): number {
24341         if(!isWasmInitialized) {
24342                 throw new Error("initializeWasm() must be awaited first!");
24343         }
24344         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
24345         return nativeResponseValue;
24346 }
24347         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
24348 /* @internal */
24349 export function UnsignedChannelAnnouncement_read(ser: number): number {
24350         if(!isWasmInitialized) {
24351                 throw new Error("initializeWasm() must be awaited first!");
24352         }
24353         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
24354         return nativeResponseValue;
24355 }
24356         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
24357 /* @internal */
24358 export function ChannelAnnouncement_write(obj: number): number {
24359         if(!isWasmInitialized) {
24360                 throw new Error("initializeWasm() must be awaited first!");
24361         }
24362         const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
24363         return nativeResponseValue;
24364 }
24365         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
24366 /* @internal */
24367 export function ChannelAnnouncement_read(ser: number): number {
24368         if(!isWasmInitialized) {
24369                 throw new Error("initializeWasm() must be awaited first!");
24370         }
24371         const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
24372         return nativeResponseValue;
24373 }
24374         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
24375 /* @internal */
24376 export function UnsignedChannelUpdate_write(obj: number): number {
24377         if(!isWasmInitialized) {
24378                 throw new Error("initializeWasm() must be awaited first!");
24379         }
24380         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
24381         return nativeResponseValue;
24382 }
24383         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
24384 /* @internal */
24385 export function UnsignedChannelUpdate_read(ser: number): number {
24386         if(!isWasmInitialized) {
24387                 throw new Error("initializeWasm() must be awaited first!");
24388         }
24389         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
24390         return nativeResponseValue;
24391 }
24392         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
24393 /* @internal */
24394 export function ChannelUpdate_write(obj: number): number {
24395         if(!isWasmInitialized) {
24396                 throw new Error("initializeWasm() must be awaited first!");
24397         }
24398         const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
24399         return nativeResponseValue;
24400 }
24401         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
24402 /* @internal */
24403 export function ChannelUpdate_read(ser: number): number {
24404         if(!isWasmInitialized) {
24405                 throw new Error("initializeWasm() must be awaited first!");
24406         }
24407         const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
24408         return nativeResponseValue;
24409 }
24410         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
24411 /* @internal */
24412 export function ErrorMessage_write(obj: number): number {
24413         if(!isWasmInitialized) {
24414                 throw new Error("initializeWasm() must be awaited first!");
24415         }
24416         const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
24417         return nativeResponseValue;
24418 }
24419         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
24420 /* @internal */
24421 export function ErrorMessage_read(ser: number): number {
24422         if(!isWasmInitialized) {
24423                 throw new Error("initializeWasm() must be awaited first!");
24424         }
24425         const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
24426         return nativeResponseValue;
24427 }
24428         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
24429 /* @internal */
24430 export function WarningMessage_write(obj: number): number {
24431         if(!isWasmInitialized) {
24432                 throw new Error("initializeWasm() must be awaited first!");
24433         }
24434         const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
24435         return nativeResponseValue;
24436 }
24437         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
24438 /* @internal */
24439 export function WarningMessage_read(ser: number): number {
24440         if(!isWasmInitialized) {
24441                 throw new Error("initializeWasm() must be awaited first!");
24442         }
24443         const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
24444         return nativeResponseValue;
24445 }
24446         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
24447 /* @internal */
24448 export function UnsignedNodeAnnouncement_write(obj: number): number {
24449         if(!isWasmInitialized) {
24450                 throw new Error("initializeWasm() must be awaited first!");
24451         }
24452         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
24453         return nativeResponseValue;
24454 }
24455         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
24456 /* @internal */
24457 export function UnsignedNodeAnnouncement_read(ser: number): number {
24458         if(!isWasmInitialized) {
24459                 throw new Error("initializeWasm() must be awaited first!");
24460         }
24461         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
24462         return nativeResponseValue;
24463 }
24464         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
24465 /* @internal */
24466 export function NodeAnnouncement_write(obj: number): number {
24467         if(!isWasmInitialized) {
24468                 throw new Error("initializeWasm() must be awaited first!");
24469         }
24470         const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
24471         return nativeResponseValue;
24472 }
24473         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
24474 /* @internal */
24475 export function NodeAnnouncement_read(ser: number): number {
24476         if(!isWasmInitialized) {
24477                 throw new Error("initializeWasm() must be awaited first!");
24478         }
24479         const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
24480         return nativeResponseValue;
24481 }
24482         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
24483 /* @internal */
24484 export function QueryShortChannelIds_read(ser: number): number {
24485         if(!isWasmInitialized) {
24486                 throw new Error("initializeWasm() must be awaited first!");
24487         }
24488         const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
24489         return nativeResponseValue;
24490 }
24491         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
24492 /* @internal */
24493 export function QueryShortChannelIds_write(obj: number): number {
24494         if(!isWasmInitialized) {
24495                 throw new Error("initializeWasm() must be awaited first!");
24496         }
24497         const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
24498         return nativeResponseValue;
24499 }
24500         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
24501 /* @internal */
24502 export function ReplyShortChannelIdsEnd_write(obj: number): number {
24503         if(!isWasmInitialized) {
24504                 throw new Error("initializeWasm() must be awaited first!");
24505         }
24506         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
24507         return nativeResponseValue;
24508 }
24509         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
24510 /* @internal */
24511 export function ReplyShortChannelIdsEnd_read(ser: number): number {
24512         if(!isWasmInitialized) {
24513                 throw new Error("initializeWasm() must be awaited first!");
24514         }
24515         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
24516         return nativeResponseValue;
24517 }
24518         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
24519 /* @internal */
24520 export function QueryChannelRange_end_blocknum(this_arg: number): number {
24521         if(!isWasmInitialized) {
24522                 throw new Error("initializeWasm() must be awaited first!");
24523         }
24524         const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
24525         return nativeResponseValue;
24526 }
24527         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
24528 /* @internal */
24529 export function QueryChannelRange_write(obj: number): number {
24530         if(!isWasmInitialized) {
24531                 throw new Error("initializeWasm() must be awaited first!");
24532         }
24533         const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
24534         return nativeResponseValue;
24535 }
24536         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
24537 /* @internal */
24538 export function QueryChannelRange_read(ser: number): number {
24539         if(!isWasmInitialized) {
24540                 throw new Error("initializeWasm() must be awaited first!");
24541         }
24542         const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
24543         return nativeResponseValue;
24544 }
24545         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
24546 /* @internal */
24547 export function ReplyChannelRange_read(ser: number): number {
24548         if(!isWasmInitialized) {
24549                 throw new Error("initializeWasm() must be awaited first!");
24550         }
24551         const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
24552         return nativeResponseValue;
24553 }
24554         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
24555 /* @internal */
24556 export function ReplyChannelRange_write(obj: number): number {
24557         if(!isWasmInitialized) {
24558                 throw new Error("initializeWasm() must be awaited first!");
24559         }
24560         const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
24561         return nativeResponseValue;
24562 }
24563         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
24564 /* @internal */
24565 export function GossipTimestampFilter_write(obj: number): number {
24566         if(!isWasmInitialized) {
24567                 throw new Error("initializeWasm() must be awaited first!");
24568         }
24569         const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
24570         return nativeResponseValue;
24571 }
24572         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
24573 /* @internal */
24574 export function GossipTimestampFilter_read(ser: number): number {
24575         if(!isWasmInitialized) {
24576                 throw new Error("initializeWasm() must be awaited first!");
24577         }
24578         const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
24579         return nativeResponseValue;
24580 }
24581         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
24582 /* @internal */
24583 export function CustomMessageHandler_free(this_ptr: number): void {
24584         if(!isWasmInitialized) {
24585                 throw new Error("initializeWasm() must be awaited first!");
24586         }
24587         const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
24588         // debug statements here
24589 }
24590         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
24591 /* @internal */
24592 export function IgnoringMessageHandler_free(this_obj: number): void {
24593         if(!isWasmInitialized) {
24594                 throw new Error("initializeWasm() must be awaited first!");
24595         }
24596         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
24597         // debug statements here
24598 }
24599         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
24600 /* @internal */
24601 export function IgnoringMessageHandler_new(): number {
24602         if(!isWasmInitialized) {
24603                 throw new Error("initializeWasm() must be awaited first!");
24604         }
24605         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
24606         return nativeResponseValue;
24607 }
24608         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24609 /* @internal */
24610 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24611         if(!isWasmInitialized) {
24612                 throw new Error("initializeWasm() must be awaited first!");
24613         }
24614         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
24615         return nativeResponseValue;
24616 }
24617         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24618 /* @internal */
24619 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: number): number {
24620         if(!isWasmInitialized) {
24621                 throw new Error("initializeWasm() must be awaited first!");
24622         }
24623         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
24624         return nativeResponseValue;
24625 }
24626         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24627 /* @internal */
24628 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: number): number {
24629         if(!isWasmInitialized) {
24630                 throw new Error("initializeWasm() must be awaited first!");
24631         }
24632         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
24633         return nativeResponseValue;
24634 }
24635         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24636 /* @internal */
24637 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: number): number {
24638         if(!isWasmInitialized) {
24639                 throw new Error("initializeWasm() must be awaited first!");
24640         }
24641         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
24642         return nativeResponseValue;
24643 }
24644         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
24645 /* @internal */
24646 export function ErroringMessageHandler_free(this_obj: number): void {
24647         if(!isWasmInitialized) {
24648                 throw new Error("initializeWasm() must be awaited first!");
24649         }
24650         const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
24651         // debug statements here
24652 }
24653         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
24654 /* @internal */
24655 export function ErroringMessageHandler_new(): number {
24656         if(!isWasmInitialized) {
24657                 throw new Error("initializeWasm() must be awaited first!");
24658         }
24659         const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
24660         return nativeResponseValue;
24661 }
24662         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24663 /* @internal */
24664 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24665         if(!isWasmInitialized) {
24666                 throw new Error("initializeWasm() must be awaited first!");
24667         }
24668         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
24669         return nativeResponseValue;
24670 }
24671         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24672 /* @internal */
24673 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: number): number {
24674         if(!isWasmInitialized) {
24675                 throw new Error("initializeWasm() must be awaited first!");
24676         }
24677         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
24678         return nativeResponseValue;
24679 }
24680         // void MessageHandler_free(struct LDKMessageHandler this_obj);
24681 /* @internal */
24682 export function MessageHandler_free(this_obj: number): void {
24683         if(!isWasmInitialized) {
24684                 throw new Error("initializeWasm() must be awaited first!");
24685         }
24686         const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
24687         // debug statements here
24688 }
24689         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24690 /* @internal */
24691 export function MessageHandler_get_chan_handler(this_ptr: number): number {
24692         if(!isWasmInitialized) {
24693                 throw new Error("initializeWasm() must be awaited first!");
24694         }
24695         const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
24696         return nativeResponseValue;
24697 }
24698         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
24699 /* @internal */
24700 export function MessageHandler_set_chan_handler(this_ptr: number, val: number): void {
24701         if(!isWasmInitialized) {
24702                 throw new Error("initializeWasm() must be awaited first!");
24703         }
24704         const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
24705         // debug statements here
24706 }
24707         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24708 /* @internal */
24709 export function MessageHandler_get_route_handler(this_ptr: number): number {
24710         if(!isWasmInitialized) {
24711                 throw new Error("initializeWasm() must be awaited first!");
24712         }
24713         const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
24714         return nativeResponseValue;
24715 }
24716         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
24717 /* @internal */
24718 export function MessageHandler_set_route_handler(this_ptr: number, val: number): void {
24719         if(!isWasmInitialized) {
24720                 throw new Error("initializeWasm() must be awaited first!");
24721         }
24722         const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
24723         // debug statements here
24724 }
24725         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
24726 /* @internal */
24727 export function MessageHandler_new(chan_handler_arg: number, route_handler_arg: number): number {
24728         if(!isWasmInitialized) {
24729                 throw new Error("initializeWasm() must be awaited first!");
24730         }
24731         const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg);
24732         return nativeResponseValue;
24733 }
24734         // uintptr_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
24735 /* @internal */
24736 export function SocketDescriptor_clone_ptr(arg: number): number {
24737         if(!isWasmInitialized) {
24738                 throw new Error("initializeWasm() must be awaited first!");
24739         }
24740         const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
24741         return nativeResponseValue;
24742 }
24743         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
24744 /* @internal */
24745 export function SocketDescriptor_clone(orig: number): number {
24746         if(!isWasmInitialized) {
24747                 throw new Error("initializeWasm() must be awaited first!");
24748         }
24749         const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
24750         return nativeResponseValue;
24751 }
24752         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
24753 /* @internal */
24754 export function SocketDescriptor_free(this_ptr: number): void {
24755         if(!isWasmInitialized) {
24756                 throw new Error("initializeWasm() must be awaited first!");
24757         }
24758         const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
24759         // debug statements here
24760 }
24761         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
24762 /* @internal */
24763 export function PeerHandleError_free(this_obj: number): void {
24764         if(!isWasmInitialized) {
24765                 throw new Error("initializeWasm() must be awaited first!");
24766         }
24767         const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
24768         // debug statements here
24769 }
24770         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
24771 /* @internal */
24772 export function PeerHandleError_get_no_connection_possible(this_ptr: number): boolean {
24773         if(!isWasmInitialized) {
24774                 throw new Error("initializeWasm() must be awaited first!");
24775         }
24776         const nativeResponseValue = wasm.TS_PeerHandleError_get_no_connection_possible(this_ptr);
24777         return nativeResponseValue;
24778 }
24779         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
24780 /* @internal */
24781 export function PeerHandleError_set_no_connection_possible(this_ptr: number, val: boolean): void {
24782         if(!isWasmInitialized) {
24783                 throw new Error("initializeWasm() must be awaited first!");
24784         }
24785         const nativeResponseValue = wasm.TS_PeerHandleError_set_no_connection_possible(this_ptr, val);
24786         // debug statements here
24787 }
24788         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
24789 /* @internal */
24790 export function PeerHandleError_new(no_connection_possible_arg: boolean): number {
24791         if(!isWasmInitialized) {
24792                 throw new Error("initializeWasm() must be awaited first!");
24793         }
24794         const nativeResponseValue = wasm.TS_PeerHandleError_new(no_connection_possible_arg);
24795         return nativeResponseValue;
24796 }
24797         // uintptr_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
24798 /* @internal */
24799 export function PeerHandleError_clone_ptr(arg: number): number {
24800         if(!isWasmInitialized) {
24801                 throw new Error("initializeWasm() must be awaited first!");
24802         }
24803         const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
24804         return nativeResponseValue;
24805 }
24806         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
24807 /* @internal */
24808 export function PeerHandleError_clone(orig: number): number {
24809         if(!isWasmInitialized) {
24810                 throw new Error("initializeWasm() must be awaited first!");
24811         }
24812         const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
24813         return nativeResponseValue;
24814 }
24815         // void PeerManager_free(struct LDKPeerManager this_obj);
24816 /* @internal */
24817 export function PeerManager_free(this_obj: number): void {
24818         if(!isWasmInitialized) {
24819                 throw new Error("initializeWasm() must be awaited first!");
24820         }
24821         const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
24822         // debug statements here
24823 }
24824         // 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);
24825 /* @internal */
24826 export function PeerManager_new(message_handler: number, our_node_secret: number, ephemeral_random_data: number, logger: number, custom_message_handler: number): number {
24827         if(!isWasmInitialized) {
24828                 throw new Error("initializeWasm() must be awaited first!");
24829         }
24830         const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, our_node_secret, ephemeral_random_data, logger, custom_message_handler);
24831         return nativeResponseValue;
24832 }
24833         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
24834 /* @internal */
24835 export function PeerManager_get_peer_node_ids(this_arg: number): number {
24836         if(!isWasmInitialized) {
24837                 throw new Error("initializeWasm() must be awaited first!");
24838         }
24839         const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
24840         return nativeResponseValue;
24841 }
24842         // 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);
24843 /* @internal */
24844 export function PeerManager_new_outbound_connection(this_arg: number, their_node_id: number, descriptor: number, remote_network_address: number): number {
24845         if(!isWasmInitialized) {
24846                 throw new Error("initializeWasm() must be awaited first!");
24847         }
24848         const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor, remote_network_address);
24849         return nativeResponseValue;
24850 }
24851         // 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);
24852 /* @internal */
24853 export function PeerManager_new_inbound_connection(this_arg: number, descriptor: number, remote_network_address: number): number {
24854         if(!isWasmInitialized) {
24855                 throw new Error("initializeWasm() must be awaited first!");
24856         }
24857         const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor, remote_network_address);
24858         return nativeResponseValue;
24859 }
24860         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
24861 /* @internal */
24862 export function PeerManager_write_buffer_space_avail(this_arg: number, descriptor: number): number {
24863         if(!isWasmInitialized) {
24864                 throw new Error("initializeWasm() must be awaited first!");
24865         }
24866         const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
24867         return nativeResponseValue;
24868 }
24869         // 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);
24870 /* @internal */
24871 export function PeerManager_read_event(this_arg: number, peer_descriptor: number, data: number): number {
24872         if(!isWasmInitialized) {
24873                 throw new Error("initializeWasm() must be awaited first!");
24874         }
24875         const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
24876         return nativeResponseValue;
24877 }
24878         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
24879 /* @internal */
24880 export function PeerManager_process_events(this_arg: number): void {
24881         if(!isWasmInitialized) {
24882                 throw new Error("initializeWasm() must be awaited first!");
24883         }
24884         const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
24885         // debug statements here
24886 }
24887         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
24888 /* @internal */
24889 export function PeerManager_socket_disconnected(this_arg: number, descriptor: number): void {
24890         if(!isWasmInitialized) {
24891                 throw new Error("initializeWasm() must be awaited first!");
24892         }
24893         const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
24894         // debug statements here
24895 }
24896         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
24897 /* @internal */
24898 export function PeerManager_disconnect_by_node_id(this_arg: number, node_id: number, no_connection_possible: boolean): void {
24899         if(!isWasmInitialized) {
24900                 throw new Error("initializeWasm() must be awaited first!");
24901         }
24902         const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id, no_connection_possible);
24903         // debug statements here
24904 }
24905         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
24906 /* @internal */
24907 export function PeerManager_disconnect_all_peers(this_arg: number): void {
24908         if(!isWasmInitialized) {
24909                 throw new Error("initializeWasm() must be awaited first!");
24910         }
24911         const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
24912         // debug statements here
24913 }
24914         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
24915 /* @internal */
24916 export function PeerManager_timer_tick_occurred(this_arg: number): void {
24917         if(!isWasmInitialized) {
24918                 throw new Error("initializeWasm() must be awaited first!");
24919         }
24920         const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
24921         // debug statements here
24922 }
24923         // uint64_t htlc_success_tx_weight(bool opt_anchors);
24924 /* @internal */
24925 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
24926         if(!isWasmInitialized) {
24927                 throw new Error("initializeWasm() must be awaited first!");
24928         }
24929         const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
24930         return nativeResponseValue;
24931 }
24932         // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
24933 /* @internal */
24934 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
24935         if(!isWasmInitialized) {
24936                 throw new Error("initializeWasm() must be awaited first!");
24937         }
24938         const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
24939         return nativeResponseValue;
24940 }
24941         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
24942 /* @internal */
24943 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
24944         if(!isWasmInitialized) {
24945                 throw new Error("initializeWasm() must be awaited first!");
24946         }
24947         const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
24948         return nativeResponseValue;
24949 }
24950         // 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);
24951 /* @internal */
24952 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 {
24953         if(!isWasmInitialized) {
24954                 throw new Error("initializeWasm() must be awaited first!");
24955         }
24956         const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
24957         return nativeResponseValue;
24958 }
24959         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
24960 /* @internal */
24961 export function CounterpartyCommitmentSecrets_free(this_obj: number): void {
24962         if(!isWasmInitialized) {
24963                 throw new Error("initializeWasm() must be awaited first!");
24964         }
24965         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
24966         // debug statements here
24967 }
24968         // uintptr_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
24969 /* @internal */
24970 export function CounterpartyCommitmentSecrets_clone_ptr(arg: number): number {
24971         if(!isWasmInitialized) {
24972                 throw new Error("initializeWasm() must be awaited first!");
24973         }
24974         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
24975         return nativeResponseValue;
24976 }
24977         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
24978 /* @internal */
24979 export function CounterpartyCommitmentSecrets_clone(orig: number): number {
24980         if(!isWasmInitialized) {
24981                 throw new Error("initializeWasm() must be awaited first!");
24982         }
24983         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
24984         return nativeResponseValue;
24985 }
24986         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
24987 /* @internal */
24988 export function CounterpartyCommitmentSecrets_new(): number {
24989         if(!isWasmInitialized) {
24990                 throw new Error("initializeWasm() must be awaited first!");
24991         }
24992         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
24993         return nativeResponseValue;
24994 }
24995         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
24996 /* @internal */
24997 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: number): bigint {
24998         if(!isWasmInitialized) {
24999                 throw new Error("initializeWasm() must be awaited first!");
25000         }
25001         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
25002         return nativeResponseValue;
25003 }
25004         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
25005 /* @internal */
25006 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: number, idx: bigint, secret: number): number {
25007         if(!isWasmInitialized) {
25008                 throw new Error("initializeWasm() must be awaited first!");
25009         }
25010         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
25011         return nativeResponseValue;
25012 }
25013         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
25014 /* @internal */
25015 export function CounterpartyCommitmentSecrets_get_secret(this_arg: number, idx: bigint): number {
25016         if(!isWasmInitialized) {
25017                 throw new Error("initializeWasm() must be awaited first!");
25018         }
25019         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
25020         return nativeResponseValue;
25021 }
25022         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
25023 /* @internal */
25024 export function CounterpartyCommitmentSecrets_write(obj: number): number {
25025         if(!isWasmInitialized) {
25026                 throw new Error("initializeWasm() must be awaited first!");
25027         }
25028         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
25029         return nativeResponseValue;
25030 }
25031         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
25032 /* @internal */
25033 export function CounterpartyCommitmentSecrets_read(ser: number): number {
25034         if(!isWasmInitialized) {
25035                 throw new Error("initializeWasm() must be awaited first!");
25036         }
25037         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
25038         return nativeResponseValue;
25039 }
25040         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
25041 /* @internal */
25042 export function derive_private_key(per_commitment_point: number, base_secret: number): number {
25043         if(!isWasmInitialized) {
25044                 throw new Error("initializeWasm() must be awaited first!");
25045         }
25046         const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
25047         return nativeResponseValue;
25048 }
25049         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
25050 /* @internal */
25051 export function derive_public_key(per_commitment_point: number, base_point: number): number {
25052         if(!isWasmInitialized) {
25053                 throw new Error("initializeWasm() must be awaited first!");
25054         }
25055         const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
25056         return nativeResponseValue;
25057 }
25058         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
25059 /* @internal */
25060 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): number {
25061         if(!isWasmInitialized) {
25062                 throw new Error("initializeWasm() must be awaited first!");
25063         }
25064         const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
25065         return nativeResponseValue;
25066 }
25067         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
25068 /* @internal */
25069 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): number {
25070         if(!isWasmInitialized) {
25071                 throw new Error("initializeWasm() must be awaited first!");
25072         }
25073         const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
25074         return nativeResponseValue;
25075 }
25076         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
25077 /* @internal */
25078 export function TxCreationKeys_free(this_obj: number): void {
25079         if(!isWasmInitialized) {
25080                 throw new Error("initializeWasm() must be awaited first!");
25081         }
25082         const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
25083         // debug statements here
25084 }
25085         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25086 /* @internal */
25087 export function TxCreationKeys_get_per_commitment_point(this_ptr: number): number {
25088         if(!isWasmInitialized) {
25089                 throw new Error("initializeWasm() must be awaited first!");
25090         }
25091         const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
25092         return nativeResponseValue;
25093 }
25094         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25095 /* @internal */
25096 export function TxCreationKeys_set_per_commitment_point(this_ptr: number, val: number): void {
25097         if(!isWasmInitialized) {
25098                 throw new Error("initializeWasm() must be awaited first!");
25099         }
25100         const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
25101         // debug statements here
25102 }
25103         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25104 /* @internal */
25105 export function TxCreationKeys_get_revocation_key(this_ptr: number): number {
25106         if(!isWasmInitialized) {
25107                 throw new Error("initializeWasm() must be awaited first!");
25108         }
25109         const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
25110         return nativeResponseValue;
25111 }
25112         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25113 /* @internal */
25114 export function TxCreationKeys_set_revocation_key(this_ptr: number, val: number): void {
25115         if(!isWasmInitialized) {
25116                 throw new Error("initializeWasm() must be awaited first!");
25117         }
25118         const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
25119         // debug statements here
25120 }
25121         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25122 /* @internal */
25123 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: number): number {
25124         if(!isWasmInitialized) {
25125                 throw new Error("initializeWasm() must be awaited first!");
25126         }
25127         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
25128         return nativeResponseValue;
25129 }
25130         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25131 /* @internal */
25132 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: number, val: number): void {
25133         if(!isWasmInitialized) {
25134                 throw new Error("initializeWasm() must be awaited first!");
25135         }
25136         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
25137         // debug statements here
25138 }
25139         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25140 /* @internal */
25141 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: number): number {
25142         if(!isWasmInitialized) {
25143                 throw new Error("initializeWasm() must be awaited first!");
25144         }
25145         const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
25146         return nativeResponseValue;
25147 }
25148         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25149 /* @internal */
25150 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: number, val: number): void {
25151         if(!isWasmInitialized) {
25152                 throw new Error("initializeWasm() must be awaited first!");
25153         }
25154         const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
25155         // debug statements here
25156 }
25157         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25158 /* @internal */
25159 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: number): number {
25160         if(!isWasmInitialized) {
25161                 throw new Error("initializeWasm() must be awaited first!");
25162         }
25163         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
25164         return nativeResponseValue;
25165 }
25166         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25167 /* @internal */
25168 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: number, val: number): void {
25169         if(!isWasmInitialized) {
25170                 throw new Error("initializeWasm() must be awaited first!");
25171         }
25172         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
25173         // debug statements here
25174 }
25175         // 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);
25176 /* @internal */
25177 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 {
25178         if(!isWasmInitialized) {
25179                 throw new Error("initializeWasm() must be awaited first!");
25180         }
25181         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);
25182         return nativeResponseValue;
25183 }
25184         // uintptr_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
25185 /* @internal */
25186 export function TxCreationKeys_clone_ptr(arg: number): number {
25187         if(!isWasmInitialized) {
25188                 throw new Error("initializeWasm() must be awaited first!");
25189         }
25190         const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
25191         return nativeResponseValue;
25192 }
25193         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
25194 /* @internal */
25195 export function TxCreationKeys_clone(orig: number): number {
25196         if(!isWasmInitialized) {
25197                 throw new Error("initializeWasm() must be awaited first!");
25198         }
25199         const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
25200         return nativeResponseValue;
25201 }
25202         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
25203 /* @internal */
25204 export function TxCreationKeys_write(obj: number): number {
25205         if(!isWasmInitialized) {
25206                 throw new Error("initializeWasm() must be awaited first!");
25207         }
25208         const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
25209         return nativeResponseValue;
25210 }
25211         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
25212 /* @internal */
25213 export function TxCreationKeys_read(ser: number): number {
25214         if(!isWasmInitialized) {
25215                 throw new Error("initializeWasm() must be awaited first!");
25216         }
25217         const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
25218         return nativeResponseValue;
25219 }
25220         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
25221 /* @internal */
25222 export function ChannelPublicKeys_free(this_obj: number): void {
25223         if(!isWasmInitialized) {
25224                 throw new Error("initializeWasm() must be awaited first!");
25225         }
25226         const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
25227         // debug statements here
25228 }
25229         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25230 /* @internal */
25231 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: number): number {
25232         if(!isWasmInitialized) {
25233                 throw new Error("initializeWasm() must be awaited first!");
25234         }
25235         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
25236         return nativeResponseValue;
25237 }
25238         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25239 /* @internal */
25240 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: number, val: number): void {
25241         if(!isWasmInitialized) {
25242                 throw new Error("initializeWasm() must be awaited first!");
25243         }
25244         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
25245         // debug statements here
25246 }
25247         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25248 /* @internal */
25249 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: number): number {
25250         if(!isWasmInitialized) {
25251                 throw new Error("initializeWasm() must be awaited first!");
25252         }
25253         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
25254         return nativeResponseValue;
25255 }
25256         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25257 /* @internal */
25258 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: number, val: number): void {
25259         if(!isWasmInitialized) {
25260                 throw new Error("initializeWasm() must be awaited first!");
25261         }
25262         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
25263         // debug statements here
25264 }
25265         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25266 /* @internal */
25267 export function ChannelPublicKeys_get_payment_point(this_ptr: number): number {
25268         if(!isWasmInitialized) {
25269                 throw new Error("initializeWasm() must be awaited first!");
25270         }
25271         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
25272         return nativeResponseValue;
25273 }
25274         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25275 /* @internal */
25276 export function ChannelPublicKeys_set_payment_point(this_ptr: number, val: number): void {
25277         if(!isWasmInitialized) {
25278                 throw new Error("initializeWasm() must be awaited first!");
25279         }
25280         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
25281         // debug statements here
25282 }
25283         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25284 /* @internal */
25285 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: number): number {
25286         if(!isWasmInitialized) {
25287                 throw new Error("initializeWasm() must be awaited first!");
25288         }
25289         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
25290         return nativeResponseValue;
25291 }
25292         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25293 /* @internal */
25294 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
25295         if(!isWasmInitialized) {
25296                 throw new Error("initializeWasm() must be awaited first!");
25297         }
25298         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
25299         // debug statements here
25300 }
25301         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25302 /* @internal */
25303 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: number): number {
25304         if(!isWasmInitialized) {
25305                 throw new Error("initializeWasm() must be awaited first!");
25306         }
25307         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
25308         return nativeResponseValue;
25309 }
25310         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25311 /* @internal */
25312 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: number, val: number): void {
25313         if(!isWasmInitialized) {
25314                 throw new Error("initializeWasm() must be awaited first!");
25315         }
25316         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
25317         // debug statements here
25318 }
25319         // 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);
25320 /* @internal */
25321 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 {
25322         if(!isWasmInitialized) {
25323                 throw new Error("initializeWasm() must be awaited first!");
25324         }
25325         const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
25326         return nativeResponseValue;
25327 }
25328         // uintptr_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
25329 /* @internal */
25330 export function ChannelPublicKeys_clone_ptr(arg: number): number {
25331         if(!isWasmInitialized) {
25332                 throw new Error("initializeWasm() must be awaited first!");
25333         }
25334         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
25335         return nativeResponseValue;
25336 }
25337         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
25338 /* @internal */
25339 export function ChannelPublicKeys_clone(orig: number): number {
25340         if(!isWasmInitialized) {
25341                 throw new Error("initializeWasm() must be awaited first!");
25342         }
25343         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
25344         return nativeResponseValue;
25345 }
25346         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
25347 /* @internal */
25348 export function ChannelPublicKeys_write(obj: number): number {
25349         if(!isWasmInitialized) {
25350                 throw new Error("initializeWasm() must be awaited first!");
25351         }
25352         const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
25353         return nativeResponseValue;
25354 }
25355         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
25356 /* @internal */
25357 export function ChannelPublicKeys_read(ser: number): number {
25358         if(!isWasmInitialized) {
25359                 throw new Error("initializeWasm() must be awaited first!");
25360         }
25361         const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
25362         return nativeResponseValue;
25363 }
25364         // 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);
25365 /* @internal */
25366 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 {
25367         if(!isWasmInitialized) {
25368                 throw new Error("initializeWasm() must be awaited first!");
25369         }
25370         const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
25371         return nativeResponseValue;
25372 }
25373         // 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);
25374 /* @internal */
25375 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: number, countersignatory_keys: number): number {
25376         if(!isWasmInitialized) {
25377                 throw new Error("initializeWasm() must be awaited first!");
25378         }
25379         const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
25380         return nativeResponseValue;
25381 }
25382         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
25383 /* @internal */
25384 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
25385         if(!isWasmInitialized) {
25386                 throw new Error("initializeWasm() must be awaited first!");
25387         }
25388         const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
25389         return nativeResponseValue;
25390 }
25391         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
25392 /* @internal */
25393 export function HTLCOutputInCommitment_free(this_obj: number): void {
25394         if(!isWasmInitialized) {
25395                 throw new Error("initializeWasm() must be awaited first!");
25396         }
25397         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
25398         // debug statements here
25399 }
25400         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25401 /* @internal */
25402 export function HTLCOutputInCommitment_get_offered(this_ptr: number): boolean {
25403         if(!isWasmInitialized) {
25404                 throw new Error("initializeWasm() must be awaited first!");
25405         }
25406         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
25407         return nativeResponseValue;
25408 }
25409         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
25410 /* @internal */
25411 export function HTLCOutputInCommitment_set_offered(this_ptr: number, val: boolean): void {
25412         if(!isWasmInitialized) {
25413                 throw new Error("initializeWasm() must be awaited first!");
25414         }
25415         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
25416         // debug statements here
25417 }
25418         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25419 /* @internal */
25420 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: number): bigint {
25421         if(!isWasmInitialized) {
25422                 throw new Error("initializeWasm() must be awaited first!");
25423         }
25424         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
25425         return nativeResponseValue;
25426 }
25427         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
25428 /* @internal */
25429 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: number, val: bigint): void {
25430         if(!isWasmInitialized) {
25431                 throw new Error("initializeWasm() must be awaited first!");
25432         }
25433         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
25434         // debug statements here
25435 }
25436         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25437 /* @internal */
25438 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: number): number {
25439         if(!isWasmInitialized) {
25440                 throw new Error("initializeWasm() must be awaited first!");
25441         }
25442         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
25443         return nativeResponseValue;
25444 }
25445         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
25446 /* @internal */
25447 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: number, val: number): void {
25448         if(!isWasmInitialized) {
25449                 throw new Error("initializeWasm() must be awaited first!");
25450         }
25451         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
25452         // debug statements here
25453 }
25454         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
25455 /* @internal */
25456 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: number): number {
25457         if(!isWasmInitialized) {
25458                 throw new Error("initializeWasm() must be awaited first!");
25459         }
25460         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
25461         return nativeResponseValue;
25462 }
25463         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25464 /* @internal */
25465 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: number, val: number): void {
25466         if(!isWasmInitialized) {
25467                 throw new Error("initializeWasm() must be awaited first!");
25468         }
25469         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
25470         // debug statements here
25471 }
25472         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25473 /* @internal */
25474 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: number): number {
25475         if(!isWasmInitialized) {
25476                 throw new Error("initializeWasm() must be awaited first!");
25477         }
25478         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
25479         return nativeResponseValue;
25480 }
25481         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
25482 /* @internal */
25483 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: number, val: number): void {
25484         if(!isWasmInitialized) {
25485                 throw new Error("initializeWasm() must be awaited first!");
25486         }
25487         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
25488         // debug statements here
25489 }
25490         // 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);
25491 /* @internal */
25492 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 {
25493         if(!isWasmInitialized) {
25494                 throw new Error("initializeWasm() must be awaited first!");
25495         }
25496         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
25497         return nativeResponseValue;
25498 }
25499         // uintptr_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
25500 /* @internal */
25501 export function HTLCOutputInCommitment_clone_ptr(arg: number): number {
25502         if(!isWasmInitialized) {
25503                 throw new Error("initializeWasm() must be awaited first!");
25504         }
25505         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
25506         return nativeResponseValue;
25507 }
25508         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
25509 /* @internal */
25510 export function HTLCOutputInCommitment_clone(orig: number): number {
25511         if(!isWasmInitialized) {
25512                 throw new Error("initializeWasm() must be awaited first!");
25513         }
25514         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
25515         return nativeResponseValue;
25516 }
25517         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
25518 /* @internal */
25519 export function HTLCOutputInCommitment_write(obj: number): number {
25520         if(!isWasmInitialized) {
25521                 throw new Error("initializeWasm() must be awaited first!");
25522         }
25523         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
25524         return nativeResponseValue;
25525 }
25526         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
25527 /* @internal */
25528 export function HTLCOutputInCommitment_read(ser: number): number {
25529         if(!isWasmInitialized) {
25530                 throw new Error("initializeWasm() must be awaited first!");
25531         }
25532         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
25533         return nativeResponseValue;
25534 }
25535         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
25536 /* @internal */
25537 export function get_htlc_redeemscript(htlc: number, opt_anchors: boolean, keys: number): number {
25538         if(!isWasmInitialized) {
25539                 throw new Error("initializeWasm() must be awaited first!");
25540         }
25541         const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
25542         return nativeResponseValue;
25543 }
25544         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
25545 /* @internal */
25546 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
25547         if(!isWasmInitialized) {
25548                 throw new Error("initializeWasm() must be awaited first!");
25549         }
25550         const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
25551         return nativeResponseValue;
25552 }
25553         // 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);
25554 /* @internal */
25555 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 {
25556         if(!isWasmInitialized) {
25557                 throw new Error("initializeWasm() must be awaited first!");
25558         }
25559         const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, broadcaster_delayed_payment_key, revocation_key);
25560         return nativeResponseValue;
25561 }
25562         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
25563 /* @internal */
25564 export function get_anchor_redeemscript(funding_pubkey: number): number {
25565         if(!isWasmInitialized) {
25566                 throw new Error("initializeWasm() must be awaited first!");
25567         }
25568         const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
25569         return nativeResponseValue;
25570 }
25571         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
25572 /* @internal */
25573 export function ChannelTransactionParameters_free(this_obj: number): void {
25574         if(!isWasmInitialized) {
25575                 throw new Error("initializeWasm() must be awaited first!");
25576         }
25577         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
25578         // debug statements here
25579 }
25580         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25581 /* @internal */
25582 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: number): number {
25583         if(!isWasmInitialized) {
25584                 throw new Error("initializeWasm() must be awaited first!");
25585         }
25586         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
25587         return nativeResponseValue;
25588 }
25589         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
25590 /* @internal */
25591 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: number, val: number): void {
25592         if(!isWasmInitialized) {
25593                 throw new Error("initializeWasm() must be awaited first!");
25594         }
25595         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
25596         // debug statements here
25597 }
25598         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25599 /* @internal */
25600 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: number): number {
25601         if(!isWasmInitialized) {
25602                 throw new Error("initializeWasm() must be awaited first!");
25603         }
25604         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
25605         return nativeResponseValue;
25606 }
25607         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
25608 /* @internal */
25609 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: number, val: number): void {
25610         if(!isWasmInitialized) {
25611                 throw new Error("initializeWasm() must be awaited first!");
25612         }
25613         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
25614         // debug statements here
25615 }
25616         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25617 /* @internal */
25618 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: number): boolean {
25619         if(!isWasmInitialized) {
25620                 throw new Error("initializeWasm() must be awaited first!");
25621         }
25622         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
25623         return nativeResponseValue;
25624 }
25625         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
25626 /* @internal */
25627 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: number, val: boolean): void {
25628         if(!isWasmInitialized) {
25629                 throw new Error("initializeWasm() must be awaited first!");
25630         }
25631         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
25632         // debug statements here
25633 }
25634         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25635 /* @internal */
25636 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: number): number {
25637         if(!isWasmInitialized) {
25638                 throw new Error("initializeWasm() must be awaited first!");
25639         }
25640         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
25641         return nativeResponseValue;
25642 }
25643         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
25644 /* @internal */
25645 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: number, val: number): void {
25646         if(!isWasmInitialized) {
25647                 throw new Error("initializeWasm() must be awaited first!");
25648         }
25649         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
25650         // debug statements here
25651 }
25652         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25653 /* @internal */
25654 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: number): number {
25655         if(!isWasmInitialized) {
25656                 throw new Error("initializeWasm() must be awaited first!");
25657         }
25658         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
25659         return nativeResponseValue;
25660 }
25661         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
25662 /* @internal */
25663 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: number, val: number): void {
25664         if(!isWasmInitialized) {
25665                 throw new Error("initializeWasm() must be awaited first!");
25666         }
25667         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
25668         // debug statements here
25669 }
25670         // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25671 /* @internal */
25672 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: number): COption_NoneZ {
25673         if(!isWasmInitialized) {
25674                 throw new Error("initializeWasm() must be awaited first!");
25675         }
25676         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
25677         return nativeResponseValue;
25678 }
25679         // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
25680 /* @internal */
25681 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: number, val: COption_NoneZ): void {
25682         if(!isWasmInitialized) {
25683                 throw new Error("initializeWasm() must be awaited first!");
25684         }
25685         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
25686         // debug statements here
25687 }
25688         // 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);
25689 /* @internal */
25690 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 {
25691         if(!isWasmInitialized) {
25692                 throw new Error("initializeWasm() must be awaited first!");
25693         }
25694         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);
25695         return nativeResponseValue;
25696 }
25697         // uintptr_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
25698 /* @internal */
25699 export function ChannelTransactionParameters_clone_ptr(arg: number): number {
25700         if(!isWasmInitialized) {
25701                 throw new Error("initializeWasm() must be awaited first!");
25702         }
25703         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
25704         return nativeResponseValue;
25705 }
25706         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
25707 /* @internal */
25708 export function ChannelTransactionParameters_clone(orig: number): number {
25709         if(!isWasmInitialized) {
25710                 throw new Error("initializeWasm() must be awaited first!");
25711         }
25712         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
25713         return nativeResponseValue;
25714 }
25715         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
25716 /* @internal */
25717 export function CounterpartyChannelTransactionParameters_free(this_obj: number): void {
25718         if(!isWasmInitialized) {
25719                 throw new Error("initializeWasm() must be awaited first!");
25720         }
25721         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
25722         // debug statements here
25723 }
25724         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
25725 /* @internal */
25726 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: number): number {
25727         if(!isWasmInitialized) {
25728                 throw new Error("initializeWasm() must be awaited first!");
25729         }
25730         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
25731         return nativeResponseValue;
25732 }
25733         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
25734 /* @internal */
25735 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: number, val: number): void {
25736         if(!isWasmInitialized) {
25737                 throw new Error("initializeWasm() must be awaited first!");
25738         }
25739         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
25740         // debug statements here
25741 }
25742         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
25743 /* @internal */
25744 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: number): number {
25745         if(!isWasmInitialized) {
25746                 throw new Error("initializeWasm() must be awaited first!");
25747         }
25748         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
25749         return nativeResponseValue;
25750 }
25751         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
25752 /* @internal */
25753 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: number, val: number): void {
25754         if(!isWasmInitialized) {
25755                 throw new Error("initializeWasm() must be awaited first!");
25756         }
25757         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
25758         // debug statements here
25759 }
25760         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
25761 /* @internal */
25762 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: number, selected_contest_delay_arg: number): number {
25763         if(!isWasmInitialized) {
25764                 throw new Error("initializeWasm() must be awaited first!");
25765         }
25766         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
25767         return nativeResponseValue;
25768 }
25769         // uintptr_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
25770 /* @internal */
25771 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: number): number {
25772         if(!isWasmInitialized) {
25773                 throw new Error("initializeWasm() must be awaited first!");
25774         }
25775         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
25776         return nativeResponseValue;
25777 }
25778         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
25779 /* @internal */
25780 export function CounterpartyChannelTransactionParameters_clone(orig: number): number {
25781         if(!isWasmInitialized) {
25782                 throw new Error("initializeWasm() must be awaited first!");
25783         }
25784         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
25785         return nativeResponseValue;
25786 }
25787         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
25788 /* @internal */
25789 export function ChannelTransactionParameters_is_populated(this_arg: number): boolean {
25790         if(!isWasmInitialized) {
25791                 throw new Error("initializeWasm() must be awaited first!");
25792         }
25793         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
25794         return nativeResponseValue;
25795 }
25796         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
25797 /* @internal */
25798 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: number): number {
25799         if(!isWasmInitialized) {
25800                 throw new Error("initializeWasm() must be awaited first!");
25801         }
25802         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
25803         return nativeResponseValue;
25804 }
25805         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
25806 /* @internal */
25807 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: number): number {
25808         if(!isWasmInitialized) {
25809                 throw new Error("initializeWasm() must be awaited first!");
25810         }
25811         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
25812         return nativeResponseValue;
25813 }
25814         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
25815 /* @internal */
25816 export function CounterpartyChannelTransactionParameters_write(obj: number): number {
25817         if(!isWasmInitialized) {
25818                 throw new Error("initializeWasm() must be awaited first!");
25819         }
25820         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
25821         return nativeResponseValue;
25822 }
25823         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
25824 /* @internal */
25825 export function CounterpartyChannelTransactionParameters_read(ser: number): number {
25826         if(!isWasmInitialized) {
25827                 throw new Error("initializeWasm() must be awaited first!");
25828         }
25829         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
25830         return nativeResponseValue;
25831 }
25832         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
25833 /* @internal */
25834 export function ChannelTransactionParameters_write(obj: number): number {
25835         if(!isWasmInitialized) {
25836                 throw new Error("initializeWasm() must be awaited first!");
25837         }
25838         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
25839         return nativeResponseValue;
25840 }
25841         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
25842 /* @internal */
25843 export function ChannelTransactionParameters_read(ser: number): number {
25844         if(!isWasmInitialized) {
25845                 throw new Error("initializeWasm() must be awaited first!");
25846         }
25847         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
25848         return nativeResponseValue;
25849 }
25850         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
25851 /* @internal */
25852 export function DirectedChannelTransactionParameters_free(this_obj: number): void {
25853         if(!isWasmInitialized) {
25854                 throw new Error("initializeWasm() must be awaited first!");
25855         }
25856         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
25857         // debug statements here
25858 }
25859         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25860 /* @internal */
25861 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: number): number {
25862         if(!isWasmInitialized) {
25863                 throw new Error("initializeWasm() must be awaited first!");
25864         }
25865         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
25866         return nativeResponseValue;
25867 }
25868         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25869 /* @internal */
25870 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: number): number {
25871         if(!isWasmInitialized) {
25872                 throw new Error("initializeWasm() must be awaited first!");
25873         }
25874         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
25875         return nativeResponseValue;
25876 }
25877         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25878 /* @internal */
25879 export function DirectedChannelTransactionParameters_contest_delay(this_arg: number): number {
25880         if(!isWasmInitialized) {
25881                 throw new Error("initializeWasm() must be awaited first!");
25882         }
25883         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
25884         return nativeResponseValue;
25885 }
25886         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25887 /* @internal */
25888 export function DirectedChannelTransactionParameters_is_outbound(this_arg: number): boolean {
25889         if(!isWasmInitialized) {
25890                 throw new Error("initializeWasm() must be awaited first!");
25891         }
25892         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
25893         return nativeResponseValue;
25894 }
25895         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25896 /* @internal */
25897 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: number): number {
25898         if(!isWasmInitialized) {
25899                 throw new Error("initializeWasm() must be awaited first!");
25900         }
25901         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
25902         return nativeResponseValue;
25903 }
25904         // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25905 /* @internal */
25906 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: number): boolean {
25907         if(!isWasmInitialized) {
25908                 throw new Error("initializeWasm() must be awaited first!");
25909         }
25910         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
25911         return nativeResponseValue;
25912 }
25913         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
25914 /* @internal */
25915 export function HolderCommitmentTransaction_free(this_obj: number): void {
25916         if(!isWasmInitialized) {
25917                 throw new Error("initializeWasm() must be awaited first!");
25918         }
25919         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
25920         // debug statements here
25921 }
25922         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
25923 /* @internal */
25924 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: number): number {
25925         if(!isWasmInitialized) {
25926                 throw new Error("initializeWasm() must be awaited first!");
25927         }
25928         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
25929         return nativeResponseValue;
25930 }
25931         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
25932 /* @internal */
25933 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: number, val: number): void {
25934         if(!isWasmInitialized) {
25935                 throw new Error("initializeWasm() must be awaited first!");
25936         }
25937         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
25938         // debug statements here
25939 }
25940         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
25941 /* @internal */
25942 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: number, val: number): void {
25943         if(!isWasmInitialized) {
25944                 throw new Error("initializeWasm() must be awaited first!");
25945         }
25946         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
25947         // debug statements here
25948 }
25949         // uintptr_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
25950 /* @internal */
25951 export function HolderCommitmentTransaction_clone_ptr(arg: number): number {
25952         if(!isWasmInitialized) {
25953                 throw new Error("initializeWasm() must be awaited first!");
25954         }
25955         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
25956         return nativeResponseValue;
25957 }
25958         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
25959 /* @internal */
25960 export function HolderCommitmentTransaction_clone(orig: number): number {
25961         if(!isWasmInitialized) {
25962                 throw new Error("initializeWasm() must be awaited first!");
25963         }
25964         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
25965         return nativeResponseValue;
25966 }
25967         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
25968 /* @internal */
25969 export function HolderCommitmentTransaction_write(obj: number): number {
25970         if(!isWasmInitialized) {
25971                 throw new Error("initializeWasm() must be awaited first!");
25972         }
25973         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
25974         return nativeResponseValue;
25975 }
25976         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
25977 /* @internal */
25978 export function HolderCommitmentTransaction_read(ser: number): number {
25979         if(!isWasmInitialized) {
25980                 throw new Error("initializeWasm() must be awaited first!");
25981         }
25982         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
25983         return nativeResponseValue;
25984 }
25985         // 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);
25986 /* @internal */
25987 export function HolderCommitmentTransaction_new(commitment_tx: number, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): number {
25988         if(!isWasmInitialized) {
25989                 throw new Error("initializeWasm() must be awaited first!");
25990         }
25991         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
25992         return nativeResponseValue;
25993 }
25994         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
25995 /* @internal */
25996 export function BuiltCommitmentTransaction_free(this_obj: number): void {
25997         if(!isWasmInitialized) {
25998                 throw new Error("initializeWasm() must be awaited first!");
25999         }
26000         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
26001         // debug statements here
26002 }
26003         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
26004 /* @internal */
26005 export function BuiltCommitmentTransaction_get_transaction(this_ptr: number): number {
26006         if(!isWasmInitialized) {
26007                 throw new Error("initializeWasm() must be awaited first!");
26008         }
26009         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
26010         return nativeResponseValue;
26011 }
26012         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
26013 /* @internal */
26014 export function BuiltCommitmentTransaction_set_transaction(this_ptr: number, val: number): void {
26015         if(!isWasmInitialized) {
26016                 throw new Error("initializeWasm() must be awaited first!");
26017         }
26018         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
26019         // debug statements here
26020 }
26021         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
26022 /* @internal */
26023 export function BuiltCommitmentTransaction_get_txid(this_ptr: number): number {
26024         if(!isWasmInitialized) {
26025                 throw new Error("initializeWasm() must be awaited first!");
26026         }
26027         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
26028         return nativeResponseValue;
26029 }
26030         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26031 /* @internal */
26032 export function BuiltCommitmentTransaction_set_txid(this_ptr: number, val: number): void {
26033         if(!isWasmInitialized) {
26034                 throw new Error("initializeWasm() must be awaited first!");
26035         }
26036         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
26037         // debug statements here
26038 }
26039         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
26040 /* @internal */
26041 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): number {
26042         if(!isWasmInitialized) {
26043                 throw new Error("initializeWasm() must be awaited first!");
26044         }
26045         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
26046         return nativeResponseValue;
26047 }
26048         // uintptr_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
26049 /* @internal */
26050 export function BuiltCommitmentTransaction_clone_ptr(arg: number): number {
26051         if(!isWasmInitialized) {
26052                 throw new Error("initializeWasm() must be awaited first!");
26053         }
26054         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
26055         return nativeResponseValue;
26056 }
26057         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
26058 /* @internal */
26059 export function BuiltCommitmentTransaction_clone(orig: number): number {
26060         if(!isWasmInitialized) {
26061                 throw new Error("initializeWasm() must be awaited first!");
26062         }
26063         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
26064         return nativeResponseValue;
26065 }
26066         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
26067 /* @internal */
26068 export function BuiltCommitmentTransaction_write(obj: number): number {
26069         if(!isWasmInitialized) {
26070                 throw new Error("initializeWasm() must be awaited first!");
26071         }
26072         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
26073         return nativeResponseValue;
26074 }
26075         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
26076 /* @internal */
26077 export function BuiltCommitmentTransaction_read(ser: number): number {
26078         if(!isWasmInitialized) {
26079                 throw new Error("initializeWasm() must be awaited first!");
26080         }
26081         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
26082         return nativeResponseValue;
26083 }
26084         // 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);
26085 /* @internal */
26086 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26087         if(!isWasmInitialized) {
26088                 throw new Error("initializeWasm() must be awaited first!");
26089         }
26090         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
26091         return nativeResponseValue;
26092 }
26093         // 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);
26094 /* @internal */
26095 export function BuiltCommitmentTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26096         if(!isWasmInitialized) {
26097                 throw new Error("initializeWasm() must be awaited first!");
26098         }
26099         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
26100         return nativeResponseValue;
26101 }
26102         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
26103 /* @internal */
26104 export function ClosingTransaction_free(this_obj: number): void {
26105         if(!isWasmInitialized) {
26106                 throw new Error("initializeWasm() must be awaited first!");
26107         }
26108         const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
26109         // debug statements here
26110 }
26111         // uintptr_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
26112 /* @internal */
26113 export function ClosingTransaction_clone_ptr(arg: number): number {
26114         if(!isWasmInitialized) {
26115                 throw new Error("initializeWasm() must be awaited first!");
26116         }
26117         const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
26118         return nativeResponseValue;
26119 }
26120         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
26121 /* @internal */
26122 export function ClosingTransaction_clone(orig: number): number {
26123         if(!isWasmInitialized) {
26124                 throw new Error("initializeWasm() must be awaited first!");
26125         }
26126         const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
26127         return nativeResponseValue;
26128 }
26129         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
26130 /* @internal */
26131 export function ClosingTransaction_hash(o: number): bigint {
26132         if(!isWasmInitialized) {
26133                 throw new Error("initializeWasm() must be awaited first!");
26134         }
26135         const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
26136         return nativeResponseValue;
26137 }
26138         // 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);
26139 /* @internal */
26140 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 {
26141         if(!isWasmInitialized) {
26142                 throw new Error("initializeWasm() must be awaited first!");
26143         }
26144         const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
26145         return nativeResponseValue;
26146 }
26147         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26148 /* @internal */
26149 export function ClosingTransaction_trust(this_arg: number): number {
26150         if(!isWasmInitialized) {
26151                 throw new Error("initializeWasm() must be awaited first!");
26152         }
26153         const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
26154         return nativeResponseValue;
26155 }
26156         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
26157 /* @internal */
26158 export function ClosingTransaction_verify(this_arg: number, funding_outpoint: number): number {
26159         if(!isWasmInitialized) {
26160                 throw new Error("initializeWasm() must be awaited first!");
26161         }
26162         const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
26163         return nativeResponseValue;
26164 }
26165         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26166 /* @internal */
26167 export function ClosingTransaction_to_holder_value_sat(this_arg: number): bigint {
26168         if(!isWasmInitialized) {
26169                 throw new Error("initializeWasm() must be awaited first!");
26170         }
26171         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
26172         return nativeResponseValue;
26173 }
26174         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26175 /* @internal */
26176 export function ClosingTransaction_to_counterparty_value_sat(this_arg: number): bigint {
26177         if(!isWasmInitialized) {
26178                 throw new Error("initializeWasm() must be awaited first!");
26179         }
26180         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
26181         return nativeResponseValue;
26182 }
26183         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26184 /* @internal */
26185 export function ClosingTransaction_to_holder_script(this_arg: number): number {
26186         if(!isWasmInitialized) {
26187                 throw new Error("initializeWasm() must be awaited first!");
26188         }
26189         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
26190         return nativeResponseValue;
26191 }
26192         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26193 /* @internal */
26194 export function ClosingTransaction_to_counterparty_script(this_arg: number): number {
26195         if(!isWasmInitialized) {
26196                 throw new Error("initializeWasm() must be awaited first!");
26197         }
26198         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
26199         return nativeResponseValue;
26200 }
26201         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
26202 /* @internal */
26203 export function TrustedClosingTransaction_free(this_obj: number): void {
26204         if(!isWasmInitialized) {
26205                 throw new Error("initializeWasm() must be awaited first!");
26206         }
26207         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
26208         // debug statements here
26209 }
26210         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
26211 /* @internal */
26212 export function TrustedClosingTransaction_built_transaction(this_arg: number): number {
26213         if(!isWasmInitialized) {
26214                 throw new Error("initializeWasm() must be awaited first!");
26215         }
26216         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
26217         return nativeResponseValue;
26218 }
26219         // 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);
26220 /* @internal */
26221 export function TrustedClosingTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26222         if(!isWasmInitialized) {
26223                 throw new Error("initializeWasm() must be awaited first!");
26224         }
26225         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
26226         return nativeResponseValue;
26227 }
26228         // 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);
26229 /* @internal */
26230 export function TrustedClosingTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26231         if(!isWasmInitialized) {
26232                 throw new Error("initializeWasm() must be awaited first!");
26233         }
26234         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
26235         return nativeResponseValue;
26236 }
26237         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
26238 /* @internal */
26239 export function CommitmentTransaction_free(this_obj: number): void {
26240         if(!isWasmInitialized) {
26241                 throw new Error("initializeWasm() must be awaited first!");
26242         }
26243         const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
26244         // debug statements here
26245 }
26246         // uintptr_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
26247 /* @internal */
26248 export function CommitmentTransaction_clone_ptr(arg: number): number {
26249         if(!isWasmInitialized) {
26250                 throw new Error("initializeWasm() must be awaited first!");
26251         }
26252         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
26253         return nativeResponseValue;
26254 }
26255         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
26256 /* @internal */
26257 export function CommitmentTransaction_clone(orig: number): number {
26258         if(!isWasmInitialized) {
26259                 throw new Error("initializeWasm() must be awaited first!");
26260         }
26261         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
26262         return nativeResponseValue;
26263 }
26264         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
26265 /* @internal */
26266 export function CommitmentTransaction_write(obj: number): number {
26267         if(!isWasmInitialized) {
26268                 throw new Error("initializeWasm() must be awaited first!");
26269         }
26270         const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
26271         return nativeResponseValue;
26272 }
26273         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
26274 /* @internal */
26275 export function CommitmentTransaction_read(ser: number): number {
26276         if(!isWasmInitialized) {
26277                 throw new Error("initializeWasm() must be awaited first!");
26278         }
26279         const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
26280         return nativeResponseValue;
26281 }
26282         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26283 /* @internal */
26284 export function CommitmentTransaction_commitment_number(this_arg: number): bigint {
26285         if(!isWasmInitialized) {
26286                 throw new Error("initializeWasm() must be awaited first!");
26287         }
26288         const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
26289         return nativeResponseValue;
26290 }
26291         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26292 /* @internal */
26293 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: number): bigint {
26294         if(!isWasmInitialized) {
26295                 throw new Error("initializeWasm() must be awaited first!");
26296         }
26297         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
26298         return nativeResponseValue;
26299 }
26300         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26301 /* @internal */
26302 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: number): bigint {
26303         if(!isWasmInitialized) {
26304                 throw new Error("initializeWasm() must be awaited first!");
26305         }
26306         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
26307         return nativeResponseValue;
26308 }
26309         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26310 /* @internal */
26311 export function CommitmentTransaction_feerate_per_kw(this_arg: number): number {
26312         if(!isWasmInitialized) {
26313                 throw new Error("initializeWasm() must be awaited first!");
26314         }
26315         const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
26316         return nativeResponseValue;
26317 }
26318         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26319 /* @internal */
26320 export function CommitmentTransaction_trust(this_arg: number): number {
26321         if(!isWasmInitialized) {
26322                 throw new Error("initializeWasm() must be awaited first!");
26323         }
26324         const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
26325         return nativeResponseValue;
26326 }
26327         // 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);
26328 /* @internal */
26329 export function CommitmentTransaction_verify(this_arg: number, channel_parameters: number, broadcaster_keys: number, countersignatory_keys: number): number {
26330         if(!isWasmInitialized) {
26331                 throw new Error("initializeWasm() must be awaited first!");
26332         }
26333         const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
26334         return nativeResponseValue;
26335 }
26336         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
26337 /* @internal */
26338 export function TrustedCommitmentTransaction_free(this_obj: number): void {
26339         if(!isWasmInitialized) {
26340                 throw new Error("initializeWasm() must be awaited first!");
26341         }
26342         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
26343         // debug statements here
26344 }
26345         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26346 /* @internal */
26347 export function TrustedCommitmentTransaction_txid(this_arg: number): number {
26348         if(!isWasmInitialized) {
26349                 throw new Error("initializeWasm() must be awaited first!");
26350         }
26351         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
26352         return nativeResponseValue;
26353 }
26354         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26355 /* @internal */
26356 export function TrustedCommitmentTransaction_built_transaction(this_arg: number): number {
26357         if(!isWasmInitialized) {
26358                 throw new Error("initializeWasm() must be awaited first!");
26359         }
26360         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
26361         return nativeResponseValue;
26362 }
26363         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26364 /* @internal */
26365 export function TrustedCommitmentTransaction_keys(this_arg: number): number {
26366         if(!isWasmInitialized) {
26367                 throw new Error("initializeWasm() must be awaited first!");
26368         }
26369         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
26370         return nativeResponseValue;
26371 }
26372         // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26373 /* @internal */
26374 export function TrustedCommitmentTransaction_opt_anchors(this_arg: number): boolean {
26375         if(!isWasmInitialized) {
26376                 throw new Error("initializeWasm() must be awaited first!");
26377         }
26378         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
26379         return nativeResponseValue;
26380 }
26381         // 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);
26382 /* @internal */
26383 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: number, htlc_base_key: number, channel_parameters: number): number {
26384         if(!isWasmInitialized) {
26385                 throw new Error("initializeWasm() must be awaited first!");
26386         }
26387         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters);
26388         return nativeResponseValue;
26389 }
26390         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
26391 /* @internal */
26392 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
26393         if(!isWasmInitialized) {
26394                 throw new Error("initializeWasm() must be awaited first!");
26395         }
26396         const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
26397         return nativeResponseValue;
26398 }
26399         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
26400 /* @internal */
26401 export function InitFeatures_eq(a: number, b: number): boolean {
26402         if(!isWasmInitialized) {
26403                 throw new Error("initializeWasm() must be awaited first!");
26404         }
26405         const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
26406         return nativeResponseValue;
26407 }
26408         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
26409 /* @internal */
26410 export function NodeFeatures_eq(a: number, b: number): boolean {
26411         if(!isWasmInitialized) {
26412                 throw new Error("initializeWasm() must be awaited first!");
26413         }
26414         const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
26415         return nativeResponseValue;
26416 }
26417         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
26418 /* @internal */
26419 export function ChannelFeatures_eq(a: number, b: number): boolean {
26420         if(!isWasmInitialized) {
26421                 throw new Error("initializeWasm() must be awaited first!");
26422         }
26423         const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
26424         return nativeResponseValue;
26425 }
26426         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
26427 /* @internal */
26428 export function InvoiceFeatures_eq(a: number, b: number): boolean {
26429         if(!isWasmInitialized) {
26430                 throw new Error("initializeWasm() must be awaited first!");
26431         }
26432         const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
26433         return nativeResponseValue;
26434 }
26435         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
26436 /* @internal */
26437 export function ChannelTypeFeatures_eq(a: number, b: number): boolean {
26438         if(!isWasmInitialized) {
26439                 throw new Error("initializeWasm() must be awaited first!");
26440         }
26441         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
26442         return nativeResponseValue;
26443 }
26444         // uintptr_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
26445 /* @internal */
26446 export function InitFeatures_clone_ptr(arg: number): number {
26447         if(!isWasmInitialized) {
26448                 throw new Error("initializeWasm() must be awaited first!");
26449         }
26450         const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
26451         return nativeResponseValue;
26452 }
26453         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
26454 /* @internal */
26455 export function InitFeatures_clone(orig: number): number {
26456         if(!isWasmInitialized) {
26457                 throw new Error("initializeWasm() must be awaited first!");
26458         }
26459         const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
26460         return nativeResponseValue;
26461 }
26462         // uintptr_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
26463 /* @internal */
26464 export function NodeFeatures_clone_ptr(arg: number): number {
26465         if(!isWasmInitialized) {
26466                 throw new Error("initializeWasm() must be awaited first!");
26467         }
26468         const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
26469         return nativeResponseValue;
26470 }
26471         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
26472 /* @internal */
26473 export function NodeFeatures_clone(orig: number): number {
26474         if(!isWasmInitialized) {
26475                 throw new Error("initializeWasm() must be awaited first!");
26476         }
26477         const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
26478         return nativeResponseValue;
26479 }
26480         // uintptr_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
26481 /* @internal */
26482 export function ChannelFeatures_clone_ptr(arg: number): number {
26483         if(!isWasmInitialized) {
26484                 throw new Error("initializeWasm() must be awaited first!");
26485         }
26486         const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
26487         return nativeResponseValue;
26488 }
26489         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
26490 /* @internal */
26491 export function ChannelFeatures_clone(orig: number): number {
26492         if(!isWasmInitialized) {
26493                 throw new Error("initializeWasm() must be awaited first!");
26494         }
26495         const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
26496         return nativeResponseValue;
26497 }
26498         // uintptr_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
26499 /* @internal */
26500 export function InvoiceFeatures_clone_ptr(arg: number): number {
26501         if(!isWasmInitialized) {
26502                 throw new Error("initializeWasm() must be awaited first!");
26503         }
26504         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
26505         return nativeResponseValue;
26506 }
26507         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
26508 /* @internal */
26509 export function InvoiceFeatures_clone(orig: number): number {
26510         if(!isWasmInitialized) {
26511                 throw new Error("initializeWasm() must be awaited first!");
26512         }
26513         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
26514         return nativeResponseValue;
26515 }
26516         // uintptr_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
26517 /* @internal */
26518 export function ChannelTypeFeatures_clone_ptr(arg: number): number {
26519         if(!isWasmInitialized) {
26520                 throw new Error("initializeWasm() must be awaited first!");
26521         }
26522         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
26523         return nativeResponseValue;
26524 }
26525         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
26526 /* @internal */
26527 export function ChannelTypeFeatures_clone(orig: number): number {
26528         if(!isWasmInitialized) {
26529                 throw new Error("initializeWasm() must be awaited first!");
26530         }
26531         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
26532         return nativeResponseValue;
26533 }
26534         // void InitFeatures_free(struct LDKInitFeatures this_obj);
26535 /* @internal */
26536 export function InitFeatures_free(this_obj: number): void {
26537         if(!isWasmInitialized) {
26538                 throw new Error("initializeWasm() must be awaited first!");
26539         }
26540         const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
26541         // debug statements here
26542 }
26543         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
26544 /* @internal */
26545 export function NodeFeatures_free(this_obj: number): void {
26546         if(!isWasmInitialized) {
26547                 throw new Error("initializeWasm() must be awaited first!");
26548         }
26549         const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
26550         // debug statements here
26551 }
26552         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
26553 /* @internal */
26554 export function ChannelFeatures_free(this_obj: number): void {
26555         if(!isWasmInitialized) {
26556                 throw new Error("initializeWasm() must be awaited first!");
26557         }
26558         const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
26559         // debug statements here
26560 }
26561         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
26562 /* @internal */
26563 export function InvoiceFeatures_free(this_obj: number): void {
26564         if(!isWasmInitialized) {
26565                 throw new Error("initializeWasm() must be awaited first!");
26566         }
26567         const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
26568         // debug statements here
26569 }
26570         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
26571 /* @internal */
26572 export function ChannelTypeFeatures_free(this_obj: number): void {
26573         if(!isWasmInitialized) {
26574                 throw new Error("initializeWasm() must be awaited first!");
26575         }
26576         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
26577         // debug statements here
26578 }
26579         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
26580 /* @internal */
26581 export function InitFeatures_empty(): number {
26582         if(!isWasmInitialized) {
26583                 throw new Error("initializeWasm() must be awaited first!");
26584         }
26585         const nativeResponseValue = wasm.TS_InitFeatures_empty();
26586         return nativeResponseValue;
26587 }
26588         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
26589 /* @internal */
26590 export function InitFeatures_known(): number {
26591         if(!isWasmInitialized) {
26592                 throw new Error("initializeWasm() must be awaited first!");
26593         }
26594         const nativeResponseValue = wasm.TS_InitFeatures_known();
26595         return nativeResponseValue;
26596 }
26597         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26598 /* @internal */
26599 export function InitFeatures_requires_unknown_bits(this_arg: number): boolean {
26600         if(!isWasmInitialized) {
26601                 throw new Error("initializeWasm() must be awaited first!");
26602         }
26603         const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
26604         return nativeResponseValue;
26605 }
26606         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
26607 /* @internal */
26608 export function NodeFeatures_empty(): number {
26609         if(!isWasmInitialized) {
26610                 throw new Error("initializeWasm() must be awaited first!");
26611         }
26612         const nativeResponseValue = wasm.TS_NodeFeatures_empty();
26613         return nativeResponseValue;
26614 }
26615         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
26616 /* @internal */
26617 export function NodeFeatures_known(): number {
26618         if(!isWasmInitialized) {
26619                 throw new Error("initializeWasm() must be awaited first!");
26620         }
26621         const nativeResponseValue = wasm.TS_NodeFeatures_known();
26622         return nativeResponseValue;
26623 }
26624         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26625 /* @internal */
26626 export function NodeFeatures_requires_unknown_bits(this_arg: number): boolean {
26627         if(!isWasmInitialized) {
26628                 throw new Error("initializeWasm() must be awaited first!");
26629         }
26630         const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
26631         return nativeResponseValue;
26632 }
26633         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
26634 /* @internal */
26635 export function ChannelFeatures_empty(): number {
26636         if(!isWasmInitialized) {
26637                 throw new Error("initializeWasm() must be awaited first!");
26638         }
26639         const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
26640         return nativeResponseValue;
26641 }
26642         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
26643 /* @internal */
26644 export function ChannelFeatures_known(): number {
26645         if(!isWasmInitialized) {
26646                 throw new Error("initializeWasm() must be awaited first!");
26647         }
26648         const nativeResponseValue = wasm.TS_ChannelFeatures_known();
26649         return nativeResponseValue;
26650 }
26651         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
26652 /* @internal */
26653 export function ChannelFeatures_requires_unknown_bits(this_arg: number): boolean {
26654         if(!isWasmInitialized) {
26655                 throw new Error("initializeWasm() must be awaited first!");
26656         }
26657         const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
26658         return nativeResponseValue;
26659 }
26660         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
26661 /* @internal */
26662 export function InvoiceFeatures_empty(): number {
26663         if(!isWasmInitialized) {
26664                 throw new Error("initializeWasm() must be awaited first!");
26665         }
26666         const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
26667         return nativeResponseValue;
26668 }
26669         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
26670 /* @internal */
26671 export function InvoiceFeatures_known(): number {
26672         if(!isWasmInitialized) {
26673                 throw new Error("initializeWasm() must be awaited first!");
26674         }
26675         const nativeResponseValue = wasm.TS_InvoiceFeatures_known();
26676         return nativeResponseValue;
26677 }
26678         // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
26679 /* @internal */
26680 export function InvoiceFeatures_requires_unknown_bits(this_arg: number): boolean {
26681         if(!isWasmInitialized) {
26682                 throw new Error("initializeWasm() must be awaited first!");
26683         }
26684         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
26685         return nativeResponseValue;
26686 }
26687         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
26688 /* @internal */
26689 export function ChannelTypeFeatures_empty(): number {
26690         if(!isWasmInitialized) {
26691                 throw new Error("initializeWasm() must be awaited first!");
26692         }
26693         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
26694         return nativeResponseValue;
26695 }
26696         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
26697 /* @internal */
26698 export function ChannelTypeFeatures_known(): number {
26699         if(!isWasmInitialized) {
26700                 throw new Error("initializeWasm() must be awaited first!");
26701         }
26702         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_known();
26703         return nativeResponseValue;
26704 }
26705         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
26706 /* @internal */
26707 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: number): boolean {
26708         if(!isWasmInitialized) {
26709                 throw new Error("initializeWasm() must be awaited first!");
26710         }
26711         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
26712         return nativeResponseValue;
26713 }
26714         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
26715 /* @internal */
26716 export function InitFeatures_write(obj: number): number {
26717         if(!isWasmInitialized) {
26718                 throw new Error("initializeWasm() must be awaited first!");
26719         }
26720         const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
26721         return nativeResponseValue;
26722 }
26723         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
26724 /* @internal */
26725 export function InitFeatures_read(ser: number): number {
26726         if(!isWasmInitialized) {
26727                 throw new Error("initializeWasm() must be awaited first!");
26728         }
26729         const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
26730         return nativeResponseValue;
26731 }
26732         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
26733 /* @internal */
26734 export function ChannelFeatures_write(obj: number): number {
26735         if(!isWasmInitialized) {
26736                 throw new Error("initializeWasm() must be awaited first!");
26737         }
26738         const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
26739         return nativeResponseValue;
26740 }
26741         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
26742 /* @internal */
26743 export function ChannelFeatures_read(ser: number): number {
26744         if(!isWasmInitialized) {
26745                 throw new Error("initializeWasm() must be awaited first!");
26746         }
26747         const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
26748         return nativeResponseValue;
26749 }
26750         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
26751 /* @internal */
26752 export function NodeFeatures_write(obj: number): number {
26753         if(!isWasmInitialized) {
26754                 throw new Error("initializeWasm() must be awaited first!");
26755         }
26756         const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
26757         return nativeResponseValue;
26758 }
26759         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
26760 /* @internal */
26761 export function NodeFeatures_read(ser: number): number {
26762         if(!isWasmInitialized) {
26763                 throw new Error("initializeWasm() must be awaited first!");
26764         }
26765         const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
26766         return nativeResponseValue;
26767 }
26768         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
26769 /* @internal */
26770 export function InvoiceFeatures_write(obj: number): number {
26771         if(!isWasmInitialized) {
26772                 throw new Error("initializeWasm() must be awaited first!");
26773         }
26774         const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
26775         return nativeResponseValue;
26776 }
26777         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
26778 /* @internal */
26779 export function InvoiceFeatures_read(ser: number): number {
26780         if(!isWasmInitialized) {
26781                 throw new Error("initializeWasm() must be awaited first!");
26782         }
26783         const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
26784         return nativeResponseValue;
26785 }
26786         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
26787 /* @internal */
26788 export function ChannelTypeFeatures_write(obj: number): number {
26789         if(!isWasmInitialized) {
26790                 throw new Error("initializeWasm() must be awaited first!");
26791         }
26792         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
26793         return nativeResponseValue;
26794 }
26795         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
26796 /* @internal */
26797 export function ChannelTypeFeatures_read(ser: number): number {
26798         if(!isWasmInitialized) {
26799                 throw new Error("initializeWasm() must be awaited first!");
26800         }
26801         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
26802         return nativeResponseValue;
26803 }
26804         // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
26805 /* @internal */
26806 export function InitFeatures_set_data_loss_protect_optional(this_arg: number): void {
26807         if(!isWasmInitialized) {
26808                 throw new Error("initializeWasm() must be awaited first!");
26809         }
26810         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_optional(this_arg);
26811         // debug statements here
26812 }
26813         // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
26814 /* @internal */
26815 export function InitFeatures_set_data_loss_protect_required(this_arg: number): void {
26816         if(!isWasmInitialized) {
26817                 throw new Error("initializeWasm() must be awaited first!");
26818         }
26819         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_required(this_arg);
26820         // debug statements here
26821 }
26822         // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26823 /* @internal */
26824 export function InitFeatures_supports_data_loss_protect(this_arg: number): boolean {
26825         if(!isWasmInitialized) {
26826                 throw new Error("initializeWasm() must be awaited first!");
26827         }
26828         const nativeResponseValue = wasm.TS_InitFeatures_supports_data_loss_protect(this_arg);
26829         return nativeResponseValue;
26830 }
26831         // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
26832 /* @internal */
26833 export function NodeFeatures_set_data_loss_protect_optional(this_arg: number): void {
26834         if(!isWasmInitialized) {
26835                 throw new Error("initializeWasm() must be awaited first!");
26836         }
26837         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_optional(this_arg);
26838         // debug statements here
26839 }
26840         // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
26841 /* @internal */
26842 export function NodeFeatures_set_data_loss_protect_required(this_arg: number): void {
26843         if(!isWasmInitialized) {
26844                 throw new Error("initializeWasm() must be awaited first!");
26845         }
26846         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_required(this_arg);
26847         // debug statements here
26848 }
26849         // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26850 /* @internal */
26851 export function NodeFeatures_supports_data_loss_protect(this_arg: number): boolean {
26852         if(!isWasmInitialized) {
26853                 throw new Error("initializeWasm() must be awaited first!");
26854         }
26855         const nativeResponseValue = wasm.TS_NodeFeatures_supports_data_loss_protect(this_arg);
26856         return nativeResponseValue;
26857 }
26858         // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26859 /* @internal */
26860 export function InitFeatures_requires_data_loss_protect(this_arg: number): boolean {
26861         if(!isWasmInitialized) {
26862                 throw new Error("initializeWasm() must be awaited first!");
26863         }
26864         const nativeResponseValue = wasm.TS_InitFeatures_requires_data_loss_protect(this_arg);
26865         return nativeResponseValue;
26866 }
26867         // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26868 /* @internal */
26869 export function NodeFeatures_requires_data_loss_protect(this_arg: number): boolean {
26870         if(!isWasmInitialized) {
26871                 throw new Error("initializeWasm() must be awaited first!");
26872         }
26873         const nativeResponseValue = wasm.TS_NodeFeatures_requires_data_loss_protect(this_arg);
26874         return nativeResponseValue;
26875 }
26876         // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
26877 /* @internal */
26878 export function InitFeatures_set_initial_routing_sync_optional(this_arg: number): void {
26879         if(!isWasmInitialized) {
26880                 throw new Error("initializeWasm() must be awaited first!");
26881         }
26882         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_optional(this_arg);
26883         // debug statements here
26884 }
26885         // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
26886 /* @internal */
26887 export function InitFeatures_set_initial_routing_sync_required(this_arg: number): void {
26888         if(!isWasmInitialized) {
26889                 throw new Error("initializeWasm() must be awaited first!");
26890         }
26891         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_required(this_arg);
26892         // debug statements here
26893 }
26894         // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26895 /* @internal */
26896 export function InitFeatures_initial_routing_sync(this_arg: number): boolean {
26897         if(!isWasmInitialized) {
26898                 throw new Error("initializeWasm() must be awaited first!");
26899         }
26900         const nativeResponseValue = wasm.TS_InitFeatures_initial_routing_sync(this_arg);
26901         return nativeResponseValue;
26902 }
26903         // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
26904 /* @internal */
26905 export function InitFeatures_set_upfront_shutdown_script_optional(this_arg: number): void {
26906         if(!isWasmInitialized) {
26907                 throw new Error("initializeWasm() must be awaited first!");
26908         }
26909         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_optional(this_arg);
26910         // debug statements here
26911 }
26912         // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
26913 /* @internal */
26914 export function InitFeatures_set_upfront_shutdown_script_required(this_arg: number): void {
26915         if(!isWasmInitialized) {
26916                 throw new Error("initializeWasm() must be awaited first!");
26917         }
26918         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_required(this_arg);
26919         // debug statements here
26920 }
26921         // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26922 /* @internal */
26923 export function InitFeatures_supports_upfront_shutdown_script(this_arg: number): boolean {
26924         if(!isWasmInitialized) {
26925                 throw new Error("initializeWasm() must be awaited first!");
26926         }
26927         const nativeResponseValue = wasm.TS_InitFeatures_supports_upfront_shutdown_script(this_arg);
26928         return nativeResponseValue;
26929 }
26930         // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
26931 /* @internal */
26932 export function NodeFeatures_set_upfront_shutdown_script_optional(this_arg: number): void {
26933         if(!isWasmInitialized) {
26934                 throw new Error("initializeWasm() must be awaited first!");
26935         }
26936         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_optional(this_arg);
26937         // debug statements here
26938 }
26939         // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
26940 /* @internal */
26941 export function NodeFeatures_set_upfront_shutdown_script_required(this_arg: number): void {
26942         if(!isWasmInitialized) {
26943                 throw new Error("initializeWasm() must be awaited first!");
26944         }
26945         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_required(this_arg);
26946         // debug statements here
26947 }
26948         // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26949 /* @internal */
26950 export function NodeFeatures_supports_upfront_shutdown_script(this_arg: number): boolean {
26951         if(!isWasmInitialized) {
26952                 throw new Error("initializeWasm() must be awaited first!");
26953         }
26954         const nativeResponseValue = wasm.TS_NodeFeatures_supports_upfront_shutdown_script(this_arg);
26955         return nativeResponseValue;
26956 }
26957         // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26958 /* @internal */
26959 export function InitFeatures_requires_upfront_shutdown_script(this_arg: number): boolean {
26960         if(!isWasmInitialized) {
26961                 throw new Error("initializeWasm() must be awaited first!");
26962         }
26963         const nativeResponseValue = wasm.TS_InitFeatures_requires_upfront_shutdown_script(this_arg);
26964         return nativeResponseValue;
26965 }
26966         // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26967 /* @internal */
26968 export function NodeFeatures_requires_upfront_shutdown_script(this_arg: number): boolean {
26969         if(!isWasmInitialized) {
26970                 throw new Error("initializeWasm() must be awaited first!");
26971         }
26972         const nativeResponseValue = wasm.TS_NodeFeatures_requires_upfront_shutdown_script(this_arg);
26973         return nativeResponseValue;
26974 }
26975         // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
26976 /* @internal */
26977 export function InitFeatures_set_gossip_queries_optional(this_arg: number): void {
26978         if(!isWasmInitialized) {
26979                 throw new Error("initializeWasm() must be awaited first!");
26980         }
26981         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_optional(this_arg);
26982         // debug statements here
26983 }
26984         // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
26985 /* @internal */
26986 export function InitFeatures_set_gossip_queries_required(this_arg: number): void {
26987         if(!isWasmInitialized) {
26988                 throw new Error("initializeWasm() must be awaited first!");
26989         }
26990         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_required(this_arg);
26991         // debug statements here
26992 }
26993         // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26994 /* @internal */
26995 export function InitFeatures_supports_gossip_queries(this_arg: number): boolean {
26996         if(!isWasmInitialized) {
26997                 throw new Error("initializeWasm() must be awaited first!");
26998         }
26999         const nativeResponseValue = wasm.TS_InitFeatures_supports_gossip_queries(this_arg);
27000         return nativeResponseValue;
27001 }
27002         // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27003 /* @internal */
27004 export function NodeFeatures_set_gossip_queries_optional(this_arg: number): void {
27005         if(!isWasmInitialized) {
27006                 throw new Error("initializeWasm() must be awaited first!");
27007         }
27008         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_optional(this_arg);
27009         // debug statements here
27010 }
27011         // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27012 /* @internal */
27013 export function NodeFeatures_set_gossip_queries_required(this_arg: number): void {
27014         if(!isWasmInitialized) {
27015                 throw new Error("initializeWasm() must be awaited first!");
27016         }
27017         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_required(this_arg);
27018         // debug statements here
27019 }
27020         // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27021 /* @internal */
27022 export function NodeFeatures_supports_gossip_queries(this_arg: number): boolean {
27023         if(!isWasmInitialized) {
27024                 throw new Error("initializeWasm() must be awaited first!");
27025         }
27026         const nativeResponseValue = wasm.TS_NodeFeatures_supports_gossip_queries(this_arg);
27027         return nativeResponseValue;
27028 }
27029         // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27030 /* @internal */
27031 export function InitFeatures_requires_gossip_queries(this_arg: number): boolean {
27032         if(!isWasmInitialized) {
27033                 throw new Error("initializeWasm() must be awaited first!");
27034         }
27035         const nativeResponseValue = wasm.TS_InitFeatures_requires_gossip_queries(this_arg);
27036         return nativeResponseValue;
27037 }
27038         // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27039 /* @internal */
27040 export function NodeFeatures_requires_gossip_queries(this_arg: number): boolean {
27041         if(!isWasmInitialized) {
27042                 throw new Error("initializeWasm() must be awaited first!");
27043         }
27044         const nativeResponseValue = wasm.TS_NodeFeatures_requires_gossip_queries(this_arg);
27045         return nativeResponseValue;
27046 }
27047         // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27048 /* @internal */
27049 export function InitFeatures_set_variable_length_onion_optional(this_arg: number): void {
27050         if(!isWasmInitialized) {
27051                 throw new Error("initializeWasm() must be awaited first!");
27052         }
27053         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_optional(this_arg);
27054         // debug statements here
27055 }
27056         // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27057 /* @internal */
27058 export function InitFeatures_set_variable_length_onion_required(this_arg: number): void {
27059         if(!isWasmInitialized) {
27060                 throw new Error("initializeWasm() must be awaited first!");
27061         }
27062         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_required(this_arg);
27063         // debug statements here
27064 }
27065         // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27066 /* @internal */
27067 export function InitFeatures_supports_variable_length_onion(this_arg: number): boolean {
27068         if(!isWasmInitialized) {
27069                 throw new Error("initializeWasm() must be awaited first!");
27070         }
27071         const nativeResponseValue = wasm.TS_InitFeatures_supports_variable_length_onion(this_arg);
27072         return nativeResponseValue;
27073 }
27074         // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27075 /* @internal */
27076 export function NodeFeatures_set_variable_length_onion_optional(this_arg: number): void {
27077         if(!isWasmInitialized) {
27078                 throw new Error("initializeWasm() must be awaited first!");
27079         }
27080         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_optional(this_arg);
27081         // debug statements here
27082 }
27083         // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27084 /* @internal */
27085 export function NodeFeatures_set_variable_length_onion_required(this_arg: number): void {
27086         if(!isWasmInitialized) {
27087                 throw new Error("initializeWasm() must be awaited first!");
27088         }
27089         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_required(this_arg);
27090         // debug statements here
27091 }
27092         // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27093 /* @internal */
27094 export function NodeFeatures_supports_variable_length_onion(this_arg: number): boolean {
27095         if(!isWasmInitialized) {
27096                 throw new Error("initializeWasm() must be awaited first!");
27097         }
27098         const nativeResponseValue = wasm.TS_NodeFeatures_supports_variable_length_onion(this_arg);
27099         return nativeResponseValue;
27100 }
27101         // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27102 /* @internal */
27103 export function InvoiceFeatures_set_variable_length_onion_optional(this_arg: number): void {
27104         if(!isWasmInitialized) {
27105                 throw new Error("initializeWasm() must be awaited first!");
27106         }
27107         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_optional(this_arg);
27108         // debug statements here
27109 }
27110         // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27111 /* @internal */
27112 export function InvoiceFeatures_set_variable_length_onion_required(this_arg: number): void {
27113         if(!isWasmInitialized) {
27114                 throw new Error("initializeWasm() must be awaited first!");
27115         }
27116         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_required(this_arg);
27117         // debug statements here
27118 }
27119         // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27120 /* @internal */
27121 export function InvoiceFeatures_supports_variable_length_onion(this_arg: number): boolean {
27122         if(!isWasmInitialized) {
27123                 throw new Error("initializeWasm() must be awaited first!");
27124         }
27125         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_variable_length_onion(this_arg);
27126         return nativeResponseValue;
27127 }
27128         // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27129 /* @internal */
27130 export function InitFeatures_requires_variable_length_onion(this_arg: number): boolean {
27131         if(!isWasmInitialized) {
27132                 throw new Error("initializeWasm() must be awaited first!");
27133         }
27134         const nativeResponseValue = wasm.TS_InitFeatures_requires_variable_length_onion(this_arg);
27135         return nativeResponseValue;
27136 }
27137         // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27138 /* @internal */
27139 export function NodeFeatures_requires_variable_length_onion(this_arg: number): boolean {
27140         if(!isWasmInitialized) {
27141                 throw new Error("initializeWasm() must be awaited first!");
27142         }
27143         const nativeResponseValue = wasm.TS_NodeFeatures_requires_variable_length_onion(this_arg);
27144         return nativeResponseValue;
27145 }
27146         // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27147 /* @internal */
27148 export function InvoiceFeatures_requires_variable_length_onion(this_arg: number): boolean {
27149         if(!isWasmInitialized) {
27150                 throw new Error("initializeWasm() must be awaited first!");
27151         }
27152         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_variable_length_onion(this_arg);
27153         return nativeResponseValue;
27154 }
27155         // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27156 /* @internal */
27157 export function InitFeatures_set_static_remote_key_optional(this_arg: number): void {
27158         if(!isWasmInitialized) {
27159                 throw new Error("initializeWasm() must be awaited first!");
27160         }
27161         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_optional(this_arg);
27162         // debug statements here
27163 }
27164         // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27165 /* @internal */
27166 export function InitFeatures_set_static_remote_key_required(this_arg: number): void {
27167         if(!isWasmInitialized) {
27168                 throw new Error("initializeWasm() must be awaited first!");
27169         }
27170         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_required(this_arg);
27171         // debug statements here
27172 }
27173         // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27174 /* @internal */
27175 export function InitFeatures_supports_static_remote_key(this_arg: number): boolean {
27176         if(!isWasmInitialized) {
27177                 throw new Error("initializeWasm() must be awaited first!");
27178         }
27179         const nativeResponseValue = wasm.TS_InitFeatures_supports_static_remote_key(this_arg);
27180         return nativeResponseValue;
27181 }
27182         // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27183 /* @internal */
27184 export function NodeFeatures_set_static_remote_key_optional(this_arg: number): void {
27185         if(!isWasmInitialized) {
27186                 throw new Error("initializeWasm() must be awaited first!");
27187         }
27188         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_optional(this_arg);
27189         // debug statements here
27190 }
27191         // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27192 /* @internal */
27193 export function NodeFeatures_set_static_remote_key_required(this_arg: number): void {
27194         if(!isWasmInitialized) {
27195                 throw new Error("initializeWasm() must be awaited first!");
27196         }
27197         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_required(this_arg);
27198         // debug statements here
27199 }
27200         // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27201 /* @internal */
27202 export function NodeFeatures_supports_static_remote_key(this_arg: number): boolean {
27203         if(!isWasmInitialized) {
27204                 throw new Error("initializeWasm() must be awaited first!");
27205         }
27206         const nativeResponseValue = wasm.TS_NodeFeatures_supports_static_remote_key(this_arg);
27207         return nativeResponseValue;
27208 }
27209         // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27210 /* @internal */
27211 export function ChannelTypeFeatures_set_static_remote_key_optional(this_arg: number): void {
27212         if(!isWasmInitialized) {
27213                 throw new Error("initializeWasm() must be awaited first!");
27214         }
27215         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_optional(this_arg);
27216         // debug statements here
27217 }
27218         // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27219 /* @internal */
27220 export function ChannelTypeFeatures_set_static_remote_key_required(this_arg: number): void {
27221         if(!isWasmInitialized) {
27222                 throw new Error("initializeWasm() must be awaited first!");
27223         }
27224         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_required(this_arg);
27225         // debug statements here
27226 }
27227         // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27228 /* @internal */
27229 export function ChannelTypeFeatures_supports_static_remote_key(this_arg: number): boolean {
27230         if(!isWasmInitialized) {
27231                 throw new Error("initializeWasm() must be awaited first!");
27232         }
27233         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_static_remote_key(this_arg);
27234         return nativeResponseValue;
27235 }
27236         // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27237 /* @internal */
27238 export function InitFeatures_requires_static_remote_key(this_arg: number): boolean {
27239         if(!isWasmInitialized) {
27240                 throw new Error("initializeWasm() must be awaited first!");
27241         }
27242         const nativeResponseValue = wasm.TS_InitFeatures_requires_static_remote_key(this_arg);
27243         return nativeResponseValue;
27244 }
27245         // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27246 /* @internal */
27247 export function NodeFeatures_requires_static_remote_key(this_arg: number): boolean {
27248         if(!isWasmInitialized) {
27249                 throw new Error("initializeWasm() must be awaited first!");
27250         }
27251         const nativeResponseValue = wasm.TS_NodeFeatures_requires_static_remote_key(this_arg);
27252         return nativeResponseValue;
27253 }
27254         // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27255 /* @internal */
27256 export function ChannelTypeFeatures_requires_static_remote_key(this_arg: number): boolean {
27257         if(!isWasmInitialized) {
27258                 throw new Error("initializeWasm() must be awaited first!");
27259         }
27260         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_static_remote_key(this_arg);
27261         return nativeResponseValue;
27262 }
27263         // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27264 /* @internal */
27265 export function InitFeatures_set_payment_secret_optional(this_arg: number): void {
27266         if(!isWasmInitialized) {
27267                 throw new Error("initializeWasm() must be awaited first!");
27268         }
27269         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_optional(this_arg);
27270         // debug statements here
27271 }
27272         // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27273 /* @internal */
27274 export function InitFeatures_set_payment_secret_required(this_arg: number): void {
27275         if(!isWasmInitialized) {
27276                 throw new Error("initializeWasm() must be awaited first!");
27277         }
27278         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_required(this_arg);
27279         // debug statements here
27280 }
27281         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27282 /* @internal */
27283 export function InitFeatures_supports_payment_secret(this_arg: number): boolean {
27284         if(!isWasmInitialized) {
27285                 throw new Error("initializeWasm() must be awaited first!");
27286         }
27287         const nativeResponseValue = wasm.TS_InitFeatures_supports_payment_secret(this_arg);
27288         return nativeResponseValue;
27289 }
27290         // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27291 /* @internal */
27292 export function NodeFeatures_set_payment_secret_optional(this_arg: number): void {
27293         if(!isWasmInitialized) {
27294                 throw new Error("initializeWasm() must be awaited first!");
27295         }
27296         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_optional(this_arg);
27297         // debug statements here
27298 }
27299         // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27300 /* @internal */
27301 export function NodeFeatures_set_payment_secret_required(this_arg: number): void {
27302         if(!isWasmInitialized) {
27303                 throw new Error("initializeWasm() must be awaited first!");
27304         }
27305         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_required(this_arg);
27306         // debug statements here
27307 }
27308         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27309 /* @internal */
27310 export function NodeFeatures_supports_payment_secret(this_arg: number): boolean {
27311         if(!isWasmInitialized) {
27312                 throw new Error("initializeWasm() must be awaited first!");
27313         }
27314         const nativeResponseValue = wasm.TS_NodeFeatures_supports_payment_secret(this_arg);
27315         return nativeResponseValue;
27316 }
27317         // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27318 /* @internal */
27319 export function InvoiceFeatures_set_payment_secret_optional(this_arg: number): void {
27320         if(!isWasmInitialized) {
27321                 throw new Error("initializeWasm() must be awaited first!");
27322         }
27323         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_optional(this_arg);
27324         // debug statements here
27325 }
27326         // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27327 /* @internal */
27328 export function InvoiceFeatures_set_payment_secret_required(this_arg: number): void {
27329         if(!isWasmInitialized) {
27330                 throw new Error("initializeWasm() must be awaited first!");
27331         }
27332         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_required(this_arg);
27333         // debug statements here
27334 }
27335         // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27336 /* @internal */
27337 export function InvoiceFeatures_supports_payment_secret(this_arg: number): boolean {
27338         if(!isWasmInitialized) {
27339                 throw new Error("initializeWasm() must be awaited first!");
27340         }
27341         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_payment_secret(this_arg);
27342         return nativeResponseValue;
27343 }
27344         // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27345 /* @internal */
27346 export function InitFeatures_requires_payment_secret(this_arg: number): boolean {
27347         if(!isWasmInitialized) {
27348                 throw new Error("initializeWasm() must be awaited first!");
27349         }
27350         const nativeResponseValue = wasm.TS_InitFeatures_requires_payment_secret(this_arg);
27351         return nativeResponseValue;
27352 }
27353         // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27354 /* @internal */
27355 export function NodeFeatures_requires_payment_secret(this_arg: number): boolean {
27356         if(!isWasmInitialized) {
27357                 throw new Error("initializeWasm() must be awaited first!");
27358         }
27359         const nativeResponseValue = wasm.TS_NodeFeatures_requires_payment_secret(this_arg);
27360         return nativeResponseValue;
27361 }
27362         // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27363 /* @internal */
27364 export function InvoiceFeatures_requires_payment_secret(this_arg: number): boolean {
27365         if(!isWasmInitialized) {
27366                 throw new Error("initializeWasm() must be awaited first!");
27367         }
27368         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_payment_secret(this_arg);
27369         return nativeResponseValue;
27370 }
27371         // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27372 /* @internal */
27373 export function InitFeatures_set_basic_mpp_optional(this_arg: number): void {
27374         if(!isWasmInitialized) {
27375                 throw new Error("initializeWasm() must be awaited first!");
27376         }
27377         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_optional(this_arg);
27378         // debug statements here
27379 }
27380         // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27381 /* @internal */
27382 export function InitFeatures_set_basic_mpp_required(this_arg: number): void {
27383         if(!isWasmInitialized) {
27384                 throw new Error("initializeWasm() must be awaited first!");
27385         }
27386         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_required(this_arg);
27387         // debug statements here
27388 }
27389         // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27390 /* @internal */
27391 export function InitFeatures_supports_basic_mpp(this_arg: number): boolean {
27392         if(!isWasmInitialized) {
27393                 throw new Error("initializeWasm() must be awaited first!");
27394         }
27395         const nativeResponseValue = wasm.TS_InitFeatures_supports_basic_mpp(this_arg);
27396         return nativeResponseValue;
27397 }
27398         // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27399 /* @internal */
27400 export function NodeFeatures_set_basic_mpp_optional(this_arg: number): void {
27401         if(!isWasmInitialized) {
27402                 throw new Error("initializeWasm() must be awaited first!");
27403         }
27404         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_optional(this_arg);
27405         // debug statements here
27406 }
27407         // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27408 /* @internal */
27409 export function NodeFeatures_set_basic_mpp_required(this_arg: number): void {
27410         if(!isWasmInitialized) {
27411                 throw new Error("initializeWasm() must be awaited first!");
27412         }
27413         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_required(this_arg);
27414         // debug statements here
27415 }
27416         // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27417 /* @internal */
27418 export function NodeFeatures_supports_basic_mpp(this_arg: number): boolean {
27419         if(!isWasmInitialized) {
27420                 throw new Error("initializeWasm() must be awaited first!");
27421         }
27422         const nativeResponseValue = wasm.TS_NodeFeatures_supports_basic_mpp(this_arg);
27423         return nativeResponseValue;
27424 }
27425         // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27426 /* @internal */
27427 export function InvoiceFeatures_set_basic_mpp_optional(this_arg: number): void {
27428         if(!isWasmInitialized) {
27429                 throw new Error("initializeWasm() must be awaited first!");
27430         }
27431         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_optional(this_arg);
27432         // debug statements here
27433 }
27434         // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27435 /* @internal */
27436 export function InvoiceFeatures_set_basic_mpp_required(this_arg: number): void {
27437         if(!isWasmInitialized) {
27438                 throw new Error("initializeWasm() must be awaited first!");
27439         }
27440         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_required(this_arg);
27441         // debug statements here
27442 }
27443         // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27444 /* @internal */
27445 export function InvoiceFeatures_supports_basic_mpp(this_arg: number): boolean {
27446         if(!isWasmInitialized) {
27447                 throw new Error("initializeWasm() must be awaited first!");
27448         }
27449         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_basic_mpp(this_arg);
27450         return nativeResponseValue;
27451 }
27452         // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27453 /* @internal */
27454 export function InitFeatures_requires_basic_mpp(this_arg: number): boolean {
27455         if(!isWasmInitialized) {
27456                 throw new Error("initializeWasm() must be awaited first!");
27457         }
27458         const nativeResponseValue = wasm.TS_InitFeatures_requires_basic_mpp(this_arg);
27459         return nativeResponseValue;
27460 }
27461         // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27462 /* @internal */
27463 export function NodeFeatures_requires_basic_mpp(this_arg: number): boolean {
27464         if(!isWasmInitialized) {
27465                 throw new Error("initializeWasm() must be awaited first!");
27466         }
27467         const nativeResponseValue = wasm.TS_NodeFeatures_requires_basic_mpp(this_arg);
27468         return nativeResponseValue;
27469 }
27470         // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27471 /* @internal */
27472 export function InvoiceFeatures_requires_basic_mpp(this_arg: number): boolean {
27473         if(!isWasmInitialized) {
27474                 throw new Error("initializeWasm() must be awaited first!");
27475         }
27476         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_basic_mpp(this_arg);
27477         return nativeResponseValue;
27478 }
27479         // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27480 /* @internal */
27481 export function InitFeatures_set_wumbo_optional(this_arg: number): void {
27482         if(!isWasmInitialized) {
27483                 throw new Error("initializeWasm() must be awaited first!");
27484         }
27485         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_optional(this_arg);
27486         // debug statements here
27487 }
27488         // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27489 /* @internal */
27490 export function InitFeatures_set_wumbo_required(this_arg: number): void {
27491         if(!isWasmInitialized) {
27492                 throw new Error("initializeWasm() must be awaited first!");
27493         }
27494         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_required(this_arg);
27495         // debug statements here
27496 }
27497         // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27498 /* @internal */
27499 export function InitFeatures_supports_wumbo(this_arg: number): boolean {
27500         if(!isWasmInitialized) {
27501                 throw new Error("initializeWasm() must be awaited first!");
27502         }
27503         const nativeResponseValue = wasm.TS_InitFeatures_supports_wumbo(this_arg);
27504         return nativeResponseValue;
27505 }
27506         // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27507 /* @internal */
27508 export function NodeFeatures_set_wumbo_optional(this_arg: number): void {
27509         if(!isWasmInitialized) {
27510                 throw new Error("initializeWasm() must be awaited first!");
27511         }
27512         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_optional(this_arg);
27513         // debug statements here
27514 }
27515         // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27516 /* @internal */
27517 export function NodeFeatures_set_wumbo_required(this_arg: number): void {
27518         if(!isWasmInitialized) {
27519                 throw new Error("initializeWasm() must be awaited first!");
27520         }
27521         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_required(this_arg);
27522         // debug statements here
27523 }
27524         // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27525 /* @internal */
27526 export function NodeFeatures_supports_wumbo(this_arg: number): boolean {
27527         if(!isWasmInitialized) {
27528                 throw new Error("initializeWasm() must be awaited first!");
27529         }
27530         const nativeResponseValue = wasm.TS_NodeFeatures_supports_wumbo(this_arg);
27531         return nativeResponseValue;
27532 }
27533         // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27534 /* @internal */
27535 export function InitFeatures_requires_wumbo(this_arg: number): boolean {
27536         if(!isWasmInitialized) {
27537                 throw new Error("initializeWasm() must be awaited first!");
27538         }
27539         const nativeResponseValue = wasm.TS_InitFeatures_requires_wumbo(this_arg);
27540         return nativeResponseValue;
27541 }
27542         // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27543 /* @internal */
27544 export function NodeFeatures_requires_wumbo(this_arg: number): boolean {
27545         if(!isWasmInitialized) {
27546                 throw new Error("initializeWasm() must be awaited first!");
27547         }
27548         const nativeResponseValue = wasm.TS_NodeFeatures_requires_wumbo(this_arg);
27549         return nativeResponseValue;
27550 }
27551         // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27552 /* @internal */
27553 export function InitFeatures_set_shutdown_any_segwit_optional(this_arg: number): void {
27554         if(!isWasmInitialized) {
27555                 throw new Error("initializeWasm() must be awaited first!");
27556         }
27557         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_optional(this_arg);
27558         // debug statements here
27559 }
27560         // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27561 /* @internal */
27562 export function InitFeatures_set_shutdown_any_segwit_required(this_arg: number): void {
27563         if(!isWasmInitialized) {
27564                 throw new Error("initializeWasm() must be awaited first!");
27565         }
27566         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_required(this_arg);
27567         // debug statements here
27568 }
27569         // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27570 /* @internal */
27571 export function InitFeatures_supports_shutdown_anysegwit(this_arg: number): boolean {
27572         if(!isWasmInitialized) {
27573                 throw new Error("initializeWasm() must be awaited first!");
27574         }
27575         const nativeResponseValue = wasm.TS_InitFeatures_supports_shutdown_anysegwit(this_arg);
27576         return nativeResponseValue;
27577 }
27578         // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27579 /* @internal */
27580 export function NodeFeatures_set_shutdown_any_segwit_optional(this_arg: number): void {
27581         if(!isWasmInitialized) {
27582                 throw new Error("initializeWasm() must be awaited first!");
27583         }
27584         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_optional(this_arg);
27585         // debug statements here
27586 }
27587         // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27588 /* @internal */
27589 export function NodeFeatures_set_shutdown_any_segwit_required(this_arg: number): void {
27590         if(!isWasmInitialized) {
27591                 throw new Error("initializeWasm() must be awaited first!");
27592         }
27593         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_required(this_arg);
27594         // debug statements here
27595 }
27596         // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27597 /* @internal */
27598 export function NodeFeatures_supports_shutdown_anysegwit(this_arg: number): boolean {
27599         if(!isWasmInitialized) {
27600                 throw new Error("initializeWasm() must be awaited first!");
27601         }
27602         const nativeResponseValue = wasm.TS_NodeFeatures_supports_shutdown_anysegwit(this_arg);
27603         return nativeResponseValue;
27604 }
27605         // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27606 /* @internal */
27607 export function InitFeatures_requires_shutdown_anysegwit(this_arg: number): boolean {
27608         if(!isWasmInitialized) {
27609                 throw new Error("initializeWasm() must be awaited first!");
27610         }
27611         const nativeResponseValue = wasm.TS_InitFeatures_requires_shutdown_anysegwit(this_arg);
27612         return nativeResponseValue;
27613 }
27614         // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27615 /* @internal */
27616 export function NodeFeatures_requires_shutdown_anysegwit(this_arg: number): boolean {
27617         if(!isWasmInitialized) {
27618                 throw new Error("initializeWasm() must be awaited first!");
27619         }
27620         const nativeResponseValue = wasm.TS_NodeFeatures_requires_shutdown_anysegwit(this_arg);
27621         return nativeResponseValue;
27622 }
27623         // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27624 /* @internal */
27625 export function InitFeatures_set_channel_type_optional(this_arg: number): void {
27626         if(!isWasmInitialized) {
27627                 throw new Error("initializeWasm() must be awaited first!");
27628         }
27629         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_optional(this_arg);
27630         // debug statements here
27631 }
27632         // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27633 /* @internal */
27634 export function InitFeatures_set_channel_type_required(this_arg: number): void {
27635         if(!isWasmInitialized) {
27636                 throw new Error("initializeWasm() must be awaited first!");
27637         }
27638         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_required(this_arg);
27639         // debug statements here
27640 }
27641         // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27642 /* @internal */
27643 export function InitFeatures_supports_channel_type(this_arg: number): boolean {
27644         if(!isWasmInitialized) {
27645                 throw new Error("initializeWasm() must be awaited first!");
27646         }
27647         const nativeResponseValue = wasm.TS_InitFeatures_supports_channel_type(this_arg);
27648         return nativeResponseValue;
27649 }
27650         // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27651 /* @internal */
27652 export function NodeFeatures_set_channel_type_optional(this_arg: number): void {
27653         if(!isWasmInitialized) {
27654                 throw new Error("initializeWasm() must be awaited first!");
27655         }
27656         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_optional(this_arg);
27657         // debug statements here
27658 }
27659         // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27660 /* @internal */
27661 export function NodeFeatures_set_channel_type_required(this_arg: number): void {
27662         if(!isWasmInitialized) {
27663                 throw new Error("initializeWasm() must be awaited first!");
27664         }
27665         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_required(this_arg);
27666         // debug statements here
27667 }
27668         // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27669 /* @internal */
27670 export function NodeFeatures_supports_channel_type(this_arg: number): boolean {
27671         if(!isWasmInitialized) {
27672                 throw new Error("initializeWasm() must be awaited first!");
27673         }
27674         const nativeResponseValue = wasm.TS_NodeFeatures_supports_channel_type(this_arg);
27675         return nativeResponseValue;
27676 }
27677         // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27678 /* @internal */
27679 export function InitFeatures_requires_channel_type(this_arg: number): boolean {
27680         if(!isWasmInitialized) {
27681                 throw new Error("initializeWasm() must be awaited first!");
27682         }
27683         const nativeResponseValue = wasm.TS_InitFeatures_requires_channel_type(this_arg);
27684         return nativeResponseValue;
27685 }
27686         // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27687 /* @internal */
27688 export function NodeFeatures_requires_channel_type(this_arg: number): boolean {
27689         if(!isWasmInitialized) {
27690                 throw new Error("initializeWasm() must be awaited first!");
27691         }
27692         const nativeResponseValue = wasm.TS_NodeFeatures_requires_channel_type(this_arg);
27693         return nativeResponseValue;
27694 }
27695         // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27696 /* @internal */
27697 export function InitFeatures_set_scid_privacy_optional(this_arg: number): void {
27698         if(!isWasmInitialized) {
27699                 throw new Error("initializeWasm() must be awaited first!");
27700         }
27701         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_optional(this_arg);
27702         // debug statements here
27703 }
27704         // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27705 /* @internal */
27706 export function InitFeatures_set_scid_privacy_required(this_arg: number): void {
27707         if(!isWasmInitialized) {
27708                 throw new Error("initializeWasm() must be awaited first!");
27709         }
27710         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_required(this_arg);
27711         // debug statements here
27712 }
27713         // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27714 /* @internal */
27715 export function InitFeatures_supports_scid_privacy(this_arg: number): boolean {
27716         if(!isWasmInitialized) {
27717                 throw new Error("initializeWasm() must be awaited first!");
27718         }
27719         const nativeResponseValue = wasm.TS_InitFeatures_supports_scid_privacy(this_arg);
27720         return nativeResponseValue;
27721 }
27722         // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27723 /* @internal */
27724 export function NodeFeatures_set_scid_privacy_optional(this_arg: number): void {
27725         if(!isWasmInitialized) {
27726                 throw new Error("initializeWasm() must be awaited first!");
27727         }
27728         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_optional(this_arg);
27729         // debug statements here
27730 }
27731         // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27732 /* @internal */
27733 export function NodeFeatures_set_scid_privacy_required(this_arg: number): void {
27734         if(!isWasmInitialized) {
27735                 throw new Error("initializeWasm() must be awaited first!");
27736         }
27737         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_required(this_arg);
27738         // debug statements here
27739 }
27740         // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27741 /* @internal */
27742 export function NodeFeatures_supports_scid_privacy(this_arg: number): boolean {
27743         if(!isWasmInitialized) {
27744                 throw new Error("initializeWasm() must be awaited first!");
27745         }
27746         const nativeResponseValue = wasm.TS_NodeFeatures_supports_scid_privacy(this_arg);
27747         return nativeResponseValue;
27748 }
27749         // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27750 /* @internal */
27751 export function ChannelTypeFeatures_set_scid_privacy_optional(this_arg: number): void {
27752         if(!isWasmInitialized) {
27753                 throw new Error("initializeWasm() must be awaited first!");
27754         }
27755         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_optional(this_arg);
27756         // debug statements here
27757 }
27758         // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27759 /* @internal */
27760 export function ChannelTypeFeatures_set_scid_privacy_required(this_arg: number): void {
27761         if(!isWasmInitialized) {
27762                 throw new Error("initializeWasm() must be awaited first!");
27763         }
27764         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_required(this_arg);
27765         // debug statements here
27766 }
27767         // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27768 /* @internal */
27769 export function ChannelTypeFeatures_supports_scid_privacy(this_arg: number): boolean {
27770         if(!isWasmInitialized) {
27771                 throw new Error("initializeWasm() must be awaited first!");
27772         }
27773         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_scid_privacy(this_arg);
27774         return nativeResponseValue;
27775 }
27776         // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27777 /* @internal */
27778 export function InitFeatures_requires_scid_privacy(this_arg: number): boolean {
27779         if(!isWasmInitialized) {
27780                 throw new Error("initializeWasm() must be awaited first!");
27781         }
27782         const nativeResponseValue = wasm.TS_InitFeatures_requires_scid_privacy(this_arg);
27783         return nativeResponseValue;
27784 }
27785         // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27786 /* @internal */
27787 export function NodeFeatures_requires_scid_privacy(this_arg: number): boolean {
27788         if(!isWasmInitialized) {
27789                 throw new Error("initializeWasm() must be awaited first!");
27790         }
27791         const nativeResponseValue = wasm.TS_NodeFeatures_requires_scid_privacy(this_arg);
27792         return nativeResponseValue;
27793 }
27794         // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27795 /* @internal */
27796 export function ChannelTypeFeatures_requires_scid_privacy(this_arg: number): boolean {
27797         if(!isWasmInitialized) {
27798                 throw new Error("initializeWasm() must be awaited first!");
27799         }
27800         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_scid_privacy(this_arg);
27801         return nativeResponseValue;
27802 }
27803         // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27804 /* @internal */
27805 export function InitFeatures_set_zero_conf_optional(this_arg: number): void {
27806         if(!isWasmInitialized) {
27807                 throw new Error("initializeWasm() must be awaited first!");
27808         }
27809         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_optional(this_arg);
27810         // debug statements here
27811 }
27812         // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27813 /* @internal */
27814 export function InitFeatures_set_zero_conf_required(this_arg: number): void {
27815         if(!isWasmInitialized) {
27816                 throw new Error("initializeWasm() must be awaited first!");
27817         }
27818         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_required(this_arg);
27819         // debug statements here
27820 }
27821         // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27822 /* @internal */
27823 export function InitFeatures_supports_zero_conf(this_arg: number): boolean {
27824         if(!isWasmInitialized) {
27825                 throw new Error("initializeWasm() must be awaited first!");
27826         }
27827         const nativeResponseValue = wasm.TS_InitFeatures_supports_zero_conf(this_arg);
27828         return nativeResponseValue;
27829 }
27830         // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27831 /* @internal */
27832 export function NodeFeatures_set_zero_conf_optional(this_arg: number): void {
27833         if(!isWasmInitialized) {
27834                 throw new Error("initializeWasm() must be awaited first!");
27835         }
27836         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_optional(this_arg);
27837         // debug statements here
27838 }
27839         // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27840 /* @internal */
27841 export function NodeFeatures_set_zero_conf_required(this_arg: number): void {
27842         if(!isWasmInitialized) {
27843                 throw new Error("initializeWasm() must be awaited first!");
27844         }
27845         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_required(this_arg);
27846         // debug statements here
27847 }
27848         // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27849 /* @internal */
27850 export function NodeFeatures_supports_zero_conf(this_arg: number): boolean {
27851         if(!isWasmInitialized) {
27852                 throw new Error("initializeWasm() must be awaited first!");
27853         }
27854         const nativeResponseValue = wasm.TS_NodeFeatures_supports_zero_conf(this_arg);
27855         return nativeResponseValue;
27856 }
27857         // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27858 /* @internal */
27859 export function ChannelTypeFeatures_set_zero_conf_optional(this_arg: number): void {
27860         if(!isWasmInitialized) {
27861                 throw new Error("initializeWasm() must be awaited first!");
27862         }
27863         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_optional(this_arg);
27864         // debug statements here
27865 }
27866         // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27867 /* @internal */
27868 export function ChannelTypeFeatures_set_zero_conf_required(this_arg: number): void {
27869         if(!isWasmInitialized) {
27870                 throw new Error("initializeWasm() must be awaited first!");
27871         }
27872         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_required(this_arg);
27873         // debug statements here
27874 }
27875         // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27876 /* @internal */
27877 export function ChannelTypeFeatures_supports_zero_conf(this_arg: number): boolean {
27878         if(!isWasmInitialized) {
27879                 throw new Error("initializeWasm() must be awaited first!");
27880         }
27881         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_zero_conf(this_arg);
27882         return nativeResponseValue;
27883 }
27884         // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27885 /* @internal */
27886 export function InitFeatures_requires_zero_conf(this_arg: number): boolean {
27887         if(!isWasmInitialized) {
27888                 throw new Error("initializeWasm() must be awaited first!");
27889         }
27890         const nativeResponseValue = wasm.TS_InitFeatures_requires_zero_conf(this_arg);
27891         return nativeResponseValue;
27892 }
27893         // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27894 /* @internal */
27895 export function NodeFeatures_requires_zero_conf(this_arg: number): boolean {
27896         if(!isWasmInitialized) {
27897                 throw new Error("initializeWasm() must be awaited first!");
27898         }
27899         const nativeResponseValue = wasm.TS_NodeFeatures_requires_zero_conf(this_arg);
27900         return nativeResponseValue;
27901 }
27902         // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27903 /* @internal */
27904 export function ChannelTypeFeatures_requires_zero_conf(this_arg: number): boolean {
27905         if(!isWasmInitialized) {
27906                 throw new Error("initializeWasm() must be awaited first!");
27907         }
27908         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_zero_conf(this_arg);
27909         return nativeResponseValue;
27910 }
27911         // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27912 /* @internal */
27913 export function NodeFeatures_set_keysend_optional(this_arg: number): void {
27914         if(!isWasmInitialized) {
27915                 throw new Error("initializeWasm() must be awaited first!");
27916         }
27917         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_optional(this_arg);
27918         // debug statements here
27919 }
27920         // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27921 /* @internal */
27922 export function NodeFeatures_set_keysend_required(this_arg: number): void {
27923         if(!isWasmInitialized) {
27924                 throw new Error("initializeWasm() must be awaited first!");
27925         }
27926         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_required(this_arg);
27927         // debug statements here
27928 }
27929         // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27930 /* @internal */
27931 export function NodeFeatures_supports_keysend(this_arg: number): boolean {
27932         if(!isWasmInitialized) {
27933                 throw new Error("initializeWasm() must be awaited first!");
27934         }
27935         const nativeResponseValue = wasm.TS_NodeFeatures_supports_keysend(this_arg);
27936         return nativeResponseValue;
27937 }
27938         // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27939 /* @internal */
27940 export function NodeFeatures_requires_keysend(this_arg: number): boolean {
27941         if(!isWasmInitialized) {
27942                 throw new Error("initializeWasm() must be awaited first!");
27943         }
27944         const nativeResponseValue = wasm.TS_NodeFeatures_requires_keysend(this_arg);
27945         return nativeResponseValue;
27946 }
27947         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
27948 /* @internal */
27949 export function ShutdownScript_free(this_obj: number): void {
27950         if(!isWasmInitialized) {
27951                 throw new Error("initializeWasm() must be awaited first!");
27952         }
27953         const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
27954         // debug statements here
27955 }
27956         // uintptr_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
27957 /* @internal */
27958 export function ShutdownScript_clone_ptr(arg: number): number {
27959         if(!isWasmInitialized) {
27960                 throw new Error("initializeWasm() must be awaited first!");
27961         }
27962         const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
27963         return nativeResponseValue;
27964 }
27965         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
27966 /* @internal */
27967 export function ShutdownScript_clone(orig: number): number {
27968         if(!isWasmInitialized) {
27969                 throw new Error("initializeWasm() must be awaited first!");
27970         }
27971         const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
27972         return nativeResponseValue;
27973 }
27974         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
27975 /* @internal */
27976 export function InvalidShutdownScript_free(this_obj: number): void {
27977         if(!isWasmInitialized) {
27978                 throw new Error("initializeWasm() must be awaited first!");
27979         }
27980         const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
27981         // debug statements here
27982 }
27983         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
27984 /* @internal */
27985 export function InvalidShutdownScript_get_script(this_ptr: number): number {
27986         if(!isWasmInitialized) {
27987                 throw new Error("initializeWasm() must be awaited first!");
27988         }
27989         const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
27990         return nativeResponseValue;
27991 }
27992         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
27993 /* @internal */
27994 export function InvalidShutdownScript_set_script(this_ptr: number, val: number): void {
27995         if(!isWasmInitialized) {
27996                 throw new Error("initializeWasm() must be awaited first!");
27997         }
27998         const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
27999         // debug statements here
28000 }
28001         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
28002 /* @internal */
28003 export function InvalidShutdownScript_new(script_arg: number): number {
28004         if(!isWasmInitialized) {
28005                 throw new Error("initializeWasm() must be awaited first!");
28006         }
28007         const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
28008         return nativeResponseValue;
28009 }
28010         // uintptr_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
28011 /* @internal */
28012 export function InvalidShutdownScript_clone_ptr(arg: number): number {
28013         if(!isWasmInitialized) {
28014                 throw new Error("initializeWasm() must be awaited first!");
28015         }
28016         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
28017         return nativeResponseValue;
28018 }
28019         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
28020 /* @internal */
28021 export function InvalidShutdownScript_clone(orig: number): number {
28022         if(!isWasmInitialized) {
28023                 throw new Error("initializeWasm() must be awaited first!");
28024         }
28025         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
28026         return nativeResponseValue;
28027 }
28028         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
28029 /* @internal */
28030 export function ShutdownScript_write(obj: number): number {
28031         if(!isWasmInitialized) {
28032                 throw new Error("initializeWasm() must be awaited first!");
28033         }
28034         const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
28035         return nativeResponseValue;
28036 }
28037         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
28038 /* @internal */
28039 export function ShutdownScript_read(ser: number): number {
28040         if(!isWasmInitialized) {
28041                 throw new Error("initializeWasm() must be awaited first!");
28042         }
28043         const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
28044         return nativeResponseValue;
28045 }
28046         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
28047 /* @internal */
28048 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): number {
28049         if(!isWasmInitialized) {
28050                 throw new Error("initializeWasm() must be awaited first!");
28051         }
28052         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
28053         return nativeResponseValue;
28054 }
28055         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
28056 /* @internal */
28057 export function ShutdownScript_new_p2wsh(script_hash: number): number {
28058         if(!isWasmInitialized) {
28059                 throw new Error("initializeWasm() must be awaited first!");
28060         }
28061         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
28062         return nativeResponseValue;
28063 }
28064         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
28065 /* @internal */
28066 export function ShutdownScript_new_witness_program(version: number, program: number): number {
28067         if(!isWasmInitialized) {
28068                 throw new Error("initializeWasm() must be awaited first!");
28069         }
28070         const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
28071         return nativeResponseValue;
28072 }
28073         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
28074 /* @internal */
28075 export function ShutdownScript_into_inner(this_arg: number): number {
28076         if(!isWasmInitialized) {
28077                 throw new Error("initializeWasm() must be awaited first!");
28078         }
28079         const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
28080         return nativeResponseValue;
28081 }
28082         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
28083 /* @internal */
28084 export function ShutdownScript_as_legacy_pubkey(this_arg: number): number {
28085         if(!isWasmInitialized) {
28086                 throw new Error("initializeWasm() must be awaited first!");
28087         }
28088         const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
28089         return nativeResponseValue;
28090 }
28091         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
28092 /* @internal */
28093 export function ShutdownScript_is_compatible(this_arg: number, features: number): boolean {
28094         if(!isWasmInitialized) {
28095                 throw new Error("initializeWasm() must be awaited first!");
28096         }
28097         const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
28098         return nativeResponseValue;
28099 }
28100         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
28101 /* @internal */
28102 export function CustomMessageReader_free(this_ptr: number): void {
28103         if(!isWasmInitialized) {
28104                 throw new Error("initializeWasm() must be awaited first!");
28105         }
28106         const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
28107         // debug statements here
28108 }
28109         // uintptr_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
28110 /* @internal */
28111 export function Type_clone_ptr(arg: number): number {
28112         if(!isWasmInitialized) {
28113                 throw new Error("initializeWasm() must be awaited first!");
28114         }
28115         const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
28116         return nativeResponseValue;
28117 }
28118         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
28119 /* @internal */
28120 export function Type_clone(orig: number): number {
28121         if(!isWasmInitialized) {
28122                 throw new Error("initializeWasm() must be awaited first!");
28123         }
28124         const nativeResponseValue = wasm.TS_Type_clone(orig);
28125         return nativeResponseValue;
28126 }
28127         // void Type_free(struct LDKType this_ptr);
28128 /* @internal */
28129 export function Type_free(this_ptr: number): void {
28130         if(!isWasmInitialized) {
28131                 throw new Error("initializeWasm() must be awaited first!");
28132         }
28133         const nativeResponseValue = wasm.TS_Type_free(this_ptr);
28134         // debug statements here
28135 }
28136         // void NodeId_free(struct LDKNodeId this_obj);
28137 /* @internal */
28138 export function NodeId_free(this_obj: number): void {
28139         if(!isWasmInitialized) {
28140                 throw new Error("initializeWasm() must be awaited first!");
28141         }
28142         const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
28143         // debug statements here
28144 }
28145         // uintptr_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
28146 /* @internal */
28147 export function NodeId_clone_ptr(arg: number): number {
28148         if(!isWasmInitialized) {
28149                 throw new Error("initializeWasm() must be awaited first!");
28150         }
28151         const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
28152         return nativeResponseValue;
28153 }
28154         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
28155 /* @internal */
28156 export function NodeId_clone(orig: number): number {
28157         if(!isWasmInitialized) {
28158                 throw new Error("initializeWasm() must be awaited first!");
28159         }
28160         const nativeResponseValue = wasm.TS_NodeId_clone(orig);
28161         return nativeResponseValue;
28162 }
28163         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
28164 /* @internal */
28165 export function NodeId_from_pubkey(pubkey: number): number {
28166         if(!isWasmInitialized) {
28167                 throw new Error("initializeWasm() must be awaited first!");
28168         }
28169         const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
28170         return nativeResponseValue;
28171 }
28172         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
28173 /* @internal */
28174 export function NodeId_as_slice(this_arg: number): number {
28175         if(!isWasmInitialized) {
28176                 throw new Error("initializeWasm() must be awaited first!");
28177         }
28178         const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
28179         return nativeResponseValue;
28180 }
28181         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
28182 /* @internal */
28183 export function NodeId_hash(o: number): bigint {
28184         if(!isWasmInitialized) {
28185                 throw new Error("initializeWasm() must be awaited first!");
28186         }
28187         const nativeResponseValue = wasm.TS_NodeId_hash(o);
28188         return nativeResponseValue;
28189 }
28190         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
28191 /* @internal */
28192 export function NodeId_write(obj: number): number {
28193         if(!isWasmInitialized) {
28194                 throw new Error("initializeWasm() must be awaited first!");
28195         }
28196         const nativeResponseValue = wasm.TS_NodeId_write(obj);
28197         return nativeResponseValue;
28198 }
28199         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
28200 /* @internal */
28201 export function NodeId_read(ser: number): number {
28202         if(!isWasmInitialized) {
28203                 throw new Error("initializeWasm() must be awaited first!");
28204         }
28205         const nativeResponseValue = wasm.TS_NodeId_read(ser);
28206         return nativeResponseValue;
28207 }
28208         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
28209 /* @internal */
28210 export function NetworkGraph_free(this_obj: number): void {
28211         if(!isWasmInitialized) {
28212                 throw new Error("initializeWasm() must be awaited first!");
28213         }
28214         const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
28215         // debug statements here
28216 }
28217         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
28218 /* @internal */
28219 export function ReadOnlyNetworkGraph_free(this_obj: number): void {
28220         if(!isWasmInitialized) {
28221                 throw new Error("initializeWasm() must be awaited first!");
28222         }
28223         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
28224         // debug statements here
28225 }
28226         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
28227 /* @internal */
28228 export function NetworkUpdate_free(this_ptr: number): void {
28229         if(!isWasmInitialized) {
28230                 throw new Error("initializeWasm() must be awaited first!");
28231         }
28232         const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
28233         // debug statements here
28234 }
28235         // uintptr_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
28236 /* @internal */
28237 export function NetworkUpdate_clone_ptr(arg: number): number {
28238         if(!isWasmInitialized) {
28239                 throw new Error("initializeWasm() must be awaited first!");
28240         }
28241         const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
28242         return nativeResponseValue;
28243 }
28244         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
28245 /* @internal */
28246 export function NetworkUpdate_clone(orig: number): number {
28247         if(!isWasmInitialized) {
28248                 throw new Error("initializeWasm() must be awaited first!");
28249         }
28250         const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
28251         return nativeResponseValue;
28252 }
28253         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
28254 /* @internal */
28255 export function NetworkUpdate_channel_update_message(msg: number): number {
28256         if(!isWasmInitialized) {
28257                 throw new Error("initializeWasm() must be awaited first!");
28258         }
28259         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
28260         return nativeResponseValue;
28261 }
28262         // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
28263 /* @internal */
28264 export function NetworkUpdate_channel_failure(short_channel_id: bigint, is_permanent: boolean): number {
28265         if(!isWasmInitialized) {
28266                 throw new Error("initializeWasm() must be awaited first!");
28267         }
28268         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_failure(short_channel_id, is_permanent);
28269         return nativeResponseValue;
28270 }
28271         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
28272 /* @internal */
28273 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): number {
28274         if(!isWasmInitialized) {
28275                 throw new Error("initializeWasm() must be awaited first!");
28276         }
28277         const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
28278         return nativeResponseValue;
28279 }
28280         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
28281 /* @internal */
28282 export function NetworkUpdate_write(obj: number): number {
28283         if(!isWasmInitialized) {
28284                 throw new Error("initializeWasm() must be awaited first!");
28285         }
28286         const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
28287         return nativeResponseValue;
28288 }
28289         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
28290 /* @internal */
28291 export function NetworkUpdate_read(ser: number): number {
28292         if(!isWasmInitialized) {
28293                 throw new Error("initializeWasm() must be awaited first!");
28294         }
28295         const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
28296         return nativeResponseValue;
28297 }
28298         // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
28299 /* @internal */
28300 export function P2PGossipSync_free(this_obj: number): void {
28301         if(!isWasmInitialized) {
28302                 throw new Error("initializeWasm() must be awaited first!");
28303         }
28304         const nativeResponseValue = wasm.TS_P2PGossipSync_free(this_obj);
28305         // debug statements here
28306 }
28307         // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
28308 /* @internal */
28309 export function P2PGossipSync_new(network_graph: number, chain_access: number, logger: number): number {
28310         if(!isWasmInitialized) {
28311                 throw new Error("initializeWasm() must be awaited first!");
28312         }
28313         const nativeResponseValue = wasm.TS_P2PGossipSync_new(network_graph, chain_access, logger);
28314         return nativeResponseValue;
28315 }
28316         // void P2PGossipSync_add_chain_access(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
28317 /* @internal */
28318 export function P2PGossipSync_add_chain_access(this_arg: number, chain_access: number): void {
28319         if(!isWasmInitialized) {
28320                 throw new Error("initializeWasm() must be awaited first!");
28321         }
28322         const nativeResponseValue = wasm.TS_P2PGossipSync_add_chain_access(this_arg, chain_access);
28323         // debug statements here
28324 }
28325         // struct LDKEventHandler NetworkGraph_as_EventHandler(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
28326 /* @internal */
28327 export function NetworkGraph_as_EventHandler(this_arg: number): number {
28328         if(!isWasmInitialized) {
28329                 throw new Error("initializeWasm() must be awaited first!");
28330         }
28331         const nativeResponseValue = wasm.TS_NetworkGraph_as_EventHandler(this_arg);
28332         return nativeResponseValue;
28333 }
28334         // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
28335 /* @internal */
28336 export function P2PGossipSync_as_RoutingMessageHandler(this_arg: number): number {
28337         if(!isWasmInitialized) {
28338                 throw new Error("initializeWasm() must be awaited first!");
28339         }
28340         const nativeResponseValue = wasm.TS_P2PGossipSync_as_RoutingMessageHandler(this_arg);
28341         return nativeResponseValue;
28342 }
28343         // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
28344 /* @internal */
28345 export function P2PGossipSync_as_MessageSendEventsProvider(this_arg: number): number {
28346         if(!isWasmInitialized) {
28347                 throw new Error("initializeWasm() must be awaited first!");
28348         }
28349         const nativeResponseValue = wasm.TS_P2PGossipSync_as_MessageSendEventsProvider(this_arg);
28350         return nativeResponseValue;
28351 }
28352         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
28353 /* @internal */
28354 export function ChannelUpdateInfo_free(this_obj: number): void {
28355         if(!isWasmInitialized) {
28356                 throw new Error("initializeWasm() must be awaited first!");
28357         }
28358         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
28359         // debug statements here
28360 }
28361         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28362 /* @internal */
28363 export function ChannelUpdateInfo_get_last_update(this_ptr: number): number {
28364         if(!isWasmInitialized) {
28365                 throw new Error("initializeWasm() must be awaited first!");
28366         }
28367         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
28368         return nativeResponseValue;
28369 }
28370         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
28371 /* @internal */
28372 export function ChannelUpdateInfo_set_last_update(this_ptr: number, val: number): void {
28373         if(!isWasmInitialized) {
28374                 throw new Error("initializeWasm() must be awaited first!");
28375         }
28376         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
28377         // debug statements here
28378 }
28379         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28380 /* @internal */
28381 export function ChannelUpdateInfo_get_enabled(this_ptr: number): boolean {
28382         if(!isWasmInitialized) {
28383                 throw new Error("initializeWasm() must be awaited first!");
28384         }
28385         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
28386         return nativeResponseValue;
28387 }
28388         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
28389 /* @internal */
28390 export function ChannelUpdateInfo_set_enabled(this_ptr: number, val: boolean): void {
28391         if(!isWasmInitialized) {
28392                 throw new Error("initializeWasm() must be awaited first!");
28393         }
28394         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
28395         // debug statements here
28396 }
28397         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28398 /* @internal */
28399 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: number): number {
28400         if(!isWasmInitialized) {
28401                 throw new Error("initializeWasm() must be awaited first!");
28402         }
28403         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
28404         return nativeResponseValue;
28405 }
28406         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
28407 /* @internal */
28408 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
28409         if(!isWasmInitialized) {
28410                 throw new Error("initializeWasm() must be awaited first!");
28411         }
28412         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
28413         // debug statements here
28414 }
28415         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28416 /* @internal */
28417 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: number): bigint {
28418         if(!isWasmInitialized) {
28419                 throw new Error("initializeWasm() must be awaited first!");
28420         }
28421         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
28422         return nativeResponseValue;
28423 }
28424         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
28425 /* @internal */
28426 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
28427         if(!isWasmInitialized) {
28428                 throw new Error("initializeWasm() must be awaited first!");
28429         }
28430         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
28431         // debug statements here
28432 }
28433         // struct LDKCOption_u64Z ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28434 /* @internal */
28435 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: number): number {
28436         if(!isWasmInitialized) {
28437                 throw new Error("initializeWasm() must be awaited first!");
28438         }
28439         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
28440         return nativeResponseValue;
28441 }
28442         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28443 /* @internal */
28444 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: number, val: number): void {
28445         if(!isWasmInitialized) {
28446                 throw new Error("initializeWasm() must be awaited first!");
28447         }
28448         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
28449         // debug statements here
28450 }
28451         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28452 /* @internal */
28453 export function ChannelUpdateInfo_get_fees(this_ptr: number): number {
28454         if(!isWasmInitialized) {
28455                 throw new Error("initializeWasm() must be awaited first!");
28456         }
28457         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
28458         return nativeResponseValue;
28459 }
28460         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
28461 /* @internal */
28462 export function ChannelUpdateInfo_set_fees(this_ptr: number, val: number): void {
28463         if(!isWasmInitialized) {
28464                 throw new Error("initializeWasm() must be awaited first!");
28465         }
28466         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
28467         // debug statements here
28468 }
28469         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28470 /* @internal */
28471 export function ChannelUpdateInfo_get_last_update_message(this_ptr: number): number {
28472         if(!isWasmInitialized) {
28473                 throw new Error("initializeWasm() must be awaited first!");
28474         }
28475         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
28476         return nativeResponseValue;
28477 }
28478         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
28479 /* @internal */
28480 export function ChannelUpdateInfo_set_last_update_message(this_ptr: number, val: number): void {
28481         if(!isWasmInitialized) {
28482                 throw new Error("initializeWasm() must be awaited first!");
28483         }
28484         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
28485         // debug statements here
28486 }
28487         // 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);
28488 /* @internal */
28489 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 {
28490         if(!isWasmInitialized) {
28491                 throw new Error("initializeWasm() must be awaited first!");
28492         }
28493         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);
28494         return nativeResponseValue;
28495 }
28496         // uintptr_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
28497 /* @internal */
28498 export function ChannelUpdateInfo_clone_ptr(arg: number): number {
28499         if(!isWasmInitialized) {
28500                 throw new Error("initializeWasm() must be awaited first!");
28501         }
28502         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
28503         return nativeResponseValue;
28504 }
28505         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
28506 /* @internal */
28507 export function ChannelUpdateInfo_clone(orig: number): number {
28508         if(!isWasmInitialized) {
28509                 throw new Error("initializeWasm() must be awaited first!");
28510         }
28511         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
28512         return nativeResponseValue;
28513 }
28514         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
28515 /* @internal */
28516 export function ChannelUpdateInfo_write(obj: number): number {
28517         if(!isWasmInitialized) {
28518                 throw new Error("initializeWasm() must be awaited first!");
28519         }
28520         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
28521         return nativeResponseValue;
28522 }
28523         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
28524 /* @internal */
28525 export function ChannelUpdateInfo_read(ser: number): number {
28526         if(!isWasmInitialized) {
28527                 throw new Error("initializeWasm() must be awaited first!");
28528         }
28529         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
28530         return nativeResponseValue;
28531 }
28532         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
28533 /* @internal */
28534 export function ChannelInfo_free(this_obj: number): void {
28535         if(!isWasmInitialized) {
28536                 throw new Error("initializeWasm() must be awaited first!");
28537         }
28538         const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
28539         // debug statements here
28540 }
28541         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28542 /* @internal */
28543 export function ChannelInfo_get_features(this_ptr: number): number {
28544         if(!isWasmInitialized) {
28545                 throw new Error("initializeWasm() must be awaited first!");
28546         }
28547         const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
28548         return nativeResponseValue;
28549 }
28550         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
28551 /* @internal */
28552 export function ChannelInfo_set_features(this_ptr: number, val: number): void {
28553         if(!isWasmInitialized) {
28554                 throw new Error("initializeWasm() must be awaited first!");
28555         }
28556         const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
28557         // debug statements here
28558 }
28559         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28560 /* @internal */
28561 export function ChannelInfo_get_node_one(this_ptr: number): number {
28562         if(!isWasmInitialized) {
28563                 throw new Error("initializeWasm() must be awaited first!");
28564         }
28565         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
28566         return nativeResponseValue;
28567 }
28568         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
28569 /* @internal */
28570 export function ChannelInfo_set_node_one(this_ptr: number, val: number): void {
28571         if(!isWasmInitialized) {
28572                 throw new Error("initializeWasm() must be awaited first!");
28573         }
28574         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
28575         // debug statements here
28576 }
28577         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28578 /* @internal */
28579 export function ChannelInfo_get_one_to_two(this_ptr: number): number {
28580         if(!isWasmInitialized) {
28581                 throw new Error("initializeWasm() must be awaited first!");
28582         }
28583         const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
28584         return nativeResponseValue;
28585 }
28586         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
28587 /* @internal */
28588 export function ChannelInfo_set_one_to_two(this_ptr: number, val: number): void {
28589         if(!isWasmInitialized) {
28590                 throw new Error("initializeWasm() must be awaited first!");
28591         }
28592         const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
28593         // debug statements here
28594 }
28595         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28596 /* @internal */
28597 export function ChannelInfo_get_node_two(this_ptr: number): number {
28598         if(!isWasmInitialized) {
28599                 throw new Error("initializeWasm() must be awaited first!");
28600         }
28601         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
28602         return nativeResponseValue;
28603 }
28604         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
28605 /* @internal */
28606 export function ChannelInfo_set_node_two(this_ptr: number, val: number): void {
28607         if(!isWasmInitialized) {
28608                 throw new Error("initializeWasm() must be awaited first!");
28609         }
28610         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
28611         // debug statements here
28612 }
28613         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28614 /* @internal */
28615 export function ChannelInfo_get_two_to_one(this_ptr: number): number {
28616         if(!isWasmInitialized) {
28617                 throw new Error("initializeWasm() must be awaited first!");
28618         }
28619         const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
28620         return nativeResponseValue;
28621 }
28622         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
28623 /* @internal */
28624 export function ChannelInfo_set_two_to_one(this_ptr: number, val: number): void {
28625         if(!isWasmInitialized) {
28626                 throw new Error("initializeWasm() must be awaited first!");
28627         }
28628         const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
28629         // debug statements here
28630 }
28631         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28632 /* @internal */
28633 export function ChannelInfo_get_capacity_sats(this_ptr: number): number {
28634         if(!isWasmInitialized) {
28635                 throw new Error("initializeWasm() must be awaited first!");
28636         }
28637         const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
28638         return nativeResponseValue;
28639 }
28640         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28641 /* @internal */
28642 export function ChannelInfo_set_capacity_sats(this_ptr: number, val: number): void {
28643         if(!isWasmInitialized) {
28644                 throw new Error("initializeWasm() must be awaited first!");
28645         }
28646         const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
28647         // debug statements here
28648 }
28649         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28650 /* @internal */
28651 export function ChannelInfo_get_announcement_message(this_ptr: number): number {
28652         if(!isWasmInitialized) {
28653                 throw new Error("initializeWasm() must be awaited first!");
28654         }
28655         const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
28656         return nativeResponseValue;
28657 }
28658         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
28659 /* @internal */
28660 export function ChannelInfo_set_announcement_message(this_ptr: number, val: number): void {
28661         if(!isWasmInitialized) {
28662                 throw new Error("initializeWasm() must be awaited first!");
28663         }
28664         const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
28665         // debug statements here
28666 }
28667         // uintptr_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
28668 /* @internal */
28669 export function ChannelInfo_clone_ptr(arg: number): number {
28670         if(!isWasmInitialized) {
28671                 throw new Error("initializeWasm() must be awaited first!");
28672         }
28673         const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
28674         return nativeResponseValue;
28675 }
28676         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
28677 /* @internal */
28678 export function ChannelInfo_clone(orig: number): number {
28679         if(!isWasmInitialized) {
28680                 throw new Error("initializeWasm() must be awaited first!");
28681         }
28682         const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
28683         return nativeResponseValue;
28684 }
28685         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
28686 /* @internal */
28687 export function ChannelInfo_get_directional_info(this_arg: number, channel_flags: number): number {
28688         if(!isWasmInitialized) {
28689                 throw new Error("initializeWasm() must be awaited first!");
28690         }
28691         const nativeResponseValue = wasm.TS_ChannelInfo_get_directional_info(this_arg, channel_flags);
28692         return nativeResponseValue;
28693 }
28694         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
28695 /* @internal */
28696 export function ChannelInfo_write(obj: number): number {
28697         if(!isWasmInitialized) {
28698                 throw new Error("initializeWasm() must be awaited first!");
28699         }
28700         const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
28701         return nativeResponseValue;
28702 }
28703         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
28704 /* @internal */
28705 export function ChannelInfo_read(ser: number): number {
28706         if(!isWasmInitialized) {
28707                 throw new Error("initializeWasm() must be awaited first!");
28708         }
28709         const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
28710         return nativeResponseValue;
28711 }
28712         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
28713 /* @internal */
28714 export function DirectedChannelInfo_free(this_obj: number): void {
28715         if(!isWasmInitialized) {
28716                 throw new Error("initializeWasm() must be awaited first!");
28717         }
28718         const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
28719         // debug statements here
28720 }
28721         // uintptr_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
28722 /* @internal */
28723 export function DirectedChannelInfo_clone_ptr(arg: number): number {
28724         if(!isWasmInitialized) {
28725                 throw new Error("initializeWasm() must be awaited first!");
28726         }
28727         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
28728         return nativeResponseValue;
28729 }
28730         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
28731 /* @internal */
28732 export function DirectedChannelInfo_clone(orig: number): number {
28733         if(!isWasmInitialized) {
28734                 throw new Error("initializeWasm() must be awaited first!");
28735         }
28736         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
28737         return nativeResponseValue;
28738 }
28739         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
28740 /* @internal */
28741 export function DirectedChannelInfo_channel(this_arg: number): number {
28742         if(!isWasmInitialized) {
28743                 throw new Error("initializeWasm() must be awaited first!");
28744         }
28745         const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
28746         return nativeResponseValue;
28747 }
28748         // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
28749 /* @internal */
28750 export function DirectedChannelInfo_direction(this_arg: number): number {
28751         if(!isWasmInitialized) {
28752                 throw new Error("initializeWasm() must be awaited first!");
28753         }
28754         const nativeResponseValue = wasm.TS_DirectedChannelInfo_direction(this_arg);
28755         return nativeResponseValue;
28756 }
28757         // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
28758 /* @internal */
28759 export function DirectedChannelInfo_htlc_maximum_msat(this_arg: number): bigint {
28760         if(!isWasmInitialized) {
28761                 throw new Error("initializeWasm() must be awaited first!");
28762         }
28763         const nativeResponseValue = wasm.TS_DirectedChannelInfo_htlc_maximum_msat(this_arg);
28764         return nativeResponseValue;
28765 }
28766         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
28767 /* @internal */
28768 export function DirectedChannelInfo_effective_capacity(this_arg: number): number {
28769         if(!isWasmInitialized) {
28770                 throw new Error("initializeWasm() must be awaited first!");
28771         }
28772         const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
28773         return nativeResponseValue;
28774 }
28775         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
28776 /* @internal */
28777 export function EffectiveCapacity_free(this_ptr: number): void {
28778         if(!isWasmInitialized) {
28779                 throw new Error("initializeWasm() must be awaited first!");
28780         }
28781         const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
28782         // debug statements here
28783 }
28784         // uintptr_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
28785 /* @internal */
28786 export function EffectiveCapacity_clone_ptr(arg: number): number {
28787         if(!isWasmInitialized) {
28788                 throw new Error("initializeWasm() must be awaited first!");
28789         }
28790         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
28791         return nativeResponseValue;
28792 }
28793         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
28794 /* @internal */
28795 export function EffectiveCapacity_clone(orig: number): number {
28796         if(!isWasmInitialized) {
28797                 throw new Error("initializeWasm() must be awaited first!");
28798         }
28799         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
28800         return nativeResponseValue;
28801 }
28802         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
28803 /* @internal */
28804 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): number {
28805         if(!isWasmInitialized) {
28806                 throw new Error("initializeWasm() must be awaited first!");
28807         }
28808         const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
28809         return nativeResponseValue;
28810 }
28811         // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
28812 /* @internal */
28813 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): number {
28814         if(!isWasmInitialized) {
28815                 throw new Error("initializeWasm() must be awaited first!");
28816         }
28817         const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
28818         return nativeResponseValue;
28819 }
28820         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat);
28821 /* @internal */
28822 export function EffectiveCapacity_total(capacity_msat: bigint): number {
28823         if(!isWasmInitialized) {
28824                 throw new Error("initializeWasm() must be awaited first!");
28825         }
28826         const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat);
28827         return nativeResponseValue;
28828 }
28829         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
28830 /* @internal */
28831 export function EffectiveCapacity_infinite(): number {
28832         if(!isWasmInitialized) {
28833                 throw new Error("initializeWasm() must be awaited first!");
28834         }
28835         const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
28836         return nativeResponseValue;
28837 }
28838         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
28839 /* @internal */
28840 export function EffectiveCapacity_unknown(): number {
28841         if(!isWasmInitialized) {
28842                 throw new Error("initializeWasm() must be awaited first!");
28843         }
28844         const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
28845         return nativeResponseValue;
28846 }
28847         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
28848 /* @internal */
28849 export function EffectiveCapacity_as_msat(this_arg: number): bigint {
28850         if(!isWasmInitialized) {
28851                 throw new Error("initializeWasm() must be awaited first!");
28852         }
28853         const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
28854         return nativeResponseValue;
28855 }
28856         // void RoutingFees_free(struct LDKRoutingFees this_obj);
28857 /* @internal */
28858 export function RoutingFees_free(this_obj: number): void {
28859         if(!isWasmInitialized) {
28860                 throw new Error("initializeWasm() must be awaited first!");
28861         }
28862         const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
28863         // debug statements here
28864 }
28865         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
28866 /* @internal */
28867 export function RoutingFees_get_base_msat(this_ptr: number): number {
28868         if(!isWasmInitialized) {
28869                 throw new Error("initializeWasm() must be awaited first!");
28870         }
28871         const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
28872         return nativeResponseValue;
28873 }
28874         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
28875 /* @internal */
28876 export function RoutingFees_set_base_msat(this_ptr: number, val: number): void {
28877         if(!isWasmInitialized) {
28878                 throw new Error("initializeWasm() must be awaited first!");
28879         }
28880         const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
28881         // debug statements here
28882 }
28883         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
28884 /* @internal */
28885 export function RoutingFees_get_proportional_millionths(this_ptr: number): number {
28886         if(!isWasmInitialized) {
28887                 throw new Error("initializeWasm() must be awaited first!");
28888         }
28889         const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
28890         return nativeResponseValue;
28891 }
28892         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
28893 /* @internal */
28894 export function RoutingFees_set_proportional_millionths(this_ptr: number, val: number): void {
28895         if(!isWasmInitialized) {
28896                 throw new Error("initializeWasm() must be awaited first!");
28897         }
28898         const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
28899         // debug statements here
28900 }
28901         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
28902 /* @internal */
28903 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): number {
28904         if(!isWasmInitialized) {
28905                 throw new Error("initializeWasm() must be awaited first!");
28906         }
28907         const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
28908         return nativeResponseValue;
28909 }
28910         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
28911 /* @internal */
28912 export function RoutingFees_eq(a: number, b: number): boolean {
28913         if(!isWasmInitialized) {
28914                 throw new Error("initializeWasm() must be awaited first!");
28915         }
28916         const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
28917         return nativeResponseValue;
28918 }
28919         // uintptr_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
28920 /* @internal */
28921 export function RoutingFees_clone_ptr(arg: number): number {
28922         if(!isWasmInitialized) {
28923                 throw new Error("initializeWasm() must be awaited first!");
28924         }
28925         const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
28926         return nativeResponseValue;
28927 }
28928         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
28929 /* @internal */
28930 export function RoutingFees_clone(orig: number): number {
28931         if(!isWasmInitialized) {
28932                 throw new Error("initializeWasm() must be awaited first!");
28933         }
28934         const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
28935         return nativeResponseValue;
28936 }
28937         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
28938 /* @internal */
28939 export function RoutingFees_hash(o: number): bigint {
28940         if(!isWasmInitialized) {
28941                 throw new Error("initializeWasm() must be awaited first!");
28942         }
28943         const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
28944         return nativeResponseValue;
28945 }
28946         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
28947 /* @internal */
28948 export function RoutingFees_write(obj: number): number {
28949         if(!isWasmInitialized) {
28950                 throw new Error("initializeWasm() must be awaited first!");
28951         }
28952         const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
28953         return nativeResponseValue;
28954 }
28955         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
28956 /* @internal */
28957 export function RoutingFees_read(ser: number): number {
28958         if(!isWasmInitialized) {
28959                 throw new Error("initializeWasm() must be awaited first!");
28960         }
28961         const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
28962         return nativeResponseValue;
28963 }
28964         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
28965 /* @internal */
28966 export function NodeAnnouncementInfo_free(this_obj: number): void {
28967         if(!isWasmInitialized) {
28968                 throw new Error("initializeWasm() must be awaited first!");
28969         }
28970         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
28971         // debug statements here
28972 }
28973         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
28974 /* @internal */
28975 export function NodeAnnouncementInfo_get_features(this_ptr: number): number {
28976         if(!isWasmInitialized) {
28977                 throw new Error("initializeWasm() must be awaited first!");
28978         }
28979         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
28980         return nativeResponseValue;
28981 }
28982         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
28983 /* @internal */
28984 export function NodeAnnouncementInfo_set_features(this_ptr: number, val: number): void {
28985         if(!isWasmInitialized) {
28986                 throw new Error("initializeWasm() must be awaited first!");
28987         }
28988         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
28989         // debug statements here
28990 }
28991         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
28992 /* @internal */
28993 export function NodeAnnouncementInfo_get_last_update(this_ptr: number): number {
28994         if(!isWasmInitialized) {
28995                 throw new Error("initializeWasm() must be awaited first!");
28996         }
28997         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
28998         return nativeResponseValue;
28999 }
29000         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
29001 /* @internal */
29002 export function NodeAnnouncementInfo_set_last_update(this_ptr: number, val: number): void {
29003         if(!isWasmInitialized) {
29004                 throw new Error("initializeWasm() must be awaited first!");
29005         }
29006         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
29007         // debug statements here
29008 }
29009         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
29010 /* @internal */
29011 export function NodeAnnouncementInfo_get_rgb(this_ptr: number): number {
29012         if(!isWasmInitialized) {
29013                 throw new Error("initializeWasm() must be awaited first!");
29014         }
29015         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
29016         return nativeResponseValue;
29017 }
29018         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
29019 /* @internal */
29020 export function NodeAnnouncementInfo_set_rgb(this_ptr: number, val: number): void {
29021         if(!isWasmInitialized) {
29022                 throw new Error("initializeWasm() must be awaited first!");
29023         }
29024         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
29025         // debug statements here
29026 }
29027         // const uint8_t (*NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[32];
29028 /* @internal */
29029 export function NodeAnnouncementInfo_get_alias(this_ptr: number): number {
29030         if(!isWasmInitialized) {
29031                 throw new Error("initializeWasm() must be awaited first!");
29032         }
29033         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
29034         return nativeResponseValue;
29035 }
29036         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
29037 /* @internal */
29038 export function NodeAnnouncementInfo_set_alias(this_ptr: number, val: number): void {
29039         if(!isWasmInitialized) {
29040                 throw new Error("initializeWasm() must be awaited first!");
29041         }
29042         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
29043         // debug statements here
29044 }
29045         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
29046 /* @internal */
29047 export function NodeAnnouncementInfo_set_addresses(this_ptr: number, val: number): void {
29048         if(!isWasmInitialized) {
29049                 throw new Error("initializeWasm() must be awaited first!");
29050         }
29051         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_addresses(this_ptr, val);
29052         // debug statements here
29053 }
29054         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29055 /* @internal */
29056 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: number): number {
29057         if(!isWasmInitialized) {
29058                 throw new Error("initializeWasm() must be awaited first!");
29059         }
29060         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
29061         return nativeResponseValue;
29062 }
29063         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
29064 /* @internal */
29065 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: number, val: number): void {
29066         if(!isWasmInitialized) {
29067                 throw new Error("initializeWasm() must be awaited first!");
29068         }
29069         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
29070         // debug statements here
29071 }
29072         // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKThirtyTwoBytes alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
29073 /* @internal */
29074 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 {
29075         if(!isWasmInitialized) {
29076                 throw new Error("initializeWasm() must be awaited first!");
29077         }
29078         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, addresses_arg, announcement_message_arg);
29079         return nativeResponseValue;
29080 }
29081         // uintptr_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
29082 /* @internal */
29083 export function NodeAnnouncementInfo_clone_ptr(arg: number): number {
29084         if(!isWasmInitialized) {
29085                 throw new Error("initializeWasm() must be awaited first!");
29086         }
29087         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
29088         return nativeResponseValue;
29089 }
29090         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
29091 /* @internal */
29092 export function NodeAnnouncementInfo_clone(orig: number): number {
29093         if(!isWasmInitialized) {
29094                 throw new Error("initializeWasm() must be awaited first!");
29095         }
29096         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
29097         return nativeResponseValue;
29098 }
29099         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
29100 /* @internal */
29101 export function NodeAnnouncementInfo_write(obj: number): number {
29102         if(!isWasmInitialized) {
29103                 throw new Error("initializeWasm() must be awaited first!");
29104         }
29105         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
29106         return nativeResponseValue;
29107 }
29108         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
29109 /* @internal */
29110 export function NodeAnnouncementInfo_read(ser: number): number {
29111         if(!isWasmInitialized) {
29112                 throw new Error("initializeWasm() must be awaited first!");
29113         }
29114         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
29115         return nativeResponseValue;
29116 }
29117         // void NodeInfo_free(struct LDKNodeInfo this_obj);
29118 /* @internal */
29119 export function NodeInfo_free(this_obj: number): void {
29120         if(!isWasmInitialized) {
29121                 throw new Error("initializeWasm() must be awaited first!");
29122         }
29123         const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
29124         // debug statements here
29125 }
29126         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
29127 /* @internal */
29128 export function NodeInfo_set_channels(this_ptr: number, val: number): void {
29129         if(!isWasmInitialized) {
29130                 throw new Error("initializeWasm() must be awaited first!");
29131         }
29132         const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
29133         // debug statements here
29134 }
29135         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
29136 /* @internal */
29137 export function NodeInfo_get_lowest_inbound_channel_fees(this_ptr: number): number {
29138         if(!isWasmInitialized) {
29139                 throw new Error("initializeWasm() must be awaited first!");
29140         }
29141         const nativeResponseValue = wasm.TS_NodeInfo_get_lowest_inbound_channel_fees(this_ptr);
29142         return nativeResponseValue;
29143 }
29144         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
29145 /* @internal */
29146 export function NodeInfo_set_lowest_inbound_channel_fees(this_ptr: number, val: number): void {
29147         if(!isWasmInitialized) {
29148                 throw new Error("initializeWasm() must be awaited first!");
29149         }
29150         const nativeResponseValue = wasm.TS_NodeInfo_set_lowest_inbound_channel_fees(this_ptr, val);
29151         // debug statements here
29152 }
29153         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
29154 /* @internal */
29155 export function NodeInfo_get_announcement_info(this_ptr: number): number {
29156         if(!isWasmInitialized) {
29157                 throw new Error("initializeWasm() must be awaited first!");
29158         }
29159         const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
29160         return nativeResponseValue;
29161 }
29162         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
29163 /* @internal */
29164 export function NodeInfo_set_announcement_info(this_ptr: number, val: number): void {
29165         if(!isWasmInitialized) {
29166                 throw new Error("initializeWasm() must be awaited first!");
29167         }
29168         const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
29169         // debug statements here
29170 }
29171         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
29172 /* @internal */
29173 export function NodeInfo_new(channels_arg: number, lowest_inbound_channel_fees_arg: number, announcement_info_arg: number): number {
29174         if(!isWasmInitialized) {
29175                 throw new Error("initializeWasm() must be awaited first!");
29176         }
29177         const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg, announcement_info_arg);
29178         return nativeResponseValue;
29179 }
29180         // uintptr_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
29181 /* @internal */
29182 export function NodeInfo_clone_ptr(arg: number): number {
29183         if(!isWasmInitialized) {
29184                 throw new Error("initializeWasm() must be awaited first!");
29185         }
29186         const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
29187         return nativeResponseValue;
29188 }
29189         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
29190 /* @internal */
29191 export function NodeInfo_clone(orig: number): number {
29192         if(!isWasmInitialized) {
29193                 throw new Error("initializeWasm() must be awaited first!");
29194         }
29195         const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
29196         return nativeResponseValue;
29197 }
29198         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
29199 /* @internal */
29200 export function NodeInfo_write(obj: number): number {
29201         if(!isWasmInitialized) {
29202                 throw new Error("initializeWasm() must be awaited first!");
29203         }
29204         const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
29205         return nativeResponseValue;
29206 }
29207         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
29208 /* @internal */
29209 export function NodeInfo_read(ser: number): number {
29210         if(!isWasmInitialized) {
29211                 throw new Error("initializeWasm() must be awaited first!");
29212         }
29213         const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
29214         return nativeResponseValue;
29215 }
29216         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
29217 /* @internal */
29218 export function NetworkGraph_write(obj: number): number {
29219         if(!isWasmInitialized) {
29220                 throw new Error("initializeWasm() must be awaited first!");
29221         }
29222         const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
29223         return nativeResponseValue;
29224 }
29225         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
29226 /* @internal */
29227 export function NetworkGraph_read(ser: number, arg: number): number {
29228         if(!isWasmInitialized) {
29229                 throw new Error("initializeWasm() must be awaited first!");
29230         }
29231         const nativeResponseValue = wasm.TS_NetworkGraph_read(ser, arg);
29232         return nativeResponseValue;
29233 }
29234         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKLogger logger);
29235 /* @internal */
29236 export function NetworkGraph_new(genesis_hash: number, logger: number): number {
29237         if(!isWasmInitialized) {
29238                 throw new Error("initializeWasm() must be awaited first!");
29239         }
29240         const nativeResponseValue = wasm.TS_NetworkGraph_new(genesis_hash, logger);
29241         return nativeResponseValue;
29242 }
29243         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
29244 /* @internal */
29245 export function NetworkGraph_read_only(this_arg: number): number {
29246         if(!isWasmInitialized) {
29247                 throw new Error("initializeWasm() must be awaited first!");
29248         }
29249         const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
29250         return nativeResponseValue;
29251 }
29252         // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
29253 /* @internal */
29254 export function NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg: number): number {
29255         if(!isWasmInitialized) {
29256                 throw new Error("initializeWasm() must be awaited first!");
29257         }
29258         const nativeResponseValue = wasm.TS_NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg);
29259         return nativeResponseValue;
29260 }
29261         // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
29262 /* @internal */
29263 export function NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg: number, last_rapid_gossip_sync_timestamp: number): void {
29264         if(!isWasmInitialized) {
29265                 throw new Error("initializeWasm() must be awaited first!");
29266         }
29267         const nativeResponseValue = wasm.TS_NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg, last_rapid_gossip_sync_timestamp);
29268         // debug statements here
29269 }
29270         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
29271 /* @internal */
29272 export function NetworkGraph_update_node_from_announcement(this_arg: number, msg: number): number {
29273         if(!isWasmInitialized) {
29274                 throw new Error("initializeWasm() must be awaited first!");
29275         }
29276         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
29277         return nativeResponseValue;
29278 }
29279         // 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);
29280 /* @internal */
29281 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: number, msg: number): number {
29282         if(!isWasmInitialized) {
29283                 throw new Error("initializeWasm() must be awaited first!");
29284         }
29285         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
29286         return nativeResponseValue;
29287 }
29288         // 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);
29289 /* @internal */
29290 export function NetworkGraph_update_channel_from_announcement(this_arg: number, msg: number, chain_access: number): number {
29291         if(!isWasmInitialized) {
29292                 throw new Error("initializeWasm() must be awaited first!");
29293         }
29294         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, chain_access);
29295         return nativeResponseValue;
29296 }
29297         // 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);
29298 /* @internal */
29299 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: number, msg: number, chain_access: number): number {
29300         if(!isWasmInitialized) {
29301                 throw new Error("initializeWasm() must be awaited first!");
29302         }
29303         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, chain_access);
29304         return nativeResponseValue;
29305 }
29306         // 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);
29307 /* @internal */
29308 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 {
29309         if(!isWasmInitialized) {
29310                 throw new Error("initializeWasm() must be awaited first!");
29311         }
29312         const nativeResponseValue = wasm.TS_NetworkGraph_add_channel_from_partial_announcement(this_arg, short_channel_id, timestamp, features, node_id_1, node_id_2);
29313         return nativeResponseValue;
29314 }
29315         // void NetworkGraph_channel_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
29316 /* @internal */
29317 export function NetworkGraph_channel_failed(this_arg: number, short_channel_id: bigint, is_permanent: boolean): void {
29318         if(!isWasmInitialized) {
29319                 throw new Error("initializeWasm() must be awaited first!");
29320         }
29321         const nativeResponseValue = wasm.TS_NetworkGraph_channel_failed(this_arg, short_channel_id, is_permanent);
29322         // debug statements here
29323 }
29324         // void NetworkGraph_node_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
29325 /* @internal */
29326 export function NetworkGraph_node_failed(this_arg: number, _node_id: number, is_permanent: boolean): void {
29327         if(!isWasmInitialized) {
29328                 throw new Error("initializeWasm() must be awaited first!");
29329         }
29330         const nativeResponseValue = wasm.TS_NetworkGraph_node_failed(this_arg, _node_id, is_permanent);
29331         // debug statements here
29332 }
29333         // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
29334 /* @internal */
29335 export function NetworkGraph_remove_stale_channels_with_time(this_arg: number, current_time_unix: bigint): void {
29336         if(!isWasmInitialized) {
29337                 throw new Error("initializeWasm() must be awaited first!");
29338         }
29339         const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_with_time(this_arg, current_time_unix);
29340         // debug statements here
29341 }
29342         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
29343 /* @internal */
29344 export function NetworkGraph_update_channel(this_arg: number, msg: number): number {
29345         if(!isWasmInitialized) {
29346                 throw new Error("initializeWasm() must be awaited first!");
29347         }
29348         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
29349         return nativeResponseValue;
29350 }
29351         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
29352 /* @internal */
29353 export function NetworkGraph_update_channel_unsigned(this_arg: number, msg: number): number {
29354         if(!isWasmInitialized) {
29355                 throw new Error("initializeWasm() must be awaited first!");
29356         }
29357         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
29358         return nativeResponseValue;
29359 }
29360         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
29361 /* @internal */
29362 export function ReadOnlyNetworkGraph_get_addresses(this_arg: number, pubkey: number): number {
29363         if(!isWasmInitialized) {
29364                 throw new Error("initializeWasm() must be awaited first!");
29365         }
29366         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
29367         return nativeResponseValue;
29368 }
29369         // void RouteHop_free(struct LDKRouteHop this_obj);
29370 /* @internal */
29371 export function RouteHop_free(this_obj: number): void {
29372         if(!isWasmInitialized) {
29373                 throw new Error("initializeWasm() must be awaited first!");
29374         }
29375         const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
29376         // debug statements here
29377 }
29378         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29379 /* @internal */
29380 export function RouteHop_get_pubkey(this_ptr: number): number {
29381         if(!isWasmInitialized) {
29382                 throw new Error("initializeWasm() must be awaited first!");
29383         }
29384         const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
29385         return nativeResponseValue;
29386 }
29387         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29388 /* @internal */
29389 export function RouteHop_set_pubkey(this_ptr: number, val: number): void {
29390         if(!isWasmInitialized) {
29391                 throw new Error("initializeWasm() must be awaited first!");
29392         }
29393         const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
29394         // debug statements here
29395 }
29396         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29397 /* @internal */
29398 export function RouteHop_get_node_features(this_ptr: number): number {
29399         if(!isWasmInitialized) {
29400                 throw new Error("initializeWasm() must be awaited first!");
29401         }
29402         const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
29403         return nativeResponseValue;
29404 }
29405         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
29406 /* @internal */
29407 export function RouteHop_set_node_features(this_ptr: number, val: number): void {
29408         if(!isWasmInitialized) {
29409                 throw new Error("initializeWasm() must be awaited first!");
29410         }
29411         const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
29412         // debug statements here
29413 }
29414         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29415 /* @internal */
29416 export function RouteHop_get_short_channel_id(this_ptr: number): bigint {
29417         if(!isWasmInitialized) {
29418                 throw new Error("initializeWasm() must be awaited first!");
29419         }
29420         const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
29421         return nativeResponseValue;
29422 }
29423         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
29424 /* @internal */
29425 export function RouteHop_set_short_channel_id(this_ptr: number, val: bigint): void {
29426         if(!isWasmInitialized) {
29427                 throw new Error("initializeWasm() must be awaited first!");
29428         }
29429         const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
29430         // debug statements here
29431 }
29432         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29433 /* @internal */
29434 export function RouteHop_get_channel_features(this_ptr: number): number {
29435         if(!isWasmInitialized) {
29436                 throw new Error("initializeWasm() must be awaited first!");
29437         }
29438         const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
29439         return nativeResponseValue;
29440 }
29441         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
29442 /* @internal */
29443 export function RouteHop_set_channel_features(this_ptr: number, val: number): void {
29444         if(!isWasmInitialized) {
29445                 throw new Error("initializeWasm() must be awaited first!");
29446         }
29447         const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
29448         // debug statements here
29449 }
29450         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29451 /* @internal */
29452 export function RouteHop_get_fee_msat(this_ptr: number): bigint {
29453         if(!isWasmInitialized) {
29454                 throw new Error("initializeWasm() must be awaited first!");
29455         }
29456         const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
29457         return nativeResponseValue;
29458 }
29459         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
29460 /* @internal */
29461 export function RouteHop_set_fee_msat(this_ptr: number, val: bigint): void {
29462         if(!isWasmInitialized) {
29463                 throw new Error("initializeWasm() must be awaited first!");
29464         }
29465         const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
29466         // debug statements here
29467 }
29468         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29469 /* @internal */
29470 export function RouteHop_get_cltv_expiry_delta(this_ptr: number): number {
29471         if(!isWasmInitialized) {
29472                 throw new Error("initializeWasm() must be awaited first!");
29473         }
29474         const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
29475         return nativeResponseValue;
29476 }
29477         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
29478 /* @internal */
29479 export function RouteHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
29480         if(!isWasmInitialized) {
29481                 throw new Error("initializeWasm() must be awaited first!");
29482         }
29483         const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
29484         // debug statements here
29485 }
29486         // 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);
29487 /* @internal */
29488 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 {
29489         if(!isWasmInitialized) {
29490                 throw new Error("initializeWasm() must be awaited first!");
29491         }
29492         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);
29493         return nativeResponseValue;
29494 }
29495         // uintptr_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
29496 /* @internal */
29497 export function RouteHop_clone_ptr(arg: number): number {
29498         if(!isWasmInitialized) {
29499                 throw new Error("initializeWasm() must be awaited first!");
29500         }
29501         const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
29502         return nativeResponseValue;
29503 }
29504         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
29505 /* @internal */
29506 export function RouteHop_clone(orig: number): number {
29507         if(!isWasmInitialized) {
29508                 throw new Error("initializeWasm() must be awaited first!");
29509         }
29510         const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
29511         return nativeResponseValue;
29512 }
29513         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
29514 /* @internal */
29515 export function RouteHop_hash(o: number): bigint {
29516         if(!isWasmInitialized) {
29517                 throw new Error("initializeWasm() must be awaited first!");
29518         }
29519         const nativeResponseValue = wasm.TS_RouteHop_hash(o);
29520         return nativeResponseValue;
29521 }
29522         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
29523 /* @internal */
29524 export function RouteHop_eq(a: number, b: number): boolean {
29525         if(!isWasmInitialized) {
29526                 throw new Error("initializeWasm() must be awaited first!");
29527         }
29528         const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
29529         return nativeResponseValue;
29530 }
29531         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
29532 /* @internal */
29533 export function RouteHop_write(obj: number): number {
29534         if(!isWasmInitialized) {
29535                 throw new Error("initializeWasm() must be awaited first!");
29536         }
29537         const nativeResponseValue = wasm.TS_RouteHop_write(obj);
29538         return nativeResponseValue;
29539 }
29540         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
29541 /* @internal */
29542 export function RouteHop_read(ser: number): number {
29543         if(!isWasmInitialized) {
29544                 throw new Error("initializeWasm() must be awaited first!");
29545         }
29546         const nativeResponseValue = wasm.TS_RouteHop_read(ser);
29547         return nativeResponseValue;
29548 }
29549         // void Route_free(struct LDKRoute this_obj);
29550 /* @internal */
29551 export function Route_free(this_obj: number): void {
29552         if(!isWasmInitialized) {
29553                 throw new Error("initializeWasm() must be awaited first!");
29554         }
29555         const nativeResponseValue = wasm.TS_Route_free(this_obj);
29556         // debug statements here
29557 }
29558         // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
29559 /* @internal */
29560 export function Route_get_paths(this_ptr: number): number {
29561         if(!isWasmInitialized) {
29562                 throw new Error("initializeWasm() must be awaited first!");
29563         }
29564         const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
29565         return nativeResponseValue;
29566 }
29567         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
29568 /* @internal */
29569 export function Route_set_paths(this_ptr: number, val: number): void {
29570         if(!isWasmInitialized) {
29571                 throw new Error("initializeWasm() must be awaited first!");
29572         }
29573         const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
29574         // debug statements here
29575 }
29576         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
29577 /* @internal */
29578 export function Route_get_payment_params(this_ptr: number): number {
29579         if(!isWasmInitialized) {
29580                 throw new Error("initializeWasm() must be awaited first!");
29581         }
29582         const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
29583         return nativeResponseValue;
29584 }
29585         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
29586 /* @internal */
29587 export function Route_set_payment_params(this_ptr: number, val: number): void {
29588         if(!isWasmInitialized) {
29589                 throw new Error("initializeWasm() must be awaited first!");
29590         }
29591         const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
29592         // debug statements here
29593 }
29594         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
29595 /* @internal */
29596 export function Route_new(paths_arg: number, payment_params_arg: number): number {
29597         if(!isWasmInitialized) {
29598                 throw new Error("initializeWasm() must be awaited first!");
29599         }
29600         const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
29601         return nativeResponseValue;
29602 }
29603         // uintptr_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
29604 /* @internal */
29605 export function Route_clone_ptr(arg: number): number {
29606         if(!isWasmInitialized) {
29607                 throw new Error("initializeWasm() must be awaited first!");
29608         }
29609         const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
29610         return nativeResponseValue;
29611 }
29612         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
29613 /* @internal */
29614 export function Route_clone(orig: number): number {
29615         if(!isWasmInitialized) {
29616                 throw new Error("initializeWasm() must be awaited first!");
29617         }
29618         const nativeResponseValue = wasm.TS_Route_clone(orig);
29619         return nativeResponseValue;
29620 }
29621         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
29622 /* @internal */
29623 export function Route_hash(o: number): bigint {
29624         if(!isWasmInitialized) {
29625                 throw new Error("initializeWasm() must be awaited first!");
29626         }
29627         const nativeResponseValue = wasm.TS_Route_hash(o);
29628         return nativeResponseValue;
29629 }
29630         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
29631 /* @internal */
29632 export function Route_eq(a: number, b: number): boolean {
29633         if(!isWasmInitialized) {
29634                 throw new Error("initializeWasm() must be awaited first!");
29635         }
29636         const nativeResponseValue = wasm.TS_Route_eq(a, b);
29637         return nativeResponseValue;
29638 }
29639         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
29640 /* @internal */
29641 export function Route_get_total_fees(this_arg: number): bigint {
29642         if(!isWasmInitialized) {
29643                 throw new Error("initializeWasm() must be awaited first!");
29644         }
29645         const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
29646         return nativeResponseValue;
29647 }
29648         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
29649 /* @internal */
29650 export function Route_get_total_amount(this_arg: number): bigint {
29651         if(!isWasmInitialized) {
29652                 throw new Error("initializeWasm() must be awaited first!");
29653         }
29654         const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
29655         return nativeResponseValue;
29656 }
29657         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
29658 /* @internal */
29659 export function Route_write(obj: number): number {
29660         if(!isWasmInitialized) {
29661                 throw new Error("initializeWasm() must be awaited first!");
29662         }
29663         const nativeResponseValue = wasm.TS_Route_write(obj);
29664         return nativeResponseValue;
29665 }
29666         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
29667 /* @internal */
29668 export function Route_read(ser: number): number {
29669         if(!isWasmInitialized) {
29670                 throw new Error("initializeWasm() must be awaited first!");
29671         }
29672         const nativeResponseValue = wasm.TS_Route_read(ser);
29673         return nativeResponseValue;
29674 }
29675         // void RouteParameters_free(struct LDKRouteParameters this_obj);
29676 /* @internal */
29677 export function RouteParameters_free(this_obj: number): void {
29678         if(!isWasmInitialized) {
29679                 throw new Error("initializeWasm() must be awaited first!");
29680         }
29681         const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
29682         // debug statements here
29683 }
29684         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
29685 /* @internal */
29686 export function RouteParameters_get_payment_params(this_ptr: number): number {
29687         if(!isWasmInitialized) {
29688                 throw new Error("initializeWasm() must be awaited first!");
29689         }
29690         const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
29691         return nativeResponseValue;
29692 }
29693         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
29694 /* @internal */
29695 export function RouteParameters_set_payment_params(this_ptr: number, val: number): void {
29696         if(!isWasmInitialized) {
29697                 throw new Error("initializeWasm() must be awaited first!");
29698         }
29699         const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
29700         // debug statements here
29701 }
29702         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
29703 /* @internal */
29704 export function RouteParameters_get_final_value_msat(this_ptr: number): bigint {
29705         if(!isWasmInitialized) {
29706                 throw new Error("initializeWasm() must be awaited first!");
29707         }
29708         const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
29709         return nativeResponseValue;
29710 }
29711         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
29712 /* @internal */
29713 export function RouteParameters_set_final_value_msat(this_ptr: number, val: bigint): void {
29714         if(!isWasmInitialized) {
29715                 throw new Error("initializeWasm() must be awaited first!");
29716         }
29717         const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
29718         // debug statements here
29719 }
29720         // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
29721 /* @internal */
29722 export function RouteParameters_get_final_cltv_expiry_delta(this_ptr: number): number {
29723         if(!isWasmInitialized) {
29724                 throw new Error("initializeWasm() must be awaited first!");
29725         }
29726         const nativeResponseValue = wasm.TS_RouteParameters_get_final_cltv_expiry_delta(this_ptr);
29727         return nativeResponseValue;
29728 }
29729         // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
29730 /* @internal */
29731 export function RouteParameters_set_final_cltv_expiry_delta(this_ptr: number, val: number): void {
29732         if(!isWasmInitialized) {
29733                 throw new Error("initializeWasm() must be awaited first!");
29734         }
29735         const nativeResponseValue = wasm.TS_RouteParameters_set_final_cltv_expiry_delta(this_ptr, val);
29736         // debug statements here
29737 }
29738         // 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);
29739 /* @internal */
29740 export function RouteParameters_new(payment_params_arg: number, final_value_msat_arg: bigint, final_cltv_expiry_delta_arg: number): number {
29741         if(!isWasmInitialized) {
29742                 throw new Error("initializeWasm() must be awaited first!");
29743         }
29744         const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg, final_cltv_expiry_delta_arg);
29745         return nativeResponseValue;
29746 }
29747         // uintptr_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
29748 /* @internal */
29749 export function RouteParameters_clone_ptr(arg: number): number {
29750         if(!isWasmInitialized) {
29751                 throw new Error("initializeWasm() must be awaited first!");
29752         }
29753         const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
29754         return nativeResponseValue;
29755 }
29756         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
29757 /* @internal */
29758 export function RouteParameters_clone(orig: number): number {
29759         if(!isWasmInitialized) {
29760                 throw new Error("initializeWasm() must be awaited first!");
29761         }
29762         const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
29763         return nativeResponseValue;
29764 }
29765         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
29766 /* @internal */
29767 export function RouteParameters_write(obj: number): number {
29768         if(!isWasmInitialized) {
29769                 throw new Error("initializeWasm() must be awaited first!");
29770         }
29771         const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
29772         return nativeResponseValue;
29773 }
29774         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
29775 /* @internal */
29776 export function RouteParameters_read(ser: number): number {
29777         if(!isWasmInitialized) {
29778                 throw new Error("initializeWasm() must be awaited first!");
29779         }
29780         const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
29781         return nativeResponseValue;
29782 }
29783         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
29784 /* @internal */
29785 export function PaymentParameters_free(this_obj: number): void {
29786         if(!isWasmInitialized) {
29787                 throw new Error("initializeWasm() must be awaited first!");
29788         }
29789         const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
29790         // debug statements here
29791 }
29792         // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
29793 /* @internal */
29794 export function PaymentParameters_get_payee_pubkey(this_ptr: number): number {
29795         if(!isWasmInitialized) {
29796                 throw new Error("initializeWasm() must be awaited first!");
29797         }
29798         const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
29799         return nativeResponseValue;
29800 }
29801         // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29802 /* @internal */
29803 export function PaymentParameters_set_payee_pubkey(this_ptr: number, val: number): void {
29804         if(!isWasmInitialized) {
29805                 throw new Error("initializeWasm() must be awaited first!");
29806         }
29807         const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
29808         // debug statements here
29809 }
29810         // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
29811 /* @internal */
29812 export function PaymentParameters_get_features(this_ptr: number): number {
29813         if(!isWasmInitialized) {
29814                 throw new Error("initializeWasm() must be awaited first!");
29815         }
29816         const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
29817         return nativeResponseValue;
29818 }
29819         // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
29820 /* @internal */
29821 export function PaymentParameters_set_features(this_ptr: number, val: number): void {
29822         if(!isWasmInitialized) {
29823                 throw new Error("initializeWasm() must be awaited first!");
29824         }
29825         const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
29826         // debug statements here
29827 }
29828         // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
29829 /* @internal */
29830 export function PaymentParameters_get_route_hints(this_ptr: number): number {
29831         if(!isWasmInitialized) {
29832                 throw new Error("initializeWasm() must be awaited first!");
29833         }
29834         const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
29835         return nativeResponseValue;
29836 }
29837         // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
29838 /* @internal */
29839 export function PaymentParameters_set_route_hints(this_ptr: number, val: number): void {
29840         if(!isWasmInitialized) {
29841                 throw new Error("initializeWasm() must be awaited first!");
29842         }
29843         const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
29844         // debug statements here
29845 }
29846         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
29847 /* @internal */
29848 export function PaymentParameters_get_expiry_time(this_ptr: number): number {
29849         if(!isWasmInitialized) {
29850                 throw new Error("initializeWasm() must be awaited first!");
29851         }
29852         const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
29853         return nativeResponseValue;
29854 }
29855         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
29856 /* @internal */
29857 export function PaymentParameters_set_expiry_time(this_ptr: number, val: number): void {
29858         if(!isWasmInitialized) {
29859                 throw new Error("initializeWasm() must be awaited first!");
29860         }
29861         const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
29862         // debug statements here
29863 }
29864         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
29865 /* @internal */
29866 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: number): number {
29867         if(!isWasmInitialized) {
29868                 throw new Error("initializeWasm() must be awaited first!");
29869         }
29870         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
29871         return nativeResponseValue;
29872 }
29873         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
29874 /* @internal */
29875 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: number, val: number): void {
29876         if(!isWasmInitialized) {
29877                 throw new Error("initializeWasm() must be awaited first!");
29878         }
29879         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
29880         // debug statements here
29881 }
29882         // 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);
29883 /* @internal */
29884 export function PaymentParameters_new(payee_pubkey_arg: number, features_arg: number, route_hints_arg: number, expiry_time_arg: number, max_total_cltv_expiry_delta_arg: number): number {
29885         if(!isWasmInitialized) {
29886                 throw new Error("initializeWasm() must be awaited first!");
29887         }
29888         const nativeResponseValue = wasm.TS_PaymentParameters_new(payee_pubkey_arg, features_arg, route_hints_arg, expiry_time_arg, max_total_cltv_expiry_delta_arg);
29889         return nativeResponseValue;
29890 }
29891         // uintptr_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
29892 /* @internal */
29893 export function PaymentParameters_clone_ptr(arg: number): number {
29894         if(!isWasmInitialized) {
29895                 throw new Error("initializeWasm() must be awaited first!");
29896         }
29897         const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
29898         return nativeResponseValue;
29899 }
29900         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
29901 /* @internal */
29902 export function PaymentParameters_clone(orig: number): number {
29903         if(!isWasmInitialized) {
29904                 throw new Error("initializeWasm() must be awaited first!");
29905         }
29906         const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
29907         return nativeResponseValue;
29908 }
29909         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
29910 /* @internal */
29911 export function PaymentParameters_hash(o: number): bigint {
29912         if(!isWasmInitialized) {
29913                 throw new Error("initializeWasm() must be awaited first!");
29914         }
29915         const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
29916         return nativeResponseValue;
29917 }
29918         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
29919 /* @internal */
29920 export function PaymentParameters_eq(a: number, b: number): boolean {
29921         if(!isWasmInitialized) {
29922                 throw new Error("initializeWasm() must be awaited first!");
29923         }
29924         const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
29925         return nativeResponseValue;
29926 }
29927         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
29928 /* @internal */
29929 export function PaymentParameters_write(obj: number): number {
29930         if(!isWasmInitialized) {
29931                 throw new Error("initializeWasm() must be awaited first!");
29932         }
29933         const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
29934         return nativeResponseValue;
29935 }
29936         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
29937 /* @internal */
29938 export function PaymentParameters_read(ser: number): number {
29939         if(!isWasmInitialized) {
29940                 throw new Error("initializeWasm() must be awaited first!");
29941         }
29942         const nativeResponseValue = wasm.TS_PaymentParameters_read(ser);
29943         return nativeResponseValue;
29944 }
29945         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
29946 /* @internal */
29947 export function PaymentParameters_from_node_id(payee_pubkey: number): number {
29948         if(!isWasmInitialized) {
29949                 throw new Error("initializeWasm() must be awaited first!");
29950         }
29951         const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey);
29952         return nativeResponseValue;
29953 }
29954         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
29955 /* @internal */
29956 export function PaymentParameters_for_keysend(payee_pubkey: number): number {
29957         if(!isWasmInitialized) {
29958                 throw new Error("initializeWasm() must be awaited first!");
29959         }
29960         const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey);
29961         return nativeResponseValue;
29962 }
29963         // void RouteHint_free(struct LDKRouteHint this_obj);
29964 /* @internal */
29965 export function RouteHint_free(this_obj: number): void {
29966         if(!isWasmInitialized) {
29967                 throw new Error("initializeWasm() must be awaited first!");
29968         }
29969         const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
29970         // debug statements here
29971 }
29972         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
29973 /* @internal */
29974 export function RouteHint_get_a(this_ptr: number): number {
29975         if(!isWasmInitialized) {
29976                 throw new Error("initializeWasm() must be awaited first!");
29977         }
29978         const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
29979         return nativeResponseValue;
29980 }
29981         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
29982 /* @internal */
29983 export function RouteHint_set_a(this_ptr: number, val: number): void {
29984         if(!isWasmInitialized) {
29985                 throw new Error("initializeWasm() must be awaited first!");
29986         }
29987         const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
29988         // debug statements here
29989 }
29990         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
29991 /* @internal */
29992 export function RouteHint_new(a_arg: number): number {
29993         if(!isWasmInitialized) {
29994                 throw new Error("initializeWasm() must be awaited first!");
29995         }
29996         const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
29997         return nativeResponseValue;
29998 }
29999         // uintptr_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
30000 /* @internal */
30001 export function RouteHint_clone_ptr(arg: number): number {
30002         if(!isWasmInitialized) {
30003                 throw new Error("initializeWasm() must be awaited first!");
30004         }
30005         const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
30006         return nativeResponseValue;
30007 }
30008         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
30009 /* @internal */
30010 export function RouteHint_clone(orig: number): number {
30011         if(!isWasmInitialized) {
30012                 throw new Error("initializeWasm() must be awaited first!");
30013         }
30014         const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
30015         return nativeResponseValue;
30016 }
30017         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
30018 /* @internal */
30019 export function RouteHint_hash(o: number): bigint {
30020         if(!isWasmInitialized) {
30021                 throw new Error("initializeWasm() must be awaited first!");
30022         }
30023         const nativeResponseValue = wasm.TS_RouteHint_hash(o);
30024         return nativeResponseValue;
30025 }
30026         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
30027 /* @internal */
30028 export function RouteHint_eq(a: number, b: number): boolean {
30029         if(!isWasmInitialized) {
30030                 throw new Error("initializeWasm() must be awaited first!");
30031         }
30032         const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
30033         return nativeResponseValue;
30034 }
30035         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
30036 /* @internal */
30037 export function RouteHint_write(obj: number): number {
30038         if(!isWasmInitialized) {
30039                 throw new Error("initializeWasm() must be awaited first!");
30040         }
30041         const nativeResponseValue = wasm.TS_RouteHint_write(obj);
30042         return nativeResponseValue;
30043 }
30044         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
30045 /* @internal */
30046 export function RouteHint_read(ser: number): number {
30047         if(!isWasmInitialized) {
30048                 throw new Error("initializeWasm() must be awaited first!");
30049         }
30050         const nativeResponseValue = wasm.TS_RouteHint_read(ser);
30051         return nativeResponseValue;
30052 }
30053         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
30054 /* @internal */
30055 export function RouteHintHop_free(this_obj: number): void {
30056         if(!isWasmInitialized) {
30057                 throw new Error("initializeWasm() must be awaited first!");
30058         }
30059         const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
30060         // debug statements here
30061 }
30062         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30063 /* @internal */
30064 export function RouteHintHop_get_src_node_id(this_ptr: number): number {
30065         if(!isWasmInitialized) {
30066                 throw new Error("initializeWasm() must be awaited first!");
30067         }
30068         const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
30069         return nativeResponseValue;
30070 }
30071         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
30072 /* @internal */
30073 export function RouteHintHop_set_src_node_id(this_ptr: number, val: number): void {
30074         if(!isWasmInitialized) {
30075                 throw new Error("initializeWasm() must be awaited first!");
30076         }
30077         const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
30078         // debug statements here
30079 }
30080         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30081 /* @internal */
30082 export function RouteHintHop_get_short_channel_id(this_ptr: number): bigint {
30083         if(!isWasmInitialized) {
30084                 throw new Error("initializeWasm() must be awaited first!");
30085         }
30086         const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
30087         return nativeResponseValue;
30088 }
30089         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
30090 /* @internal */
30091 export function RouteHintHop_set_short_channel_id(this_ptr: number, val: bigint): void {
30092         if(!isWasmInitialized) {
30093                 throw new Error("initializeWasm() must be awaited first!");
30094         }
30095         const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
30096         // debug statements here
30097 }
30098         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30099 /* @internal */
30100 export function RouteHintHop_get_fees(this_ptr: number): number {
30101         if(!isWasmInitialized) {
30102                 throw new Error("initializeWasm() must be awaited first!");
30103         }
30104         const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
30105         return nativeResponseValue;
30106 }
30107         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
30108 /* @internal */
30109 export function RouteHintHop_set_fees(this_ptr: number, val: number): void {
30110         if(!isWasmInitialized) {
30111                 throw new Error("initializeWasm() must be awaited first!");
30112         }
30113         const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
30114         // debug statements here
30115 }
30116         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30117 /* @internal */
30118 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: number): number {
30119         if(!isWasmInitialized) {
30120                 throw new Error("initializeWasm() must be awaited first!");
30121         }
30122         const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
30123         return nativeResponseValue;
30124 }
30125         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
30126 /* @internal */
30127 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
30128         if(!isWasmInitialized) {
30129                 throw new Error("initializeWasm() must be awaited first!");
30130         }
30131         const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
30132         // debug statements here
30133 }
30134         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30135 /* @internal */
30136 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: number): number {
30137         if(!isWasmInitialized) {
30138                 throw new Error("initializeWasm() must be awaited first!");
30139         }
30140         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
30141         return nativeResponseValue;
30142 }
30143         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30144 /* @internal */
30145 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: number, val: number): void {
30146         if(!isWasmInitialized) {
30147                 throw new Error("initializeWasm() must be awaited first!");
30148         }
30149         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
30150         // debug statements here
30151 }
30152         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30153 /* @internal */
30154 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: number): number {
30155         if(!isWasmInitialized) {
30156                 throw new Error("initializeWasm() must be awaited first!");
30157         }
30158         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
30159         return nativeResponseValue;
30160 }
30161         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30162 /* @internal */
30163 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: number, val: number): void {
30164         if(!isWasmInitialized) {
30165                 throw new Error("initializeWasm() must be awaited first!");
30166         }
30167         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
30168         // debug statements here
30169 }
30170         // 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);
30171 /* @internal */
30172 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 {
30173         if(!isWasmInitialized) {
30174                 throw new Error("initializeWasm() must be awaited first!");
30175         }
30176         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);
30177         return nativeResponseValue;
30178 }
30179         // uintptr_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
30180 /* @internal */
30181 export function RouteHintHop_clone_ptr(arg: number): number {
30182         if(!isWasmInitialized) {
30183                 throw new Error("initializeWasm() must be awaited first!");
30184         }
30185         const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
30186         return nativeResponseValue;
30187 }
30188         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
30189 /* @internal */
30190 export function RouteHintHop_clone(orig: number): number {
30191         if(!isWasmInitialized) {
30192                 throw new Error("initializeWasm() must be awaited first!");
30193         }
30194         const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
30195         return nativeResponseValue;
30196 }
30197         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
30198 /* @internal */
30199 export function RouteHintHop_hash(o: number): bigint {
30200         if(!isWasmInitialized) {
30201                 throw new Error("initializeWasm() must be awaited first!");
30202         }
30203         const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
30204         return nativeResponseValue;
30205 }
30206         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
30207 /* @internal */
30208 export function RouteHintHop_eq(a: number, b: number): boolean {
30209         if(!isWasmInitialized) {
30210                 throw new Error("initializeWasm() must be awaited first!");
30211         }
30212         const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
30213         return nativeResponseValue;
30214 }
30215         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
30216 /* @internal */
30217 export function RouteHintHop_write(obj: number): number {
30218         if(!isWasmInitialized) {
30219                 throw new Error("initializeWasm() must be awaited first!");
30220         }
30221         const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
30222         return nativeResponseValue;
30223 }
30224         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
30225 /* @internal */
30226 export function RouteHintHop_read(ser: number): number {
30227         if(!isWasmInitialized) {
30228                 throw new Error("initializeWasm() must be awaited first!");
30229         }
30230         const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
30231         return nativeResponseValue;
30232 }
30233         // 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]);
30234 /* @internal */
30235 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 {
30236         if(!isWasmInitialized) {
30237                 throw new Error("initializeWasm() must be awaited first!");
30238         }
30239         const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network_graph, first_hops, logger, scorer, random_seed_bytes);
30240         return nativeResponseValue;
30241 }
30242         // 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]);
30243 /* @internal */
30244 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 {
30245         if(!isWasmInitialized) {
30246                 throw new Error("initializeWasm() must be awaited first!");
30247         }
30248         const nativeResponseValue = wasm.TS_build_route_from_hops(our_node_pubkey, hops, route_params, network_graph, logger, random_seed_bytes);
30249         return nativeResponseValue;
30250 }
30251         // void Score_free(struct LDKScore this_ptr);
30252 /* @internal */
30253 export function Score_free(this_ptr: number): void {
30254         if(!isWasmInitialized) {
30255                 throw new Error("initializeWasm() must be awaited first!");
30256         }
30257         const nativeResponseValue = wasm.TS_Score_free(this_ptr);
30258         // debug statements here
30259 }
30260         // void LockableScore_free(struct LDKLockableScore this_ptr);
30261 /* @internal */
30262 export function LockableScore_free(this_ptr: number): void {
30263         if(!isWasmInitialized) {
30264                 throw new Error("initializeWasm() must be awaited first!");
30265         }
30266         const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
30267         // debug statements here
30268 }
30269         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
30270 /* @internal */
30271 export function MultiThreadedLockableScore_free(this_obj: number): void {
30272         if(!isWasmInitialized) {
30273                 throw new Error("initializeWasm() must be awaited first!");
30274         }
30275         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
30276         // debug statements here
30277 }
30278         // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
30279 /* @internal */
30280 export function MultiThreadedLockableScore_write(obj: number): number {
30281         if(!isWasmInitialized) {
30282                 throw new Error("initializeWasm() must be awaited first!");
30283         }
30284         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_write(obj);
30285         return nativeResponseValue;
30286 }
30287         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
30288 /* @internal */
30289 export function MultiThreadedLockableScore_new(score: number): number {
30290         if(!isWasmInitialized) {
30291                 throw new Error("initializeWasm() must be awaited first!");
30292         }
30293         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
30294         return nativeResponseValue;
30295 }
30296         // void ChannelUsage_free(struct LDKChannelUsage this_obj);
30297 /* @internal */
30298 export function ChannelUsage_free(this_obj: number): void {
30299         if(!isWasmInitialized) {
30300                 throw new Error("initializeWasm() must be awaited first!");
30301         }
30302         const nativeResponseValue = wasm.TS_ChannelUsage_free(this_obj);
30303         // debug statements here
30304 }
30305         // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30306 /* @internal */
30307 export function ChannelUsage_get_amount_msat(this_ptr: number): bigint {
30308         if(!isWasmInitialized) {
30309                 throw new Error("initializeWasm() must be awaited first!");
30310         }
30311         const nativeResponseValue = wasm.TS_ChannelUsage_get_amount_msat(this_ptr);
30312         return nativeResponseValue;
30313 }
30314         // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
30315 /* @internal */
30316 export function ChannelUsage_set_amount_msat(this_ptr: number, val: bigint): void {
30317         if(!isWasmInitialized) {
30318                 throw new Error("initializeWasm() must be awaited first!");
30319         }
30320         const nativeResponseValue = wasm.TS_ChannelUsage_set_amount_msat(this_ptr, val);
30321         // debug statements here
30322 }
30323         // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30324 /* @internal */
30325 export function ChannelUsage_get_inflight_htlc_msat(this_ptr: number): bigint {
30326         if(!isWasmInitialized) {
30327                 throw new Error("initializeWasm() must be awaited first!");
30328         }
30329         const nativeResponseValue = wasm.TS_ChannelUsage_get_inflight_htlc_msat(this_ptr);
30330         return nativeResponseValue;
30331 }
30332         // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
30333 /* @internal */
30334 export function ChannelUsage_set_inflight_htlc_msat(this_ptr: number, val: bigint): void {
30335         if(!isWasmInitialized) {
30336                 throw new Error("initializeWasm() must be awaited first!");
30337         }
30338         const nativeResponseValue = wasm.TS_ChannelUsage_set_inflight_htlc_msat(this_ptr, val);
30339         // debug statements here
30340 }
30341         // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30342 /* @internal */
30343 export function ChannelUsage_get_effective_capacity(this_ptr: number): number {
30344         if(!isWasmInitialized) {
30345                 throw new Error("initializeWasm() must be awaited first!");
30346         }
30347         const nativeResponseValue = wasm.TS_ChannelUsage_get_effective_capacity(this_ptr);
30348         return nativeResponseValue;
30349 }
30350         // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
30351 /* @internal */
30352 export function ChannelUsage_set_effective_capacity(this_ptr: number, val: number): void {
30353         if(!isWasmInitialized) {
30354                 throw new Error("initializeWasm() must be awaited first!");
30355         }
30356         const nativeResponseValue = wasm.TS_ChannelUsage_set_effective_capacity(this_ptr, val);
30357         // debug statements here
30358 }
30359         // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
30360 /* @internal */
30361 export function ChannelUsage_new(amount_msat_arg: bigint, inflight_htlc_msat_arg: bigint, effective_capacity_arg: number): number {
30362         if(!isWasmInitialized) {
30363                 throw new Error("initializeWasm() must be awaited first!");
30364         }
30365         const nativeResponseValue = wasm.TS_ChannelUsage_new(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg);
30366         return nativeResponseValue;
30367 }
30368         // uintptr_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
30369 /* @internal */
30370 export function ChannelUsage_clone_ptr(arg: number): number {
30371         if(!isWasmInitialized) {
30372                 throw new Error("initializeWasm() must be awaited first!");
30373         }
30374         const nativeResponseValue = wasm.TS_ChannelUsage_clone_ptr(arg);
30375         return nativeResponseValue;
30376 }
30377         // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
30378 /* @internal */
30379 export function ChannelUsage_clone(orig: number): number {
30380         if(!isWasmInitialized) {
30381                 throw new Error("initializeWasm() must be awaited first!");
30382         }
30383         const nativeResponseValue = wasm.TS_ChannelUsage_clone(orig);
30384         return nativeResponseValue;
30385 }
30386         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
30387 /* @internal */
30388 export function FixedPenaltyScorer_free(this_obj: number): void {
30389         if(!isWasmInitialized) {
30390                 throw new Error("initializeWasm() must be awaited first!");
30391         }
30392         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
30393         // debug statements here
30394 }
30395         // uintptr_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
30396 /* @internal */
30397 export function FixedPenaltyScorer_clone_ptr(arg: number): number {
30398         if(!isWasmInitialized) {
30399                 throw new Error("initializeWasm() must be awaited first!");
30400         }
30401         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
30402         return nativeResponseValue;
30403 }
30404         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
30405 /* @internal */
30406 export function FixedPenaltyScorer_clone(orig: number): number {
30407         if(!isWasmInitialized) {
30408                 throw new Error("initializeWasm() must be awaited first!");
30409         }
30410         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
30411         return nativeResponseValue;
30412 }
30413         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
30414 /* @internal */
30415 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): number {
30416         if(!isWasmInitialized) {
30417                 throw new Error("initializeWasm() must be awaited first!");
30418         }
30419         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
30420         return nativeResponseValue;
30421 }
30422         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
30423 /* @internal */
30424 export function FixedPenaltyScorer_as_Score(this_arg: number): number {
30425         if(!isWasmInitialized) {
30426                 throw new Error("initializeWasm() must be awaited first!");
30427         }
30428         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
30429         return nativeResponseValue;
30430 }
30431         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
30432 /* @internal */
30433 export function FixedPenaltyScorer_write(obj: number): number {
30434         if(!isWasmInitialized) {
30435                 throw new Error("initializeWasm() must be awaited first!");
30436         }
30437         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
30438         return nativeResponseValue;
30439 }
30440         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
30441 /* @internal */
30442 export function FixedPenaltyScorer_read(ser: number, arg: bigint): number {
30443         if(!isWasmInitialized) {
30444                 throw new Error("initializeWasm() must be awaited first!");
30445         }
30446         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser, arg);
30447         return nativeResponseValue;
30448 }
30449         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
30450 /* @internal */
30451 export function ProbabilisticScorer_free(this_obj: number): void {
30452         if(!isWasmInitialized) {
30453                 throw new Error("initializeWasm() must be awaited first!");
30454         }
30455         const nativeResponseValue = wasm.TS_ProbabilisticScorer_free(this_obj);
30456         // debug statements here
30457 }
30458         // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
30459 /* @internal */
30460 export function ProbabilisticScoringParameters_free(this_obj: number): void {
30461         if(!isWasmInitialized) {
30462                 throw new Error("initializeWasm() must be awaited first!");
30463         }
30464         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
30465         // debug statements here
30466 }
30467         // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30468 /* @internal */
30469 export function ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr: number): bigint {
30470         if(!isWasmInitialized) {
30471                 throw new Error("initializeWasm() must be awaited first!");
30472         }
30473         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr);
30474         return nativeResponseValue;
30475 }
30476         // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30477 /* @internal */
30478 export function ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr: number, val: bigint): void {
30479         if(!isWasmInitialized) {
30480                 throw new Error("initializeWasm() must be awaited first!");
30481         }
30482         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr, val);
30483         // debug statements here
30484 }
30485         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30486 /* @internal */
30487 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: number): bigint {
30488         if(!isWasmInitialized) {
30489                 throw new Error("initializeWasm() must be awaited first!");
30490         }
30491         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
30492         return nativeResponseValue;
30493 }
30494         // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30495 /* @internal */
30496 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
30497         if(!isWasmInitialized) {
30498                 throw new Error("initializeWasm() must be awaited first!");
30499         }
30500         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
30501         // debug statements here
30502 }
30503         // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30504 /* @internal */
30505 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: number): bigint {
30506         if(!isWasmInitialized) {
30507                 throw new Error("initializeWasm() must be awaited first!");
30508         }
30509         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
30510         return nativeResponseValue;
30511 }
30512         // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30513 /* @internal */
30514 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: number, val: bigint): void {
30515         if(!isWasmInitialized) {
30516                 throw new Error("initializeWasm() must be awaited first!");
30517         }
30518         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
30519         // debug statements here
30520 }
30521         // uint64_t ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30522 /* @internal */
30523 export function ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr: number): bigint {
30524         if(!isWasmInitialized) {
30525                 throw new Error("initializeWasm() must be awaited first!");
30526         }
30527         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr);
30528         return nativeResponseValue;
30529 }
30530         // void ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30531 /* @internal */
30532 export function ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
30533         if(!isWasmInitialized) {
30534                 throw new Error("initializeWasm() must be awaited first!");
30535         }
30536         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr, val);
30537         // debug statements here
30538 }
30539         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_new(uint64_t base_penalty_msat_arg, uint64_t liquidity_penalty_multiplier_msat_arg, uint64_t liquidity_offset_half_life_arg, uint64_t amount_penalty_multiplier_msat_arg);
30540 /* @internal */
30541 export function ProbabilisticScoringParameters_new(base_penalty_msat_arg: bigint, liquidity_penalty_multiplier_msat_arg: bigint, liquidity_offset_half_life_arg: bigint, amount_penalty_multiplier_msat_arg: bigint): number {
30542         if(!isWasmInitialized) {
30543                 throw new Error("initializeWasm() must be awaited first!");
30544         }
30545         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_new(base_penalty_msat_arg, liquidity_penalty_multiplier_msat_arg, liquidity_offset_half_life_arg, amount_penalty_multiplier_msat_arg);
30546         return nativeResponseValue;
30547 }
30548         // uintptr_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
30549 /* @internal */
30550 export function ProbabilisticScoringParameters_clone_ptr(arg: number): number {
30551         if(!isWasmInitialized) {
30552                 throw new Error("initializeWasm() must be awaited first!");
30553         }
30554         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
30555         return nativeResponseValue;
30556 }
30557         // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
30558 /* @internal */
30559 export function ProbabilisticScoringParameters_clone(orig: number): number {
30560         if(!isWasmInitialized) {
30561                 throw new Error("initializeWasm() must be awaited first!");
30562         }
30563         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
30564         return nativeResponseValue;
30565 }
30566         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
30567 /* @internal */
30568 export function ProbabilisticScorer_new(params: number, network_graph: number, logger: number): number {
30569         if(!isWasmInitialized) {
30570                 throw new Error("initializeWasm() must be awaited first!");
30571         }
30572         const nativeResponseValue = wasm.TS_ProbabilisticScorer_new(params, network_graph, logger);
30573         return nativeResponseValue;
30574 }
30575         // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
30576 /* @internal */
30577 export function ProbabilisticScorer_debug_log_liquidity_stats(this_arg: number): void {
30578         if(!isWasmInitialized) {
30579                 throw new Error("initializeWasm() must be awaited first!");
30580         }
30581         const nativeResponseValue = wasm.TS_ProbabilisticScorer_debug_log_liquidity_stats(this_arg);
30582         // debug statements here
30583 }
30584         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
30585 /* @internal */
30586 export function ProbabilisticScoringParameters_default(): number {
30587         if(!isWasmInitialized) {
30588                 throw new Error("initializeWasm() must be awaited first!");
30589         }
30590         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
30591         return nativeResponseValue;
30592 }
30593         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
30594 /* @internal */
30595 export function ProbabilisticScorer_as_Score(this_arg: number): number {
30596         if(!isWasmInitialized) {
30597                 throw new Error("initializeWasm() must be awaited first!");
30598         }
30599         const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
30600         return nativeResponseValue;
30601 }
30602         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
30603 /* @internal */
30604 export function ProbabilisticScorer_write(obj: number): number {
30605         if(!isWasmInitialized) {
30606                 throw new Error("initializeWasm() must be awaited first!");
30607         }
30608         const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
30609         return nativeResponseValue;
30610 }
30611         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
30612 /* @internal */
30613 export function ProbabilisticScorer_read(ser: number, arg_a: number, arg_b: number, arg_c: number): number {
30614         if(!isWasmInitialized) {
30615                 throw new Error("initializeWasm() must be awaited first!");
30616         }
30617         const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b, arg_c);
30618         return nativeResponseValue;
30619 }
30620         // void ParseError_free(struct LDKParseError this_ptr);
30621 /* @internal */
30622 export function ParseError_free(this_ptr: number): void {
30623         if(!isWasmInitialized) {
30624                 throw new Error("initializeWasm() must be awaited first!");
30625         }
30626         const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
30627         // debug statements here
30628 }
30629         // uintptr_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
30630 /* @internal */
30631 export function ParseError_clone_ptr(arg: number): number {
30632         if(!isWasmInitialized) {
30633                 throw new Error("initializeWasm() must be awaited first!");
30634         }
30635         const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
30636         return nativeResponseValue;
30637 }
30638         // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
30639 /* @internal */
30640 export function ParseError_clone(orig: number): number {
30641         if(!isWasmInitialized) {
30642                 throw new Error("initializeWasm() must be awaited first!");
30643         }
30644         const nativeResponseValue = wasm.TS_ParseError_clone(orig);
30645         return nativeResponseValue;
30646 }
30647         // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
30648 /* @internal */
30649 export function ParseError_bech32_error(a: number): number {
30650         if(!isWasmInitialized) {
30651                 throw new Error("initializeWasm() must be awaited first!");
30652         }
30653         const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
30654         return nativeResponseValue;
30655 }
30656         // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
30657 /* @internal */
30658 export function ParseError_parse_amount_error(a: number): number {
30659         if(!isWasmInitialized) {
30660                 throw new Error("initializeWasm() must be awaited first!");
30661         }
30662         const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
30663         return nativeResponseValue;
30664 }
30665         // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
30666 /* @internal */
30667 export function ParseError_malformed_signature(a: Secp256k1Error): number {
30668         if(!isWasmInitialized) {
30669                 throw new Error("initializeWasm() must be awaited first!");
30670         }
30671         const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
30672         return nativeResponseValue;
30673 }
30674         // struct LDKParseError ParseError_bad_prefix(void);
30675 /* @internal */
30676 export function ParseError_bad_prefix(): number {
30677         if(!isWasmInitialized) {
30678                 throw new Error("initializeWasm() must be awaited first!");
30679         }
30680         const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
30681         return nativeResponseValue;
30682 }
30683         // struct LDKParseError ParseError_unknown_currency(void);
30684 /* @internal */
30685 export function ParseError_unknown_currency(): number {
30686         if(!isWasmInitialized) {
30687                 throw new Error("initializeWasm() must be awaited first!");
30688         }
30689         const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
30690         return nativeResponseValue;
30691 }
30692         // struct LDKParseError ParseError_unknown_si_prefix(void);
30693 /* @internal */
30694 export function ParseError_unknown_si_prefix(): number {
30695         if(!isWasmInitialized) {
30696                 throw new Error("initializeWasm() must be awaited first!");
30697         }
30698         const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
30699         return nativeResponseValue;
30700 }
30701         // struct LDKParseError ParseError_malformed_hrp(void);
30702 /* @internal */
30703 export function ParseError_malformed_hrp(): number {
30704         if(!isWasmInitialized) {
30705                 throw new Error("initializeWasm() must be awaited first!");
30706         }
30707         const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
30708         return nativeResponseValue;
30709 }
30710         // struct LDKParseError ParseError_too_short_data_part(void);
30711 /* @internal */
30712 export function ParseError_too_short_data_part(): number {
30713         if(!isWasmInitialized) {
30714                 throw new Error("initializeWasm() must be awaited first!");
30715         }
30716         const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
30717         return nativeResponseValue;
30718 }
30719         // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
30720 /* @internal */
30721 export function ParseError_unexpected_end_of_tagged_fields(): number {
30722         if(!isWasmInitialized) {
30723                 throw new Error("initializeWasm() must be awaited first!");
30724         }
30725         const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
30726         return nativeResponseValue;
30727 }
30728         // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
30729 /* @internal */
30730 export function ParseError_description_decode_error(a: number): number {
30731         if(!isWasmInitialized) {
30732                 throw new Error("initializeWasm() must be awaited first!");
30733         }
30734         const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
30735         return nativeResponseValue;
30736 }
30737         // struct LDKParseError ParseError_padding_error(void);
30738 /* @internal */
30739 export function ParseError_padding_error(): number {
30740         if(!isWasmInitialized) {
30741                 throw new Error("initializeWasm() must be awaited first!");
30742         }
30743         const nativeResponseValue = wasm.TS_ParseError_padding_error();
30744         return nativeResponseValue;
30745 }
30746         // struct LDKParseError ParseError_integer_overflow_error(void);
30747 /* @internal */
30748 export function ParseError_integer_overflow_error(): number {
30749         if(!isWasmInitialized) {
30750                 throw new Error("initializeWasm() must be awaited first!");
30751         }
30752         const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
30753         return nativeResponseValue;
30754 }
30755         // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
30756 /* @internal */
30757 export function ParseError_invalid_seg_wit_program_length(): number {
30758         if(!isWasmInitialized) {
30759                 throw new Error("initializeWasm() must be awaited first!");
30760         }
30761         const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
30762         return nativeResponseValue;
30763 }
30764         // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
30765 /* @internal */
30766 export function ParseError_invalid_pub_key_hash_length(): number {
30767         if(!isWasmInitialized) {
30768                 throw new Error("initializeWasm() must be awaited first!");
30769         }
30770         const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
30771         return nativeResponseValue;
30772 }
30773         // struct LDKParseError ParseError_invalid_script_hash_length(void);
30774 /* @internal */
30775 export function ParseError_invalid_script_hash_length(): number {
30776         if(!isWasmInitialized) {
30777                 throw new Error("initializeWasm() must be awaited first!");
30778         }
30779         const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
30780         return nativeResponseValue;
30781 }
30782         // struct LDKParseError ParseError_invalid_recovery_id(void);
30783 /* @internal */
30784 export function ParseError_invalid_recovery_id(): number {
30785         if(!isWasmInitialized) {
30786                 throw new Error("initializeWasm() must be awaited first!");
30787         }
30788         const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
30789         return nativeResponseValue;
30790 }
30791         // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
30792 /* @internal */
30793 export function ParseError_invalid_slice_length(a: number): number {
30794         if(!isWasmInitialized) {
30795                 throw new Error("initializeWasm() must be awaited first!");
30796         }
30797         const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
30798         return nativeResponseValue;
30799 }
30800         // struct LDKParseError ParseError_skip(void);
30801 /* @internal */
30802 export function ParseError_skip(): number {
30803         if(!isWasmInitialized) {
30804                 throw new Error("initializeWasm() must be awaited first!");
30805         }
30806         const nativeResponseValue = wasm.TS_ParseError_skip();
30807         return nativeResponseValue;
30808 }
30809         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
30810 /* @internal */
30811 export function ParseOrSemanticError_free(this_ptr: number): void {
30812         if(!isWasmInitialized) {
30813                 throw new Error("initializeWasm() must be awaited first!");
30814         }
30815         const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
30816         // debug statements here
30817 }
30818         // uintptr_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
30819 /* @internal */
30820 export function ParseOrSemanticError_clone_ptr(arg: number): number {
30821         if(!isWasmInitialized) {
30822                 throw new Error("initializeWasm() must be awaited first!");
30823         }
30824         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
30825         return nativeResponseValue;
30826 }
30827         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
30828 /* @internal */
30829 export function ParseOrSemanticError_clone(orig: number): number {
30830         if(!isWasmInitialized) {
30831                 throw new Error("initializeWasm() must be awaited first!");
30832         }
30833         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
30834         return nativeResponseValue;
30835 }
30836         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
30837 /* @internal */
30838 export function ParseOrSemanticError_parse_error(a: number): number {
30839         if(!isWasmInitialized) {
30840                 throw new Error("initializeWasm() must be awaited first!");
30841         }
30842         const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
30843         return nativeResponseValue;
30844 }
30845         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
30846 /* @internal */
30847 export function ParseOrSemanticError_semantic_error(a: SemanticError): number {
30848         if(!isWasmInitialized) {
30849                 throw new Error("initializeWasm() must be awaited first!");
30850         }
30851         const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);
30852         return nativeResponseValue;
30853 }
30854         // void Invoice_free(struct LDKInvoice this_obj);
30855 /* @internal */
30856 export function Invoice_free(this_obj: number): void {
30857         if(!isWasmInitialized) {
30858                 throw new Error("initializeWasm() must be awaited first!");
30859         }
30860         const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
30861         // debug statements here
30862 }
30863         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
30864 /* @internal */
30865 export function Invoice_eq(a: number, b: number): boolean {
30866         if(!isWasmInitialized) {
30867                 throw new Error("initializeWasm() must be awaited first!");
30868         }
30869         const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
30870         return nativeResponseValue;
30871 }
30872         // uintptr_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
30873 /* @internal */
30874 export function Invoice_clone_ptr(arg: number): number {
30875         if(!isWasmInitialized) {
30876                 throw new Error("initializeWasm() must be awaited first!");
30877         }
30878         const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
30879         return nativeResponseValue;
30880 }
30881         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
30882 /* @internal */
30883 export function Invoice_clone(orig: number): number {
30884         if(!isWasmInitialized) {
30885                 throw new Error("initializeWasm() must be awaited first!");
30886         }
30887         const nativeResponseValue = wasm.TS_Invoice_clone(orig);
30888         return nativeResponseValue;
30889 }
30890         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
30891 /* @internal */
30892 export function SignedRawInvoice_free(this_obj: number): void {
30893         if(!isWasmInitialized) {
30894                 throw new Error("initializeWasm() must be awaited first!");
30895         }
30896         const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
30897         // debug statements here
30898 }
30899         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
30900 /* @internal */
30901 export function SignedRawInvoice_eq(a: number, b: number): boolean {
30902         if(!isWasmInitialized) {
30903                 throw new Error("initializeWasm() must be awaited first!");
30904         }
30905         const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
30906         return nativeResponseValue;
30907 }
30908         // uintptr_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
30909 /* @internal */
30910 export function SignedRawInvoice_clone_ptr(arg: number): number {
30911         if(!isWasmInitialized) {
30912                 throw new Error("initializeWasm() must be awaited first!");
30913         }
30914         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
30915         return nativeResponseValue;
30916 }
30917         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
30918 /* @internal */
30919 export function SignedRawInvoice_clone(orig: number): number {
30920         if(!isWasmInitialized) {
30921                 throw new Error("initializeWasm() must be awaited first!");
30922         }
30923         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
30924         return nativeResponseValue;
30925 }
30926         // void RawInvoice_free(struct LDKRawInvoice this_obj);
30927 /* @internal */
30928 export function RawInvoice_free(this_obj: number): void {
30929         if(!isWasmInitialized) {
30930                 throw new Error("initializeWasm() must be awaited first!");
30931         }
30932         const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
30933         // debug statements here
30934 }
30935         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
30936 /* @internal */
30937 export function RawInvoice_get_data(this_ptr: number): number {
30938         if(!isWasmInitialized) {
30939                 throw new Error("initializeWasm() must be awaited first!");
30940         }
30941         const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
30942         return nativeResponseValue;
30943 }
30944         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
30945 /* @internal */
30946 export function RawInvoice_set_data(this_ptr: number, val: number): void {
30947         if(!isWasmInitialized) {
30948                 throw new Error("initializeWasm() must be awaited first!");
30949         }
30950         const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
30951         // debug statements here
30952 }
30953         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
30954 /* @internal */
30955 export function RawInvoice_eq(a: number, b: number): boolean {
30956         if(!isWasmInitialized) {
30957                 throw new Error("initializeWasm() must be awaited first!");
30958         }
30959         const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
30960         return nativeResponseValue;
30961 }
30962         // uintptr_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
30963 /* @internal */
30964 export function RawInvoice_clone_ptr(arg: number): number {
30965         if(!isWasmInitialized) {
30966                 throw new Error("initializeWasm() must be awaited first!");
30967         }
30968         const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
30969         return nativeResponseValue;
30970 }
30971         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
30972 /* @internal */
30973 export function RawInvoice_clone(orig: number): number {
30974         if(!isWasmInitialized) {
30975                 throw new Error("initializeWasm() must be awaited first!");
30976         }
30977         const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
30978         return nativeResponseValue;
30979 }
30980         // void RawDataPart_free(struct LDKRawDataPart this_obj);
30981 /* @internal */
30982 export function RawDataPart_free(this_obj: number): void {
30983         if(!isWasmInitialized) {
30984                 throw new Error("initializeWasm() must be awaited first!");
30985         }
30986         const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
30987         // debug statements here
30988 }
30989         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
30990 /* @internal */
30991 export function RawDataPart_get_timestamp(this_ptr: number): number {
30992         if(!isWasmInitialized) {
30993                 throw new Error("initializeWasm() must be awaited first!");
30994         }
30995         const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
30996         return nativeResponseValue;
30997 }
30998         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
30999 /* @internal */
31000 export function RawDataPart_set_timestamp(this_ptr: number, val: number): void {
31001         if(!isWasmInitialized) {
31002                 throw new Error("initializeWasm() must be awaited first!");
31003         }
31004         const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
31005         // debug statements here
31006 }
31007         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
31008 /* @internal */
31009 export function RawDataPart_eq(a: number, b: number): boolean {
31010         if(!isWasmInitialized) {
31011                 throw new Error("initializeWasm() must be awaited first!");
31012         }
31013         const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
31014         return nativeResponseValue;
31015 }
31016         // uintptr_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
31017 /* @internal */
31018 export function RawDataPart_clone_ptr(arg: number): number {
31019         if(!isWasmInitialized) {
31020                 throw new Error("initializeWasm() must be awaited first!");
31021         }
31022         const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
31023         return nativeResponseValue;
31024 }
31025         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
31026 /* @internal */
31027 export function RawDataPart_clone(orig: number): number {
31028         if(!isWasmInitialized) {
31029                 throw new Error("initializeWasm() must be awaited first!");
31030         }
31031         const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
31032         return nativeResponseValue;
31033 }
31034         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
31035 /* @internal */
31036 export function PositiveTimestamp_free(this_obj: number): void {
31037         if(!isWasmInitialized) {
31038                 throw new Error("initializeWasm() must be awaited first!");
31039         }
31040         const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
31041         // debug statements here
31042 }
31043         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
31044 /* @internal */
31045 export function PositiveTimestamp_eq(a: number, b: number): boolean {
31046         if(!isWasmInitialized) {
31047                 throw new Error("initializeWasm() must be awaited first!");
31048         }
31049         const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
31050         return nativeResponseValue;
31051 }
31052         // uintptr_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
31053 /* @internal */
31054 export function PositiveTimestamp_clone_ptr(arg: number): number {
31055         if(!isWasmInitialized) {
31056                 throw new Error("initializeWasm() must be awaited first!");
31057         }
31058         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
31059         return nativeResponseValue;
31060 }
31061         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
31062 /* @internal */
31063 export function PositiveTimestamp_clone(orig: number): number {
31064         if(!isWasmInitialized) {
31065                 throw new Error("initializeWasm() must be awaited first!");
31066         }
31067         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
31068         return nativeResponseValue;
31069 }
31070         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
31071 /* @internal */
31072 export function SiPrefix_clone(orig: number): SiPrefix {
31073         if(!isWasmInitialized) {
31074                 throw new Error("initializeWasm() must be awaited first!");
31075         }
31076         const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
31077         return nativeResponseValue;
31078 }
31079         // enum LDKSiPrefix SiPrefix_milli(void);
31080 /* @internal */
31081 export function SiPrefix_milli(): SiPrefix {
31082         if(!isWasmInitialized) {
31083                 throw new Error("initializeWasm() must be awaited first!");
31084         }
31085         const nativeResponseValue = wasm.TS_SiPrefix_milli();
31086         return nativeResponseValue;
31087 }
31088         // enum LDKSiPrefix SiPrefix_micro(void);
31089 /* @internal */
31090 export function SiPrefix_micro(): SiPrefix {
31091         if(!isWasmInitialized) {
31092                 throw new Error("initializeWasm() must be awaited first!");
31093         }
31094         const nativeResponseValue = wasm.TS_SiPrefix_micro();
31095         return nativeResponseValue;
31096 }
31097         // enum LDKSiPrefix SiPrefix_nano(void);
31098 /* @internal */
31099 export function SiPrefix_nano(): SiPrefix {
31100         if(!isWasmInitialized) {
31101                 throw new Error("initializeWasm() must be awaited first!");
31102         }
31103         const nativeResponseValue = wasm.TS_SiPrefix_nano();
31104         return nativeResponseValue;
31105 }
31106         // enum LDKSiPrefix SiPrefix_pico(void);
31107 /* @internal */
31108 export function SiPrefix_pico(): SiPrefix {
31109         if(!isWasmInitialized) {
31110                 throw new Error("initializeWasm() must be awaited first!");
31111         }
31112         const nativeResponseValue = wasm.TS_SiPrefix_pico();
31113         return nativeResponseValue;
31114 }
31115         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
31116 /* @internal */
31117 export function SiPrefix_eq(a: number, b: number): boolean {
31118         if(!isWasmInitialized) {
31119                 throw new Error("initializeWasm() must be awaited first!");
31120         }
31121         const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
31122         return nativeResponseValue;
31123 }
31124         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
31125 /* @internal */
31126 export function SiPrefix_multiplier(this_arg: number): bigint {
31127         if(!isWasmInitialized) {
31128                 throw new Error("initializeWasm() must be awaited first!");
31129         }
31130         const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
31131         return nativeResponseValue;
31132 }
31133         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
31134 /* @internal */
31135 export function Currency_clone(orig: number): Currency {
31136         if(!isWasmInitialized) {
31137                 throw new Error("initializeWasm() must be awaited first!");
31138         }
31139         const nativeResponseValue = wasm.TS_Currency_clone(orig);
31140         return nativeResponseValue;
31141 }
31142         // enum LDKCurrency Currency_bitcoin(void);
31143 /* @internal */
31144 export function Currency_bitcoin(): Currency {
31145         if(!isWasmInitialized) {
31146                 throw new Error("initializeWasm() must be awaited first!");
31147         }
31148         const nativeResponseValue = wasm.TS_Currency_bitcoin();
31149         return nativeResponseValue;
31150 }
31151         // enum LDKCurrency Currency_bitcoin_testnet(void);
31152 /* @internal */
31153 export function Currency_bitcoin_testnet(): Currency {
31154         if(!isWasmInitialized) {
31155                 throw new Error("initializeWasm() must be awaited first!");
31156         }
31157         const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
31158         return nativeResponseValue;
31159 }
31160         // enum LDKCurrency Currency_regtest(void);
31161 /* @internal */
31162 export function Currency_regtest(): Currency {
31163         if(!isWasmInitialized) {
31164                 throw new Error("initializeWasm() must be awaited first!");
31165         }
31166         const nativeResponseValue = wasm.TS_Currency_regtest();
31167         return nativeResponseValue;
31168 }
31169         // enum LDKCurrency Currency_simnet(void);
31170 /* @internal */
31171 export function Currency_simnet(): Currency {
31172         if(!isWasmInitialized) {
31173                 throw new Error("initializeWasm() must be awaited first!");
31174         }
31175         const nativeResponseValue = wasm.TS_Currency_simnet();
31176         return nativeResponseValue;
31177 }
31178         // enum LDKCurrency Currency_signet(void);
31179 /* @internal */
31180 export function Currency_signet(): Currency {
31181         if(!isWasmInitialized) {
31182                 throw new Error("initializeWasm() must be awaited first!");
31183         }
31184         const nativeResponseValue = wasm.TS_Currency_signet();
31185         return nativeResponseValue;
31186 }
31187         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
31188 /* @internal */
31189 export function Currency_hash(o: number): bigint {
31190         if(!isWasmInitialized) {
31191                 throw new Error("initializeWasm() must be awaited first!");
31192         }
31193         const nativeResponseValue = wasm.TS_Currency_hash(o);
31194         return nativeResponseValue;
31195 }
31196         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
31197 /* @internal */
31198 export function Currency_eq(a: number, b: number): boolean {
31199         if(!isWasmInitialized) {
31200                 throw new Error("initializeWasm() must be awaited first!");
31201         }
31202         const nativeResponseValue = wasm.TS_Currency_eq(a, b);
31203         return nativeResponseValue;
31204 }
31205         // void Sha256_free(struct LDKSha256 this_obj);
31206 /* @internal */
31207 export function Sha256_free(this_obj: number): void {
31208         if(!isWasmInitialized) {
31209                 throw new Error("initializeWasm() must be awaited first!");
31210         }
31211         const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
31212         // debug statements here
31213 }
31214         // uintptr_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
31215 /* @internal */
31216 export function Sha256_clone_ptr(arg: number): number {
31217         if(!isWasmInitialized) {
31218                 throw new Error("initializeWasm() must be awaited first!");
31219         }
31220         const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
31221         return nativeResponseValue;
31222 }
31223         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
31224 /* @internal */
31225 export function Sha256_clone(orig: number): number {
31226         if(!isWasmInitialized) {
31227                 throw new Error("initializeWasm() must be awaited first!");
31228         }
31229         const nativeResponseValue = wasm.TS_Sha256_clone(orig);
31230         return nativeResponseValue;
31231 }
31232         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
31233 /* @internal */
31234 export function Sha256_hash(o: number): bigint {
31235         if(!isWasmInitialized) {
31236                 throw new Error("initializeWasm() must be awaited first!");
31237         }
31238         const nativeResponseValue = wasm.TS_Sha256_hash(o);
31239         return nativeResponseValue;
31240 }
31241         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
31242 /* @internal */
31243 export function Sha256_eq(a: number, b: number): boolean {
31244         if(!isWasmInitialized) {
31245                 throw new Error("initializeWasm() must be awaited first!");
31246         }
31247         const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
31248         return nativeResponseValue;
31249 }
31250         // void Description_free(struct LDKDescription this_obj);
31251 /* @internal */
31252 export function Description_free(this_obj: number): void {
31253         if(!isWasmInitialized) {
31254                 throw new Error("initializeWasm() must be awaited first!");
31255         }
31256         const nativeResponseValue = wasm.TS_Description_free(this_obj);
31257         // debug statements here
31258 }
31259         // uintptr_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
31260 /* @internal */
31261 export function Description_clone_ptr(arg: number): number {
31262         if(!isWasmInitialized) {
31263                 throw new Error("initializeWasm() must be awaited first!");
31264         }
31265         const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
31266         return nativeResponseValue;
31267 }
31268         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
31269 /* @internal */
31270 export function Description_clone(orig: number): number {
31271         if(!isWasmInitialized) {
31272                 throw new Error("initializeWasm() must be awaited first!");
31273         }
31274         const nativeResponseValue = wasm.TS_Description_clone(orig);
31275         return nativeResponseValue;
31276 }
31277         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
31278 /* @internal */
31279 export function Description_hash(o: number): bigint {
31280         if(!isWasmInitialized) {
31281                 throw new Error("initializeWasm() must be awaited first!");
31282         }
31283         const nativeResponseValue = wasm.TS_Description_hash(o);
31284         return nativeResponseValue;
31285 }
31286         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
31287 /* @internal */
31288 export function Description_eq(a: number, b: number): boolean {
31289         if(!isWasmInitialized) {
31290                 throw new Error("initializeWasm() must be awaited first!");
31291         }
31292         const nativeResponseValue = wasm.TS_Description_eq(a, b);
31293         return nativeResponseValue;
31294 }
31295         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
31296 /* @internal */
31297 export function PayeePubKey_free(this_obj: number): void {
31298         if(!isWasmInitialized) {
31299                 throw new Error("initializeWasm() must be awaited first!");
31300         }
31301         const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
31302         // debug statements here
31303 }
31304         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
31305 /* @internal */
31306 export function PayeePubKey_get_a(this_ptr: number): number {
31307         if(!isWasmInitialized) {
31308                 throw new Error("initializeWasm() must be awaited first!");
31309         }
31310         const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
31311         return nativeResponseValue;
31312 }
31313         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
31314 /* @internal */
31315 export function PayeePubKey_set_a(this_ptr: number, val: number): void {
31316         if(!isWasmInitialized) {
31317                 throw new Error("initializeWasm() must be awaited first!");
31318         }
31319         const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
31320         // debug statements here
31321 }
31322         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
31323 /* @internal */
31324 export function PayeePubKey_new(a_arg: number): number {
31325         if(!isWasmInitialized) {
31326                 throw new Error("initializeWasm() must be awaited first!");
31327         }
31328         const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
31329         return nativeResponseValue;
31330 }
31331         // uintptr_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
31332 /* @internal */
31333 export function PayeePubKey_clone_ptr(arg: number): number {
31334         if(!isWasmInitialized) {
31335                 throw new Error("initializeWasm() must be awaited first!");
31336         }
31337         const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
31338         return nativeResponseValue;
31339 }
31340         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
31341 /* @internal */
31342 export function PayeePubKey_clone(orig: number): number {
31343         if(!isWasmInitialized) {
31344                 throw new Error("initializeWasm() must be awaited first!");
31345         }
31346         const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
31347         return nativeResponseValue;
31348 }
31349         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
31350 /* @internal */
31351 export function PayeePubKey_hash(o: number): bigint {
31352         if(!isWasmInitialized) {
31353                 throw new Error("initializeWasm() must be awaited first!");
31354         }
31355         const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
31356         return nativeResponseValue;
31357 }
31358         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
31359 /* @internal */
31360 export function PayeePubKey_eq(a: number, b: number): boolean {
31361         if(!isWasmInitialized) {
31362                 throw new Error("initializeWasm() must be awaited first!");
31363         }
31364         const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
31365         return nativeResponseValue;
31366 }
31367         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
31368 /* @internal */
31369 export function ExpiryTime_free(this_obj: number): void {
31370         if(!isWasmInitialized) {
31371                 throw new Error("initializeWasm() must be awaited first!");
31372         }
31373         const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
31374         // debug statements here
31375 }
31376         // uintptr_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
31377 /* @internal */
31378 export function ExpiryTime_clone_ptr(arg: number): number {
31379         if(!isWasmInitialized) {
31380                 throw new Error("initializeWasm() must be awaited first!");
31381         }
31382         const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
31383         return nativeResponseValue;
31384 }
31385         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
31386 /* @internal */
31387 export function ExpiryTime_clone(orig: number): number {
31388         if(!isWasmInitialized) {
31389                 throw new Error("initializeWasm() must be awaited first!");
31390         }
31391         const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
31392         return nativeResponseValue;
31393 }
31394         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
31395 /* @internal */
31396 export function ExpiryTime_hash(o: number): bigint {
31397         if(!isWasmInitialized) {
31398                 throw new Error("initializeWasm() must be awaited first!");
31399         }
31400         const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
31401         return nativeResponseValue;
31402 }
31403         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
31404 /* @internal */
31405 export function ExpiryTime_eq(a: number, b: number): boolean {
31406         if(!isWasmInitialized) {
31407                 throw new Error("initializeWasm() must be awaited first!");
31408         }
31409         const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
31410         return nativeResponseValue;
31411 }
31412         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
31413 /* @internal */
31414 export function MinFinalCltvExpiry_free(this_obj: number): void {
31415         if(!isWasmInitialized) {
31416                 throw new Error("initializeWasm() must be awaited first!");
31417         }
31418         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_free(this_obj);
31419         // debug statements here
31420 }
31421         // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
31422 /* @internal */
31423 export function MinFinalCltvExpiry_get_a(this_ptr: number): bigint {
31424         if(!isWasmInitialized) {
31425                 throw new Error("initializeWasm() must be awaited first!");
31426         }
31427         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_get_a(this_ptr);
31428         return nativeResponseValue;
31429 }
31430         // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
31431 /* @internal */
31432 export function MinFinalCltvExpiry_set_a(this_ptr: number, val: bigint): void {
31433         if(!isWasmInitialized) {
31434                 throw new Error("initializeWasm() must be awaited first!");
31435         }
31436         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_set_a(this_ptr, val);
31437         // debug statements here
31438 }
31439         // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
31440 /* @internal */
31441 export function MinFinalCltvExpiry_new(a_arg: bigint): number {
31442         if(!isWasmInitialized) {
31443                 throw new Error("initializeWasm() must be awaited first!");
31444         }
31445         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_new(a_arg);
31446         return nativeResponseValue;
31447 }
31448         // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
31449 /* @internal */
31450 export function MinFinalCltvExpiry_clone_ptr(arg: number): number {
31451         if(!isWasmInitialized) {
31452                 throw new Error("initializeWasm() must be awaited first!");
31453         }
31454         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone_ptr(arg);
31455         return nativeResponseValue;
31456 }
31457         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
31458 /* @internal */
31459 export function MinFinalCltvExpiry_clone(orig: number): number {
31460         if(!isWasmInitialized) {
31461                 throw new Error("initializeWasm() must be awaited first!");
31462         }
31463         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone(orig);
31464         return nativeResponseValue;
31465 }
31466         // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
31467 /* @internal */
31468 export function MinFinalCltvExpiry_hash(o: number): bigint {
31469         if(!isWasmInitialized) {
31470                 throw new Error("initializeWasm() must be awaited first!");
31471         }
31472         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_hash(o);
31473         return nativeResponseValue;
31474 }
31475         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
31476 /* @internal */
31477 export function MinFinalCltvExpiry_eq(a: number, b: number): boolean {
31478         if(!isWasmInitialized) {
31479                 throw new Error("initializeWasm() must be awaited first!");
31480         }
31481         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_eq(a, b);
31482         return nativeResponseValue;
31483 }
31484         // void Fallback_free(struct LDKFallback this_ptr);
31485 /* @internal */
31486 export function Fallback_free(this_ptr: number): void {
31487         if(!isWasmInitialized) {
31488                 throw new Error("initializeWasm() must be awaited first!");
31489         }
31490         const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
31491         // debug statements here
31492 }
31493         // uintptr_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
31494 /* @internal */
31495 export function Fallback_clone_ptr(arg: number): number {
31496         if(!isWasmInitialized) {
31497                 throw new Error("initializeWasm() must be awaited first!");
31498         }
31499         const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
31500         return nativeResponseValue;
31501 }
31502         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
31503 /* @internal */
31504 export function Fallback_clone(orig: number): number {
31505         if(!isWasmInitialized) {
31506                 throw new Error("initializeWasm() must be awaited first!");
31507         }
31508         const nativeResponseValue = wasm.TS_Fallback_clone(orig);
31509         return nativeResponseValue;
31510 }
31511         // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
31512 /* @internal */
31513 export function Fallback_seg_wit_program(version: number, program: number): number {
31514         if(!isWasmInitialized) {
31515                 throw new Error("initializeWasm() must be awaited first!");
31516         }
31517         const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
31518         return nativeResponseValue;
31519 }
31520         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
31521 /* @internal */
31522 export function Fallback_pub_key_hash(a: number): number {
31523         if(!isWasmInitialized) {
31524                 throw new Error("initializeWasm() must be awaited first!");
31525         }
31526         const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
31527         return nativeResponseValue;
31528 }
31529         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
31530 /* @internal */
31531 export function Fallback_script_hash(a: number): number {
31532         if(!isWasmInitialized) {
31533                 throw new Error("initializeWasm() must be awaited first!");
31534         }
31535         const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
31536         return nativeResponseValue;
31537 }
31538         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
31539 /* @internal */
31540 export function Fallback_hash(o: number): bigint {
31541         if(!isWasmInitialized) {
31542                 throw new Error("initializeWasm() must be awaited first!");
31543         }
31544         const nativeResponseValue = wasm.TS_Fallback_hash(o);
31545         return nativeResponseValue;
31546 }
31547         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
31548 /* @internal */
31549 export function Fallback_eq(a: number, b: number): boolean {
31550         if(!isWasmInitialized) {
31551                 throw new Error("initializeWasm() must be awaited first!");
31552         }
31553         const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
31554         return nativeResponseValue;
31555 }
31556         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
31557 /* @internal */
31558 export function InvoiceSignature_free(this_obj: number): void {
31559         if(!isWasmInitialized) {
31560                 throw new Error("initializeWasm() must be awaited first!");
31561         }
31562         const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
31563         // debug statements here
31564 }
31565         // uintptr_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
31566 /* @internal */
31567 export function InvoiceSignature_clone_ptr(arg: number): number {
31568         if(!isWasmInitialized) {
31569                 throw new Error("initializeWasm() must be awaited first!");
31570         }
31571         const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
31572         return nativeResponseValue;
31573 }
31574         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
31575 /* @internal */
31576 export function InvoiceSignature_clone(orig: number): number {
31577         if(!isWasmInitialized) {
31578                 throw new Error("initializeWasm() must be awaited first!");
31579         }
31580         const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
31581         return nativeResponseValue;
31582 }
31583         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
31584 /* @internal */
31585 export function InvoiceSignature_eq(a: number, b: number): boolean {
31586         if(!isWasmInitialized) {
31587                 throw new Error("initializeWasm() must be awaited first!");
31588         }
31589         const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
31590         return nativeResponseValue;
31591 }
31592         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
31593 /* @internal */
31594 export function PrivateRoute_free(this_obj: number): void {
31595         if(!isWasmInitialized) {
31596                 throw new Error("initializeWasm() must be awaited first!");
31597         }
31598         const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
31599         // debug statements here
31600 }
31601         // uintptr_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
31602 /* @internal */
31603 export function PrivateRoute_clone_ptr(arg: number): number {
31604         if(!isWasmInitialized) {
31605                 throw new Error("initializeWasm() must be awaited first!");
31606         }
31607         const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
31608         return nativeResponseValue;
31609 }
31610         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
31611 /* @internal */
31612 export function PrivateRoute_clone(orig: number): number {
31613         if(!isWasmInitialized) {
31614                 throw new Error("initializeWasm() must be awaited first!");
31615         }
31616         const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
31617         return nativeResponseValue;
31618 }
31619         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
31620 /* @internal */
31621 export function PrivateRoute_hash(o: number): bigint {
31622         if(!isWasmInitialized) {
31623                 throw new Error("initializeWasm() must be awaited first!");
31624         }
31625         const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
31626         return nativeResponseValue;
31627 }
31628         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
31629 /* @internal */
31630 export function PrivateRoute_eq(a: number, b: number): boolean {
31631         if(!isWasmInitialized) {
31632                 throw new Error("initializeWasm() must be awaited first!");
31633         }
31634         const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
31635         return nativeResponseValue;
31636 }
31637         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
31638 /* @internal */
31639 export function SignedRawInvoice_into_parts(this_arg: number): number {
31640         if(!isWasmInitialized) {
31641                 throw new Error("initializeWasm() must be awaited first!");
31642         }
31643         const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
31644         return nativeResponseValue;
31645 }
31646         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
31647 /* @internal */
31648 export function SignedRawInvoice_raw_invoice(this_arg: number): number {
31649         if(!isWasmInitialized) {
31650                 throw new Error("initializeWasm() must be awaited first!");
31651         }
31652         const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
31653         return nativeResponseValue;
31654 }
31655         // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
31656 /* @internal */
31657 export function SignedRawInvoice_hash(this_arg: number): number {
31658         if(!isWasmInitialized) {
31659                 throw new Error("initializeWasm() must be awaited first!");
31660         }
31661         const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(this_arg);
31662         return nativeResponseValue;
31663 }
31664         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
31665 /* @internal */
31666 export function SignedRawInvoice_signature(this_arg: number): number {
31667         if(!isWasmInitialized) {
31668                 throw new Error("initializeWasm() must be awaited first!");
31669         }
31670         const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
31671         return nativeResponseValue;
31672 }
31673         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
31674 /* @internal */
31675 export function SignedRawInvoice_recover_payee_pub_key(this_arg: number): number {
31676         if(!isWasmInitialized) {
31677                 throw new Error("initializeWasm() must be awaited first!");
31678         }
31679         const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
31680         return nativeResponseValue;
31681 }
31682         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
31683 /* @internal */
31684 export function SignedRawInvoice_check_signature(this_arg: number): boolean {
31685         if(!isWasmInitialized) {
31686                 throw new Error("initializeWasm() must be awaited first!");
31687         }
31688         const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
31689         return nativeResponseValue;
31690 }
31691         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31692 /* @internal */
31693 export function RawInvoice_hash(this_arg: number): number {
31694         if(!isWasmInitialized) {
31695                 throw new Error("initializeWasm() must be awaited first!");
31696         }
31697         const nativeResponseValue = wasm.TS_RawInvoice_hash(this_arg);
31698         return nativeResponseValue;
31699 }
31700         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31701 /* @internal */
31702 export function RawInvoice_payment_hash(this_arg: number): number {
31703         if(!isWasmInitialized) {
31704                 throw new Error("initializeWasm() must be awaited first!");
31705         }
31706         const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
31707         return nativeResponseValue;
31708 }
31709         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31710 /* @internal */
31711 export function RawInvoice_description(this_arg: number): number {
31712         if(!isWasmInitialized) {
31713                 throw new Error("initializeWasm() must be awaited first!");
31714         }
31715         const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
31716         return nativeResponseValue;
31717 }
31718         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31719 /* @internal */
31720 export function RawInvoice_payee_pub_key(this_arg: number): number {
31721         if(!isWasmInitialized) {
31722                 throw new Error("initializeWasm() must be awaited first!");
31723         }
31724         const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
31725         return nativeResponseValue;
31726 }
31727         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31728 /* @internal */
31729 export function RawInvoice_description_hash(this_arg: number): number {
31730         if(!isWasmInitialized) {
31731                 throw new Error("initializeWasm() must be awaited first!");
31732         }
31733         const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
31734         return nativeResponseValue;
31735 }
31736         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31737 /* @internal */
31738 export function RawInvoice_expiry_time(this_arg: number): number {
31739         if(!isWasmInitialized) {
31740                 throw new Error("initializeWasm() must be awaited first!");
31741         }
31742         const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
31743         return nativeResponseValue;
31744 }
31745         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31746 /* @internal */
31747 export function RawInvoice_min_final_cltv_expiry(this_arg: number): number {
31748         if(!isWasmInitialized) {
31749                 throw new Error("initializeWasm() must be awaited first!");
31750         }
31751         const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry(this_arg);
31752         return nativeResponseValue;
31753 }
31754         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31755 /* @internal */
31756 export function RawInvoice_payment_secret(this_arg: number): number {
31757         if(!isWasmInitialized) {
31758                 throw new Error("initializeWasm() must be awaited first!");
31759         }
31760         const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
31761         return nativeResponseValue;
31762 }
31763         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31764 /* @internal */
31765 export function RawInvoice_features(this_arg: number): number {
31766         if(!isWasmInitialized) {
31767                 throw new Error("initializeWasm() must be awaited first!");
31768         }
31769         const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
31770         return nativeResponseValue;
31771 }
31772         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31773 /* @internal */
31774 export function RawInvoice_private_routes(this_arg: number): number {
31775         if(!isWasmInitialized) {
31776                 throw new Error("initializeWasm() must be awaited first!");
31777         }
31778         const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
31779         return nativeResponseValue;
31780 }
31781         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31782 /* @internal */
31783 export function RawInvoice_amount_pico_btc(this_arg: number): number {
31784         if(!isWasmInitialized) {
31785                 throw new Error("initializeWasm() must be awaited first!");
31786         }
31787         const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
31788         return nativeResponseValue;
31789 }
31790         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
31791 /* @internal */
31792 export function RawInvoice_currency(this_arg: number): Currency {
31793         if(!isWasmInitialized) {
31794                 throw new Error("initializeWasm() must be awaited first!");
31795         }
31796         const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
31797         return nativeResponseValue;
31798 }
31799         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
31800 /* @internal */
31801 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): number {
31802         if(!isWasmInitialized) {
31803                 throw new Error("initializeWasm() must be awaited first!");
31804         }
31805         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
31806         return nativeResponseValue;
31807 }
31808         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
31809 /* @internal */
31810 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): number {
31811         if(!isWasmInitialized) {
31812                 throw new Error("initializeWasm() must be awaited first!");
31813         }
31814         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
31815         return nativeResponseValue;
31816 }
31817         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
31818 /* @internal */
31819 export function PositiveTimestamp_as_unix_timestamp(this_arg: number): bigint {
31820         if(!isWasmInitialized) {
31821                 throw new Error("initializeWasm() must be awaited first!");
31822         }
31823         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
31824         return nativeResponseValue;
31825 }
31826         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
31827 /* @internal */
31828 export function PositiveTimestamp_as_duration_since_epoch(this_arg: number): bigint {
31829         if(!isWasmInitialized) {
31830                 throw new Error("initializeWasm() must be awaited first!");
31831         }
31832         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
31833         return nativeResponseValue;
31834 }
31835         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
31836 /* @internal */
31837 export function Invoice_into_signed_raw(this_arg: number): number {
31838         if(!isWasmInitialized) {
31839                 throw new Error("initializeWasm() must be awaited first!");
31840         }
31841         const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
31842         return nativeResponseValue;
31843 }
31844         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
31845 /* @internal */
31846 export function Invoice_check_signature(this_arg: number): number {
31847         if(!isWasmInitialized) {
31848                 throw new Error("initializeWasm() must be awaited first!");
31849         }
31850         const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
31851         return nativeResponseValue;
31852 }
31853         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
31854 /* @internal */
31855 export function Invoice_from_signed(signed_invoice: number): number {
31856         if(!isWasmInitialized) {
31857                 throw new Error("initializeWasm() must be awaited first!");
31858         }
31859         const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
31860         return nativeResponseValue;
31861 }
31862         // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
31863 /* @internal */
31864 export function Invoice_duration_since_epoch(this_arg: number): bigint {
31865         if(!isWasmInitialized) {
31866                 throw new Error("initializeWasm() must be awaited first!");
31867         }
31868         const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
31869         return nativeResponseValue;
31870 }
31871         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
31872 /* @internal */
31873 export function Invoice_payment_hash(this_arg: number): number {
31874         if(!isWasmInitialized) {
31875                 throw new Error("initializeWasm() must be awaited first!");
31876         }
31877         const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
31878         return nativeResponseValue;
31879 }
31880         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
31881 /* @internal */
31882 export function Invoice_payee_pub_key(this_arg: number): number {
31883         if(!isWasmInitialized) {
31884                 throw new Error("initializeWasm() must be awaited first!");
31885         }
31886         const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
31887         return nativeResponseValue;
31888 }
31889         // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
31890 /* @internal */
31891 export function Invoice_payment_secret(this_arg: number): number {
31892         if(!isWasmInitialized) {
31893                 throw new Error("initializeWasm() must be awaited first!");
31894         }
31895         const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
31896         return nativeResponseValue;
31897 }
31898         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
31899 /* @internal */
31900 export function Invoice_features(this_arg: number): number {
31901         if(!isWasmInitialized) {
31902                 throw new Error("initializeWasm() must be awaited first!");
31903         }
31904         const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
31905         return nativeResponseValue;
31906 }
31907         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
31908 /* @internal */
31909 export function Invoice_recover_payee_pub_key(this_arg: number): number {
31910         if(!isWasmInitialized) {
31911                 throw new Error("initializeWasm() must be awaited first!");
31912         }
31913         const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
31914         return nativeResponseValue;
31915 }
31916         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
31917 /* @internal */
31918 export function Invoice_expiry_time(this_arg: number): bigint {
31919         if(!isWasmInitialized) {
31920                 throw new Error("initializeWasm() must be awaited first!");
31921         }
31922         const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
31923         return nativeResponseValue;
31924 }
31925         // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
31926 /* @internal */
31927 export function Invoice_would_expire(this_arg: number, at_time: bigint): boolean {
31928         if(!isWasmInitialized) {
31929                 throw new Error("initializeWasm() must be awaited first!");
31930         }
31931         const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
31932         return nativeResponseValue;
31933 }
31934         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
31935 /* @internal */
31936 export function Invoice_min_final_cltv_expiry(this_arg: number): bigint {
31937         if(!isWasmInitialized) {
31938                 throw new Error("initializeWasm() must be awaited first!");
31939         }
31940         const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry(this_arg);
31941         return nativeResponseValue;
31942 }
31943         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
31944 /* @internal */
31945 export function Invoice_private_routes(this_arg: number): number {
31946         if(!isWasmInitialized) {
31947                 throw new Error("initializeWasm() must be awaited first!");
31948         }
31949         const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
31950         return nativeResponseValue;
31951 }
31952         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
31953 /* @internal */
31954 export function Invoice_route_hints(this_arg: number): number {
31955         if(!isWasmInitialized) {
31956                 throw new Error("initializeWasm() must be awaited first!");
31957         }
31958         const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
31959         return nativeResponseValue;
31960 }
31961         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
31962 /* @internal */
31963 export function Invoice_currency(this_arg: number): Currency {
31964         if(!isWasmInitialized) {
31965                 throw new Error("initializeWasm() must be awaited first!");
31966         }
31967         const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
31968         return nativeResponseValue;
31969 }
31970         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
31971 /* @internal */
31972 export function Invoice_amount_milli_satoshis(this_arg: number): number {
31973         if(!isWasmInitialized) {
31974                 throw new Error("initializeWasm() must be awaited first!");
31975         }
31976         const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
31977         return nativeResponseValue;
31978 }
31979         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
31980 /* @internal */
31981 export function Description_new(description: number): number {
31982         if(!isWasmInitialized) {
31983                 throw new Error("initializeWasm() must be awaited first!");
31984         }
31985         const nativeResponseValue = wasm.TS_Description_new(description);
31986         return nativeResponseValue;
31987 }
31988         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
31989 /* @internal */
31990 export function Description_into_inner(this_arg: number): number {
31991         if(!isWasmInitialized) {
31992                 throw new Error("initializeWasm() must be awaited first!");
31993         }
31994         const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
31995         return nativeResponseValue;
31996 }
31997         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
31998 /* @internal */
31999 export function ExpiryTime_from_seconds(seconds: bigint): number {
32000         if(!isWasmInitialized) {
32001                 throw new Error("initializeWasm() must be awaited first!");
32002         }
32003         const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
32004         return nativeResponseValue;
32005 }
32006         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
32007 /* @internal */
32008 export function ExpiryTime_from_duration(duration: bigint): number {
32009         if(!isWasmInitialized) {
32010                 throw new Error("initializeWasm() must be awaited first!");
32011         }
32012         const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
32013         return nativeResponseValue;
32014 }
32015         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
32016 /* @internal */
32017 export function ExpiryTime_as_seconds(this_arg: number): bigint {
32018         if(!isWasmInitialized) {
32019                 throw new Error("initializeWasm() must be awaited first!");
32020         }
32021         const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
32022         return nativeResponseValue;
32023 }
32024         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
32025 /* @internal */
32026 export function ExpiryTime_as_duration(this_arg: number): bigint {
32027         if(!isWasmInitialized) {
32028                 throw new Error("initializeWasm() must be awaited first!");
32029         }
32030         const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
32031         return nativeResponseValue;
32032 }
32033         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
32034 /* @internal */
32035 export function PrivateRoute_new(hops: number): number {
32036         if(!isWasmInitialized) {
32037                 throw new Error("initializeWasm() must be awaited first!");
32038         }
32039         const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
32040         return nativeResponseValue;
32041 }
32042         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
32043 /* @internal */
32044 export function PrivateRoute_into_inner(this_arg: number): number {
32045         if(!isWasmInitialized) {
32046                 throw new Error("initializeWasm() must be awaited first!");
32047         }
32048         const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
32049         return nativeResponseValue;
32050 }
32051         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
32052 /* @internal */
32053 export function CreationError_clone(orig: number): CreationError {
32054         if(!isWasmInitialized) {
32055                 throw new Error("initializeWasm() must be awaited first!");
32056         }
32057         const nativeResponseValue = wasm.TS_CreationError_clone(orig);
32058         return nativeResponseValue;
32059 }
32060         // enum LDKCreationError CreationError_description_too_long(void);
32061 /* @internal */
32062 export function CreationError_description_too_long(): CreationError {
32063         if(!isWasmInitialized) {
32064                 throw new Error("initializeWasm() must be awaited first!");
32065         }
32066         const nativeResponseValue = wasm.TS_CreationError_description_too_long();
32067         return nativeResponseValue;
32068 }
32069         // enum LDKCreationError CreationError_route_too_long(void);
32070 /* @internal */
32071 export function CreationError_route_too_long(): CreationError {
32072         if(!isWasmInitialized) {
32073                 throw new Error("initializeWasm() must be awaited first!");
32074         }
32075         const nativeResponseValue = wasm.TS_CreationError_route_too_long();
32076         return nativeResponseValue;
32077 }
32078         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
32079 /* @internal */
32080 export function CreationError_timestamp_out_of_bounds(): CreationError {
32081         if(!isWasmInitialized) {
32082                 throw new Error("initializeWasm() must be awaited first!");
32083         }
32084         const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
32085         return nativeResponseValue;
32086 }
32087         // enum LDKCreationError CreationError_invalid_amount(void);
32088 /* @internal */
32089 export function CreationError_invalid_amount(): CreationError {
32090         if(!isWasmInitialized) {
32091                 throw new Error("initializeWasm() must be awaited first!");
32092         }
32093         const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
32094         return nativeResponseValue;
32095 }
32096         // enum LDKCreationError CreationError_missing_route_hints(void);
32097 /* @internal */
32098 export function CreationError_missing_route_hints(): CreationError {
32099         if(!isWasmInitialized) {
32100                 throw new Error("initializeWasm() must be awaited first!");
32101         }
32102         const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
32103         return nativeResponseValue;
32104 }
32105         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
32106 /* @internal */
32107 export function CreationError_eq(a: number, b: number): boolean {
32108         if(!isWasmInitialized) {
32109                 throw new Error("initializeWasm() must be awaited first!");
32110         }
32111         const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
32112         return nativeResponseValue;
32113 }
32114         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
32115 /* @internal */
32116 export function CreationError_to_str(o: number): number {
32117         if(!isWasmInitialized) {
32118                 throw new Error("initializeWasm() must be awaited first!");
32119         }
32120         const nativeResponseValue = wasm.TS_CreationError_to_str(o);
32121         return nativeResponseValue;
32122 }
32123         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
32124 /* @internal */
32125 export function SemanticError_clone(orig: number): SemanticError {
32126         if(!isWasmInitialized) {
32127                 throw new Error("initializeWasm() must be awaited first!");
32128         }
32129         const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
32130         return nativeResponseValue;
32131 }
32132         // enum LDKSemanticError SemanticError_no_payment_hash(void);
32133 /* @internal */
32134 export function SemanticError_no_payment_hash(): SemanticError {
32135         if(!isWasmInitialized) {
32136                 throw new Error("initializeWasm() must be awaited first!");
32137         }
32138         const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
32139         return nativeResponseValue;
32140 }
32141         // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
32142 /* @internal */
32143 export function SemanticError_multiple_payment_hashes(): SemanticError {
32144         if(!isWasmInitialized) {
32145                 throw new Error("initializeWasm() must be awaited first!");
32146         }
32147         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
32148         return nativeResponseValue;
32149 }
32150         // enum LDKSemanticError SemanticError_no_description(void);
32151 /* @internal */
32152 export function SemanticError_no_description(): SemanticError {
32153         if(!isWasmInitialized) {
32154                 throw new Error("initializeWasm() must be awaited first!");
32155         }
32156         const nativeResponseValue = wasm.TS_SemanticError_no_description();
32157         return nativeResponseValue;
32158 }
32159         // enum LDKSemanticError SemanticError_multiple_descriptions(void);
32160 /* @internal */
32161 export function SemanticError_multiple_descriptions(): SemanticError {
32162         if(!isWasmInitialized) {
32163                 throw new Error("initializeWasm() must be awaited first!");
32164         }
32165         const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
32166         return nativeResponseValue;
32167 }
32168         // enum LDKSemanticError SemanticError_no_payment_secret(void);
32169 /* @internal */
32170 export function SemanticError_no_payment_secret(): SemanticError {
32171         if(!isWasmInitialized) {
32172                 throw new Error("initializeWasm() must be awaited first!");
32173         }
32174         const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
32175         return nativeResponseValue;
32176 }
32177         // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
32178 /* @internal */
32179 export function SemanticError_multiple_payment_secrets(): SemanticError {
32180         if(!isWasmInitialized) {
32181                 throw new Error("initializeWasm() must be awaited first!");
32182         }
32183         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
32184         return nativeResponseValue;
32185 }
32186         // enum LDKSemanticError SemanticError_invalid_features(void);
32187 /* @internal */
32188 export function SemanticError_invalid_features(): SemanticError {
32189         if(!isWasmInitialized) {
32190                 throw new Error("initializeWasm() must be awaited first!");
32191         }
32192         const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
32193         return nativeResponseValue;
32194 }
32195         // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
32196 /* @internal */
32197 export function SemanticError_invalid_recovery_id(): SemanticError {
32198         if(!isWasmInitialized) {
32199                 throw new Error("initializeWasm() must be awaited first!");
32200         }
32201         const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
32202         return nativeResponseValue;
32203 }
32204         // enum LDKSemanticError SemanticError_invalid_signature(void);
32205 /* @internal */
32206 export function SemanticError_invalid_signature(): SemanticError {
32207         if(!isWasmInitialized) {
32208                 throw new Error("initializeWasm() must be awaited first!");
32209         }
32210         const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
32211         return nativeResponseValue;
32212 }
32213         // enum LDKSemanticError SemanticError_imprecise_amount(void);
32214 /* @internal */
32215 export function SemanticError_imprecise_amount(): SemanticError {
32216         if(!isWasmInitialized) {
32217                 throw new Error("initializeWasm() must be awaited first!");
32218         }
32219         const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
32220         return nativeResponseValue;
32221 }
32222         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
32223 /* @internal */
32224 export function SemanticError_eq(a: number, b: number): boolean {
32225         if(!isWasmInitialized) {
32226                 throw new Error("initializeWasm() must be awaited first!");
32227         }
32228         const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
32229         return nativeResponseValue;
32230 }
32231         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
32232 /* @internal */
32233 export function SemanticError_to_str(o: number): number {
32234         if(!isWasmInitialized) {
32235                 throw new Error("initializeWasm() must be awaited first!");
32236         }
32237         const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
32238         return nativeResponseValue;
32239 }
32240         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
32241 /* @internal */
32242 export function SignOrCreationError_free(this_ptr: number): void {
32243         if(!isWasmInitialized) {
32244                 throw new Error("initializeWasm() must be awaited first!");
32245         }
32246         const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
32247         // debug statements here
32248 }
32249         // uintptr_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
32250 /* @internal */
32251 export function SignOrCreationError_clone_ptr(arg: number): number {
32252         if(!isWasmInitialized) {
32253                 throw new Error("initializeWasm() must be awaited first!");
32254         }
32255         const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
32256         return nativeResponseValue;
32257 }
32258         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
32259 /* @internal */
32260 export function SignOrCreationError_clone(orig: number): number {
32261         if(!isWasmInitialized) {
32262                 throw new Error("initializeWasm() must be awaited first!");
32263         }
32264         const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
32265         return nativeResponseValue;
32266 }
32267         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
32268 /* @internal */
32269 export function SignOrCreationError_sign_error(): number {
32270         if(!isWasmInitialized) {
32271                 throw new Error("initializeWasm() must be awaited first!");
32272         }
32273         const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
32274         return nativeResponseValue;
32275 }
32276         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
32277 /* @internal */
32278 export function SignOrCreationError_creation_error(a: CreationError): number {
32279         if(!isWasmInitialized) {
32280                 throw new Error("initializeWasm() must be awaited first!");
32281         }
32282         const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
32283         return nativeResponseValue;
32284 }
32285         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
32286 /* @internal */
32287 export function SignOrCreationError_eq(a: number, b: number): boolean {
32288         if(!isWasmInitialized) {
32289                 throw new Error("initializeWasm() must be awaited first!");
32290         }
32291         const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
32292         return nativeResponseValue;
32293 }
32294         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
32295 /* @internal */
32296 export function SignOrCreationError_to_str(o: number): number {
32297         if(!isWasmInitialized) {
32298                 throw new Error("initializeWasm() must be awaited first!");
32299         }
32300         const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
32301         return nativeResponseValue;
32302 }
32303         // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
32304 /* @internal */
32305 export function InvoicePayer_free(this_obj: number): void {
32306         if(!isWasmInitialized) {
32307                 throw new Error("initializeWasm() must be awaited first!");
32308         }
32309         const nativeResponseValue = wasm.TS_InvoicePayer_free(this_obj);
32310         // debug statements here
32311 }
32312         // void Payer_free(struct LDKPayer this_ptr);
32313 /* @internal */
32314 export function Payer_free(this_ptr: number): void {
32315         if(!isWasmInitialized) {
32316                 throw new Error("initializeWasm() must be awaited first!");
32317         }
32318         const nativeResponseValue = wasm.TS_Payer_free(this_ptr);
32319         // debug statements here
32320 }
32321         // void Router_free(struct LDKRouter this_ptr);
32322 /* @internal */
32323 export function Router_free(this_ptr: number): void {
32324         if(!isWasmInitialized) {
32325                 throw new Error("initializeWasm() must be awaited first!");
32326         }
32327         const nativeResponseValue = wasm.TS_Router_free(this_ptr);
32328         // debug statements here
32329 }
32330         // void Retry_free(struct LDKRetry this_ptr);
32331 /* @internal */
32332 export function Retry_free(this_ptr: number): void {
32333         if(!isWasmInitialized) {
32334                 throw new Error("initializeWasm() must be awaited first!");
32335         }
32336         const nativeResponseValue = wasm.TS_Retry_free(this_ptr);
32337         // debug statements here
32338 }
32339         // uintptr_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
32340 /* @internal */
32341 export function Retry_clone_ptr(arg: number): number {
32342         if(!isWasmInitialized) {
32343                 throw new Error("initializeWasm() must be awaited first!");
32344         }
32345         const nativeResponseValue = wasm.TS_Retry_clone_ptr(arg);
32346         return nativeResponseValue;
32347 }
32348         // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
32349 /* @internal */
32350 export function Retry_clone(orig: number): number {
32351         if(!isWasmInitialized) {
32352                 throw new Error("initializeWasm() must be awaited first!");
32353         }
32354         const nativeResponseValue = wasm.TS_Retry_clone(orig);
32355         return nativeResponseValue;
32356 }
32357         // struct LDKRetry Retry_attempts(uintptr_t a);
32358 /* @internal */
32359 export function Retry_attempts(a: number): number {
32360         if(!isWasmInitialized) {
32361                 throw new Error("initializeWasm() must be awaited first!");
32362         }
32363         const nativeResponseValue = wasm.TS_Retry_attempts(a);
32364         return nativeResponseValue;
32365 }
32366         // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
32367 /* @internal */
32368 export function Retry_eq(a: number, b: number): boolean {
32369         if(!isWasmInitialized) {
32370                 throw new Error("initializeWasm() must be awaited first!");
32371         }
32372         const nativeResponseValue = wasm.TS_Retry_eq(a, b);
32373         return nativeResponseValue;
32374 }
32375         // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
32376 /* @internal */
32377 export function Retry_hash(o: number): bigint {
32378         if(!isWasmInitialized) {
32379                 throw new Error("initializeWasm() must be awaited first!");
32380         }
32381         const nativeResponseValue = wasm.TS_Retry_hash(o);
32382         return nativeResponseValue;
32383 }
32384         // void PaymentError_free(struct LDKPaymentError this_ptr);
32385 /* @internal */
32386 export function PaymentError_free(this_ptr: number): void {
32387         if(!isWasmInitialized) {
32388                 throw new Error("initializeWasm() must be awaited first!");
32389         }
32390         const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
32391         // debug statements here
32392 }
32393         // uintptr_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
32394 /* @internal */
32395 export function PaymentError_clone_ptr(arg: number): number {
32396         if(!isWasmInitialized) {
32397                 throw new Error("initializeWasm() must be awaited first!");
32398         }
32399         const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
32400         return nativeResponseValue;
32401 }
32402         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
32403 /* @internal */
32404 export function PaymentError_clone(orig: number): number {
32405         if(!isWasmInitialized) {
32406                 throw new Error("initializeWasm() must be awaited first!");
32407         }
32408         const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
32409         return nativeResponseValue;
32410 }
32411         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
32412 /* @internal */
32413 export function PaymentError_invoice(a: number): number {
32414         if(!isWasmInitialized) {
32415                 throw new Error("initializeWasm() must be awaited first!");
32416         }
32417         const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
32418         return nativeResponseValue;
32419 }
32420         // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
32421 /* @internal */
32422 export function PaymentError_routing(a: number): number {
32423         if(!isWasmInitialized) {
32424                 throw new Error("initializeWasm() must be awaited first!");
32425         }
32426         const nativeResponseValue = wasm.TS_PaymentError_routing(a);
32427         return nativeResponseValue;
32428 }
32429         // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
32430 /* @internal */
32431 export function PaymentError_sending(a: number): number {
32432         if(!isWasmInitialized) {
32433                 throw new Error("initializeWasm() must be awaited first!");
32434         }
32435         const nativeResponseValue = wasm.TS_PaymentError_sending(a);
32436         return nativeResponseValue;
32437 }
32438         // 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);
32439 /* @internal */
32440 export function InvoicePayer_new(payer: number, router: number, scorer: number, logger: number, event_handler: number, retry: number): number {
32441         if(!isWasmInitialized) {
32442                 throw new Error("initializeWasm() must be awaited first!");
32443         }
32444         const nativeResponseValue = wasm.TS_InvoicePayer_new(payer, router, scorer, logger, event_handler, retry);
32445         return nativeResponseValue;
32446 }
32447         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
32448 /* @internal */
32449 export function InvoicePayer_pay_invoice(this_arg: number, invoice: number): number {
32450         if(!isWasmInitialized) {
32451                 throw new Error("initializeWasm() must be awaited first!");
32452         }
32453         const nativeResponseValue = wasm.TS_InvoicePayer_pay_invoice(this_arg, invoice);
32454         return nativeResponseValue;
32455 }
32456         // 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);
32457 /* @internal */
32458 export function InvoicePayer_pay_zero_value_invoice(this_arg: number, invoice: number, amount_msats: bigint): number {
32459         if(!isWasmInitialized) {
32460                 throw new Error("initializeWasm() must be awaited first!");
32461         }
32462         const nativeResponseValue = wasm.TS_InvoicePayer_pay_zero_value_invoice(this_arg, invoice, amount_msats);
32463         return nativeResponseValue;
32464 }
32465         // 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);
32466 /* @internal */
32467 export function InvoicePayer_pay_pubkey(this_arg: number, pubkey: number, payment_preimage: number, amount_msats: bigint, final_cltv_expiry_delta: number): number {
32468         if(!isWasmInitialized) {
32469                 throw new Error("initializeWasm() must be awaited first!");
32470         }
32471         const nativeResponseValue = wasm.TS_InvoicePayer_pay_pubkey(this_arg, pubkey, payment_preimage, amount_msats, final_cltv_expiry_delta);
32472         return nativeResponseValue;
32473 }
32474         // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
32475 /* @internal */
32476 export function InvoicePayer_remove_cached_payment(this_arg: number, payment_hash: number): void {
32477         if(!isWasmInitialized) {
32478                 throw new Error("initializeWasm() must be awaited first!");
32479         }
32480         const nativeResponseValue = wasm.TS_InvoicePayer_remove_cached_payment(this_arg, payment_hash);
32481         // debug statements here
32482 }
32483         // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
32484 /* @internal */
32485 export function InvoicePayer_as_EventHandler(this_arg: number): number {
32486         if(!isWasmInitialized) {
32487                 throw new Error("initializeWasm() must be awaited first!");
32488         }
32489         const nativeResponseValue = wasm.TS_InvoicePayer_as_EventHandler(this_arg);
32490         return nativeResponseValue;
32491 }
32492         // 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);
32493 /* @internal */
32494 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 {
32495         if(!isWasmInitialized) {
32496                 throw new Error("initializeWasm() must be awaited first!");
32497         }
32498         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);
32499         return nativeResponseValue;
32500 }
32501         // 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);
32502 /* @internal */
32503 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 {
32504         if(!isWasmInitialized) {
32505                 throw new Error("initializeWasm() must be awaited first!");
32506         }
32507         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);
32508         return nativeResponseValue;
32509 }
32510         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
32511 /* @internal */
32512 export function DefaultRouter_free(this_obj: number): void {
32513         if(!isWasmInitialized) {
32514                 throw new Error("initializeWasm() must be awaited first!");
32515         }
32516         const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
32517         // debug statements here
32518 }
32519         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes);
32520 /* @internal */
32521 export function DefaultRouter_new(network_graph: number, logger: number, random_seed_bytes: number): number {
32522         if(!isWasmInitialized) {
32523                 throw new Error("initializeWasm() must be awaited first!");
32524         }
32525         const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger, random_seed_bytes);
32526         return nativeResponseValue;
32527 }
32528         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
32529 /* @internal */
32530 export function DefaultRouter_as_Router(this_arg: number): number {
32531         if(!isWasmInitialized) {
32532                 throw new Error("initializeWasm() must be awaited first!");
32533         }
32534         const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
32535         return nativeResponseValue;
32536 }
32537         // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
32538 /* @internal */
32539 export function ChannelManager_as_Payer(this_arg: number): number {
32540         if(!isWasmInitialized) {
32541                 throw new Error("initializeWasm() must be awaited first!");
32542         }
32543         const nativeResponseValue = wasm.TS_ChannelManager_as_Payer(this_arg);
32544         return nativeResponseValue;
32545 }
32546         // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
32547 /* @internal */
32548 export function SiPrefix_from_str(s: number): number {
32549         if(!isWasmInitialized) {
32550                 throw new Error("initializeWasm() must be awaited first!");
32551         }
32552         const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
32553         return nativeResponseValue;
32554 }
32555         // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
32556 /* @internal */
32557 export function Invoice_from_str(s: number): number {
32558         if(!isWasmInitialized) {
32559                 throw new Error("initializeWasm() must be awaited first!");
32560         }
32561         const nativeResponseValue = wasm.TS_Invoice_from_str(s);
32562         return nativeResponseValue;
32563 }
32564         // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
32565 /* @internal */
32566 export function SignedRawInvoice_from_str(s: number): number {
32567         if(!isWasmInitialized) {
32568                 throw new Error("initializeWasm() must be awaited first!");
32569         }
32570         const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
32571         return nativeResponseValue;
32572 }
32573         // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
32574 /* @internal */
32575 export function ParseError_to_str(o: number): number {
32576         if(!isWasmInitialized) {
32577                 throw new Error("initializeWasm() must be awaited first!");
32578         }
32579         const nativeResponseValue = wasm.TS_ParseError_to_str(o);
32580         return nativeResponseValue;
32581 }
32582         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
32583 /* @internal */
32584 export function ParseOrSemanticError_to_str(o: number): number {
32585         if(!isWasmInitialized) {
32586                 throw new Error("initializeWasm() must be awaited first!");
32587         }
32588         const nativeResponseValue = wasm.TS_ParseOrSemanticError_to_str(o);
32589         return nativeResponseValue;
32590 }
32591         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
32592 /* @internal */
32593 export function Invoice_to_str(o: number): number {
32594         if(!isWasmInitialized) {
32595                 throw new Error("initializeWasm() must be awaited first!");
32596         }
32597         const nativeResponseValue = wasm.TS_Invoice_to_str(o);
32598         return nativeResponseValue;
32599 }
32600         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
32601 /* @internal */
32602 export function SignedRawInvoice_to_str(o: number): number {
32603         if(!isWasmInitialized) {
32604                 throw new Error("initializeWasm() must be awaited first!");
32605         }
32606         const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
32607         return nativeResponseValue;
32608 }
32609         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
32610 /* @internal */
32611 export function Currency_to_str(o: number): number {
32612         if(!isWasmInitialized) {
32613                 throw new Error("initializeWasm() must be awaited first!");
32614         }
32615         const nativeResponseValue = wasm.TS_Currency_to_str(o);
32616         return nativeResponseValue;
32617 }
32618         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
32619 /* @internal */
32620 export function SiPrefix_to_str(o: number): number {
32621         if(!isWasmInitialized) {
32622                 throw new Error("initializeWasm() must be awaited first!");
32623         }
32624         const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
32625         return nativeResponseValue;
32626 }
32627
32628
32629 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) {
32630         const weak: WeakRef<object> = js_objs[obj_ptr];
32631         if (weak == null || weak == undefined) {
32632                 console.error("Got function call on unknown/free'd JS object!");
32633                 throw new Error("Got function call on unknown/free'd JS object!");
32634         }
32635         const obj: object = weak.deref();
32636         if (obj == null || obj == undefined) {
32637                 console.error("Got function call on GC'd JS object!");
32638                 throw new Error("Got function call on GC'd JS object!");
32639         }
32640         var fn;
32641         switch (fn_id) {
32642                 case 0: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
32643                 case 1: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
32644                 case 2: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
32645                 case 3: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
32646                 case 4: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
32647                 case 5: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
32648                 case 6: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
32649                 case 7: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
32650                 case 8: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
32651                 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
32652                 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
32653                 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
32654                 case 12: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
32655                 case 13: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
32656                 case 14: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
32657                 case 15: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
32658                 case 16: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
32659                 case 17: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
32660                 case 18: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
32661                 case 19: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
32662                 case 20: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
32663                 case 21: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
32664                 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
32665                 case 23: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
32666                 case 24: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
32667                 case 25: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
32668                 case 26: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
32669                 case 27: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
32670                 case 28: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
32671                 case 29: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
32672                 case 30: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
32673                 case 31: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
32674                 case 32: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
32675                 case 33: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
32676                 case 34: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
32677                 case 35: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
32678                 case 36: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
32679                 case 37: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
32680                 case 38: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
32681                 case 39: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
32682                 case 40: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
32683                 case 41: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break;
32684                 case 42: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break;
32685                 case 43: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break;
32686                 case 44: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break;
32687                 case 45: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
32688                 case 46: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
32689                 case 47: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
32690                 case 48: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
32691                 case 49: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
32692                 case 50: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
32693                 case 51: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
32694                 case 52: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
32695                 case 53: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
32696                 case 54: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
32697                 case 55: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
32698                 case 56: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
32699                 case 57: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break;
32700                 case 58: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
32701                 case 59: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
32702                 case 60: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
32703                 case 61: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
32704                 case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
32705                 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
32706                 case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
32707                 case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
32708                 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
32709                 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
32710                 case 68: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
32711                 case 69: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
32712                 case 70: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
32713                 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
32714                 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
32715                 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
32716                 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
32717                 case 75: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
32718                 case 76: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcements"); break;
32719                 case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcements"); break;
32720                 case 78: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
32721                 case 79: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
32722                 case 80: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
32723                 case 81: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
32724                 case 82: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
32725                 case 83: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
32726                 case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
32727                 case 85: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
32728                 case 86: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
32729                 case 87: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
32730                 case 88: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
32731                 case 89: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
32732                 case 90: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
32733                 case 91: fn = Object.getOwnPropertyDescriptor(obj, "node_id"); break;
32734                 case 92: fn = Object.getOwnPropertyDescriptor(obj, "first_hops"); break;
32735                 case 93: fn = Object.getOwnPropertyDescriptor(obj, "send_payment"); break;
32736                 case 94: fn = Object.getOwnPropertyDescriptor(obj, "send_spontaneous_payment"); break;
32737                 case 95: fn = Object.getOwnPropertyDescriptor(obj, "retry_payment"); break;
32738                 case 96: fn = Object.getOwnPropertyDescriptor(obj, "abandon_payment"); break;
32739                 case 97: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
32740                 default:
32741                         console.error("Got unknown function call from C!");
32742                         throw new Error("Got unknown function call from C!");
32743         }
32744         if (fn == null || fn == undefined) {
32745                 console.error("Got function call on incorrect JS object!");
32746                 throw new Error("Got function call on incorrect JS object!");
32747         }
32748         const ret = fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
32749         if (ret === undefined || ret === null) return BigInt(0);
32750         return BigInt(ret);
32751 }