[TS] Update auto-generated bindings (with RGS)
[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, bytes_written_ptr: number) => {
14                 // This should generally only be used to print panic messages
15                 const ptr_len_view = new Uint32Array(wasm.memory.buffer, iovec_array_ptr, iovec_array_len * 2);
16                 var bytes_written = 0;
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("[fd " + fd + "]: " + String.fromCharCode(...bytes_view));
20                         bytes_written += ptr_len_view[i*2+1];
21                 }
22                 const written_view = new Uint32Array(wasm.memory.buffer, bytes_written_ptr, 1);
23                 written_view[0] = bytes_written;
24                 return 0;
25         },
26         "fd_close": (_fd: number) => {
27                 // This is not generally called, but may be referenced in debug builds
28                 console.log("wasi_snapshot_preview1:fd_close");
29                 return 58; // Not Supported
30         },
31         "fd_seek": (_fd: number, _offset: bigint, _whence: number, _new_offset: number) => {
32                 // This is not generally called, but may be referenced in debug builds
33                 console.log("wasi_snapshot_preview1:fd_seek");
34                 return 58; // Not Supported
35         },
36         "random_get": (buf_ptr: number, buf_len: number) => {
37                 const buf = new Uint8Array(wasm.memory.buffer, buf_ptr, buf_len);
38                 getRandomValues(buf);
39                 return 0;
40         },
41         "environ_sizes_get": (environ_var_count_ptr: number, environ_len_ptr: number) => {
42                 // This is called before fd_write to format + print panic messages
43                 const out_count_view = new Uint32Array(wasm.memory.buffer, environ_var_count_ptr, 1);
44                 out_count_view[0] = 0;
45                 const out_len_view = new Uint32Array(wasm.memory.buffer, environ_len_ptr, 1);
46                 out_len_view[0] = 0;
47                 return 0;
48         },
49         "environ_get": (environ_ptr: number, environ_buf_ptr: number) => {
50                 // This is called before fd_write to format + print panic messages,
51                 // but only if we have variables in environ_sizes_get, so shouldn't ever actually happen!
52                 console.log("wasi_snapshot_preview1:environ_get");
53                 return 58; // Note supported - we said there were 0 environment entries!
54         },
55         "proc_exit" : () => {
56                 console.log("wasi_snapshot_preview1:proc_exit");
57         },
58 };
59
60 var wasm: any = null;
61 let isWasmInitialized: boolean = false;
62
63 async function finishInitializeWasm(wasmInstance: WebAssembly.Instance) {
64         if (typeof crypto === "undefined") {
65                 var crypto_import = (await import('crypto')).webcrypto;
66                 getRandomValues = crypto_import.getRandomValues.bind(crypto_import);
67         } else {
68                 getRandomValues = crypto.getRandomValues.bind(crypto);
69         }
70
71         wasm = wasmInstance.exports;
72         if (!wasm.test_bigint_pass_deadbeef0badf00d(BigInt("0xdeadbeef0badf00d"))) {
73                 throw new Error("Currently need BigInt-as-u64 support, try ----experimental-wasm-bigint");
74         }
75
76         if (decodeString(wasm.TS_get_lib_version_string()) !== version.get_ldk_java_bindings_version())
77                 throw new Error("Compiled LDK library and LDK class files do not match");
78         // Fetching the LDK versions from C also checks that the header and binaries match
79         const c_bindings_ver: number = wasm.TS_get_ldk_c_bindings_version();
80         const ldk_ver: number = wasm.TS_get_ldk_version();
81         if (c_bindings_ver == 0)
82                 throw new Error("LDK version did not match the header we built against");
83         if (ldk_ver == 0)
84                 throw new Error("LDK C bindings version did not match the header we built against");
85         const c_bindings_version: string = decodeString(c_bindings_ver)
86         const ldk_version: string = decodeString(ldk_ver);
87         console.log("Loaded LDK-Java Bindings with LDK " + ldk_version + " and LDK-C-Bindings " + c_bindings_version);
88
89         isWasmInitialized = true;
90 }
91
92 const fn_list = ["uuuuuu", "buuuuu", "bbuuuu", "bbbuuu", "bbbbuu",
93         "bbbbbb", "ubuubu", "ubuuuu", "ubbuuu", "uubuuu", "uububu"];
94
95 /* @internal */
96 export async function initializeWasmFromUint8Array(wasmBinary: Uint8Array) {
97         for (const fn of fn_list) { imports.env["js_invoke_function_" + fn] = js_invoke; }
98         const { instance: wasmInstance } = await WebAssembly.instantiate(wasmBinary, imports);
99         await finishInitializeWasm(wasmInstance);
100 }
101
102 /* @internal */
103 export async function initializeWasmFetch(uri: string) {
104         for (const fn of fn_list) { imports.env["js_invoke_function_" + fn] = js_invoke; }
105         const stream = fetch(uri);
106         const { instance: wasmInstance } = await WebAssembly.instantiateStreaming(stream, imports);
107         await finishInitializeWasm(wasmInstance);
108 }
109 // WASM CODEC
110
111 /* @internal */
112 export function uint5ArrToBytes(inputArray: Array<UInt5>): Uint8Array {
113         const arr = new Uint8Array(inputArray.length);
114         for (var i = 0; i < inputArray.length; i++) {
115                 arr[i] = inputArray[i].getVal();
116         }
117         return arr;
118 }
119
120 /* @internal */
121 export function WitnessVersionArrToBytes(inputArray: Array<WitnessVersion>): Uint8Array {
122         const arr = new Uint8Array(inputArray.length);
123         for (var i = 0; i < inputArray.length; i++) {
124                 arr[i] = inputArray[i].getVal();
125         }
126         return arr;
127 }
128
129
130
131 /* @internal */
132 export function encodeUint8Array (inputArray: Uint8Array): number {
133         const cArrayPointer = wasm.TS_malloc(inputArray.length + 8);
134         const arrayLengthView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, 1);
135         arrayLengthView[0] = BigInt(inputArray.length);
136         const arrayMemoryView = new Uint8Array(wasm.memory.buffer, cArrayPointer + 8, inputArray.length);
137         arrayMemoryView.set(inputArray);
138         return cArrayPointer;
139 }
140 /* @internal */
141 export function encodeUint32Array (inputArray: Uint32Array|Array<number>): number {
142         const cArrayPointer = wasm.TS_malloc((inputArray.length + 2) * 4);
143         const arrayLengthView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, 1);
144         arrayLengthView[0] = BigInt(inputArray.length);
145         const arrayMemoryView = new Uint32Array(wasm.memory.buffer, cArrayPointer + 8, inputArray.length);
146         arrayMemoryView.set(inputArray);
147         return cArrayPointer;
148 }
149 /* @internal */
150 export function encodeUint64Array (inputArray: BigUint64Array|Array<bigint>): number {
151         const cArrayPointer = wasm.TS_malloc((inputArray.length + 1) * 8);
152         const arrayMemoryView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, inputArray.length + 1);
153         arrayMemoryView[0] = BigInt(inputArray.length);
154         arrayMemoryView.set(inputArray, 1);
155         return cArrayPointer;
156 }
157
158 /* @internal */
159 export function check_arr_len(arr: Uint8Array, len: number): Uint8Array {
160         if (arr.length != len) { throw new Error("Expected array of length " + len + " got " + arr.length); }
161         return arr;
162 }
163
164 /* @internal */
165 export function getArrayLength(arrayPointer: number): number {
166         const arraySizeViewer = new BigUint64Array(wasm.memory.buffer, arrayPointer, 1);
167         const len = arraySizeViewer[0];
168         if (len >= (2n ** 32n)) throw new Error("Bogus Array Size");
169         return Number(len % (2n ** 32n));
170 }
171 /* @internal */
172 export function decodeUint8Array (arrayPointer: number, free = true): Uint8Array {
173         const arraySize = getArrayLength(arrayPointer);
174         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 8, arraySize);
175         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
176         // will free the underlying memory when it becomes unreachable instead of copying here.
177         // Note that doing so may have edge-case interactions with memory resizing (invalidating the buffer).
178         const actualArray = actualArrayViewer.slice(0, arraySize);
179         if (free) {
180                 wasm.TS_free(arrayPointer);
181         }
182         return actualArray;
183 }
184 const decodeUint32Array = (arrayPointer: number, free = true) => {
185         const arraySize = getArrayLength(arrayPointer);
186         const actualArrayViewer = new Uint32Array(
187                 wasm.memory.buffer, // value
188                 arrayPointer + 8, // offset (ignoring length bytes)
189                 arraySize // uint32 count
190         );
191         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
192         // will free the underlying memory when it becomes unreachable instead of copying here.
193         const actualArray = actualArrayViewer.slice(0, arraySize);
194         if (free) {
195                 wasm.TS_free(arrayPointer);
196         }
197         return actualArray;
198 }
199 /* @internal */
200 export function decodeUint64Array (arrayPointer: number, free = true): bigint[] {
201         const arraySize = getArrayLength(arrayPointer);
202         const actualArrayViewer = new BigUint64Array(
203                 wasm.memory.buffer, // value
204                 arrayPointer + 8, // offset (ignoring length bytes)
205                 arraySize // uint32 count
206         );
207         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
208         // will free the underlying memory when it becomes unreachable instead of copying here.
209         const actualArray = new Array(arraySize);
210         for (var i = 0; i < arraySize; i++) actualArray[i] = actualArrayViewer[i];
211         if (free) {
212                 wasm.TS_free(arrayPointer);
213         }
214         return actualArray;
215 }
216
217 export function freeWasmMemory(pointer: number) { wasm.TS_free(pointer); }
218
219 /* @internal */
220 export function getU64ArrayElem(arrayPointer: number, idx: number): bigint {
221         const actualArrayViewer = new BigUint64Array(wasm.memory.buffer, arrayPointer + 8, idx + 1);
222         return actualArrayViewer[idx];
223 }
224
225 /* @internal */
226 export function getU32ArrayElem(arrayPointer: number, idx: number): number {
227         const actualArrayViewer = new Uint32Array(wasm.memory.buffer, arrayPointer + 8, idx + 1);
228         return actualArrayViewer[idx];
229 }
230
231 /* @internal */
232 export function getU8ArrayElem(arrayPointer: number, idx: number): number {
233         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 8, idx + 1);
234         return actualArrayViewer[idx];
235 }
236
237
238 /* @internal */
239 export function encodeString(str: string): number {
240         const charArray = new TextEncoder().encode(str);
241         return encodeUint8Array(charArray);
242 }
243
244 /* @internal */
245 export function decodeString(stringPointer: number, free = true): string {
246         const arraySize = getArrayLength(stringPointer);
247         const memoryView = new Uint8Array(wasm.memory.buffer, stringPointer + 8, arraySize);
248         const result = new TextDecoder("utf-8").decode(memoryView);
249
250         if (free) {
251                 wasm.TS_free(stringPointer);
252         }
253
254         return result;
255 }
256
257 /* @internal */ export function getRemainingAllocationCount(): number { return 0; }
258 /* @internal */ export function debugPrintRemainingAllocs() { }
259
260 /**
261  * An error when accessing the chain via [`Access`].
262  */
263 export enum AccessError {
264         /**
265          * The requested chain is unknown.
266          */
267         LDKAccessError_UnknownChain,
268         /**
269          * The requested transaction doesn't exist or hasn't confirmed.
270          */
271         LDKAccessError_UnknownTx,
272         
273 }
274
275 /**
276  * An enum which can either contain a  or not
277  */
278 export enum COption_NoneZ {
279         /**
280          * When we're in this state, this COption_NoneZ contains a
281          */
282         LDKCOption_NoneZ_Some,
283         /**
284          * When we're in this state, this COption_NoneZ contains nothing
285          */
286         LDKCOption_NoneZ_None,
287         
288 }
289
290 /**
291  * An error enum representing a failure to persist a channel monitor update.
292  */
293 export enum ChannelMonitorUpdateErr {
294         /**
295          * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
296         our state failed, but is expected to succeed at some point in the future).
297         
298         Such a failure will \"freeze\" a channel, preventing us from revoking old states or
299         submitting new commitment transactions to the counterparty. Once the update(s) that failed
300         have been successfully applied, a [`MonitorEvent::UpdateCompleted`] event should be returned
301         via [`Watch::release_pending_monitor_events`] which will then restore the channel to an
302         operational state.
303         
304         Note that a given ChannelManager will *never* re-generate a given ChannelMonitorUpdate. If
305         you return a TemporaryFailure you must ensure that it is written to disk safely before
306         writing out the latest ChannelManager state.
307         
308         Even when a channel has been \"frozen\" updates to the ChannelMonitor can continue to occur
309         (eg if an inbound HTLC which we forwarded was claimed upstream resulting in us attempting
310         to claim it on this channel) and those updates must be applied wherever they can be. At
311         least one such updated ChannelMonitor must be persisted otherwise PermanentFailure should
312         be returned to get things on-chain ASAP using only the in-memory copy. Obviously updates to
313         the channel which would invalidate previous ChannelMonitors are not made when a channel has
314         been \"frozen\".
315         
316         Note that even if updates made after TemporaryFailure succeed you must still provide a
317         [`MonitorEvent::UpdateCompleted`] to ensure you have the latest monitor and re-enable
318         normal channel operation. Note that this is normally generated through a call to
319         [`ChainMonitor::channel_monitor_updated`].
320         
321         Note that the update being processed here will not be replayed for you when you return a
322         [`MonitorEvent::UpdateCompleted`] event via [`Watch::release_pending_monitor_events`], so
323         you must store the update itself on your own local disk prior to returning a
324         TemporaryFailure. You may, of course, employ a journaling approach, storing only the
325         ChannelMonitorUpdate on disk without updating the monitor itself, replaying the journal at
326         reload-time.
327         
328         For deployments where a copy of ChannelMonitors and other local state are backed up in a
329         remote location (with local copies persisted immediately), it is anticipated that all
330         updates will return TemporaryFailure until the remote copies could be updated.
331         
332         [`ChainMonitor::channel_monitor_updated`]: chainmonitor::ChainMonitor::channel_monitor_updated
333          */
334         LDKChannelMonitorUpdateErr_TemporaryFailure,
335         /**
336          * Used to indicate no further channel monitor updates will be allowed (eg we've moved on to a
337         different watchtower and cannot update with all watchtowers that were previously informed
338         of this channel).
339         
340         At reception of this error, ChannelManager will force-close the channel and return at
341         least a final ChannelMonitorUpdate::ChannelForceClosed which must be delivered to at
342         least one ChannelMonitor copy. Revocation secret MUST NOT be released and offchain channel
343         update must be rejected.
344         
345         This failure may also signal a failure to update the local persisted copy of one of
346         the channel monitor instance.
347         
348         Note that even when you fail a holder commitment transaction update, you must store the
349         update to ensure you can claim from it in case of a duplicate copy of this ChannelMonitor
350         broadcasts it (e.g distributed channel-monitor deployment)
351         
352         In case of distributed watchtowers deployment, the new version must be written to disk, as
353         state may have been stored but rejected due to a block forcing a commitment broadcast. This
354         storage is used to claim outputs of rejected state confirmed onchain by another watchtower,
355         lagging behind on block processing.
356          */
357         LDKChannelMonitorUpdateErr_PermanentFailure,
358         
359 }
360
361 /**
362  * An enum that represents the speed at which we want a transaction to confirm used for feerate
363  * estimation.
364  */
365 export enum ConfirmationTarget {
366         /**
367          * We are happy with this transaction confirming slowly when feerate drops some.
368          */
369         LDKConfirmationTarget_Background,
370         /**
371          * We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
372          */
373         LDKConfirmationTarget_Normal,
374         /**
375          * We'd like this transaction to confirm in the next few blocks.
376          */
377         LDKConfirmationTarget_HighPriority,
378         
379 }
380
381 /**
382  * Errors that may occur when constructing a new `RawInvoice` or `Invoice`
383  */
384 export enum CreationError {
385         /**
386          * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
387          */
388         LDKCreationError_DescriptionTooLong,
389         /**
390          * The specified route has too many hops and can't be encoded
391          */
392         LDKCreationError_RouteTooLong,
393         /**
394          * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
395          */
396         LDKCreationError_TimestampOutOfBounds,
397         /**
398          * The supplied millisatoshi amount was greater than the total bitcoin supply.
399          */
400         LDKCreationError_InvalidAmount,
401         /**
402          * Route hints were required for this invoice and were missing. Applies to
403         [phantom invoices].
404         
405         [phantom invoices]: crate::utils::create_phantom_invoice
406          */
407         LDKCreationError_MissingRouteHints,
408         
409 }
410
411 /**
412  * Enum representing the crypto currencies (or networks) supported by this library
413  */
414 export enum Currency {
415         /**
416          * Bitcoin mainnet
417          */
418         LDKCurrency_Bitcoin,
419         /**
420          * Bitcoin testnet
421          */
422         LDKCurrency_BitcoinTestnet,
423         /**
424          * Bitcoin regtest
425          */
426         LDKCurrency_Regtest,
427         /**
428          * Bitcoin simnet
429          */
430         LDKCurrency_Simnet,
431         /**
432          * Bitcoin signet
433          */
434         LDKCurrency_Signet,
435         
436 }
437
438 /**
439  * Represents an IO Error. Note that some information is lost in the conversion from Rust.
440  */
441 export enum IOError {
442                 LDKIOError_NotFound,
443                 LDKIOError_PermissionDenied,
444                 LDKIOError_ConnectionRefused,
445                 LDKIOError_ConnectionReset,
446                 LDKIOError_ConnectionAborted,
447                 LDKIOError_NotConnected,
448                 LDKIOError_AddrInUse,
449                 LDKIOError_AddrNotAvailable,
450                 LDKIOError_BrokenPipe,
451                 LDKIOError_AlreadyExists,
452                 LDKIOError_WouldBlock,
453                 LDKIOError_InvalidInput,
454                 LDKIOError_InvalidData,
455                 LDKIOError_TimedOut,
456                 LDKIOError_WriteZero,
457                 LDKIOError_Interrupted,
458                 LDKIOError_Other,
459                 LDKIOError_UnexpectedEof,
460         
461 }
462
463 /**
464  * An enum representing the available verbosity levels of the logger.
465  */
466 export enum Level {
467         /**
468          * Designates extremely verbose information, including gossip-induced messages
469          */
470         LDKLevel_Gossip,
471         /**
472          * Designates very low priority, often extremely verbose, information
473          */
474         LDKLevel_Trace,
475         /**
476          * Designates lower priority information
477          */
478         LDKLevel_Debug,
479         /**
480          * Designates useful information
481          */
482         LDKLevel_Info,
483         /**
484          * Designates hazardous situations
485          */
486         LDKLevel_Warn,
487         /**
488          * Designates very serious errors
489          */
490         LDKLevel_Error,
491         
492 }
493
494 /**
495  * An enum representing the possible Bitcoin or test networks which we can run on
496  */
497 export enum Network {
498         /**
499          * The main Bitcoin blockchain.
500          */
501         LDKNetwork_Bitcoin,
502         /**
503          * The testnet3 blockchain.
504          */
505         LDKNetwork_Testnet,
506         /**
507          * A local test blockchain.
508          */
509         LDKNetwork_Regtest,
510         /**
511          * A blockchain on which blocks are signed instead of mined.
512          */
513         LDKNetwork_Signet,
514         
515 }
516
517 /**
518  * Specifies the recipient of an invoice, to indicate to [`KeysInterface::sign_invoice`] what node
519  * secret key should be used to sign the invoice.
520  */
521 export enum Recipient {
522         /**
523          * The invoice should be signed with the local node secret key.
524          */
525         LDKRecipient_Node,
526         /**
527          * The invoice should be signed with the phantom node secret key. This secret key must be the
528         same for all nodes participating in the [phantom node payment].
529         
530         [phantom node payment]: PhantomKeysManager
531          */
532         LDKRecipient_PhantomNode,
533         
534 }
535
536 /**
537  * Represents an error returned from libsecp256k1 during validation of some secp256k1 data
538  */
539 export enum Secp256k1Error {
540         /**
541          * Signature failed verification
542          */
543         LDKSecp256k1Error_IncorrectSignature,
544         /**
545          * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
546          */
547         LDKSecp256k1Error_InvalidMessage,
548         /**
549          * Bad public key
550          */
551         LDKSecp256k1Error_InvalidPublicKey,
552         /**
553          * Bad signature
554          */
555         LDKSecp256k1Error_InvalidSignature,
556         /**
557          * Bad secret key
558          */
559         LDKSecp256k1Error_InvalidSecretKey,
560         /**
561          * Bad shared secret.
562          */
563         LDKSecp256k1Error_InvalidSharedSecret,
564         /**
565          * Bad recovery id
566          */
567         LDKSecp256k1Error_InvalidRecoveryId,
568         /**
569          * Invalid tweak for add_assign or mul_assign
570          */
571         LDKSecp256k1Error_InvalidTweak,
572         /**
573          * Didn't pass enough memory to context creation with preallocated memory
574          */
575         LDKSecp256k1Error_NotEnoughMemory,
576         /**
577          * Bad set of public keys.
578          */
579         LDKSecp256k1Error_InvalidPublicKeySum,
580         /**
581          * The only valid parity values are 0 or 1.
582          */
583         LDKSecp256k1Error_InvalidParityValue,
584         
585 }
586
587 /**
588  * Errors that may occur when converting a `RawInvoice` to an `Invoice`. They relate to the
589  * requirements sections in BOLT #11
590  */
591 export enum SemanticError {
592         /**
593          * The invoice is missing the mandatory payment hash
594          */
595         LDKSemanticError_NoPaymentHash,
596         /**
597          * The invoice has multiple payment hashes which isn't allowed
598          */
599         LDKSemanticError_MultiplePaymentHashes,
600         /**
601          * No description or description hash are part of the invoice
602          */
603         LDKSemanticError_NoDescription,
604         /**
605          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
606          */
607         LDKSemanticError_MultipleDescriptions,
608         /**
609          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
610         should provide.
611          */
612         LDKSemanticError_NoPaymentSecret,
613         /**
614          * The invoice contains multiple payment secrets
615          */
616         LDKSemanticError_MultiplePaymentSecrets,
617         /**
618          * The invoice's features are invalid
619          */
620         LDKSemanticError_InvalidFeatures,
621         /**
622          * The recovery id doesn't fit the signature/pub key
623          */
624         LDKSemanticError_InvalidRecoveryId,
625         /**
626          * The invoice's signature is invalid
627          */
628         LDKSemanticError_InvalidSignature,
629         /**
630          * The invoice's amount was not a whole number of millisatoshis
631          */
632         LDKSemanticError_ImpreciseAmount,
633         
634 }
635
636 /**
637  * SI prefixes for the human readable part
638  */
639 export enum SiPrefix {
640         /**
641          * 10^-3
642          */
643         LDKSiPrefix_Milli,
644         /**
645          * 10^-6
646          */
647         LDKSiPrefix_Micro,
648         /**
649          * 10^-9
650          */
651         LDKSiPrefix_Nano,
652         /**
653          * 10^-12
654          */
655         LDKSiPrefix_Pico,
656         
657 }
658         // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing)
659 /* @internal */
660 export function BigEndianScalar_get_bytes(thing: bigint): number {
661         if(!isWasmInitialized) {
662                 throw new Error("initializeWasm() must be awaited first!");
663         }
664         const nativeResponseValue = wasm.TS_BigEndianScalar_get_bytes(thing);
665         return nativeResponseValue;
666 }
667         // static void BigEndianScalar_free (struct LDKBigEndianScalar thing)
668 /* @internal */
669 export function BigEndianScalar_free(thing: bigint): void {
670         if(!isWasmInitialized) {
671                 throw new Error("initializeWasm() must be awaited first!");
672         }
673         const nativeResponseValue = wasm.TS_BigEndianScalar_free(thing);
674         // debug statements here
675 }
676 /* @internal */
677 export class LDKBech32Error {
678         protected constructor() {}
679 }
680 /* @internal */
681 export function LDKBech32Error_ty_from_ptr(ptr: bigint): number {
682         if(!isWasmInitialized) {
683                 throw new Error("initializeWasm() must be awaited first!");
684         }
685         const nativeResponseValue = wasm.TS_LDKBech32Error_ty_from_ptr(ptr);
686         return nativeResponseValue;
687 }
688 /* @internal */
689 export function LDKBech32Error_InvalidChar_get_invalid_char(ptr: bigint): number {
690         if(!isWasmInitialized) {
691                 throw new Error("initializeWasm() must be awaited first!");
692         }
693         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidChar_get_invalid_char(ptr);
694         return nativeResponseValue;
695 }
696 /* @internal */
697 export function LDKBech32Error_InvalidData_get_invalid_data(ptr: bigint): number {
698         if(!isWasmInitialized) {
699                 throw new Error("initializeWasm() must be awaited first!");
700         }
701         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr);
702         return nativeResponseValue;
703 }
704         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
705 /* @internal */
706 export function TxOut_get_script_pubkey(thing: bigint): number {
707         if(!isWasmInitialized) {
708                 throw new Error("initializeWasm() must be awaited first!");
709         }
710         const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
711         return nativeResponseValue;
712 }
713         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
714 /* @internal */
715 export function TxOut_get_value(thing: bigint): bigint {
716         if(!isWasmInitialized) {
717                 throw new Error("initializeWasm() must be awaited first!");
718         }
719         const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
720         return nativeResponseValue;
721 }
722         // struct LDKBlindedRoute CResult_BlindedRouteNoneZ_get_ok(LDKCResult_BlindedRouteNoneZ *NONNULL_PTR owner);
723 /* @internal */
724 export function CResult_BlindedRouteNoneZ_get_ok(owner: bigint): bigint {
725         if(!isWasmInitialized) {
726                 throw new Error("initializeWasm() must be awaited first!");
727         }
728         const nativeResponseValue = wasm.TS_CResult_BlindedRouteNoneZ_get_ok(owner);
729         return nativeResponseValue;
730 }
731         // void CResult_BlindedRouteNoneZ_get_err(LDKCResult_BlindedRouteNoneZ *NONNULL_PTR owner);
732 /* @internal */
733 export function CResult_BlindedRouteNoneZ_get_err(owner: bigint): void {
734         if(!isWasmInitialized) {
735                 throw new Error("initializeWasm() must be awaited first!");
736         }
737         const nativeResponseValue = wasm.TS_CResult_BlindedRouteNoneZ_get_err(owner);
738         // debug statements here
739 }
740         // struct LDKBlindedRoute CResult_BlindedRouteDecodeErrorZ_get_ok(LDKCResult_BlindedRouteDecodeErrorZ *NONNULL_PTR owner);
741 /* @internal */
742 export function CResult_BlindedRouteDecodeErrorZ_get_ok(owner: bigint): bigint {
743         if(!isWasmInitialized) {
744                 throw new Error("initializeWasm() must be awaited first!");
745         }
746         const nativeResponseValue = wasm.TS_CResult_BlindedRouteDecodeErrorZ_get_ok(owner);
747         return nativeResponseValue;
748 }
749         // struct LDKDecodeError CResult_BlindedRouteDecodeErrorZ_get_err(LDKCResult_BlindedRouteDecodeErrorZ *NONNULL_PTR owner);
750 /* @internal */
751 export function CResult_BlindedRouteDecodeErrorZ_get_err(owner: bigint): bigint {
752         if(!isWasmInitialized) {
753                 throw new Error("initializeWasm() must be awaited first!");
754         }
755         const nativeResponseValue = wasm.TS_CResult_BlindedRouteDecodeErrorZ_get_err(owner);
756         return nativeResponseValue;
757 }
758         // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
759 /* @internal */
760 export function CResult_BlindedHopDecodeErrorZ_get_ok(owner: bigint): bigint {
761         if(!isWasmInitialized) {
762                 throw new Error("initializeWasm() must be awaited first!");
763         }
764         const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_get_ok(owner);
765         return nativeResponseValue;
766 }
767         // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
768 /* @internal */
769 export function CResult_BlindedHopDecodeErrorZ_get_err(owner: bigint): bigint {
770         if(!isWasmInitialized) {
771                 throw new Error("initializeWasm() must be awaited first!");
772         }
773         const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_get_err(owner);
774         return nativeResponseValue;
775 }
776         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
777 /* @internal */
778 export function CResult_NoneNoneZ_get_ok(owner: bigint): void {
779         if(!isWasmInitialized) {
780                 throw new Error("initializeWasm() must be awaited first!");
781         }
782         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
783         // debug statements here
784 }
785         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
786 /* @internal */
787 export function CResult_NoneNoneZ_get_err(owner: bigint): void {
788         if(!isWasmInitialized) {
789                 throw new Error("initializeWasm() must be awaited first!");
790         }
791         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
792         // debug statements here
793 }
794         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
795 /* @internal */
796 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: bigint): bigint {
797         if(!isWasmInitialized) {
798                 throw new Error("initializeWasm() must be awaited first!");
799         }
800         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
801         return nativeResponseValue;
802 }
803         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
804 /* @internal */
805 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: bigint): bigint {
806         if(!isWasmInitialized) {
807                 throw new Error("initializeWasm() must be awaited first!");
808         }
809         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
810         return nativeResponseValue;
811 }
812         // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
813 /* @internal */
814 export function CResult_SecretKeyErrorZ_get_ok(owner: bigint): number {
815         if(!isWasmInitialized) {
816                 throw new Error("initializeWasm() must be awaited first!");
817         }
818         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_ok(owner);
819         return nativeResponseValue;
820 }
821         // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
822 /* @internal */
823 export function CResult_SecretKeyErrorZ_get_err(owner: bigint): Secp256k1Error {
824         if(!isWasmInitialized) {
825                 throw new Error("initializeWasm() must be awaited first!");
826         }
827         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_err(owner);
828         return nativeResponseValue;
829 }
830         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
831 /* @internal */
832 export function CResult_PublicKeyErrorZ_get_ok(owner: bigint): number {
833         if(!isWasmInitialized) {
834                 throw new Error("initializeWasm() must be awaited first!");
835         }
836         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
837         return nativeResponseValue;
838 }
839         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
840 /* @internal */
841 export function CResult_PublicKeyErrorZ_get_err(owner: bigint): Secp256k1Error {
842         if(!isWasmInitialized) {
843                 throw new Error("initializeWasm() must be awaited first!");
844         }
845         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
846         return nativeResponseValue;
847 }
848         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
849 /* @internal */
850 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: bigint): bigint {
851         if(!isWasmInitialized) {
852                 throw new Error("initializeWasm() must be awaited first!");
853         }
854         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
855         return nativeResponseValue;
856 }
857         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
858 /* @internal */
859 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: bigint): bigint {
860         if(!isWasmInitialized) {
861                 throw new Error("initializeWasm() must be awaited first!");
862         }
863         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
864         return nativeResponseValue;
865 }
866         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
867 /* @internal */
868 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: bigint): bigint {
869         if(!isWasmInitialized) {
870                 throw new Error("initializeWasm() must be awaited first!");
871         }
872         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
873         return nativeResponseValue;
874 }
875         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
876 /* @internal */
877 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: bigint): bigint {
878         if(!isWasmInitialized) {
879                 throw new Error("initializeWasm() must be awaited first!");
880         }
881         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
882         return nativeResponseValue;
883 }
884         // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
885 /* @internal */
886 export function CResult_TxCreationKeysErrorZ_get_ok(owner: bigint): bigint {
887         if(!isWasmInitialized) {
888                 throw new Error("initializeWasm() must be awaited first!");
889         }
890         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_ok(owner);
891         return nativeResponseValue;
892 }
893         // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
894 /* @internal */
895 export function CResult_TxCreationKeysErrorZ_get_err(owner: bigint): Secp256k1Error {
896         if(!isWasmInitialized) {
897                 throw new Error("initializeWasm() must be awaited first!");
898         }
899         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_err(owner);
900         return nativeResponseValue;
901 }
902 /* @internal */
903 export class LDKCOption_u32Z {
904         protected constructor() {}
905 }
906 /* @internal */
907 export function LDKCOption_u32Z_ty_from_ptr(ptr: bigint): number {
908         if(!isWasmInitialized) {
909                 throw new Error("initializeWasm() must be awaited first!");
910         }
911         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
912         return nativeResponseValue;
913 }
914 /* @internal */
915 export function LDKCOption_u32Z_Some_get_some(ptr: bigint): number {
916         if(!isWasmInitialized) {
917                 throw new Error("initializeWasm() must be awaited first!");
918         }
919         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
920         return nativeResponseValue;
921 }
922         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
923 /* @internal */
924 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: bigint): bigint {
925         if(!isWasmInitialized) {
926                 throw new Error("initializeWasm() must be awaited first!");
927         }
928         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
929         return nativeResponseValue;
930 }
931         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
932 /* @internal */
933 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: bigint): bigint {
934         if(!isWasmInitialized) {
935                 throw new Error("initializeWasm() must be awaited first!");
936         }
937         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
938         return nativeResponseValue;
939 }
940         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
941 /* @internal */
942 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
943         if(!isWasmInitialized) {
944                 throw new Error("initializeWasm() must be awaited first!");
945         }
946         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
947         return nativeResponseValue;
948 }
949         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
950 /* @internal */
951 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: bigint): bigint {
952         if(!isWasmInitialized) {
953                 throw new Error("initializeWasm() must be awaited first!");
954         }
955         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
956         return nativeResponseValue;
957 }
958         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
959 /* @internal */
960 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
961         if(!isWasmInitialized) {
962                 throw new Error("initializeWasm() must be awaited first!");
963         }
964         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
965         return nativeResponseValue;
966 }
967         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
968 /* @internal */
969 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: bigint): bigint {
970         if(!isWasmInitialized) {
971                 throw new Error("initializeWasm() must be awaited first!");
972         }
973         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
974         return nativeResponseValue;
975 }
976         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
977 /* @internal */
978 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: bigint): bigint {
979         if(!isWasmInitialized) {
980                 throw new Error("initializeWasm() must be awaited first!");
981         }
982         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
983         return nativeResponseValue;
984 }
985         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
986 /* @internal */
987 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: bigint): bigint {
988         if(!isWasmInitialized) {
989                 throw new Error("initializeWasm() must be awaited first!");
990         }
991         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
992         return nativeResponseValue;
993 }
994         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
995 /* @internal */
996 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: bigint): bigint {
997         if(!isWasmInitialized) {
998                 throw new Error("initializeWasm() must be awaited first!");
999         }
1000         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
1001         return nativeResponseValue;
1002 }
1003         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1004 /* @internal */
1005 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: bigint): bigint {
1006         if(!isWasmInitialized) {
1007                 throw new Error("initializeWasm() must be awaited first!");
1008         }
1009         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
1010         return nativeResponseValue;
1011 }
1012         // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1013 /* @internal */
1014 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: bigint): bigint {
1015         if(!isWasmInitialized) {
1016                 throw new Error("initializeWasm() must be awaited first!");
1017         }
1018         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
1019         return nativeResponseValue;
1020 }
1021         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1022 /* @internal */
1023 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: bigint): void {
1024         if(!isWasmInitialized) {
1025                 throw new Error("initializeWasm() must be awaited first!");
1026         }
1027         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
1028         // debug statements here
1029 }
1030         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1031 /* @internal */
1032 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: bigint): bigint {
1033         if(!isWasmInitialized) {
1034                 throw new Error("initializeWasm() must be awaited first!");
1035         }
1036         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
1037         return nativeResponseValue;
1038 }
1039         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1040 /* @internal */
1041 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: bigint): bigint {
1042         if(!isWasmInitialized) {
1043                 throw new Error("initializeWasm() must be awaited first!");
1044         }
1045         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
1046         return nativeResponseValue;
1047 }
1048         // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
1049 /* @internal */
1050 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: bigint): bigint {
1051         if(!isWasmInitialized) {
1052                 throw new Error("initializeWasm() must be awaited first!");
1053         }
1054         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
1055         return nativeResponseValue;
1056 }
1057         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
1058 /* @internal */
1059 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: bigint): void {
1060         if(!isWasmInitialized) {
1061                 throw new Error("initializeWasm() must be awaited first!");
1062         }
1063         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
1064         // debug statements here
1065 }
1066         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
1067 /* @internal */
1068 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: bigint): number {
1069         if(!isWasmInitialized) {
1070                 throw new Error("initializeWasm() must be awaited first!");
1071         }
1072         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
1073         return nativeResponseValue;
1074 }
1075         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
1076 /* @internal */
1077 export function CResult_CVec_SignatureZNoneZ_get_err(owner: bigint): void {
1078         if(!isWasmInitialized) {
1079                 throw new Error("initializeWasm() must be awaited first!");
1080         }
1081         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
1082         // debug statements here
1083 }
1084         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
1085 /* @internal */
1086 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: bigint): bigint {
1087         if(!isWasmInitialized) {
1088                 throw new Error("initializeWasm() must be awaited first!");
1089         }
1090         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
1091         return nativeResponseValue;
1092 }
1093         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
1094 /* @internal */
1095 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: bigint): bigint {
1096         if(!isWasmInitialized) {
1097                 throw new Error("initializeWasm() must be awaited first!");
1098         }
1099         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
1100         return nativeResponseValue;
1101 }
1102         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1103 /* @internal */
1104 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: bigint): bigint {
1105         if(!isWasmInitialized) {
1106                 throw new Error("initializeWasm() must be awaited first!");
1107         }
1108         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
1109         return nativeResponseValue;
1110 }
1111         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1112 /* @internal */
1113 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: bigint): bigint {
1114         if(!isWasmInitialized) {
1115                 throw new Error("initializeWasm() must be awaited first!");
1116         }
1117         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
1118         return nativeResponseValue;
1119 }
1120         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1121 /* @internal */
1122 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: bigint): bigint {
1123         if(!isWasmInitialized) {
1124                 throw new Error("initializeWasm() must be awaited first!");
1125         }
1126         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
1127         return nativeResponseValue;
1128 }
1129         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1130 /* @internal */
1131 export function CResult_RouteHopDecodeErrorZ_get_err(owner: bigint): bigint {
1132         if(!isWasmInitialized) {
1133                 throw new Error("initializeWasm() must be awaited first!");
1134         }
1135         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
1136         return nativeResponseValue;
1137 }
1138         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1139 /* @internal */
1140 export function CResult_RouteDecodeErrorZ_get_ok(owner: bigint): bigint {
1141         if(!isWasmInitialized) {
1142                 throw new Error("initializeWasm() must be awaited first!");
1143         }
1144         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
1145         return nativeResponseValue;
1146 }
1147         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1148 /* @internal */
1149 export function CResult_RouteDecodeErrorZ_get_err(owner: bigint): bigint {
1150         if(!isWasmInitialized) {
1151                 throw new Error("initializeWasm() must be awaited first!");
1152         }
1153         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
1154         return nativeResponseValue;
1155 }
1156         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1157 /* @internal */
1158 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
1159         if(!isWasmInitialized) {
1160                 throw new Error("initializeWasm() must be awaited first!");
1161         }
1162         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
1163         return nativeResponseValue;
1164 }
1165         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1166 /* @internal */
1167 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: bigint): bigint {
1168         if(!isWasmInitialized) {
1169                 throw new Error("initializeWasm() must be awaited first!");
1170         }
1171         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
1172         return nativeResponseValue;
1173 }
1174 /* @internal */
1175 export class LDKCOption_u64Z {
1176         protected constructor() {}
1177 }
1178 /* @internal */
1179 export function LDKCOption_u64Z_ty_from_ptr(ptr: bigint): number {
1180         if(!isWasmInitialized) {
1181                 throw new Error("initializeWasm() must be awaited first!");
1182         }
1183         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
1184         return nativeResponseValue;
1185 }
1186 /* @internal */
1187 export function LDKCOption_u64Z_Some_get_some(ptr: bigint): bigint {
1188         if(!isWasmInitialized) {
1189                 throw new Error("initializeWasm() must be awaited first!");
1190         }
1191         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
1192         return nativeResponseValue;
1193 }
1194         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1195 /* @internal */
1196 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
1197         if(!isWasmInitialized) {
1198                 throw new Error("initializeWasm() must be awaited first!");
1199         }
1200         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1201         return nativeResponseValue;
1202 }
1203         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1204 /* @internal */
1205 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: bigint): bigint {
1206         if(!isWasmInitialized) {
1207                 throw new Error("initializeWasm() must be awaited first!");
1208         }
1209         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1210         return nativeResponseValue;
1211 }
1212         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1213 /* @internal */
1214 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: bigint): bigint {
1215         if(!isWasmInitialized) {
1216                 throw new Error("initializeWasm() must be awaited first!");
1217         }
1218         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1219         return nativeResponseValue;
1220 }
1221         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1222 /* @internal */
1223 export function CResult_RouteHintDecodeErrorZ_get_err(owner: bigint): bigint {
1224         if(!isWasmInitialized) {
1225                 throw new Error("initializeWasm() must be awaited first!");
1226         }
1227         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1228         return nativeResponseValue;
1229 }
1230         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1231 /* @internal */
1232 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: bigint): bigint {
1233         if(!isWasmInitialized) {
1234                 throw new Error("initializeWasm() must be awaited first!");
1235         }
1236         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1237         return nativeResponseValue;
1238 }
1239         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1240 /* @internal */
1241 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: bigint): bigint {
1242         if(!isWasmInitialized) {
1243                 throw new Error("initializeWasm() must be awaited first!");
1244         }
1245         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1246         return nativeResponseValue;
1247 }
1248         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1249 /* @internal */
1250 export function CResult_RouteLightningErrorZ_get_ok(owner: bigint): bigint {
1251         if(!isWasmInitialized) {
1252                 throw new Error("initializeWasm() must be awaited first!");
1253         }
1254         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1255         return nativeResponseValue;
1256 }
1257         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1258 /* @internal */
1259 export function CResult_RouteLightningErrorZ_get_err(owner: bigint): bigint {
1260         if(!isWasmInitialized) {
1261                 throw new Error("initializeWasm() must be awaited first!");
1262         }
1263         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1264         return nativeResponseValue;
1265 }
1266 /* @internal */
1267 export class LDKPaymentPurpose {
1268         protected constructor() {}
1269 }
1270 /* @internal */
1271 export function LDKPaymentPurpose_ty_from_ptr(ptr: bigint): number {
1272         if(!isWasmInitialized) {
1273                 throw new Error("initializeWasm() must be awaited first!");
1274         }
1275         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1276         return nativeResponseValue;
1277 }
1278 /* @internal */
1279 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: bigint): number {
1280         if(!isWasmInitialized) {
1281                 throw new Error("initializeWasm() must be awaited first!");
1282         }
1283         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1284         return nativeResponseValue;
1285 }
1286 /* @internal */
1287 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: bigint): number {
1288         if(!isWasmInitialized) {
1289                 throw new Error("initializeWasm() must be awaited first!");
1290         }
1291         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1292         return nativeResponseValue;
1293 }
1294 /* @internal */
1295 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: bigint): number {
1296         if(!isWasmInitialized) {
1297                 throw new Error("initializeWasm() must be awaited first!");
1298         }
1299         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
1300         return nativeResponseValue;
1301 }
1302         // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1303 /* @internal */
1304 export function CResult_PaymentPurposeDecodeErrorZ_get_ok(owner: bigint): bigint {
1305         if(!isWasmInitialized) {
1306                 throw new Error("initializeWasm() must be awaited first!");
1307         }
1308         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_ok(owner);
1309         return nativeResponseValue;
1310 }
1311         // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1312 /* @internal */
1313 export function CResult_PaymentPurposeDecodeErrorZ_get_err(owner: bigint): bigint {
1314         if(!isWasmInitialized) {
1315                 throw new Error("initializeWasm() must be awaited first!");
1316         }
1317         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_err(owner);
1318         return nativeResponseValue;
1319 }
1320 /* @internal */
1321 export class LDKClosureReason {
1322         protected constructor() {}
1323 }
1324 /* @internal */
1325 export function LDKClosureReason_ty_from_ptr(ptr: bigint): number {
1326         if(!isWasmInitialized) {
1327                 throw new Error("initializeWasm() must be awaited first!");
1328         }
1329         const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
1330         return nativeResponseValue;
1331 }
1332 /* @internal */
1333 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: bigint): number {
1334         if(!isWasmInitialized) {
1335                 throw new Error("initializeWasm() must be awaited first!");
1336         }
1337         const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
1338         return nativeResponseValue;
1339 }
1340 /* @internal */
1341 export function LDKClosureReason_ProcessingError_get_err(ptr: bigint): number {
1342         if(!isWasmInitialized) {
1343                 throw new Error("initializeWasm() must be awaited first!");
1344         }
1345         const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
1346         return nativeResponseValue;
1347 }
1348 /* @internal */
1349 export class LDKCOption_ClosureReasonZ {
1350         protected constructor() {}
1351 }
1352 /* @internal */
1353 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: bigint): number {
1354         if(!isWasmInitialized) {
1355                 throw new Error("initializeWasm() must be awaited first!");
1356         }
1357         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
1358         return nativeResponseValue;
1359 }
1360 /* @internal */
1361 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: bigint): bigint {
1362         if(!isWasmInitialized) {
1363                 throw new Error("initializeWasm() must be awaited first!");
1364         }
1365         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
1366         return nativeResponseValue;
1367 }
1368         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1369 /* @internal */
1370 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: bigint): bigint {
1371         if(!isWasmInitialized) {
1372                 throw new Error("initializeWasm() must be awaited first!");
1373         }
1374         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
1375         return nativeResponseValue;
1376 }
1377         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1378 /* @internal */
1379 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: bigint): bigint {
1380         if(!isWasmInitialized) {
1381                 throw new Error("initializeWasm() must be awaited first!");
1382         }
1383         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
1384         return nativeResponseValue;
1385 }
1386 /* @internal */
1387 export class LDKHTLCDestination {
1388         protected constructor() {}
1389 }
1390 /* @internal */
1391 export function LDKHTLCDestination_ty_from_ptr(ptr: bigint): number {
1392         if(!isWasmInitialized) {
1393                 throw new Error("initializeWasm() must be awaited first!");
1394         }
1395         const nativeResponseValue = wasm.TS_LDKHTLCDestination_ty_from_ptr(ptr);
1396         return nativeResponseValue;
1397 }
1398 /* @internal */
1399 export function LDKHTLCDestination_NextHopChannel_get_node_id(ptr: bigint): number {
1400         if(!isWasmInitialized) {
1401                 throw new Error("initializeWasm() must be awaited first!");
1402         }
1403         const nativeResponseValue = wasm.TS_LDKHTLCDestination_NextHopChannel_get_node_id(ptr);
1404         return nativeResponseValue;
1405 }
1406 /* @internal */
1407 export function LDKHTLCDestination_NextHopChannel_get_channel_id(ptr: bigint): number {
1408         if(!isWasmInitialized) {
1409                 throw new Error("initializeWasm() must be awaited first!");
1410         }
1411         const nativeResponseValue = wasm.TS_LDKHTLCDestination_NextHopChannel_get_channel_id(ptr);
1412         return nativeResponseValue;
1413 }
1414 /* @internal */
1415 export function LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid(ptr: bigint): bigint {
1416         if(!isWasmInitialized) {
1417                 throw new Error("initializeWasm() must be awaited first!");
1418         }
1419         const nativeResponseValue = wasm.TS_LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid(ptr);
1420         return nativeResponseValue;
1421 }
1422 /* @internal */
1423 export function LDKHTLCDestination_FailedPayment_get_payment_hash(ptr: bigint): number {
1424         if(!isWasmInitialized) {
1425                 throw new Error("initializeWasm() must be awaited first!");
1426         }
1427         const nativeResponseValue = wasm.TS_LDKHTLCDestination_FailedPayment_get_payment_hash(ptr);
1428         return nativeResponseValue;
1429 }
1430 /* @internal */
1431 export class LDKCOption_HTLCDestinationZ {
1432         protected constructor() {}
1433 }
1434 /* @internal */
1435 export function LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr: bigint): number {
1436         if(!isWasmInitialized) {
1437                 throw new Error("initializeWasm() must be awaited first!");
1438         }
1439         const nativeResponseValue = wasm.TS_LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr);
1440         return nativeResponseValue;
1441 }
1442 /* @internal */
1443 export function LDKCOption_HTLCDestinationZ_Some_get_some(ptr: bigint): bigint {
1444         if(!isWasmInitialized) {
1445                 throw new Error("initializeWasm() must be awaited first!");
1446         }
1447         const nativeResponseValue = wasm.TS_LDKCOption_HTLCDestinationZ_Some_get_some(ptr);
1448         return nativeResponseValue;
1449 }
1450         // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
1451 /* @internal */
1452 export function CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(owner: bigint): bigint {
1453         if(!isWasmInitialized) {
1454                 throw new Error("initializeWasm() must be awaited first!");
1455         }
1456         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(owner);
1457         return nativeResponseValue;
1458 }
1459         // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
1460 /* @internal */
1461 export function CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(owner: bigint): bigint {
1462         if(!isWasmInitialized) {
1463                 throw new Error("initializeWasm() must be awaited first!");
1464         }
1465         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(owner);
1466         return nativeResponseValue;
1467 }
1468 /* @internal */
1469 export class LDKNetworkUpdate {
1470         protected constructor() {}
1471 }
1472 /* @internal */
1473 export function LDKNetworkUpdate_ty_from_ptr(ptr: bigint): number {
1474         if(!isWasmInitialized) {
1475                 throw new Error("initializeWasm() must be awaited first!");
1476         }
1477         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
1478         return nativeResponseValue;
1479 }
1480 /* @internal */
1481 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: bigint): bigint {
1482         if(!isWasmInitialized) {
1483                 throw new Error("initializeWasm() must be awaited first!");
1484         }
1485         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
1486         return nativeResponseValue;
1487 }
1488 /* @internal */
1489 export function LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr: bigint): bigint {
1490         if(!isWasmInitialized) {
1491                 throw new Error("initializeWasm() must be awaited first!");
1492         }
1493         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr);
1494         return nativeResponseValue;
1495 }
1496 /* @internal */
1497 export function LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr: bigint): boolean {
1498         if(!isWasmInitialized) {
1499                 throw new Error("initializeWasm() must be awaited first!");
1500         }
1501         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr);
1502         return nativeResponseValue;
1503 }
1504 /* @internal */
1505 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: bigint): number {
1506         if(!isWasmInitialized) {
1507                 throw new Error("initializeWasm() must be awaited first!");
1508         }
1509         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
1510         return nativeResponseValue;
1511 }
1512 /* @internal */
1513 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: bigint): boolean {
1514         if(!isWasmInitialized) {
1515                 throw new Error("initializeWasm() must be awaited first!");
1516         }
1517         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
1518         return nativeResponseValue;
1519 }
1520 /* @internal */
1521 export class LDKCOption_NetworkUpdateZ {
1522         protected constructor() {}
1523 }
1524 /* @internal */
1525 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: bigint): number {
1526         if(!isWasmInitialized) {
1527                 throw new Error("initializeWasm() must be awaited first!");
1528         }
1529         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
1530         return nativeResponseValue;
1531 }
1532 /* @internal */
1533 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: bigint): bigint {
1534         if(!isWasmInitialized) {
1535                 throw new Error("initializeWasm() must be awaited first!");
1536         }
1537         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
1538         return nativeResponseValue;
1539 }
1540 /* @internal */
1541 export class LDKSpendableOutputDescriptor {
1542         protected constructor() {}
1543 }
1544 /* @internal */
1545 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: bigint): number {
1546         if(!isWasmInitialized) {
1547                 throw new Error("initializeWasm() must be awaited first!");
1548         }
1549         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
1550         return nativeResponseValue;
1551 }
1552 /* @internal */
1553 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: bigint): bigint {
1554         if(!isWasmInitialized) {
1555                 throw new Error("initializeWasm() must be awaited first!");
1556         }
1557         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
1558         return nativeResponseValue;
1559 }
1560 /* @internal */
1561 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: bigint): bigint {
1562         if(!isWasmInitialized) {
1563                 throw new Error("initializeWasm() must be awaited first!");
1564         }
1565         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
1566         return nativeResponseValue;
1567 }
1568 /* @internal */
1569 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: bigint): bigint {
1570         if(!isWasmInitialized) {
1571                 throw new Error("initializeWasm() must be awaited first!");
1572         }
1573         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
1574         return nativeResponseValue;
1575 }
1576 /* @internal */
1577 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: bigint): bigint {
1578         if(!isWasmInitialized) {
1579                 throw new Error("initializeWasm() must be awaited first!");
1580         }
1581         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
1582         return nativeResponseValue;
1583 }
1584 /* @internal */
1585 export class LDKEvent {
1586         protected constructor() {}
1587 }
1588 /* @internal */
1589 export function LDKEvent_ty_from_ptr(ptr: bigint): number {
1590         if(!isWasmInitialized) {
1591                 throw new Error("initializeWasm() must be awaited first!");
1592         }
1593         const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
1594         return nativeResponseValue;
1595 }
1596 /* @internal */
1597 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: bigint): number {
1598         if(!isWasmInitialized) {
1599                 throw new Error("initializeWasm() must be awaited first!");
1600         }
1601         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
1602         return nativeResponseValue;
1603 }
1604 /* @internal */
1605 export function LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr: bigint): number {
1606         if(!isWasmInitialized) {
1607                 throw new Error("initializeWasm() must be awaited first!");
1608         }
1609         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr);
1610         return nativeResponseValue;
1611 }
1612 /* @internal */
1613 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: bigint): bigint {
1614         if(!isWasmInitialized) {
1615                 throw new Error("initializeWasm() must be awaited first!");
1616         }
1617         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
1618         return nativeResponseValue;
1619 }
1620 /* @internal */
1621 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: bigint): number {
1622         if(!isWasmInitialized) {
1623                 throw new Error("initializeWasm() must be awaited first!");
1624         }
1625         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
1626         return nativeResponseValue;
1627 }
1628 /* @internal */
1629 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: bigint): bigint {
1630         if(!isWasmInitialized) {
1631                 throw new Error("initializeWasm() must be awaited first!");
1632         }
1633         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
1634         return nativeResponseValue;
1635 }
1636 /* @internal */
1637 export function LDKEvent_PaymentReceived_get_payment_hash(ptr: bigint): number {
1638         if(!isWasmInitialized) {
1639                 throw new Error("initializeWasm() must be awaited first!");
1640         }
1641         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_payment_hash(ptr);
1642         return nativeResponseValue;
1643 }
1644 /* @internal */
1645 export function LDKEvent_PaymentReceived_get_amount_msat(ptr: bigint): bigint {
1646         if(!isWasmInitialized) {
1647                 throw new Error("initializeWasm() must be awaited first!");
1648         }
1649         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_amount_msat(ptr);
1650         return nativeResponseValue;
1651 }
1652 /* @internal */
1653 export function LDKEvent_PaymentReceived_get_purpose(ptr: bigint): bigint {
1654         if(!isWasmInitialized) {
1655                 throw new Error("initializeWasm() must be awaited first!");
1656         }
1657         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_purpose(ptr);
1658         return nativeResponseValue;
1659 }
1660 /* @internal */
1661 export function LDKEvent_PaymentClaimed_get_payment_hash(ptr: bigint): number {
1662         if(!isWasmInitialized) {
1663                 throw new Error("initializeWasm() must be awaited first!");
1664         }
1665         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_payment_hash(ptr);
1666         return nativeResponseValue;
1667 }
1668 /* @internal */
1669 export function LDKEvent_PaymentClaimed_get_amount_msat(ptr: bigint): bigint {
1670         if(!isWasmInitialized) {
1671                 throw new Error("initializeWasm() must be awaited first!");
1672         }
1673         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_amount_msat(ptr);
1674         return nativeResponseValue;
1675 }
1676 /* @internal */
1677 export function LDKEvent_PaymentClaimed_get_purpose(ptr: bigint): bigint {
1678         if(!isWasmInitialized) {
1679                 throw new Error("initializeWasm() must be awaited first!");
1680         }
1681         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_purpose(ptr);
1682         return nativeResponseValue;
1683 }
1684 /* @internal */
1685 export function LDKEvent_PaymentSent_get_payment_id(ptr: bigint): number {
1686         if(!isWasmInitialized) {
1687                 throw new Error("initializeWasm() must be awaited first!");
1688         }
1689         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
1690         return nativeResponseValue;
1691 }
1692 /* @internal */
1693 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: bigint): number {
1694         if(!isWasmInitialized) {
1695                 throw new Error("initializeWasm() must be awaited first!");
1696         }
1697         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
1698         return nativeResponseValue;
1699 }
1700 /* @internal */
1701 export function LDKEvent_PaymentSent_get_payment_hash(ptr: bigint): number {
1702         if(!isWasmInitialized) {
1703                 throw new Error("initializeWasm() must be awaited first!");
1704         }
1705         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
1706         return nativeResponseValue;
1707 }
1708 /* @internal */
1709 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: bigint): bigint {
1710         if(!isWasmInitialized) {
1711                 throw new Error("initializeWasm() must be awaited first!");
1712         }
1713         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
1714         return nativeResponseValue;
1715 }
1716 /* @internal */
1717 export function LDKEvent_PaymentFailed_get_payment_id(ptr: bigint): number {
1718         if(!isWasmInitialized) {
1719                 throw new Error("initializeWasm() must be awaited first!");
1720         }
1721         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_id(ptr);
1722         return nativeResponseValue;
1723 }
1724 /* @internal */
1725 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: bigint): number {
1726         if(!isWasmInitialized) {
1727                 throw new Error("initializeWasm() must be awaited first!");
1728         }
1729         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
1730         return nativeResponseValue;
1731 }
1732 /* @internal */
1733 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: bigint): number {
1734         if(!isWasmInitialized) {
1735                 throw new Error("initializeWasm() must be awaited first!");
1736         }
1737         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
1738         return nativeResponseValue;
1739 }
1740 /* @internal */
1741 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: bigint): number {
1742         if(!isWasmInitialized) {
1743                 throw new Error("initializeWasm() must be awaited first!");
1744         }
1745         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
1746         return nativeResponseValue;
1747 }
1748 /* @internal */
1749 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: bigint): number {
1750         if(!isWasmInitialized) {
1751                 throw new Error("initializeWasm() must be awaited first!");
1752         }
1753         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
1754         return nativeResponseValue;
1755 }
1756 /* @internal */
1757 export function LDKEvent_PaymentPathFailed_get_payment_id(ptr: bigint): number {
1758         if(!isWasmInitialized) {
1759                 throw new Error("initializeWasm() must be awaited first!");
1760         }
1761         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_id(ptr);
1762         return nativeResponseValue;
1763 }
1764 /* @internal */
1765 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: bigint): number {
1766         if(!isWasmInitialized) {
1767                 throw new Error("initializeWasm() must be awaited first!");
1768         }
1769         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
1770         return nativeResponseValue;
1771 }
1772 /* @internal */
1773 export function LDKEvent_PaymentPathFailed_get_payment_failed_permanently(ptr: bigint): boolean {
1774         if(!isWasmInitialized) {
1775                 throw new Error("initializeWasm() must be awaited first!");
1776         }
1777         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_failed_permanently(ptr);
1778         return nativeResponseValue;
1779 }
1780 /* @internal */
1781 export function LDKEvent_PaymentPathFailed_get_network_update(ptr: bigint): bigint {
1782         if(!isWasmInitialized) {
1783                 throw new Error("initializeWasm() must be awaited first!");
1784         }
1785         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_network_update(ptr);
1786         return nativeResponseValue;
1787 }
1788 /* @internal */
1789 export function LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr: bigint): boolean {
1790         if(!isWasmInitialized) {
1791                 throw new Error("initializeWasm() must be awaited first!");
1792         }
1793         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr);
1794         return nativeResponseValue;
1795 }
1796 /* @internal */
1797 export function LDKEvent_PaymentPathFailed_get_path(ptr: bigint): number {
1798         if(!isWasmInitialized) {
1799                 throw new Error("initializeWasm() must be awaited first!");
1800         }
1801         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
1802         return nativeResponseValue;
1803 }
1804 /* @internal */
1805 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: bigint): bigint {
1806         if(!isWasmInitialized) {
1807                 throw new Error("initializeWasm() must be awaited first!");
1808         }
1809         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
1810         return nativeResponseValue;
1811 }
1812 /* @internal */
1813 export function LDKEvent_PaymentPathFailed_get_retry(ptr: bigint): bigint {
1814         if(!isWasmInitialized) {
1815                 throw new Error("initializeWasm() must be awaited first!");
1816         }
1817         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_retry(ptr);
1818         return nativeResponseValue;
1819 }
1820 /* @internal */
1821 export function LDKEvent_ProbeSuccessful_get_payment_id(ptr: bigint): number {
1822         if(!isWasmInitialized) {
1823                 throw new Error("initializeWasm() must be awaited first!");
1824         }
1825         const nativeResponseValue = wasm.TS_LDKEvent_ProbeSuccessful_get_payment_id(ptr);
1826         return nativeResponseValue;
1827 }
1828 /* @internal */
1829 export function LDKEvent_ProbeSuccessful_get_payment_hash(ptr: bigint): number {
1830         if(!isWasmInitialized) {
1831                 throw new Error("initializeWasm() must be awaited first!");
1832         }
1833         const nativeResponseValue = wasm.TS_LDKEvent_ProbeSuccessful_get_payment_hash(ptr);
1834         return nativeResponseValue;
1835 }
1836 /* @internal */
1837 export function LDKEvent_ProbeSuccessful_get_path(ptr: bigint): number {
1838         if(!isWasmInitialized) {
1839                 throw new Error("initializeWasm() must be awaited first!");
1840         }
1841         const nativeResponseValue = wasm.TS_LDKEvent_ProbeSuccessful_get_path(ptr);
1842         return nativeResponseValue;
1843 }
1844 /* @internal */
1845 export function LDKEvent_ProbeFailed_get_payment_id(ptr: bigint): number {
1846         if(!isWasmInitialized) {
1847                 throw new Error("initializeWasm() must be awaited first!");
1848         }
1849         const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_payment_id(ptr);
1850         return nativeResponseValue;
1851 }
1852 /* @internal */
1853 export function LDKEvent_ProbeFailed_get_payment_hash(ptr: bigint): number {
1854         if(!isWasmInitialized) {
1855                 throw new Error("initializeWasm() must be awaited first!");
1856         }
1857         const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_payment_hash(ptr);
1858         return nativeResponseValue;
1859 }
1860 /* @internal */
1861 export function LDKEvent_ProbeFailed_get_path(ptr: bigint): number {
1862         if(!isWasmInitialized) {
1863                 throw new Error("initializeWasm() must be awaited first!");
1864         }
1865         const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_path(ptr);
1866         return nativeResponseValue;
1867 }
1868 /* @internal */
1869 export function LDKEvent_ProbeFailed_get_short_channel_id(ptr: bigint): bigint {
1870         if(!isWasmInitialized) {
1871                 throw new Error("initializeWasm() must be awaited first!");
1872         }
1873         const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_short_channel_id(ptr);
1874         return nativeResponseValue;
1875 }
1876 /* @internal */
1877 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: bigint): bigint {
1878         if(!isWasmInitialized) {
1879                 throw new Error("initializeWasm() must be awaited first!");
1880         }
1881         const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
1882         return nativeResponseValue;
1883 }
1884 /* @internal */
1885 export function LDKEvent_SpendableOutputs_get_outputs(ptr: bigint): number {
1886         if(!isWasmInitialized) {
1887                 throw new Error("initializeWasm() must be awaited first!");
1888         }
1889         const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
1890         return nativeResponseValue;
1891 }
1892 /* @internal */
1893 export function LDKEvent_PaymentForwarded_get_prev_channel_id(ptr: bigint): number {
1894         if(!isWasmInitialized) {
1895                 throw new Error("initializeWasm() must be awaited first!");
1896         }
1897         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_prev_channel_id(ptr);
1898         return nativeResponseValue;
1899 }
1900 /* @internal */
1901 export function LDKEvent_PaymentForwarded_get_next_channel_id(ptr: bigint): number {
1902         if(!isWasmInitialized) {
1903                 throw new Error("initializeWasm() must be awaited first!");
1904         }
1905         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_next_channel_id(ptr);
1906         return nativeResponseValue;
1907 }
1908 /* @internal */
1909 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: bigint): bigint {
1910         if(!isWasmInitialized) {
1911                 throw new Error("initializeWasm() must be awaited first!");
1912         }
1913         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
1914         return nativeResponseValue;
1915 }
1916 /* @internal */
1917 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: bigint): boolean {
1918         if(!isWasmInitialized) {
1919                 throw new Error("initializeWasm() must be awaited first!");
1920         }
1921         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
1922         return nativeResponseValue;
1923 }
1924 /* @internal */
1925 export function LDKEvent_ChannelClosed_get_channel_id(ptr: bigint): number {
1926         if(!isWasmInitialized) {
1927                 throw new Error("initializeWasm() must be awaited first!");
1928         }
1929         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
1930         return nativeResponseValue;
1931 }
1932 /* @internal */
1933 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: bigint): bigint {
1934         if(!isWasmInitialized) {
1935                 throw new Error("initializeWasm() must be awaited first!");
1936         }
1937         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
1938         return nativeResponseValue;
1939 }
1940 /* @internal */
1941 export function LDKEvent_ChannelClosed_get_reason(ptr: bigint): bigint {
1942         if(!isWasmInitialized) {
1943                 throw new Error("initializeWasm() must be awaited first!");
1944         }
1945         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
1946         return nativeResponseValue;
1947 }
1948 /* @internal */
1949 export function LDKEvent_DiscardFunding_get_channel_id(ptr: bigint): number {
1950         if(!isWasmInitialized) {
1951                 throw new Error("initializeWasm() must be awaited first!");
1952         }
1953         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
1954         return nativeResponseValue;
1955 }
1956 /* @internal */
1957 export function LDKEvent_DiscardFunding_get_transaction(ptr: bigint): number {
1958         if(!isWasmInitialized) {
1959                 throw new Error("initializeWasm() must be awaited first!");
1960         }
1961         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
1962         return nativeResponseValue;
1963 }
1964 /* @internal */
1965 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: bigint): number {
1966         if(!isWasmInitialized) {
1967                 throw new Error("initializeWasm() must be awaited first!");
1968         }
1969         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
1970         return nativeResponseValue;
1971 }
1972 /* @internal */
1973 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: bigint): number {
1974         if(!isWasmInitialized) {
1975                 throw new Error("initializeWasm() must be awaited first!");
1976         }
1977         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
1978         return nativeResponseValue;
1979 }
1980 /* @internal */
1981 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: bigint): bigint {
1982         if(!isWasmInitialized) {
1983                 throw new Error("initializeWasm() must be awaited first!");
1984         }
1985         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
1986         return nativeResponseValue;
1987 }
1988 /* @internal */
1989 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: bigint): bigint {
1990         if(!isWasmInitialized) {
1991                 throw new Error("initializeWasm() must be awaited first!");
1992         }
1993         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
1994         return nativeResponseValue;
1995 }
1996 /* @internal */
1997 export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: bigint): bigint {
1998         if(!isWasmInitialized) {
1999                 throw new Error("initializeWasm() must be awaited first!");
2000         }
2001         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_channel_type(ptr);
2002         return nativeResponseValue;
2003 }
2004 /* @internal */
2005 export function LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr: bigint): number {
2006         if(!isWasmInitialized) {
2007                 throw new Error("initializeWasm() must be awaited first!");
2008         }
2009         const nativeResponseValue = wasm.TS_LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr);
2010         return nativeResponseValue;
2011 }
2012 /* @internal */
2013 export function LDKEvent_HTLCHandlingFailed_get_failed_next_destination(ptr: bigint): bigint {
2014         if(!isWasmInitialized) {
2015                 throw new Error("initializeWasm() must be awaited first!");
2016         }
2017         const nativeResponseValue = wasm.TS_LDKEvent_HTLCHandlingFailed_get_failed_next_destination(ptr);
2018         return nativeResponseValue;
2019 }
2020 /* @internal */
2021 export class LDKCOption_EventZ {
2022         protected constructor() {}
2023 }
2024 /* @internal */
2025 export function LDKCOption_EventZ_ty_from_ptr(ptr: bigint): number {
2026         if(!isWasmInitialized) {
2027                 throw new Error("initializeWasm() must be awaited first!");
2028         }
2029         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
2030         return nativeResponseValue;
2031 }
2032 /* @internal */
2033 export function LDKCOption_EventZ_Some_get_some(ptr: bigint): bigint {
2034         if(!isWasmInitialized) {
2035                 throw new Error("initializeWasm() must be awaited first!");
2036         }
2037         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
2038         return nativeResponseValue;
2039 }
2040         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2041 /* @internal */
2042 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: bigint): bigint {
2043         if(!isWasmInitialized) {
2044                 throw new Error("initializeWasm() must be awaited first!");
2045         }
2046         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
2047         return nativeResponseValue;
2048 }
2049         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2050 /* @internal */
2051 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: bigint): bigint {
2052         if(!isWasmInitialized) {
2053                 throw new Error("initializeWasm() must be awaited first!");
2054         }
2055         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
2056         return nativeResponseValue;
2057 }
2058 /* @internal */
2059 export class LDKErrorAction {
2060         protected constructor() {}
2061 }
2062 /* @internal */
2063 export function LDKErrorAction_ty_from_ptr(ptr: bigint): number {
2064         if(!isWasmInitialized) {
2065                 throw new Error("initializeWasm() must be awaited first!");
2066         }
2067         const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
2068         return nativeResponseValue;
2069 }
2070 /* @internal */
2071 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: bigint): bigint {
2072         if(!isWasmInitialized) {
2073                 throw new Error("initializeWasm() must be awaited first!");
2074         }
2075         const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
2076         return nativeResponseValue;
2077 }
2078 /* @internal */
2079 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: bigint): Level {
2080         if(!isWasmInitialized) {
2081                 throw new Error("initializeWasm() must be awaited first!");
2082         }
2083         const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
2084         return nativeResponseValue;
2085 }
2086 /* @internal */
2087 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: bigint): bigint {
2088         if(!isWasmInitialized) {
2089                 throw new Error("initializeWasm() must be awaited first!");
2090         }
2091         const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
2092         return nativeResponseValue;
2093 }
2094 /* @internal */
2095 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: bigint): bigint {
2096         if(!isWasmInitialized) {
2097                 throw new Error("initializeWasm() must be awaited first!");
2098         }
2099         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
2100         return nativeResponseValue;
2101 }
2102 /* @internal */
2103 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: bigint): Level {
2104         if(!isWasmInitialized) {
2105                 throw new Error("initializeWasm() must be awaited first!");
2106         }
2107         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
2108         return nativeResponseValue;
2109 }
2110 /* @internal */
2111 export class LDKMessageSendEvent {
2112         protected constructor() {}
2113 }
2114 /* @internal */
2115 export function LDKMessageSendEvent_ty_from_ptr(ptr: bigint): number {
2116         if(!isWasmInitialized) {
2117                 throw new Error("initializeWasm() must be awaited first!");
2118         }
2119         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
2120         return nativeResponseValue;
2121 }
2122 /* @internal */
2123 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: bigint): number {
2124         if(!isWasmInitialized) {
2125                 throw new Error("initializeWasm() must be awaited first!");
2126         }
2127         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
2128         return nativeResponseValue;
2129 }
2130 /* @internal */
2131 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: bigint): bigint {
2132         if(!isWasmInitialized) {
2133                 throw new Error("initializeWasm() must be awaited first!");
2134         }
2135         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
2136         return nativeResponseValue;
2137 }
2138 /* @internal */
2139 export function LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr: bigint): number {
2140         if(!isWasmInitialized) {
2141                 throw new Error("initializeWasm() must be awaited first!");
2142         }
2143         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
2144         return nativeResponseValue;
2145 }
2146 /* @internal */
2147 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: bigint): bigint {
2148         if(!isWasmInitialized) {
2149                 throw new Error("initializeWasm() must be awaited first!");
2150         }
2151         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
2152         return nativeResponseValue;
2153 }
2154 /* @internal */
2155 export function LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr: bigint): number {
2156         if(!isWasmInitialized) {
2157                 throw new Error("initializeWasm() must be awaited first!");
2158         }
2159         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
2160         return nativeResponseValue;
2161 }
2162 /* @internal */
2163 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: bigint): bigint {
2164         if(!isWasmInitialized) {
2165                 throw new Error("initializeWasm() must be awaited first!");
2166         }
2167         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
2168         return nativeResponseValue;
2169 }
2170 /* @internal */
2171 export function LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr: bigint): number {
2172         if(!isWasmInitialized) {
2173                 throw new Error("initializeWasm() must be awaited first!");
2174         }
2175         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
2176         return nativeResponseValue;
2177 }
2178 /* @internal */
2179 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: bigint): bigint {
2180         if(!isWasmInitialized) {
2181                 throw new Error("initializeWasm() must be awaited first!");
2182         }
2183         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
2184         return nativeResponseValue;
2185 }
2186 /* @internal */
2187 export function LDKMessageSendEvent_SendChannelReady_get_node_id(ptr: bigint): number {
2188         if(!isWasmInitialized) {
2189                 throw new Error("initializeWasm() must be awaited first!");
2190         }
2191         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_node_id(ptr);
2192         return nativeResponseValue;
2193 }
2194 /* @internal */
2195 export function LDKMessageSendEvent_SendChannelReady_get_msg(ptr: bigint): bigint {
2196         if(!isWasmInitialized) {
2197                 throw new Error("initializeWasm() must be awaited first!");
2198         }
2199         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
2200         return nativeResponseValue;
2201 }
2202 /* @internal */
2203 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr: bigint): number {
2204         if(!isWasmInitialized) {
2205                 throw new Error("initializeWasm() must be awaited first!");
2206         }
2207         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
2208         return nativeResponseValue;
2209 }
2210 /* @internal */
2211 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: bigint): bigint {
2212         if(!isWasmInitialized) {
2213                 throw new Error("initializeWasm() must be awaited first!");
2214         }
2215         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
2216         return nativeResponseValue;
2217 }
2218 /* @internal */
2219 export function LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr: bigint): number {
2220         if(!isWasmInitialized) {
2221                 throw new Error("initializeWasm() must be awaited first!");
2222         }
2223         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
2224         return nativeResponseValue;
2225 }
2226 /* @internal */
2227 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: bigint): bigint {
2228         if(!isWasmInitialized) {
2229                 throw new Error("initializeWasm() must be awaited first!");
2230         }
2231         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
2232         return nativeResponseValue;
2233 }
2234 /* @internal */
2235 export function LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr: bigint): number {
2236         if(!isWasmInitialized) {
2237                 throw new Error("initializeWasm() must be awaited first!");
2238         }
2239         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
2240         return nativeResponseValue;
2241 }
2242 /* @internal */
2243 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: bigint): bigint {
2244         if(!isWasmInitialized) {
2245                 throw new Error("initializeWasm() must be awaited first!");
2246         }
2247         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
2248         return nativeResponseValue;
2249 }
2250 /* @internal */
2251 export function LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr: bigint): number {
2252         if(!isWasmInitialized) {
2253                 throw new Error("initializeWasm() must be awaited first!");
2254         }
2255         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
2256         return nativeResponseValue;
2257 }
2258 /* @internal */
2259 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: bigint): bigint {
2260         if(!isWasmInitialized) {
2261                 throw new Error("initializeWasm() must be awaited first!");
2262         }
2263         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
2264         return nativeResponseValue;
2265 }
2266 /* @internal */
2267 export function LDKMessageSendEvent_SendShutdown_get_node_id(ptr: bigint): number {
2268         if(!isWasmInitialized) {
2269                 throw new Error("initializeWasm() must be awaited first!");
2270         }
2271         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
2272         return nativeResponseValue;
2273 }
2274 /* @internal */
2275 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: bigint): bigint {
2276         if(!isWasmInitialized) {
2277                 throw new Error("initializeWasm() must be awaited first!");
2278         }
2279         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
2280         return nativeResponseValue;
2281 }
2282 /* @internal */
2283 export function LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr: bigint): number {
2284         if(!isWasmInitialized) {
2285                 throw new Error("initializeWasm() must be awaited first!");
2286         }
2287         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
2288         return nativeResponseValue;
2289 }
2290 /* @internal */
2291 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: bigint): bigint {
2292         if(!isWasmInitialized) {
2293                 throw new Error("initializeWasm() must be awaited first!");
2294         }
2295         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
2296         return nativeResponseValue;
2297 }
2298 /* @internal */
2299 export function LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr: bigint): number {
2300         if(!isWasmInitialized) {
2301                 throw new Error("initializeWasm() must be awaited first!");
2302         }
2303         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr);
2304         return nativeResponseValue;
2305 }
2306 /* @internal */
2307 export function LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr: bigint): bigint {
2308         if(!isWasmInitialized) {
2309                 throw new Error("initializeWasm() must be awaited first!");
2310         }
2311         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr);
2312         return nativeResponseValue;
2313 }
2314 /* @internal */
2315 export function LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr: bigint): bigint {
2316         if(!isWasmInitialized) {
2317                 throw new Error("initializeWasm() must be awaited first!");
2318         }
2319         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr);
2320         return nativeResponseValue;
2321 }
2322 /* @internal */
2323 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: bigint): bigint {
2324         if(!isWasmInitialized) {
2325                 throw new Error("initializeWasm() must be awaited first!");
2326         }
2327         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
2328         return nativeResponseValue;
2329 }
2330 /* @internal */
2331 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: bigint): bigint {
2332         if(!isWasmInitialized) {
2333                 throw new Error("initializeWasm() must be awaited first!");
2334         }
2335         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
2336         return nativeResponseValue;
2337 }
2338 /* @internal */
2339 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: bigint): bigint {
2340         if(!isWasmInitialized) {
2341                 throw new Error("initializeWasm() must be awaited first!");
2342         }
2343         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
2344         return nativeResponseValue;
2345 }
2346 /* @internal */
2347 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: bigint): number {
2348         if(!isWasmInitialized) {
2349                 throw new Error("initializeWasm() must be awaited first!");
2350         }
2351         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
2352         return nativeResponseValue;
2353 }
2354 /* @internal */
2355 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: bigint): bigint {
2356         if(!isWasmInitialized) {
2357                 throw new Error("initializeWasm() must be awaited first!");
2358         }
2359         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
2360         return nativeResponseValue;
2361 }
2362 /* @internal */
2363 export function LDKMessageSendEvent_HandleError_get_node_id(ptr: bigint): number {
2364         if(!isWasmInitialized) {
2365                 throw new Error("initializeWasm() must be awaited first!");
2366         }
2367         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_node_id(ptr);
2368         return nativeResponseValue;
2369 }
2370 /* @internal */
2371 export function LDKMessageSendEvent_HandleError_get_action(ptr: bigint): bigint {
2372         if(!isWasmInitialized) {
2373                 throw new Error("initializeWasm() must be awaited first!");
2374         }
2375         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
2376         return nativeResponseValue;
2377 }
2378 /* @internal */
2379 export function LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr: bigint): number {
2380         if(!isWasmInitialized) {
2381                 throw new Error("initializeWasm() must be awaited first!");
2382         }
2383         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
2384         return nativeResponseValue;
2385 }
2386 /* @internal */
2387 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: bigint): bigint {
2388         if(!isWasmInitialized) {
2389                 throw new Error("initializeWasm() must be awaited first!");
2390         }
2391         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
2392         return nativeResponseValue;
2393 }
2394 /* @internal */
2395 export function LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr: bigint): number {
2396         if(!isWasmInitialized) {
2397                 throw new Error("initializeWasm() must be awaited first!");
2398         }
2399         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
2400         return nativeResponseValue;
2401 }
2402 /* @internal */
2403 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: bigint): bigint {
2404         if(!isWasmInitialized) {
2405                 throw new Error("initializeWasm() must be awaited first!");
2406         }
2407         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
2408         return nativeResponseValue;
2409 }
2410 /* @internal */
2411 export function LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr: bigint): number {
2412         if(!isWasmInitialized) {
2413                 throw new Error("initializeWasm() must be awaited first!");
2414         }
2415         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
2416         return nativeResponseValue;
2417 }
2418 /* @internal */
2419 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: bigint): bigint {
2420         if(!isWasmInitialized) {
2421                 throw new Error("initializeWasm() must be awaited first!");
2422         }
2423         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
2424         return nativeResponseValue;
2425 }
2426 /* @internal */
2427 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr: bigint): number {
2428         if(!isWasmInitialized) {
2429                 throw new Error("initializeWasm() must be awaited first!");
2430         }
2431         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
2432         return nativeResponseValue;
2433 }
2434 /* @internal */
2435 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr: bigint): bigint {
2436         if(!isWasmInitialized) {
2437                 throw new Error("initializeWasm() must be awaited first!");
2438         }
2439         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
2440         return nativeResponseValue;
2441 }
2442         // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2443 /* @internal */
2444 export function CResult_TxOutAccessErrorZ_get_ok(owner: bigint): bigint {
2445         if(!isWasmInitialized) {
2446                 throw new Error("initializeWasm() must be awaited first!");
2447         }
2448         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_ok(owner);
2449         return nativeResponseValue;
2450 }
2451         // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2452 /* @internal */
2453 export function CResult_TxOutAccessErrorZ_get_err(owner: bigint): AccessError {
2454         if(!isWasmInitialized) {
2455                 throw new Error("initializeWasm() must be awaited first!");
2456         }
2457         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_err(owner);
2458         return nativeResponseValue;
2459 }
2460         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2461 /* @internal */
2462 export function C2Tuple_usizeTransactionZ_get_a(owner: bigint): number {
2463         if(!isWasmInitialized) {
2464                 throw new Error("initializeWasm() must be awaited first!");
2465         }
2466         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
2467         return nativeResponseValue;
2468 }
2469         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2470 /* @internal */
2471 export function C2Tuple_usizeTransactionZ_get_b(owner: bigint): number {
2472         if(!isWasmInitialized) {
2473                 throw new Error("initializeWasm() must be awaited first!");
2474         }
2475         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
2476         return nativeResponseValue;
2477 }
2478         // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2479 /* @internal */
2480 export function CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner: bigint): void {
2481         if(!isWasmInitialized) {
2482                 throw new Error("initializeWasm() must be awaited first!");
2483         }
2484         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner);
2485         // debug statements here
2486 }
2487         // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2488 /* @internal */
2489 export function CResult_NoneChannelMonitorUpdateErrZ_get_err(owner: bigint): ChannelMonitorUpdateErr {
2490         if(!isWasmInitialized) {
2491                 throw new Error("initializeWasm() must be awaited first!");
2492         }
2493         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_err(owner);
2494         return nativeResponseValue;
2495 }
2496 /* @internal */
2497 export class LDKMonitorEvent {
2498         protected constructor() {}
2499 }
2500 /* @internal */
2501 export function LDKMonitorEvent_ty_from_ptr(ptr: bigint): number {
2502         if(!isWasmInitialized) {
2503                 throw new Error("initializeWasm() must be awaited first!");
2504         }
2505         const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
2506         return nativeResponseValue;
2507 }
2508 /* @internal */
2509 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: bigint): bigint {
2510         if(!isWasmInitialized) {
2511                 throw new Error("initializeWasm() must be awaited first!");
2512         }
2513         const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
2514         return nativeResponseValue;
2515 }
2516 /* @internal */
2517 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: bigint): bigint {
2518         if(!isWasmInitialized) {
2519                 throw new Error("initializeWasm() must be awaited first!");
2520         }
2521         const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
2522         return nativeResponseValue;
2523 }
2524 /* @internal */
2525 export function LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr: bigint): bigint {
2526         if(!isWasmInitialized) {
2527                 throw new Error("initializeWasm() must be awaited first!");
2528         }
2529         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr);
2530         return nativeResponseValue;
2531 }
2532 /* @internal */
2533 export function LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr: bigint): bigint {
2534         if(!isWasmInitialized) {
2535                 throw new Error("initializeWasm() must be awaited first!");
2536         }
2537         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr);
2538         return nativeResponseValue;
2539 }
2540 /* @internal */
2541 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: bigint): bigint {
2542         if(!isWasmInitialized) {
2543                 throw new Error("initializeWasm() must be awaited first!");
2544         }
2545         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
2546         return nativeResponseValue;
2547 }
2548         // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
2549 /* @internal */
2550 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(owner: bigint): bigint {
2551         if(!isWasmInitialized) {
2552                 throw new Error("initializeWasm() must be awaited first!");
2553         }
2554         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(owner);
2555         return nativeResponseValue;
2556 }
2557         // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
2558 /* @internal */
2559 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(owner: bigint): number {
2560         if(!isWasmInitialized) {
2561                 throw new Error("initializeWasm() must be awaited first!");
2562         }
2563         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(owner);
2564         return nativeResponseValue;
2565 }
2566         // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
2567 /* @internal */
2568 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(owner: bigint): number {
2569         if(!isWasmInitialized) {
2570                 throw new Error("initializeWasm() must be awaited first!");
2571         }
2572         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(owner);
2573         return nativeResponseValue;
2574 }
2575         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2576 /* @internal */
2577 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: bigint): bigint {
2578         if(!isWasmInitialized) {
2579                 throw new Error("initializeWasm() must be awaited first!");
2580         }
2581         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
2582         return nativeResponseValue;
2583 }
2584         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2585 /* @internal */
2586 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: bigint): bigint {
2587         if(!isWasmInitialized) {
2588                 throw new Error("initializeWasm() must be awaited first!");
2589         }
2590         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
2591         return nativeResponseValue;
2592 }
2593         // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
2594 /* @internal */
2595 export function C2Tuple_u64u64Z_get_a(owner: bigint): bigint {
2596         if(!isWasmInitialized) {
2597                 throw new Error("initializeWasm() must be awaited first!");
2598         }
2599         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_a(owner);
2600         return nativeResponseValue;
2601 }
2602         // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
2603 /* @internal */
2604 export function C2Tuple_u64u64Z_get_b(owner: bigint): bigint {
2605         if(!isWasmInitialized) {
2606                 throw new Error("initializeWasm() must be awaited first!");
2607         }
2608         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_b(owner);
2609         return nativeResponseValue;
2610 }
2611 /* @internal */
2612 export class LDKCOption_C2Tuple_u64u64ZZ {
2613         protected constructor() {}
2614 }
2615 /* @internal */
2616 export function LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr: bigint): number {
2617         if(!isWasmInitialized) {
2618                 throw new Error("initializeWasm() must be awaited first!");
2619         }
2620         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr);
2621         return nativeResponseValue;
2622 }
2623 /* @internal */
2624 export function LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr: bigint): bigint {
2625         if(!isWasmInitialized) {
2626                 throw new Error("initializeWasm() must be awaited first!");
2627         }
2628         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr);
2629         return nativeResponseValue;
2630 }
2631 /* @internal */
2632 export interface LDKLogger {
2633         log (record: bigint): void;
2634 }
2635
2636 /* @internal */
2637 export function LDKLogger_new(impl: LDKLogger): [bigint, number] {
2638         if(!isWasmInitialized) {
2639                 throw new Error("initializeWasm() must be awaited first!");
2640         }
2641         var new_obj_idx = js_objs.length;
2642         for (var i = 0; i < js_objs.length; i++) {
2643                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2644         }
2645         js_objs[i] = new WeakRef(impl);
2646         return [wasm.TS_LDKLogger_new(i), i];
2647 }
2648         // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2649 /* @internal */
2650 export function CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner: bigint): bigint {
2651         if(!isWasmInitialized) {
2652                 throw new Error("initializeWasm() must be awaited first!");
2653         }
2654         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner);
2655         return nativeResponseValue;
2656 }
2657         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2658 /* @internal */
2659 export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: bigint): bigint {
2660         if(!isWasmInitialized) {
2661                 throw new Error("initializeWasm() must be awaited first!");
2662         }
2663         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner);
2664         return nativeResponseValue;
2665 }
2666         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2667 /* @internal */
2668 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
2669         if(!isWasmInitialized) {
2670                 throw new Error("initializeWasm() must be awaited first!");
2671         }
2672         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
2673         return nativeResponseValue;
2674 }
2675         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2676 /* @internal */
2677 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
2678         if(!isWasmInitialized) {
2679                 throw new Error("initializeWasm() must be awaited first!");
2680         }
2681         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
2682         return nativeResponseValue;
2683 }
2684         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2685 /* @internal */
2686 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
2687         if(!isWasmInitialized) {
2688                 throw new Error("initializeWasm() must be awaited first!");
2689         }
2690         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
2691         return nativeResponseValue;
2692 }
2693         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2694 /* @internal */
2695 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
2696         if(!isWasmInitialized) {
2697                 throw new Error("initializeWasm() must be awaited first!");
2698         }
2699         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
2700         return nativeResponseValue;
2701 }
2702         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2703 /* @internal */
2704 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
2705         if(!isWasmInitialized) {
2706                 throw new Error("initializeWasm() must be awaited first!");
2707         }
2708         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
2709         return nativeResponseValue;
2710 }
2711         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2712 /* @internal */
2713 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
2714         if(!isWasmInitialized) {
2715                 throw new Error("initializeWasm() must be awaited first!");
2716         }
2717         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
2718         return nativeResponseValue;
2719 }
2720         // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2721 /* @internal */
2722 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
2723         if(!isWasmInitialized) {
2724                 throw new Error("initializeWasm() must be awaited first!");
2725         }
2726         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
2727         return nativeResponseValue;
2728 }
2729         // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2730 /* @internal */
2731 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
2732         if(!isWasmInitialized) {
2733                 throw new Error("initializeWasm() must be awaited first!");
2734         }
2735         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
2736         return nativeResponseValue;
2737 }
2738         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2739 /* @internal */
2740 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
2741         if(!isWasmInitialized) {
2742                 throw new Error("initializeWasm() must be awaited first!");
2743         }
2744         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
2745         return nativeResponseValue;
2746 }
2747         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2748 /* @internal */
2749 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
2750         if(!isWasmInitialized) {
2751                 throw new Error("initializeWasm() must be awaited first!");
2752         }
2753         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
2754         return nativeResponseValue;
2755 }
2756         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2757 /* @internal */
2758 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: bigint): bigint {
2759         if(!isWasmInitialized) {
2760                 throw new Error("initializeWasm() must be awaited first!");
2761         }
2762         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
2763         return nativeResponseValue;
2764 }
2765         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2766 /* @internal */
2767 export function CResult_NodeIdDecodeErrorZ_get_err(owner: bigint): bigint {
2768         if(!isWasmInitialized) {
2769                 throw new Error("initializeWasm() must be awaited first!");
2770         }
2771         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
2772         return nativeResponseValue;
2773 }
2774         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2775 /* @internal */
2776 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: bigint): bigint {
2777         if(!isWasmInitialized) {
2778                 throw new Error("initializeWasm() must be awaited first!");
2779         }
2780         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
2781         return nativeResponseValue;
2782 }
2783         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2784 /* @internal */
2785 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: bigint): bigint {
2786         if(!isWasmInitialized) {
2787                 throw new Error("initializeWasm() must be awaited first!");
2788         }
2789         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
2790         return nativeResponseValue;
2791 }
2792 /* @internal */
2793 export interface LDKAccess {
2794         get_utxo (genesis_hash: number, short_channel_id: bigint): bigint;
2795 }
2796
2797 /* @internal */
2798 export function LDKAccess_new(impl: LDKAccess): [bigint, number] {
2799         if(!isWasmInitialized) {
2800                 throw new Error("initializeWasm() must be awaited first!");
2801         }
2802         var new_obj_idx = js_objs.length;
2803         for (var i = 0; i < js_objs.length; i++) {
2804                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2805         }
2806         js_objs[i] = new WeakRef(impl);
2807         return [wasm.TS_LDKAccess_new(i), i];
2808 }
2809         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
2810 /* @internal */
2811 export function Access_get_utxo(this_arg: bigint, genesis_hash: number, short_channel_id: bigint): bigint {
2812         if(!isWasmInitialized) {
2813                 throw new Error("initializeWasm() must be awaited first!");
2814         }
2815         const nativeResponseValue = wasm.TS_Access_get_utxo(this_arg, genesis_hash, short_channel_id);
2816         return nativeResponseValue;
2817 }
2818 /* @internal */
2819 export class LDKCOption_AccessZ {
2820         protected constructor() {}
2821 }
2822 /* @internal */
2823 export function LDKCOption_AccessZ_ty_from_ptr(ptr: bigint): number {
2824         if(!isWasmInitialized) {
2825                 throw new Error("initializeWasm() must be awaited first!");
2826         }
2827         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_ty_from_ptr(ptr);
2828         return nativeResponseValue;
2829 }
2830 /* @internal */
2831 export function LDKCOption_AccessZ_Some_get_some(ptr: bigint): bigint {
2832         if(!isWasmInitialized) {
2833                 throw new Error("initializeWasm() must be awaited first!");
2834         }
2835         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_Some_get_some(ptr);
2836         return nativeResponseValue;
2837 }
2838         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2839 /* @internal */
2840 export function CResult_boolLightningErrorZ_get_ok(owner: bigint): boolean {
2841         if(!isWasmInitialized) {
2842                 throw new Error("initializeWasm() must be awaited first!");
2843         }
2844         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
2845         return nativeResponseValue;
2846 }
2847         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2848 /* @internal */
2849 export function CResult_boolLightningErrorZ_get_err(owner: bigint): bigint {
2850         if(!isWasmInitialized) {
2851                 throw new Error("initializeWasm() must be awaited first!");
2852         }
2853         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
2854         return nativeResponseValue;
2855 }
2856         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2857 /* @internal */
2858 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: bigint): bigint {
2859         if(!isWasmInitialized) {
2860                 throw new Error("initializeWasm() must be awaited first!");
2861         }
2862         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
2863         return nativeResponseValue;
2864 }
2865         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2866 /* @internal */
2867 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: bigint): bigint {
2868         if(!isWasmInitialized) {
2869                 throw new Error("initializeWasm() must be awaited first!");
2870         }
2871         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
2872         return nativeResponseValue;
2873 }
2874         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2875 /* @internal */
2876 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: bigint): bigint {
2877         if(!isWasmInitialized) {
2878                 throw new Error("initializeWasm() must be awaited first!");
2879         }
2880         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
2881         return nativeResponseValue;
2882 }
2883 /* @internal */
2884 export class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
2885         protected constructor() {}
2886 }
2887 /* @internal */
2888 export function LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr(ptr: bigint): number {
2889         if(!isWasmInitialized) {
2890                 throw new Error("initializeWasm() must be awaited first!");
2891         }
2892         const nativeResponseValue = wasm.TS_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr(ptr);
2893         return nativeResponseValue;
2894 }
2895 /* @internal */
2896 export function LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some(ptr: bigint): bigint {
2897         if(!isWasmInitialized) {
2898                 throw new Error("initializeWasm() must be awaited first!");
2899         }
2900         const nativeResponseValue = wasm.TS_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some(ptr);
2901         return nativeResponseValue;
2902 }
2903         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2904 /* @internal */
2905 export function CResult_NoneLightningErrorZ_get_ok(owner: bigint): void {
2906         if(!isWasmInitialized) {
2907                 throw new Error("initializeWasm() must be awaited first!");
2908         }
2909         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
2910         // debug statements here
2911 }
2912         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2913 /* @internal */
2914 export function CResult_NoneLightningErrorZ_get_err(owner: bigint): bigint {
2915         if(!isWasmInitialized) {
2916                 throw new Error("initializeWasm() must be awaited first!");
2917         }
2918         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
2919         return nativeResponseValue;
2920 }
2921         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2922 /* @internal */
2923 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
2924         if(!isWasmInitialized) {
2925                 throw new Error("initializeWasm() must be awaited first!");
2926         }
2927         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
2928         return nativeResponseValue;
2929 }
2930         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2931 /* @internal */
2932 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: bigint): bigint {
2933         if(!isWasmInitialized) {
2934                 throw new Error("initializeWasm() must be awaited first!");
2935         }
2936         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
2937         return nativeResponseValue;
2938 }
2939         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2940 /* @internal */
2941 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
2942         if(!isWasmInitialized) {
2943                 throw new Error("initializeWasm() must be awaited first!");
2944         }
2945         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
2946         return nativeResponseValue;
2947 }
2948         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2949 /* @internal */
2950 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: bigint): bigint {
2951         if(!isWasmInitialized) {
2952                 throw new Error("initializeWasm() must be awaited first!");
2953         }
2954         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
2955         return nativeResponseValue;
2956 }
2957         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2958 /* @internal */
2959 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: bigint): bigint {
2960         if(!isWasmInitialized) {
2961                 throw new Error("initializeWasm() must be awaited first!");
2962         }
2963         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
2964         return nativeResponseValue;
2965 }
2966         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2967 /* @internal */
2968 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: bigint): bigint {
2969         if(!isWasmInitialized) {
2970                 throw new Error("initializeWasm() must be awaited first!");
2971         }
2972         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
2973         return nativeResponseValue;
2974 }
2975 /* @internal */
2976 export class LDKNetAddress {
2977         protected constructor() {}
2978 }
2979 /* @internal */
2980 export function LDKNetAddress_ty_from_ptr(ptr: bigint): number {
2981         if(!isWasmInitialized) {
2982                 throw new Error("initializeWasm() must be awaited first!");
2983         }
2984         const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
2985         return nativeResponseValue;
2986 }
2987 /* @internal */
2988 export function LDKNetAddress_IPv4_get_addr(ptr: bigint): number {
2989         if(!isWasmInitialized) {
2990                 throw new Error("initializeWasm() must be awaited first!");
2991         }
2992         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
2993         return nativeResponseValue;
2994 }
2995 /* @internal */
2996 export function LDKNetAddress_IPv4_get_port(ptr: bigint): number {
2997         if(!isWasmInitialized) {
2998                 throw new Error("initializeWasm() must be awaited first!");
2999         }
3000         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
3001         return nativeResponseValue;
3002 }
3003 /* @internal */
3004 export function LDKNetAddress_IPv6_get_addr(ptr: bigint): number {
3005         if(!isWasmInitialized) {
3006                 throw new Error("initializeWasm() must be awaited first!");
3007         }
3008         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
3009         return nativeResponseValue;
3010 }
3011 /* @internal */
3012 export function LDKNetAddress_IPv6_get_port(ptr: bigint): number {
3013         if(!isWasmInitialized) {
3014                 throw new Error("initializeWasm() must be awaited first!");
3015         }
3016         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
3017         return nativeResponseValue;
3018 }
3019 /* @internal */
3020 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: bigint): number {
3021         if(!isWasmInitialized) {
3022                 throw new Error("initializeWasm() must be awaited first!");
3023         }
3024         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
3025         return nativeResponseValue;
3026 }
3027 /* @internal */
3028 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: bigint): number {
3029         if(!isWasmInitialized) {
3030                 throw new Error("initializeWasm() must be awaited first!");
3031         }
3032         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
3033         return nativeResponseValue;
3034 }
3035 /* @internal */
3036 export function LDKNetAddress_OnionV3_get_checksum(ptr: bigint): number {
3037         if(!isWasmInitialized) {
3038                 throw new Error("initializeWasm() must be awaited first!");
3039         }
3040         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
3041         return nativeResponseValue;
3042 }
3043 /* @internal */
3044 export function LDKNetAddress_OnionV3_get_version(ptr: bigint): number {
3045         if(!isWasmInitialized) {
3046                 throw new Error("initializeWasm() must be awaited first!");
3047         }
3048         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
3049         return nativeResponseValue;
3050 }
3051 /* @internal */
3052 export function LDKNetAddress_OnionV3_get_port(ptr: bigint): number {
3053         if(!isWasmInitialized) {
3054                 throw new Error("initializeWasm() must be awaited first!");
3055         }
3056         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
3057         return nativeResponseValue;
3058 }
3059 /* @internal */
3060 export function LDKNetAddress_Hostname_get_hostname(ptr: bigint): bigint {
3061         if(!isWasmInitialized) {
3062                 throw new Error("initializeWasm() must be awaited first!");
3063         }
3064         const nativeResponseValue = wasm.TS_LDKNetAddress_Hostname_get_hostname(ptr);
3065         return nativeResponseValue;
3066 }
3067 /* @internal */
3068 export function LDKNetAddress_Hostname_get_port(ptr: bigint): number {
3069         if(!isWasmInitialized) {
3070                 throw new Error("initializeWasm() must be awaited first!");
3071         }
3072         const nativeResponseValue = wasm.TS_LDKNetAddress_Hostname_get_port(ptr);
3073         return nativeResponseValue;
3074 }
3075         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
3076 /* @internal */
3077 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3078         if(!isWasmInitialized) {
3079                 throw new Error("initializeWasm() must be awaited first!");
3080         }
3081         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
3082         return nativeResponseValue;
3083 }
3084         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
3085 /* @internal */
3086 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: bigint): bigint {
3087         if(!isWasmInitialized) {
3088                 throw new Error("initializeWasm() must be awaited first!");
3089         }
3090         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
3091         return nativeResponseValue;
3092 }
3093         // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
3094 /* @internal */
3095 export function CResult_NodeAliasDecodeErrorZ_get_ok(owner: bigint): bigint {
3096         if(!isWasmInitialized) {
3097                 throw new Error("initializeWasm() must be awaited first!");
3098         }
3099         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_ok(owner);
3100         return nativeResponseValue;
3101 }
3102         // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
3103 /* @internal */
3104 export function CResult_NodeAliasDecodeErrorZ_get_err(owner: bigint): bigint {
3105         if(!isWasmInitialized) {
3106                 throw new Error("initializeWasm() must be awaited first!");
3107         }
3108         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_err(owner);
3109         return nativeResponseValue;
3110 }
3111         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
3112 /* @internal */
3113 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3114         if(!isWasmInitialized) {
3115                 throw new Error("initializeWasm() must be awaited first!");
3116         }
3117         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
3118         return nativeResponseValue;
3119 }
3120         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
3121 /* @internal */
3122 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: bigint): bigint {
3123         if(!isWasmInitialized) {
3124                 throw new Error("initializeWasm() must be awaited first!");
3125         }
3126         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
3127         return nativeResponseValue;
3128 }
3129         // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
3130 /* @internal */
3131 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: bigint): bigint {
3132         if(!isWasmInitialized) {
3133                 throw new Error("initializeWasm() must be awaited first!");
3134         }
3135         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
3136         return nativeResponseValue;
3137 }
3138         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
3139 /* @internal */
3140 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: bigint): bigint {
3141         if(!isWasmInitialized) {
3142                 throw new Error("initializeWasm() must be awaited first!");
3143         }
3144         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
3145         return nativeResponseValue;
3146 }
3147 /* @internal */
3148 export class LDKCOption_CVec_NetAddressZZ {
3149         protected constructor() {}
3150 }
3151 /* @internal */
3152 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: bigint): number {
3153         if(!isWasmInitialized) {
3154                 throw new Error("initializeWasm() must be awaited first!");
3155         }
3156         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
3157         return nativeResponseValue;
3158 }
3159 /* @internal */
3160 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: bigint): number {
3161         if(!isWasmInitialized) {
3162                 throw new Error("initializeWasm() must be awaited first!");
3163         }
3164         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
3165         return nativeResponseValue;
3166 }
3167         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3168 /* @internal */
3169 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: bigint): bigint {
3170         if(!isWasmInitialized) {
3171                 throw new Error("initializeWasm() must be awaited first!");
3172         }
3173         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
3174         return nativeResponseValue;
3175 }
3176         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3177 /* @internal */
3178 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: bigint): bigint {
3179         if(!isWasmInitialized) {
3180                 throw new Error("initializeWasm() must be awaited first!");
3181         }
3182         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
3183         return nativeResponseValue;
3184 }
3185         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3186 /* @internal */
3187 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: bigint): bigint {
3188         if(!isWasmInitialized) {
3189                 throw new Error("initializeWasm() must be awaited first!");
3190         }
3191         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
3192         return nativeResponseValue;
3193 }
3194         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3195 /* @internal */
3196 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: bigint): bigint {
3197         if(!isWasmInitialized) {
3198                 throw new Error("initializeWasm() must be awaited first!");
3199         }
3200         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
3201         return nativeResponseValue;
3202 }
3203         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3204 /* @internal */
3205 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: bigint): bigint {
3206         if(!isWasmInitialized) {
3207                 throw new Error("initializeWasm() must be awaited first!");
3208         }
3209         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
3210         return nativeResponseValue;
3211 }
3212         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3213 /* @internal */
3214 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: bigint): bigint {
3215         if(!isWasmInitialized) {
3216                 throw new Error("initializeWasm() must be awaited first!");
3217         }
3218         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
3219         return nativeResponseValue;
3220 }
3221         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
3222 /* @internal */
3223 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: bigint): number {
3224         if(!isWasmInitialized) {
3225                 throw new Error("initializeWasm() must be awaited first!");
3226         }
3227         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
3228         return nativeResponseValue;
3229 }
3230         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
3231 /* @internal */
3232 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: bigint): number {
3233         if(!isWasmInitialized) {
3234                 throw new Error("initializeWasm() must be awaited first!");
3235         }
3236         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
3237         return nativeResponseValue;
3238 }
3239         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
3240 /* @internal */
3241 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: bigint): bigint {
3242         if(!isWasmInitialized) {
3243                 throw new Error("initializeWasm() must be awaited first!");
3244         }
3245         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
3246         return nativeResponseValue;
3247 }
3248         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
3249 /* @internal */
3250 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: bigint): void {
3251         if(!isWasmInitialized) {
3252                 throw new Error("initializeWasm() must be awaited first!");
3253         }
3254         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
3255         // debug statements here
3256 }
3257         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
3258 /* @internal */
3259 export function CResult_SignatureNoneZ_get_ok(owner: bigint): number {
3260         if(!isWasmInitialized) {
3261                 throw new Error("initializeWasm() must be awaited first!");
3262         }
3263         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
3264         return nativeResponseValue;
3265 }
3266         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
3267 /* @internal */
3268 export function CResult_SignatureNoneZ_get_err(owner: bigint): void {
3269         if(!isWasmInitialized) {
3270                 throw new Error("initializeWasm() must be awaited first!");
3271         }
3272         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
3273         // debug statements here
3274 }
3275         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
3276 /* @internal */
3277 export function C2Tuple_SignatureSignatureZ_get_a(owner: bigint): number {
3278         if(!isWasmInitialized) {
3279                 throw new Error("initializeWasm() must be awaited first!");
3280         }
3281         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_a(owner);
3282         return nativeResponseValue;
3283 }
3284         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
3285 /* @internal */
3286 export function C2Tuple_SignatureSignatureZ_get_b(owner: bigint): number {
3287         if(!isWasmInitialized) {
3288                 throw new Error("initializeWasm() must be awaited first!");
3289         }
3290         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_b(owner);
3291         return nativeResponseValue;
3292 }
3293         // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
3294 /* @internal */
3295 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner: bigint): bigint {
3296         if(!isWasmInitialized) {
3297                 throw new Error("initializeWasm() must be awaited first!");
3298         }
3299         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner);
3300         return nativeResponseValue;
3301 }
3302         // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
3303 /* @internal */
3304 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner: bigint): void {
3305         if(!isWasmInitialized) {
3306                 throw new Error("initializeWasm() must be awaited first!");
3307         }
3308         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner);
3309         // debug statements here
3310 }
3311         // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
3312 /* @internal */
3313 export function CResult_SecretKeyNoneZ_get_ok(owner: bigint): number {
3314         if(!isWasmInitialized) {
3315                 throw new Error("initializeWasm() must be awaited first!");
3316         }
3317         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_ok(owner);
3318         return nativeResponseValue;
3319 }
3320         // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
3321 /* @internal */
3322 export function CResult_SecretKeyNoneZ_get_err(owner: bigint): void {
3323         if(!isWasmInitialized) {
3324                 throw new Error("initializeWasm() must be awaited first!");
3325         }
3326         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_err(owner);
3327         // debug statements here
3328 }
3329 /* @internal */
3330 export class LDKCOption_ScalarZ {
3331         protected constructor() {}
3332 }
3333 /* @internal */
3334 export function LDKCOption_ScalarZ_ty_from_ptr(ptr: bigint): number {
3335         if(!isWasmInitialized) {
3336                 throw new Error("initializeWasm() must be awaited first!");
3337         }
3338         const nativeResponseValue = wasm.TS_LDKCOption_ScalarZ_ty_from_ptr(ptr);
3339         return nativeResponseValue;
3340 }
3341 /* @internal */
3342 export function LDKCOption_ScalarZ_Some_get_some(ptr: bigint): bigint {
3343         if(!isWasmInitialized) {
3344                 throw new Error("initializeWasm() must be awaited first!");
3345         }
3346         const nativeResponseValue = wasm.TS_LDKCOption_ScalarZ_Some_get_some(ptr);
3347         return nativeResponseValue;
3348 }
3349         // struct LDKThirtyTwoBytes CResult_SharedSecretNoneZ_get_ok(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
3350 /* @internal */
3351 export function CResult_SharedSecretNoneZ_get_ok(owner: bigint): number {
3352         if(!isWasmInitialized) {
3353                 throw new Error("initializeWasm() must be awaited first!");
3354         }
3355         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_get_ok(owner);
3356         return nativeResponseValue;
3357 }
3358         // void CResult_SharedSecretNoneZ_get_err(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
3359 /* @internal */
3360 export function CResult_SharedSecretNoneZ_get_err(owner: bigint): void {
3361         if(!isWasmInitialized) {
3362                 throw new Error("initializeWasm() must be awaited first!");
3363         }
3364         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_get_err(owner);
3365         // debug statements here
3366 }
3367 /* @internal */
3368 export interface LDKBaseSign {
3369         get_per_commitment_point (idx: bigint): number;
3370         release_commitment_secret (idx: bigint): number;
3371         validate_holder_commitment (holder_tx: bigint, preimages: number): bigint;
3372         channel_keys_id (): number;
3373         sign_counterparty_commitment (commitment_tx: bigint, preimages: number): bigint;
3374         validate_counterparty_revocation (idx: bigint, secret: number): bigint;
3375         sign_holder_commitment_and_htlcs (commitment_tx: bigint): bigint;
3376         sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): bigint;
3377         sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: bigint): bigint;
3378         sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: bigint): bigint;
3379         sign_closing_transaction (closing_tx: bigint): bigint;
3380         sign_channel_announcement (msg: bigint): bigint;
3381         ready_channel (channel_parameters: bigint): void;
3382 }
3383
3384 /* @internal */
3385 export function LDKBaseSign_new(impl: LDKBaseSign, pubkeys: bigint): [bigint, number] {
3386         if(!isWasmInitialized) {
3387                 throw new Error("initializeWasm() must be awaited first!");
3388         }
3389         var new_obj_idx = js_objs.length;
3390         for (var i = 0; i < js_objs.length; i++) {
3391                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3392         }
3393         js_objs[i] = new WeakRef(impl);
3394         return [wasm.TS_LDKBaseSign_new(i, pubkeys), i];
3395 }
3396         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
3397 /* @internal */
3398 export function BaseSign_get_per_commitment_point(this_arg: bigint, idx: bigint): number {
3399         if(!isWasmInitialized) {
3400                 throw new Error("initializeWasm() must be awaited first!");
3401         }
3402         const nativeResponseValue = wasm.TS_BaseSign_get_per_commitment_point(this_arg, idx);
3403         return nativeResponseValue;
3404 }
3405         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
3406 /* @internal */
3407 export function BaseSign_release_commitment_secret(this_arg: bigint, idx: bigint): number {
3408         if(!isWasmInitialized) {
3409                 throw new Error("initializeWasm() must be awaited first!");
3410         }
3411         const nativeResponseValue = wasm.TS_BaseSign_release_commitment_secret(this_arg, idx);
3412         return nativeResponseValue;
3413 }
3414         // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
3415 /* @internal */
3416 export function BaseSign_validate_holder_commitment(this_arg: bigint, holder_tx: bigint, preimages: number): bigint {
3417         if(!isWasmInitialized) {
3418                 throw new Error("initializeWasm() must be awaited first!");
3419         }
3420         const nativeResponseValue = wasm.TS_BaseSign_validate_holder_commitment(this_arg, holder_tx, preimages);
3421         return nativeResponseValue;
3422 }
3423         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
3424 /* @internal */
3425 export function BaseSign_channel_keys_id(this_arg: bigint): number {
3426         if(!isWasmInitialized) {
3427                 throw new Error("initializeWasm() must be awaited first!");
3428         }
3429         const nativeResponseValue = wasm.TS_BaseSign_channel_keys_id(this_arg);
3430         return nativeResponseValue;
3431 }
3432         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
3433 /* @internal */
3434 export function BaseSign_sign_counterparty_commitment(this_arg: bigint, commitment_tx: bigint, preimages: number): bigint {
3435         if(!isWasmInitialized) {
3436                 throw new Error("initializeWasm() must be awaited first!");
3437         }
3438         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
3439         return nativeResponseValue;
3440 }
3441         // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
3442 /* @internal */
3443 export function BaseSign_validate_counterparty_revocation(this_arg: bigint, idx: bigint, secret: number): bigint {
3444         if(!isWasmInitialized) {
3445                 throw new Error("initializeWasm() must be awaited first!");
3446         }
3447         const nativeResponseValue = wasm.TS_BaseSign_validate_counterparty_revocation(this_arg, idx, secret);
3448         return nativeResponseValue;
3449 }
3450         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
3451 /* @internal */
3452 export function BaseSign_sign_holder_commitment_and_htlcs(this_arg: bigint, commitment_tx: bigint): bigint {
3453         if(!isWasmInitialized) {
3454                 throw new Error("initializeWasm() must be awaited first!");
3455         }
3456         const nativeResponseValue = wasm.TS_BaseSign_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
3457         return nativeResponseValue;
3458 }
3459         // 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]
3460 /* @internal */
3461 export function BaseSign_sign_justice_revoked_output(this_arg: bigint, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): bigint {
3462         if(!isWasmInitialized) {
3463                 throw new Error("initializeWasm() must be awaited first!");
3464         }
3465         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
3466         return nativeResponseValue;
3467 }
3468         // 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
3469 /* @internal */
3470 export function BaseSign_sign_justice_revoked_htlc(this_arg: bigint, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: bigint): bigint {
3471         if(!isWasmInitialized) {
3472                 throw new Error("initializeWasm() must be awaited first!");
3473         }
3474         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
3475         return nativeResponseValue;
3476 }
3477         // 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
3478 /* @internal */
3479 export function BaseSign_sign_counterparty_htlc_transaction(this_arg: bigint, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: bigint): bigint {
3480         if(!isWasmInitialized) {
3481                 throw new Error("initializeWasm() must be awaited first!");
3482         }
3483         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
3484         return nativeResponseValue;
3485 }
3486         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
3487 /* @internal */
3488 export function BaseSign_sign_closing_transaction(this_arg: bigint, closing_tx: bigint): bigint {
3489         if(!isWasmInitialized) {
3490                 throw new Error("initializeWasm() must be awaited first!");
3491         }
3492         const nativeResponseValue = wasm.TS_BaseSign_sign_closing_transaction(this_arg, closing_tx);
3493         return nativeResponseValue;
3494 }
3495         // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
3496 /* @internal */
3497 export function BaseSign_sign_channel_announcement(this_arg: bigint, msg: bigint): bigint {
3498         if(!isWasmInitialized) {
3499                 throw new Error("initializeWasm() must be awaited first!");
3500         }
3501         const nativeResponseValue = wasm.TS_BaseSign_sign_channel_announcement(this_arg, msg);
3502         return nativeResponseValue;
3503 }
3504         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
3505 /* @internal */
3506 export function BaseSign_ready_channel(this_arg: bigint, channel_parameters: bigint): void {
3507         if(!isWasmInitialized) {
3508                 throw new Error("initializeWasm() must be awaited first!");
3509         }
3510         const nativeResponseValue = wasm.TS_BaseSign_ready_channel(this_arg, channel_parameters);
3511         // debug statements here
3512 }
3513         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
3514 /* @internal */
3515 export function BaseSign_get_pubkeys(this_arg: bigint): bigint {
3516         if(!isWasmInitialized) {
3517                 throw new Error("initializeWasm() must be awaited first!");
3518         }
3519         const nativeResponseValue = wasm.TS_BaseSign_get_pubkeys(this_arg);
3520         return nativeResponseValue;
3521 }
3522 /* @internal */
3523 export interface LDKSign {
3524         write (): number;
3525 }
3526
3527 /* @internal */
3528 export function LDKSign_new(impl: LDKSign, BaseSign: number, pubkeys: bigint): [bigint, number] {
3529         if(!isWasmInitialized) {
3530                 throw new Error("initializeWasm() must be awaited first!");
3531         }
3532         var new_obj_idx = js_objs.length;
3533         for (var i = 0; i < js_objs.length; i++) {
3534                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3535         }
3536         js_objs[i] = new WeakRef(impl);
3537         return [wasm.TS_LDKSign_new(i, BaseSign, pubkeys), i];
3538 }
3539         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
3540 /* @internal */
3541 export function Sign_write(this_arg: bigint): number {
3542         if(!isWasmInitialized) {
3543                 throw new Error("initializeWasm() must be awaited first!");
3544         }
3545         const nativeResponseValue = wasm.TS_Sign_write(this_arg);
3546         return nativeResponseValue;
3547 }
3548         // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3549 /* @internal */
3550 export function CResult_SignDecodeErrorZ_get_ok(owner: bigint): bigint {
3551         if(!isWasmInitialized) {
3552                 throw new Error("initializeWasm() must be awaited first!");
3553         }
3554         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_ok(owner);
3555         return nativeResponseValue;
3556 }
3557         // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3558 /* @internal */
3559 export function CResult_SignDecodeErrorZ_get_err(owner: bigint): bigint {
3560         if(!isWasmInitialized) {
3561                 throw new Error("initializeWasm() must be awaited first!");
3562         }
3563         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_err(owner);
3564         return nativeResponseValue;
3565 }
3566         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3567 /* @internal */
3568 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: bigint): number {
3569         if(!isWasmInitialized) {
3570                 throw new Error("initializeWasm() must be awaited first!");
3571         }
3572         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
3573         return nativeResponseValue;
3574 }
3575         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3576 /* @internal */
3577 export function CResult_RecoverableSignatureNoneZ_get_err(owner: bigint): void {
3578         if(!isWasmInitialized) {
3579                 throw new Error("initializeWasm() must be awaited first!");
3580         }
3581         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
3582         // debug statements here
3583 }
3584         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3585 /* @internal */
3586 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: bigint): number {
3587         if(!isWasmInitialized) {
3588                 throw new Error("initializeWasm() must be awaited first!");
3589         }
3590         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
3591         return nativeResponseValue;
3592 }
3593         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3594 /* @internal */
3595 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: bigint): void {
3596         if(!isWasmInitialized) {
3597                 throw new Error("initializeWasm() must be awaited first!");
3598         }
3599         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
3600         // debug statements here
3601 }
3602         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3603 /* @internal */
3604 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: bigint): bigint {
3605         if(!isWasmInitialized) {
3606                 throw new Error("initializeWasm() must be awaited first!");
3607         }
3608         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
3609         return nativeResponseValue;
3610 }
3611         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3612 /* @internal */
3613 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: bigint): bigint {
3614         if(!isWasmInitialized) {
3615                 throw new Error("initializeWasm() must be awaited first!");
3616         }
3617         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
3618         return nativeResponseValue;
3619 }
3620         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3621 /* @internal */
3622 export function CResult_TransactionNoneZ_get_ok(owner: bigint): number {
3623         if(!isWasmInitialized) {
3624                 throw new Error("initializeWasm() must be awaited first!");
3625         }
3626         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
3627         return nativeResponseValue;
3628 }
3629         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3630 /* @internal */
3631 export function CResult_TransactionNoneZ_get_err(owner: bigint): void {
3632         if(!isWasmInitialized) {
3633                 throw new Error("initializeWasm() must be awaited first!");
3634         }
3635         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
3636         // debug statements here
3637 }
3638 /* @internal */
3639 export class LDKCOption_u16Z {
3640         protected constructor() {}
3641 }
3642 /* @internal */
3643 export function LDKCOption_u16Z_ty_from_ptr(ptr: bigint): number {
3644         if(!isWasmInitialized) {
3645                 throw new Error("initializeWasm() must be awaited first!");
3646         }
3647         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
3648         return nativeResponseValue;
3649 }
3650 /* @internal */
3651 export function LDKCOption_u16Z_Some_get_some(ptr: bigint): number {
3652         if(!isWasmInitialized) {
3653                 throw new Error("initializeWasm() must be awaited first!");
3654         }
3655         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
3656         return nativeResponseValue;
3657 }
3658 /* @internal */
3659 export class LDKAPIError {
3660         protected constructor() {}
3661 }
3662 /* @internal */
3663 export function LDKAPIError_ty_from_ptr(ptr: bigint): number {
3664         if(!isWasmInitialized) {
3665                 throw new Error("initializeWasm() must be awaited first!");
3666         }
3667         const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
3668         return nativeResponseValue;
3669 }
3670 /* @internal */
3671 export function LDKAPIError_APIMisuseError_get_err(ptr: bigint): number {
3672         if(!isWasmInitialized) {
3673                 throw new Error("initializeWasm() must be awaited first!");
3674         }
3675         const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
3676         return nativeResponseValue;
3677 }
3678 /* @internal */
3679 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: bigint): number {
3680         if(!isWasmInitialized) {
3681                 throw new Error("initializeWasm() must be awaited first!");
3682         }
3683         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
3684         return nativeResponseValue;
3685 }
3686 /* @internal */
3687 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: bigint): number {
3688         if(!isWasmInitialized) {
3689                 throw new Error("initializeWasm() must be awaited first!");
3690         }
3691         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
3692         return nativeResponseValue;
3693 }
3694 /* @internal */
3695 export function LDKAPIError_RouteError_get_err(ptr: bigint): number {
3696         if(!isWasmInitialized) {
3697                 throw new Error("initializeWasm() must be awaited first!");
3698         }
3699         const nativeResponseValue = wasm.TS_LDKAPIError_RouteError_get_err(ptr);
3700         return nativeResponseValue;
3701 }
3702 /* @internal */
3703 export function LDKAPIError_ChannelUnavailable_get_err(ptr: bigint): number {
3704         if(!isWasmInitialized) {
3705                 throw new Error("initializeWasm() must be awaited first!");
3706         }
3707         const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
3708         return nativeResponseValue;
3709 }
3710 /* @internal */
3711 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: bigint): bigint {
3712         if(!isWasmInitialized) {
3713                 throw new Error("initializeWasm() must be awaited first!");
3714         }
3715         const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
3716         return nativeResponseValue;
3717 }
3718         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3719 /* @internal */
3720 export function CResult_NoneAPIErrorZ_get_ok(owner: bigint): void {
3721         if(!isWasmInitialized) {
3722                 throw new Error("initializeWasm() must be awaited first!");
3723         }
3724         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
3725         // debug statements here
3726 }
3727         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3728 /* @internal */
3729 export function CResult_NoneAPIErrorZ_get_err(owner: bigint): bigint {
3730         if(!isWasmInitialized) {
3731                 throw new Error("initializeWasm() must be awaited first!");
3732         }
3733         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
3734         return nativeResponseValue;
3735 }
3736         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3737 /* @internal */
3738 export function CResult__u832APIErrorZ_get_ok(owner: bigint): number {
3739         if(!isWasmInitialized) {
3740                 throw new Error("initializeWasm() must be awaited first!");
3741         }
3742         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
3743         return nativeResponseValue;
3744 }
3745         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3746 /* @internal */
3747 export function CResult__u832APIErrorZ_get_err(owner: bigint): bigint {
3748         if(!isWasmInitialized) {
3749                 throw new Error("initializeWasm() must be awaited first!");
3750         }
3751         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
3752         return nativeResponseValue;
3753 }
3754 /* @internal */
3755 export class LDKPaymentSendFailure {
3756         protected constructor() {}
3757 }
3758 /* @internal */
3759 export function LDKPaymentSendFailure_ty_from_ptr(ptr: bigint): number {
3760         if(!isWasmInitialized) {
3761                 throw new Error("initializeWasm() must be awaited first!");
3762         }
3763         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
3764         return nativeResponseValue;
3765 }
3766 /* @internal */
3767 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: bigint): bigint {
3768         if(!isWasmInitialized) {
3769                 throw new Error("initializeWasm() must be awaited first!");
3770         }
3771         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
3772         return nativeResponseValue;
3773 }
3774 /* @internal */
3775 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: bigint): number {
3776         if(!isWasmInitialized) {
3777                 throw new Error("initializeWasm() must be awaited first!");
3778         }
3779         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
3780         return nativeResponseValue;
3781 }
3782 /* @internal */
3783 export function LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr: bigint): number {
3784         if(!isWasmInitialized) {
3785                 throw new Error("initializeWasm() must be awaited first!");
3786         }
3787         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr);
3788         return nativeResponseValue;
3789 }
3790 /* @internal */
3791 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: bigint): number {
3792         if(!isWasmInitialized) {
3793                 throw new Error("initializeWasm() must be awaited first!");
3794         }
3795         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
3796         return nativeResponseValue;
3797 }
3798 /* @internal */
3799 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: bigint): bigint {
3800         if(!isWasmInitialized) {
3801                 throw new Error("initializeWasm() must be awaited first!");
3802         }
3803         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
3804         return nativeResponseValue;
3805 }
3806 /* @internal */
3807 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: bigint): number {
3808         if(!isWasmInitialized) {
3809                 throw new Error("initializeWasm() must be awaited first!");
3810         }
3811         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
3812         return nativeResponseValue;
3813 }
3814         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3815 /* @internal */
3816 export function CResult_PaymentIdPaymentSendFailureZ_get_ok(owner: bigint): number {
3817         if(!isWasmInitialized) {
3818                 throw new Error("initializeWasm() must be awaited first!");
3819         }
3820         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_ok(owner);
3821         return nativeResponseValue;
3822 }
3823         // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3824 /* @internal */
3825 export function CResult_PaymentIdPaymentSendFailureZ_get_err(owner: bigint): bigint {
3826         if(!isWasmInitialized) {
3827                 throw new Error("initializeWasm() must be awaited first!");
3828         }
3829         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_err(owner);
3830         return nativeResponseValue;
3831 }
3832         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3833 /* @internal */
3834 export function CResult_NonePaymentSendFailureZ_get_ok(owner: bigint): void {
3835         if(!isWasmInitialized) {
3836                 throw new Error("initializeWasm() must be awaited first!");
3837         }
3838         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
3839         // debug statements here
3840 }
3841         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3842 /* @internal */
3843 export function CResult_NonePaymentSendFailureZ_get_err(owner: bigint): bigint {
3844         if(!isWasmInitialized) {
3845                 throw new Error("initializeWasm() must be awaited first!");
3846         }
3847         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
3848         return nativeResponseValue;
3849 }
3850         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3851 /* @internal */
3852 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: bigint): number {
3853         if(!isWasmInitialized) {
3854                 throw new Error("initializeWasm() must be awaited first!");
3855         }
3856         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
3857         return nativeResponseValue;
3858 }
3859         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3860 /* @internal */
3861 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: bigint): number {
3862         if(!isWasmInitialized) {
3863                 throw new Error("initializeWasm() must be awaited first!");
3864         }
3865         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
3866         return nativeResponseValue;
3867 }
3868         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3869 /* @internal */
3870 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: bigint): bigint {
3871         if(!isWasmInitialized) {
3872                 throw new Error("initializeWasm() must be awaited first!");
3873         }
3874         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
3875         return nativeResponseValue;
3876 }
3877         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3878 /* @internal */
3879 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: bigint): bigint {
3880         if(!isWasmInitialized) {
3881                 throw new Error("initializeWasm() must be awaited first!");
3882         }
3883         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
3884         return nativeResponseValue;
3885 }
3886         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3887 /* @internal */
3888 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: bigint): number {
3889         if(!isWasmInitialized) {
3890                 throw new Error("initializeWasm() must be awaited first!");
3891         }
3892         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
3893         return nativeResponseValue;
3894 }
3895         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3896 /* @internal */
3897 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: bigint): number {
3898         if(!isWasmInitialized) {
3899                 throw new Error("initializeWasm() must be awaited first!");
3900         }
3901         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
3902         return nativeResponseValue;
3903 }
3904         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3905 /* @internal */
3906 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: bigint): bigint {
3907         if(!isWasmInitialized) {
3908                 throw new Error("initializeWasm() must be awaited first!");
3909         }
3910         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
3911         return nativeResponseValue;
3912 }
3913         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3914 /* @internal */
3915 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: bigint): void {
3916         if(!isWasmInitialized) {
3917                 throw new Error("initializeWasm() must be awaited first!");
3918         }
3919         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
3920         // debug statements here
3921 }
3922         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3923 /* @internal */
3924 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: bigint): bigint {
3925         if(!isWasmInitialized) {
3926                 throw new Error("initializeWasm() must be awaited first!");
3927         }
3928         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
3929         return nativeResponseValue;
3930 }
3931         // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3932 /* @internal */
3933 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: bigint): bigint {
3934         if(!isWasmInitialized) {
3935                 throw new Error("initializeWasm() must be awaited first!");
3936         }
3937         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
3938         return nativeResponseValue;
3939 }
3940         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3941 /* @internal */
3942 export function CResult_PaymentSecretNoneZ_get_ok(owner: bigint): number {
3943         if(!isWasmInitialized) {
3944                 throw new Error("initializeWasm() must be awaited first!");
3945         }
3946         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
3947         return nativeResponseValue;
3948 }
3949         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3950 /* @internal */
3951 export function CResult_PaymentSecretNoneZ_get_err(owner: bigint): void {
3952         if(!isWasmInitialized) {
3953                 throw new Error("initializeWasm() must be awaited first!");
3954         }
3955         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
3956         // debug statements here
3957 }
3958         // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3959 /* @internal */
3960 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: bigint): number {
3961         if(!isWasmInitialized) {
3962                 throw new Error("initializeWasm() must be awaited first!");
3963         }
3964         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
3965         return nativeResponseValue;
3966 }
3967         // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3968 /* @internal */
3969 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: bigint): bigint {
3970         if(!isWasmInitialized) {
3971                 throw new Error("initializeWasm() must be awaited first!");
3972         }
3973         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
3974         return nativeResponseValue;
3975 }
3976         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3977 /* @internal */
3978 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: bigint): number {
3979         if(!isWasmInitialized) {
3980                 throw new Error("initializeWasm() must be awaited first!");
3981         }
3982         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
3983         return nativeResponseValue;
3984 }
3985         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3986 /* @internal */
3987 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: bigint): bigint {
3988         if(!isWasmInitialized) {
3989                 throw new Error("initializeWasm() must be awaited first!");
3990         }
3991         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
3992         return nativeResponseValue;
3993 }
3994         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3995 /* @internal */
3996 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3997         if(!isWasmInitialized) {
3998                 throw new Error("initializeWasm() must be awaited first!");
3999         }
4000         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
4001         return nativeResponseValue;
4002 }
4003         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
4004 /* @internal */
4005 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: bigint): bigint {
4006         if(!isWasmInitialized) {
4007                 throw new Error("initializeWasm() must be awaited first!");
4008         }
4009         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
4010         return nativeResponseValue;
4011 }
4012         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
4013 /* @internal */
4014 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: bigint): bigint {
4015         if(!isWasmInitialized) {
4016                 throw new Error("initializeWasm() must be awaited first!");
4017         }
4018         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
4019         return nativeResponseValue;
4020 }
4021         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
4022 /* @internal */
4023 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: bigint): bigint {
4024         if(!isWasmInitialized) {
4025                 throw new Error("initializeWasm() must be awaited first!");
4026         }
4027         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
4028         return nativeResponseValue;
4029 }
4030         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
4031 /* @internal */
4032 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: bigint): bigint {
4033         if(!isWasmInitialized) {
4034                 throw new Error("initializeWasm() must be awaited first!");
4035         }
4036         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
4037         return nativeResponseValue;
4038 }
4039         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
4040 /* @internal */
4041 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: bigint): bigint {
4042         if(!isWasmInitialized) {
4043                 throw new Error("initializeWasm() must be awaited first!");
4044         }
4045         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
4046         return nativeResponseValue;
4047 }
4048         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
4049 /* @internal */
4050 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: bigint): bigint {
4051         if(!isWasmInitialized) {
4052                 throw new Error("initializeWasm() must be awaited first!");
4053         }
4054         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
4055         return nativeResponseValue;
4056 }
4057         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
4058 /* @internal */
4059 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: bigint): bigint {
4060         if(!isWasmInitialized) {
4061                 throw new Error("initializeWasm() must be awaited first!");
4062         }
4063         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
4064         return nativeResponseValue;
4065 }
4066 /* @internal */
4067 export interface LDKWatch {
4068         watch_channel (funding_txo: bigint, monitor: bigint): bigint;
4069         update_channel (funding_txo: bigint, update: bigint): bigint;
4070         release_pending_monitor_events (): number;
4071 }
4072
4073 /* @internal */
4074 export function LDKWatch_new(impl: LDKWatch): [bigint, number] {
4075         if(!isWasmInitialized) {
4076                 throw new Error("initializeWasm() must be awaited first!");
4077         }
4078         var new_obj_idx = js_objs.length;
4079         for (var i = 0; i < js_objs.length; i++) {
4080                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4081         }
4082         js_objs[i] = new WeakRef(impl);
4083         return [wasm.TS_LDKWatch_new(i), i];
4084 }
4085         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
4086 /* @internal */
4087 export function Watch_watch_channel(this_arg: bigint, funding_txo: bigint, monitor: bigint): bigint {
4088         if(!isWasmInitialized) {
4089                 throw new Error("initializeWasm() must be awaited first!");
4090         }
4091         const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
4092         return nativeResponseValue;
4093 }
4094         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
4095 /* @internal */
4096 export function Watch_update_channel(this_arg: bigint, funding_txo: bigint, update: bigint): bigint {
4097         if(!isWasmInitialized) {
4098                 throw new Error("initializeWasm() must be awaited first!");
4099         }
4100         const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
4101         return nativeResponseValue;
4102 }
4103         // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
4104 /* @internal */
4105 export function Watch_release_pending_monitor_events(this_arg: bigint): number {
4106         if(!isWasmInitialized) {
4107                 throw new Error("initializeWasm() must be awaited first!");
4108         }
4109         const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
4110         return nativeResponseValue;
4111 }
4112 /* @internal */
4113 export interface LDKBroadcasterInterface {
4114         broadcast_transaction (tx: number): void;
4115 }
4116
4117 /* @internal */
4118 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): [bigint, number] {
4119         if(!isWasmInitialized) {
4120                 throw new Error("initializeWasm() must be awaited first!");
4121         }
4122         var new_obj_idx = js_objs.length;
4123         for (var i = 0; i < js_objs.length; i++) {
4124                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4125         }
4126         js_objs[i] = new WeakRef(impl);
4127         return [wasm.TS_LDKBroadcasterInterface_new(i), i];
4128 }
4129         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
4130 /* @internal */
4131 export function BroadcasterInterface_broadcast_transaction(this_arg: bigint, tx: number): void {
4132         if(!isWasmInitialized) {
4133                 throw new Error("initializeWasm() must be awaited first!");
4134         }
4135         const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
4136         // debug statements here
4137 }
4138 /* @internal */
4139 export interface LDKKeysInterface {
4140         get_node_secret (recipient: Recipient): bigint;
4141         ecdh (recipient: Recipient, other_key: number, tweak: bigint): bigint;
4142         get_destination_script (): number;
4143         get_shutdown_scriptpubkey (): bigint;
4144         get_channel_signer (inbound: boolean, channel_value_satoshis: bigint): bigint;
4145         get_secure_random_bytes (): number;
4146         read_chan_signer (reader: number): bigint;
4147         sign_invoice (hrp_bytes: number, invoice_data: number, receipient: Recipient): bigint;
4148         get_inbound_payment_key_material (): number;
4149 }
4150
4151 /* @internal */
4152 export function LDKKeysInterface_new(impl: LDKKeysInterface): [bigint, number] {
4153         if(!isWasmInitialized) {
4154                 throw new Error("initializeWasm() must be awaited first!");
4155         }
4156         var new_obj_idx = js_objs.length;
4157         for (var i = 0; i < js_objs.length; i++) {
4158                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4159         }
4160         js_objs[i] = new WeakRef(impl);
4161         return [wasm.TS_LDKKeysInterface_new(i), i];
4162 }
4163         // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
4164 /* @internal */
4165 export function KeysInterface_get_node_secret(this_arg: bigint, recipient: Recipient): bigint {
4166         if(!isWasmInitialized) {
4167                 throw new Error("initializeWasm() must be awaited first!");
4168         }
4169         const nativeResponseValue = wasm.TS_KeysInterface_get_node_secret(this_arg, recipient);
4170         return nativeResponseValue;
4171 }
4172         // LDKCResult_SharedSecretNoneZ KeysInterface_ecdh LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_ScalarZ tweak
4173 /* @internal */
4174 export function KeysInterface_ecdh(this_arg: bigint, recipient: Recipient, other_key: number, tweak: bigint): bigint {
4175         if(!isWasmInitialized) {
4176                 throw new Error("initializeWasm() must be awaited first!");
4177         }
4178         const nativeResponseValue = wasm.TS_KeysInterface_ecdh(this_arg, recipient, other_key, tweak);
4179         return nativeResponseValue;
4180 }
4181         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
4182 /* @internal */
4183 export function KeysInterface_get_destination_script(this_arg: bigint): number {
4184         if(!isWasmInitialized) {
4185                 throw new Error("initializeWasm() must be awaited first!");
4186         }
4187         const nativeResponseValue = wasm.TS_KeysInterface_get_destination_script(this_arg);
4188         return nativeResponseValue;
4189 }
4190         // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
4191 /* @internal */
4192 export function KeysInterface_get_shutdown_scriptpubkey(this_arg: bigint): bigint {
4193         if(!isWasmInitialized) {
4194                 throw new Error("initializeWasm() must be awaited first!");
4195         }
4196         const nativeResponseValue = wasm.TS_KeysInterface_get_shutdown_scriptpubkey(this_arg);
4197         return nativeResponseValue;
4198 }
4199         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
4200 /* @internal */
4201 export function KeysInterface_get_channel_signer(this_arg: bigint, inbound: boolean, channel_value_satoshis: bigint): bigint {
4202         if(!isWasmInitialized) {
4203                 throw new Error("initializeWasm() must be awaited first!");
4204         }
4205         const nativeResponseValue = wasm.TS_KeysInterface_get_channel_signer(this_arg, inbound, channel_value_satoshis);
4206         return nativeResponseValue;
4207 }
4208         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
4209 /* @internal */
4210 export function KeysInterface_get_secure_random_bytes(this_arg: bigint): number {
4211         if(!isWasmInitialized) {
4212                 throw new Error("initializeWasm() must be awaited first!");
4213         }
4214         const nativeResponseValue = wasm.TS_KeysInterface_get_secure_random_bytes(this_arg);
4215         return nativeResponseValue;
4216 }
4217         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
4218 /* @internal */
4219 export function KeysInterface_read_chan_signer(this_arg: bigint, reader: number): bigint {
4220         if(!isWasmInitialized) {
4221                 throw new Error("initializeWasm() must be awaited first!");
4222         }
4223         const nativeResponseValue = wasm.TS_KeysInterface_read_chan_signer(this_arg, reader);
4224         return nativeResponseValue;
4225 }
4226         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
4227 /* @internal */
4228 export function KeysInterface_sign_invoice(this_arg: bigint, hrp_bytes: number, invoice_data: number, receipient: Recipient): bigint {
4229         if(!isWasmInitialized) {
4230                 throw new Error("initializeWasm() must be awaited first!");
4231         }
4232         const nativeResponseValue = wasm.TS_KeysInterface_sign_invoice(this_arg, hrp_bytes, invoice_data, receipient);
4233         return nativeResponseValue;
4234 }
4235         // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
4236 /* @internal */
4237 export function KeysInterface_get_inbound_payment_key_material(this_arg: bigint): number {
4238         if(!isWasmInitialized) {
4239                 throw new Error("initializeWasm() must be awaited first!");
4240         }
4241         const nativeResponseValue = wasm.TS_KeysInterface_get_inbound_payment_key_material(this_arg);
4242         return nativeResponseValue;
4243 }
4244 /* @internal */
4245 export interface LDKFeeEstimator {
4246         get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
4247 }
4248
4249 /* @internal */
4250 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): [bigint, number] {
4251         if(!isWasmInitialized) {
4252                 throw new Error("initializeWasm() must be awaited first!");
4253         }
4254         var new_obj_idx = js_objs.length;
4255         for (var i = 0; i < js_objs.length; i++) {
4256                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4257         }
4258         js_objs[i] = new WeakRef(impl);
4259         return [wasm.TS_LDKFeeEstimator_new(i), i];
4260 }
4261         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
4262 /* @internal */
4263 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: bigint, confirmation_target: ConfirmationTarget): number {
4264         if(!isWasmInitialized) {
4265                 throw new Error("initializeWasm() must be awaited first!");
4266         }
4267         const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
4268         return nativeResponseValue;
4269 }
4270         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
4271 /* @internal */
4272 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: bigint): number {
4273         if(!isWasmInitialized) {
4274                 throw new Error("initializeWasm() must be awaited first!");
4275         }
4276         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
4277         return nativeResponseValue;
4278 }
4279         // struct LDKChannelManager C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
4280 /* @internal */
4281 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: bigint): bigint {
4282         if(!isWasmInitialized) {
4283                 throw new Error("initializeWasm() must be awaited first!");
4284         }
4285         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
4286         return nativeResponseValue;
4287 }
4288         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
4289 /* @internal */
4290 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: bigint): bigint {
4291         if(!isWasmInitialized) {
4292                 throw new Error("initializeWasm() must be awaited first!");
4293         }
4294         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
4295         return nativeResponseValue;
4296 }
4297         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
4298 /* @internal */
4299 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: bigint): bigint {
4300         if(!isWasmInitialized) {
4301                 throw new Error("initializeWasm() must be awaited first!");
4302         }
4303         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
4304         return nativeResponseValue;
4305 }
4306         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
4307 /* @internal */
4308 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: bigint): bigint {
4309         if(!isWasmInitialized) {
4310                 throw new Error("initializeWasm() must be awaited first!");
4311         }
4312         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
4313         return nativeResponseValue;
4314 }
4315         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
4316 /* @internal */
4317 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: bigint): bigint {
4318         if(!isWasmInitialized) {
4319                 throw new Error("initializeWasm() must be awaited first!");
4320         }
4321         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
4322         return nativeResponseValue;
4323 }
4324         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
4325 /* @internal */
4326 export function CResult_OutPointDecodeErrorZ_get_ok(owner: bigint): bigint {
4327         if(!isWasmInitialized) {
4328                 throw new Error("initializeWasm() must be awaited first!");
4329         }
4330         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
4331         return nativeResponseValue;
4332 }
4333         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
4334 /* @internal */
4335 export function CResult_OutPointDecodeErrorZ_get_err(owner: bigint): bigint {
4336         if(!isWasmInitialized) {
4337                 throw new Error("initializeWasm() must be awaited first!");
4338         }
4339         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
4340         return nativeResponseValue;
4341 }
4342 /* @internal */
4343 export interface LDKType {
4344         type_id (): number;
4345         debug_str (): number;
4346         write (): number;
4347 }
4348
4349 /* @internal */
4350 export function LDKType_new(impl: LDKType): [bigint, number] {
4351         if(!isWasmInitialized) {
4352                 throw new Error("initializeWasm() must be awaited first!");
4353         }
4354         var new_obj_idx = js_objs.length;
4355         for (var i = 0; i < js_objs.length; i++) {
4356                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4357         }
4358         js_objs[i] = new WeakRef(impl);
4359         return [wasm.TS_LDKType_new(i), i];
4360 }
4361         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
4362 /* @internal */
4363 export function Type_type_id(this_arg: bigint): number {
4364         if(!isWasmInitialized) {
4365                 throw new Error("initializeWasm() must be awaited first!");
4366         }
4367         const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
4368         return nativeResponseValue;
4369 }
4370         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
4371 /* @internal */
4372 export function Type_debug_str(this_arg: bigint): number {
4373         if(!isWasmInitialized) {
4374                 throw new Error("initializeWasm() must be awaited first!");
4375         }
4376         const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
4377         return nativeResponseValue;
4378 }
4379         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
4380 /* @internal */
4381 export function Type_write(this_arg: bigint): number {
4382         if(!isWasmInitialized) {
4383                 throw new Error("initializeWasm() must be awaited first!");
4384         }
4385         const nativeResponseValue = wasm.TS_Type_write(this_arg);
4386         return nativeResponseValue;
4387 }
4388 /* @internal */
4389 export class LDKCOption_TypeZ {
4390         protected constructor() {}
4391 }
4392 /* @internal */
4393 export function LDKCOption_TypeZ_ty_from_ptr(ptr: bigint): number {
4394         if(!isWasmInitialized) {
4395                 throw new Error("initializeWasm() must be awaited first!");
4396         }
4397         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
4398         return nativeResponseValue;
4399 }
4400 /* @internal */
4401 export function LDKCOption_TypeZ_Some_get_some(ptr: bigint): bigint {
4402         if(!isWasmInitialized) {
4403                 throw new Error("initializeWasm() must be awaited first!");
4404         }
4405         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
4406         return nativeResponseValue;
4407 }
4408         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
4409 /* @internal */
4410 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: bigint): bigint {
4411         if(!isWasmInitialized) {
4412                 throw new Error("initializeWasm() must be awaited first!");
4413         }
4414         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
4415         return nativeResponseValue;
4416 }
4417         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
4418 /* @internal */
4419 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: bigint): bigint {
4420         if(!isWasmInitialized) {
4421                 throw new Error("initializeWasm() must be awaited first!");
4422         }
4423         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
4424         return nativeResponseValue;
4425 }
4426 /* @internal */
4427 export class LDKPaymentError {
4428         protected constructor() {}
4429 }
4430 /* @internal */
4431 export function LDKPaymentError_ty_from_ptr(ptr: bigint): number {
4432         if(!isWasmInitialized) {
4433                 throw new Error("initializeWasm() must be awaited first!");
4434         }
4435         const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
4436         return nativeResponseValue;
4437 }
4438 /* @internal */
4439 export function LDKPaymentError_Invoice_get_invoice(ptr: bigint): number {
4440         if(!isWasmInitialized) {
4441                 throw new Error("initializeWasm() must be awaited first!");
4442         }
4443         const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
4444         return nativeResponseValue;
4445 }
4446 /* @internal */
4447 export function LDKPaymentError_Routing_get_routing(ptr: bigint): bigint {
4448         if(!isWasmInitialized) {
4449                 throw new Error("initializeWasm() must be awaited first!");
4450         }
4451         const nativeResponseValue = wasm.TS_LDKPaymentError_Routing_get_routing(ptr);
4452         return nativeResponseValue;
4453 }
4454 /* @internal */
4455 export function LDKPaymentError_Sending_get_sending(ptr: bigint): bigint {
4456         if(!isWasmInitialized) {
4457                 throw new Error("initializeWasm() must be awaited first!");
4458         }
4459         const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
4460         return nativeResponseValue;
4461 }
4462         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4463 /* @internal */
4464 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: bigint): number {
4465         if(!isWasmInitialized) {
4466                 throw new Error("initializeWasm() must be awaited first!");
4467         }
4468         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
4469         return nativeResponseValue;
4470 }
4471         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4472 /* @internal */
4473 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: bigint): bigint {
4474         if(!isWasmInitialized) {
4475                 throw new Error("initializeWasm() must be awaited first!");
4476         }
4477         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
4478         return nativeResponseValue;
4479 }
4480         // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
4481 /* @internal */
4482 export function CResult_InFlightHtlcsDecodeErrorZ_get_ok(owner: bigint): bigint {
4483         if(!isWasmInitialized) {
4484                 throw new Error("initializeWasm() must be awaited first!");
4485         }
4486         const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_get_ok(owner);
4487         return nativeResponseValue;
4488 }
4489         // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
4490 /* @internal */
4491 export function CResult_InFlightHtlcsDecodeErrorZ_get_err(owner: bigint): bigint {
4492         if(!isWasmInitialized) {
4493                 throw new Error("initializeWasm() must be awaited first!");
4494         }
4495         const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_get_err(owner);
4496         return nativeResponseValue;
4497 }
4498 /* @internal */
4499 export class LDKParseError {
4500         protected constructor() {}
4501 }
4502 /* @internal */
4503 export function LDKParseError_ty_from_ptr(ptr: bigint): number {
4504         if(!isWasmInitialized) {
4505                 throw new Error("initializeWasm() must be awaited first!");
4506         }
4507         const nativeResponseValue = wasm.TS_LDKParseError_ty_from_ptr(ptr);
4508         return nativeResponseValue;
4509 }
4510 /* @internal */
4511 export function LDKParseError_Bech32Error_get_bech32_error(ptr: bigint): bigint {
4512         if(!isWasmInitialized) {
4513                 throw new Error("initializeWasm() must be awaited first!");
4514         }
4515         const nativeResponseValue = wasm.TS_LDKParseError_Bech32Error_get_bech32_error(ptr);
4516         return nativeResponseValue;
4517 }
4518 /* @internal */
4519 export function LDKParseError_ParseAmountError_get_parse_amount_error(ptr: bigint): number {
4520         if(!isWasmInitialized) {
4521                 throw new Error("initializeWasm() must be awaited first!");
4522         }
4523         const nativeResponseValue = wasm.TS_LDKParseError_ParseAmountError_get_parse_amount_error(ptr);
4524         return nativeResponseValue;
4525 }
4526 /* @internal */
4527 export function LDKParseError_MalformedSignature_get_malformed_signature(ptr: bigint): Secp256k1Error {
4528         if(!isWasmInitialized) {
4529                 throw new Error("initializeWasm() must be awaited first!");
4530         }
4531         const nativeResponseValue = wasm.TS_LDKParseError_MalformedSignature_get_malformed_signature(ptr);
4532         return nativeResponseValue;
4533 }
4534 /* @internal */
4535 export function LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr: bigint): number {
4536         if(!isWasmInitialized) {
4537                 throw new Error("initializeWasm() must be awaited first!");
4538         }
4539         const nativeResponseValue = wasm.TS_LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr);
4540         return nativeResponseValue;
4541 }
4542 /* @internal */
4543 export function LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr: bigint): number {
4544         if(!isWasmInitialized) {
4545                 throw new Error("initializeWasm() must be awaited first!");
4546         }
4547         const nativeResponseValue = wasm.TS_LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr);
4548         return nativeResponseValue;
4549 }
4550         // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4551 /* @internal */
4552 export function CResult_SiPrefixParseErrorZ_get_ok(owner: bigint): SiPrefix {
4553         if(!isWasmInitialized) {
4554                 throw new Error("initializeWasm() must be awaited first!");
4555         }
4556         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_ok(owner);
4557         return nativeResponseValue;
4558 }
4559         // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4560 /* @internal */
4561 export function CResult_SiPrefixParseErrorZ_get_err(owner: bigint): bigint {
4562         if(!isWasmInitialized) {
4563                 throw new Error("initializeWasm() must be awaited first!");
4564         }
4565         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_err(owner);
4566         return nativeResponseValue;
4567 }
4568 /* @internal */
4569 export class LDKParseOrSemanticError {
4570         protected constructor() {}
4571 }
4572 /* @internal */
4573 export function LDKParseOrSemanticError_ty_from_ptr(ptr: bigint): number {
4574         if(!isWasmInitialized) {
4575                 throw new Error("initializeWasm() must be awaited first!");
4576         }
4577         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ty_from_ptr(ptr);
4578         return nativeResponseValue;
4579 }
4580 /* @internal */
4581 export function LDKParseOrSemanticError_ParseError_get_parse_error(ptr: bigint): bigint {
4582         if(!isWasmInitialized) {
4583                 throw new Error("initializeWasm() must be awaited first!");
4584         }
4585         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ParseError_get_parse_error(ptr);
4586         return nativeResponseValue;
4587 }
4588 /* @internal */
4589 export function LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr: bigint): SemanticError {
4590         if(!isWasmInitialized) {
4591                 throw new Error("initializeWasm() must be awaited first!");
4592         }
4593         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr);
4594         return nativeResponseValue;
4595 }
4596         // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4597 /* @internal */
4598 export function CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner: bigint): bigint {
4599         if(!isWasmInitialized) {
4600                 throw new Error("initializeWasm() must be awaited first!");
4601         }
4602         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner);
4603         return nativeResponseValue;
4604 }
4605         // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4606 /* @internal */
4607 export function CResult_InvoiceParseOrSemanticErrorZ_get_err(owner: bigint): bigint {
4608         if(!isWasmInitialized) {
4609                 throw new Error("initializeWasm() must be awaited first!");
4610         }
4611         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_err(owner);
4612         return nativeResponseValue;
4613 }
4614         // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4615 /* @internal */
4616 export function CResult_SignedRawInvoiceParseErrorZ_get_ok(owner: bigint): bigint {
4617         if(!isWasmInitialized) {
4618                 throw new Error("initializeWasm() must be awaited first!");
4619         }
4620         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_ok(owner);
4621         return nativeResponseValue;
4622 }
4623         // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4624 /* @internal */
4625 export function CResult_SignedRawInvoiceParseErrorZ_get_err(owner: bigint): bigint {
4626         if(!isWasmInitialized) {
4627                 throw new Error("initializeWasm() must be awaited first!");
4628         }
4629         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_err(owner);
4630         return nativeResponseValue;
4631 }
4632         // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4633 /* @internal */
4634 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: bigint): bigint {
4635         if(!isWasmInitialized) {
4636                 throw new Error("initializeWasm() must be awaited first!");
4637         }
4638         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
4639         return nativeResponseValue;
4640 }
4641         // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4642 /* @internal */
4643 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: bigint): number {
4644         if(!isWasmInitialized) {
4645                 throw new Error("initializeWasm() must be awaited first!");
4646         }
4647         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
4648         return nativeResponseValue;
4649 }
4650         // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4651 /* @internal */
4652 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: bigint): bigint {
4653         if(!isWasmInitialized) {
4654                 throw new Error("initializeWasm() must be awaited first!");
4655         }
4656         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
4657         return nativeResponseValue;
4658 }
4659         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4660 /* @internal */
4661 export function CResult_PayeePubKeyErrorZ_get_ok(owner: bigint): bigint {
4662         if(!isWasmInitialized) {
4663                 throw new Error("initializeWasm() must be awaited first!");
4664         }
4665         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
4666         return nativeResponseValue;
4667 }
4668         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4669 /* @internal */
4670 export function CResult_PayeePubKeyErrorZ_get_err(owner: bigint): Secp256k1Error {
4671         if(!isWasmInitialized) {
4672                 throw new Error("initializeWasm() must be awaited first!");
4673         }
4674         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
4675         return nativeResponseValue;
4676 }
4677         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4678 /* @internal */
4679 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: bigint): bigint {
4680         if(!isWasmInitialized) {
4681                 throw new Error("initializeWasm() must be awaited first!");
4682         }
4683         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
4684         return nativeResponseValue;
4685 }
4686         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4687 /* @internal */
4688 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: bigint): CreationError {
4689         if(!isWasmInitialized) {
4690                 throw new Error("initializeWasm() must be awaited first!");
4691         }
4692         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
4693         return nativeResponseValue;
4694 }
4695         // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4696 /* @internal */
4697 export function CResult_NoneSemanticErrorZ_get_ok(owner: bigint): void {
4698         if(!isWasmInitialized) {
4699                 throw new Error("initializeWasm() must be awaited first!");
4700         }
4701         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
4702         // debug statements here
4703 }
4704         // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4705 /* @internal */
4706 export function CResult_NoneSemanticErrorZ_get_err(owner: bigint): SemanticError {
4707         if(!isWasmInitialized) {
4708                 throw new Error("initializeWasm() must be awaited first!");
4709         }
4710         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
4711         return nativeResponseValue;
4712 }
4713         // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4714 /* @internal */
4715 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: bigint): bigint {
4716         if(!isWasmInitialized) {
4717                 throw new Error("initializeWasm() must be awaited first!");
4718         }
4719         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
4720         return nativeResponseValue;
4721 }
4722         // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4723 /* @internal */
4724 export function CResult_InvoiceSemanticErrorZ_get_err(owner: bigint): SemanticError {
4725         if(!isWasmInitialized) {
4726                 throw new Error("initializeWasm() must be awaited first!");
4727         }
4728         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
4729         return nativeResponseValue;
4730 }
4731         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4732 /* @internal */
4733 export function CResult_DescriptionCreationErrorZ_get_ok(owner: bigint): bigint {
4734         if(!isWasmInitialized) {
4735                 throw new Error("initializeWasm() must be awaited first!");
4736         }
4737         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
4738         return nativeResponseValue;
4739 }
4740         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4741 /* @internal */
4742 export function CResult_DescriptionCreationErrorZ_get_err(owner: bigint): CreationError {
4743         if(!isWasmInitialized) {
4744                 throw new Error("initializeWasm() must be awaited first!");
4745         }
4746         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
4747         return nativeResponseValue;
4748 }
4749         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4750 /* @internal */
4751 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: bigint): bigint {
4752         if(!isWasmInitialized) {
4753                 throw new Error("initializeWasm() must be awaited first!");
4754         }
4755         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
4756         return nativeResponseValue;
4757 }
4758         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4759 /* @internal */
4760 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: bigint): CreationError {
4761         if(!isWasmInitialized) {
4762                 throw new Error("initializeWasm() must be awaited first!");
4763         }
4764         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
4765         return nativeResponseValue;
4766 }
4767         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4768 /* @internal */
4769 export function CResult_StringErrorZ_get_ok(owner: bigint): number {
4770         if(!isWasmInitialized) {
4771                 throw new Error("initializeWasm() must be awaited first!");
4772         }
4773         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
4774         return nativeResponseValue;
4775 }
4776         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4777 /* @internal */
4778 export function CResult_StringErrorZ_get_err(owner: bigint): Secp256k1Error {
4779         if(!isWasmInitialized) {
4780                 throw new Error("initializeWasm() must be awaited first!");
4781         }
4782         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
4783         return nativeResponseValue;
4784 }
4785         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4786 /* @internal */
4787 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
4788         if(!isWasmInitialized) {
4789                 throw new Error("initializeWasm() must be awaited first!");
4790         }
4791         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
4792         return nativeResponseValue;
4793 }
4794         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4795 /* @internal */
4796 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
4797         if(!isWasmInitialized) {
4798                 throw new Error("initializeWasm() must be awaited first!");
4799         }
4800         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
4801         return nativeResponseValue;
4802 }
4803 /* @internal */
4804 export class LDKCOption_MonitorEventZ {
4805         protected constructor() {}
4806 }
4807 /* @internal */
4808 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: bigint): number {
4809         if(!isWasmInitialized) {
4810                 throw new Error("initializeWasm() must be awaited first!");
4811         }
4812         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
4813         return nativeResponseValue;
4814 }
4815 /* @internal */
4816 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: bigint): bigint {
4817         if(!isWasmInitialized) {
4818                 throw new Error("initializeWasm() must be awaited first!");
4819         }
4820         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
4821         return nativeResponseValue;
4822 }
4823         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4824 /* @internal */
4825 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: bigint): bigint {
4826         if(!isWasmInitialized) {
4827                 throw new Error("initializeWasm() must be awaited first!");
4828         }
4829         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
4830         return nativeResponseValue;
4831 }
4832         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4833 /* @internal */
4834 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: bigint): bigint {
4835         if(!isWasmInitialized) {
4836                 throw new Error("initializeWasm() must be awaited first!");
4837         }
4838         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
4839         return nativeResponseValue;
4840 }
4841         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4842 /* @internal */
4843 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
4844         if(!isWasmInitialized) {
4845                 throw new Error("initializeWasm() must be awaited first!");
4846         }
4847         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
4848         return nativeResponseValue;
4849 }
4850         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4851 /* @internal */
4852 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
4853         if(!isWasmInitialized) {
4854                 throw new Error("initializeWasm() must be awaited first!");
4855         }
4856         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
4857         return nativeResponseValue;
4858 }
4859         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4860 /* @internal */
4861 export function C2Tuple_OutPointScriptZ_get_a(owner: bigint): bigint {
4862         if(!isWasmInitialized) {
4863                 throw new Error("initializeWasm() must be awaited first!");
4864         }
4865         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
4866         return nativeResponseValue;
4867 }
4868         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4869 /* @internal */
4870 export function C2Tuple_OutPointScriptZ_get_b(owner: bigint): number {
4871         if(!isWasmInitialized) {
4872                 throw new Error("initializeWasm() must be awaited first!");
4873         }
4874         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
4875         return nativeResponseValue;
4876 }
4877         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4878 /* @internal */
4879 export function C2Tuple_u32ScriptZ_get_a(owner: bigint): number {
4880         if(!isWasmInitialized) {
4881                 throw new Error("initializeWasm() must be awaited first!");
4882         }
4883         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
4884         return nativeResponseValue;
4885 }
4886         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4887 /* @internal */
4888 export function C2Tuple_u32ScriptZ_get_b(owner: bigint): number {
4889         if(!isWasmInitialized) {
4890                 throw new Error("initializeWasm() must be awaited first!");
4891         }
4892         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
4893         return nativeResponseValue;
4894 }
4895         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4896 /* @internal */
4897 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: bigint): number {
4898         if(!isWasmInitialized) {
4899                 throw new Error("initializeWasm() must be awaited first!");
4900         }
4901         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
4902         return nativeResponseValue;
4903 }
4904         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4905 /* @internal */
4906 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: bigint): number {
4907         if(!isWasmInitialized) {
4908                 throw new Error("initializeWasm() must be awaited first!");
4909         }
4910         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
4911         return nativeResponseValue;
4912 }
4913         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4914 /* @internal */
4915 export function C2Tuple_u32TxOutZ_get_a(owner: bigint): number {
4916         if(!isWasmInitialized) {
4917                 throw new Error("initializeWasm() must be awaited first!");
4918         }
4919         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
4920         return nativeResponseValue;
4921 }
4922         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4923 /* @internal */
4924 export function C2Tuple_u32TxOutZ_get_b(owner: bigint): bigint {
4925         if(!isWasmInitialized) {
4926                 throw new Error("initializeWasm() must be awaited first!");
4927         }
4928         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
4929         return nativeResponseValue;
4930 }
4931         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4932 /* @internal */
4933 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: bigint): number {
4934         if(!isWasmInitialized) {
4935                 throw new Error("initializeWasm() must be awaited first!");
4936         }
4937         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
4938         return nativeResponseValue;
4939 }
4940         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4941 /* @internal */
4942 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: bigint): number {
4943         if(!isWasmInitialized) {
4944                 throw new Error("initializeWasm() must be awaited first!");
4945         }
4946         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
4947         return nativeResponseValue;
4948 }
4949 /* @internal */
4950 export class LDKBalance {
4951         protected constructor() {}
4952 }
4953 /* @internal */
4954 export function LDKBalance_ty_from_ptr(ptr: bigint): number {
4955         if(!isWasmInitialized) {
4956                 throw new Error("initializeWasm() must be awaited first!");
4957         }
4958         const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
4959         return nativeResponseValue;
4960 }
4961 /* @internal */
4962 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: bigint): bigint {
4963         if(!isWasmInitialized) {
4964                 throw new Error("initializeWasm() must be awaited first!");
4965         }
4966         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
4967         return nativeResponseValue;
4968 }
4969 /* @internal */
4970 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: bigint): bigint {
4971         if(!isWasmInitialized) {
4972                 throw new Error("initializeWasm() must be awaited first!");
4973         }
4974         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
4975         return nativeResponseValue;
4976 }
4977 /* @internal */
4978 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: bigint): number {
4979         if(!isWasmInitialized) {
4980                 throw new Error("initializeWasm() must be awaited first!");
4981         }
4982         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
4983         return nativeResponseValue;
4984 }
4985 /* @internal */
4986 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: bigint): bigint {
4987         if(!isWasmInitialized) {
4988                 throw new Error("initializeWasm() must be awaited first!");
4989         }
4990         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
4991         return nativeResponseValue;
4992 }
4993 /* @internal */
4994 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: bigint): number {
4995         if(!isWasmInitialized) {
4996                 throw new Error("initializeWasm() must be awaited first!");
4997         }
4998         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
4999         return nativeResponseValue;
5000 }
5001 /* @internal */
5002 export function LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_amount_satoshis(ptr: bigint): bigint {
5003         if(!isWasmInitialized) {
5004                 throw new Error("initializeWasm() must be awaited first!");
5005         }
5006         const nativeResponseValue = wasm.TS_LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_amount_satoshis(ptr);
5007         return nativeResponseValue;
5008 }
5009 /* @internal */
5010 export function LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height(ptr: bigint): number {
5011         if(!isWasmInitialized) {
5012                 throw new Error("initializeWasm() must be awaited first!");
5013         }
5014         const nativeResponseValue = wasm.TS_LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height(ptr);
5015         return nativeResponseValue;
5016 }
5017 /* @internal */
5018 export function LDKBalance_MaybePreimageClaimableHTLC_get_claimable_amount_satoshis(ptr: bigint): bigint {
5019         if(!isWasmInitialized) {
5020                 throw new Error("initializeWasm() must be awaited first!");
5021         }
5022         const nativeResponseValue = wasm.TS_LDKBalance_MaybePreimageClaimableHTLC_get_claimable_amount_satoshis(ptr);
5023         return nativeResponseValue;
5024 }
5025 /* @internal */
5026 export function LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height(ptr: bigint): number {
5027         if(!isWasmInitialized) {
5028                 throw new Error("initializeWasm() must be awaited first!");
5029         }
5030         const nativeResponseValue = wasm.TS_LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height(ptr);
5031         return nativeResponseValue;
5032 }
5033 /* @internal */
5034 export function LDKBalance_CounterpartyRevokedOutputClaimable_get_claimable_amount_satoshis(ptr: bigint): bigint {
5035         if(!isWasmInitialized) {
5036                 throw new Error("initializeWasm() must be awaited first!");
5037         }
5038         const nativeResponseValue = wasm.TS_LDKBalance_CounterpartyRevokedOutputClaimable_get_claimable_amount_satoshis(ptr);
5039         return nativeResponseValue;
5040 }
5041         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
5042 /* @internal */
5043 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: bigint): number {
5044         if(!isWasmInitialized) {
5045                 throw new Error("initializeWasm() must be awaited first!");
5046         }
5047         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
5048         return nativeResponseValue;
5049 }
5050         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
5051 /* @internal */
5052 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: bigint): bigint {
5053         if(!isWasmInitialized) {
5054                 throw new Error("initializeWasm() must be awaited first!");
5055         }
5056         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
5057         return nativeResponseValue;
5058 }
5059         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
5060 /* @internal */
5061 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: bigint): bigint {
5062         if(!isWasmInitialized) {
5063                 throw new Error("initializeWasm() must be awaited first!");
5064         }
5065         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
5066         return nativeResponseValue;
5067 }
5068         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
5069 /* @internal */
5070 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: bigint): bigint {
5071         if(!isWasmInitialized) {
5072                 throw new Error("initializeWasm() must be awaited first!");
5073         }
5074         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
5075         return nativeResponseValue;
5076 }
5077         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
5078 /* @internal */
5079 export function C2Tuple_PublicKeyTypeZ_get_a(owner: bigint): number {
5080         if(!isWasmInitialized) {
5081                 throw new Error("initializeWasm() must be awaited first!");
5082         }
5083         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
5084         return nativeResponseValue;
5085 }
5086         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
5087 /* @internal */
5088 export function C2Tuple_PublicKeyTypeZ_get_b(owner: bigint): bigint {
5089         if(!isWasmInitialized) {
5090                 throw new Error("initializeWasm() must be awaited first!");
5091         }
5092         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
5093         return nativeResponseValue;
5094 }
5095 /* @internal */
5096 export class LDKCOption_NetAddressZ {
5097         protected constructor() {}
5098 }
5099 /* @internal */
5100 export function LDKCOption_NetAddressZ_ty_from_ptr(ptr: bigint): number {
5101         if(!isWasmInitialized) {
5102                 throw new Error("initializeWasm() must be awaited first!");
5103         }
5104         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_ty_from_ptr(ptr);
5105         return nativeResponseValue;
5106 }
5107 /* @internal */
5108 export function LDKCOption_NetAddressZ_Some_get_some(ptr: bigint): bigint {
5109         if(!isWasmInitialized) {
5110                 throw new Error("initializeWasm() must be awaited first!");
5111         }
5112         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_Some_get_some(ptr);
5113         return nativeResponseValue;
5114 }
5115         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
5116 /* @internal */
5117 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: bigint): number {
5118         if(!isWasmInitialized) {
5119                 throw new Error("initializeWasm() must be awaited first!");
5120         }
5121         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
5122         return nativeResponseValue;
5123 }
5124         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
5125 /* @internal */
5126 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: bigint): bigint {
5127         if(!isWasmInitialized) {
5128                 throw new Error("initializeWasm() must be awaited first!");
5129         }
5130         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
5131         return nativeResponseValue;
5132 }
5133         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
5134 /* @internal */
5135 export function CResult_NonePeerHandleErrorZ_get_ok(owner: bigint): void {
5136         if(!isWasmInitialized) {
5137                 throw new Error("initializeWasm() must be awaited first!");
5138         }
5139         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
5140         // debug statements here
5141 }
5142         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
5143 /* @internal */
5144 export function CResult_NonePeerHandleErrorZ_get_err(owner: bigint): bigint {
5145         if(!isWasmInitialized) {
5146                 throw new Error("initializeWasm() must be awaited first!");
5147         }
5148         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
5149         return nativeResponseValue;
5150 }
5151         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
5152 /* @internal */
5153 export function CResult_boolPeerHandleErrorZ_get_ok(owner: bigint): boolean {
5154         if(!isWasmInitialized) {
5155                 throw new Error("initializeWasm() must be awaited first!");
5156         }
5157         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
5158         return nativeResponseValue;
5159 }
5160         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
5161 /* @internal */
5162 export function CResult_boolPeerHandleErrorZ_get_err(owner: bigint): bigint {
5163         if(!isWasmInitialized) {
5164                 throw new Error("initializeWasm() must be awaited first!");
5165         }
5166         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
5167         return nativeResponseValue;
5168 }
5169 /* @internal */
5170 export class LDKSendError {
5171         protected constructor() {}
5172 }
5173 /* @internal */
5174 export function LDKSendError_ty_from_ptr(ptr: bigint): number {
5175         if(!isWasmInitialized) {
5176                 throw new Error("initializeWasm() must be awaited first!");
5177         }
5178         const nativeResponseValue = wasm.TS_LDKSendError_ty_from_ptr(ptr);
5179         return nativeResponseValue;
5180 }
5181 /* @internal */
5182 export function LDKSendError_Secp256k1_get_secp256k1(ptr: bigint): Secp256k1Error {
5183         if(!isWasmInitialized) {
5184                 throw new Error("initializeWasm() must be awaited first!");
5185         }
5186         const nativeResponseValue = wasm.TS_LDKSendError_Secp256k1_get_secp256k1(ptr);
5187         return nativeResponseValue;
5188 }
5189         // void CResult_NoneSendErrorZ_get_ok(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
5190 /* @internal */
5191 export function CResult_NoneSendErrorZ_get_ok(owner: bigint): void {
5192         if(!isWasmInitialized) {
5193                 throw new Error("initializeWasm() must be awaited first!");
5194         }
5195         const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_get_ok(owner);
5196         // debug statements here
5197 }
5198         // struct LDKSendError CResult_NoneSendErrorZ_get_err(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
5199 /* @internal */
5200 export function CResult_NoneSendErrorZ_get_err(owner: bigint): bigint {
5201         if(!isWasmInitialized) {
5202                 throw new Error("initializeWasm() must be awaited first!");
5203         }
5204         const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_get_err(owner);
5205         return nativeResponseValue;
5206 }
5207 /* @internal */
5208 export class LDKGraphSyncError {
5209         protected constructor() {}
5210 }
5211 /* @internal */
5212 export function LDKGraphSyncError_ty_from_ptr(ptr: bigint): number {
5213         if(!isWasmInitialized) {
5214                 throw new Error("initializeWasm() must be awaited first!");
5215         }
5216         const nativeResponseValue = wasm.TS_LDKGraphSyncError_ty_from_ptr(ptr);
5217         return nativeResponseValue;
5218 }
5219 /* @internal */
5220 export function LDKGraphSyncError_DecodeError_get_decode_error(ptr: bigint): bigint {
5221         if(!isWasmInitialized) {
5222                 throw new Error("initializeWasm() must be awaited first!");
5223         }
5224         const nativeResponseValue = wasm.TS_LDKGraphSyncError_DecodeError_get_decode_error(ptr);
5225         return nativeResponseValue;
5226 }
5227 /* @internal */
5228 export function LDKGraphSyncError_LightningError_get_lightning_error(ptr: bigint): bigint {
5229         if(!isWasmInitialized) {
5230                 throw new Error("initializeWasm() must be awaited first!");
5231         }
5232         const nativeResponseValue = wasm.TS_LDKGraphSyncError_LightningError_get_lightning_error(ptr);
5233         return nativeResponseValue;
5234 }
5235         // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
5236 /* @internal */
5237 export function CResult_u32GraphSyncErrorZ_get_ok(owner: bigint): number {
5238         if(!isWasmInitialized) {
5239                 throw new Error("initializeWasm() must be awaited first!");
5240         }
5241         const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_get_ok(owner);
5242         return nativeResponseValue;
5243 }
5244         // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
5245 /* @internal */
5246 export function CResult_u32GraphSyncErrorZ_get_err(owner: bigint): bigint {
5247         if(!isWasmInitialized) {
5248                 throw new Error("initializeWasm() must be awaited first!");
5249         }
5250         const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_get_err(owner);
5251         return nativeResponseValue;
5252 }
5253         // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
5254 /* @internal */
5255 export function CResult_NoneErrorZ_get_ok(owner: bigint): void {
5256         if(!isWasmInitialized) {
5257                 throw new Error("initializeWasm() must be awaited first!");
5258         }
5259         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_ok(owner);
5260         // debug statements here
5261 }
5262         // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
5263 /* @internal */
5264 export function CResult_NoneErrorZ_get_err(owner: bigint): IOError {
5265         if(!isWasmInitialized) {
5266                 throw new Error("initializeWasm() must be awaited first!");
5267         }
5268         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_err(owner);
5269         return nativeResponseValue;
5270 }
5271         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
5272 /* @internal */
5273 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: bigint): bigint {
5274         if(!isWasmInitialized) {
5275                 throw new Error("initializeWasm() must be awaited first!");
5276         }
5277         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
5278         return nativeResponseValue;
5279 }
5280         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
5281 /* @internal */
5282 export function CResult_NetAddressDecodeErrorZ_get_err(owner: bigint): bigint {
5283         if(!isWasmInitialized) {
5284                 throw new Error("initializeWasm() must be awaited first!");
5285         }
5286         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
5287         return nativeResponseValue;
5288 }
5289         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
5290 /* @internal */
5291 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: bigint): bigint {
5292         if(!isWasmInitialized) {
5293                 throw new Error("initializeWasm() must be awaited first!");
5294         }
5295         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
5296         return nativeResponseValue;
5297 }
5298         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
5299 /* @internal */
5300 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: bigint): bigint {
5301         if(!isWasmInitialized) {
5302                 throw new Error("initializeWasm() must be awaited first!");
5303         }
5304         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
5305         return nativeResponseValue;
5306 }
5307         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
5308 /* @internal */
5309 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
5310         if(!isWasmInitialized) {
5311                 throw new Error("initializeWasm() must be awaited first!");
5312         }
5313         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
5314         return nativeResponseValue;
5315 }
5316         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
5317 /* @internal */
5318 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: bigint): bigint {
5319         if(!isWasmInitialized) {
5320                 throw new Error("initializeWasm() must be awaited first!");
5321         }
5322         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
5323         return nativeResponseValue;
5324 }
5325         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
5326 /* @internal */
5327 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: bigint): bigint {
5328         if(!isWasmInitialized) {
5329                 throw new Error("initializeWasm() must be awaited first!");
5330         }
5331         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
5332         return nativeResponseValue;
5333 }
5334         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
5335 /* @internal */
5336 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: bigint): bigint {
5337         if(!isWasmInitialized) {
5338                 throw new Error("initializeWasm() must be awaited first!");
5339         }
5340         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
5341         return nativeResponseValue;
5342 }
5343         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
5344 /* @internal */
5345 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: bigint): bigint {
5346         if(!isWasmInitialized) {
5347                 throw new Error("initializeWasm() must be awaited first!");
5348         }
5349         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
5350         return nativeResponseValue;
5351 }
5352         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
5353 /* @internal */
5354 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: bigint): bigint {
5355         if(!isWasmInitialized) {
5356                 throw new Error("initializeWasm() must be awaited first!");
5357         }
5358         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
5359         return nativeResponseValue;
5360 }
5361         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
5362 /* @internal */
5363 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: bigint): bigint {
5364         if(!isWasmInitialized) {
5365                 throw new Error("initializeWasm() must be awaited first!");
5366         }
5367         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
5368         return nativeResponseValue;
5369 }
5370         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
5371 /* @internal */
5372 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: bigint): bigint {
5373         if(!isWasmInitialized) {
5374                 throw new Error("initializeWasm() must be awaited first!");
5375         }
5376         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
5377         return nativeResponseValue;
5378 }
5379         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
5380 /* @internal */
5381 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: bigint): bigint {
5382         if(!isWasmInitialized) {
5383                 throw new Error("initializeWasm() must be awaited first!");
5384         }
5385         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
5386         return nativeResponseValue;
5387 }
5388         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
5389 /* @internal */
5390 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: bigint): bigint {
5391         if(!isWasmInitialized) {
5392                 throw new Error("initializeWasm() must be awaited first!");
5393         }
5394         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
5395         return nativeResponseValue;
5396 }
5397         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
5398 /* @internal */
5399 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: bigint): bigint {
5400         if(!isWasmInitialized) {
5401                 throw new Error("initializeWasm() must be awaited first!");
5402         }
5403         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
5404         return nativeResponseValue;
5405 }
5406         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
5407 /* @internal */
5408 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: bigint): bigint {
5409         if(!isWasmInitialized) {
5410                 throw new Error("initializeWasm() must be awaited first!");
5411         }
5412         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
5413         return nativeResponseValue;
5414 }
5415         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
5416 /* @internal */
5417 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: bigint): bigint {
5418         if(!isWasmInitialized) {
5419                 throw new Error("initializeWasm() must be awaited first!");
5420         }
5421         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
5422         return nativeResponseValue;
5423 }
5424         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
5425 /* @internal */
5426 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: bigint): bigint {
5427         if(!isWasmInitialized) {
5428                 throw new Error("initializeWasm() must be awaited first!");
5429         }
5430         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
5431         return nativeResponseValue;
5432 }
5433         // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
5434 /* @internal */
5435 export function CResult_ChannelReadyDecodeErrorZ_get_ok(owner: bigint): bigint {
5436         if(!isWasmInitialized) {
5437                 throw new Error("initializeWasm() must be awaited first!");
5438         }
5439         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_ok(owner);
5440         return nativeResponseValue;
5441 }
5442         // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
5443 /* @internal */
5444 export function CResult_ChannelReadyDecodeErrorZ_get_err(owner: bigint): bigint {
5445         if(!isWasmInitialized) {
5446                 throw new Error("initializeWasm() must be awaited first!");
5447         }
5448         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_err(owner);
5449         return nativeResponseValue;
5450 }
5451         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
5452 /* @internal */
5453 export function CResult_InitDecodeErrorZ_get_ok(owner: bigint): bigint {
5454         if(!isWasmInitialized) {
5455                 throw new Error("initializeWasm() must be awaited first!");
5456         }
5457         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
5458         return nativeResponseValue;
5459 }
5460         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
5461 /* @internal */
5462 export function CResult_InitDecodeErrorZ_get_err(owner: bigint): bigint {
5463         if(!isWasmInitialized) {
5464                 throw new Error("initializeWasm() must be awaited first!");
5465         }
5466         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
5467         return nativeResponseValue;
5468 }
5469         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
5470 /* @internal */
5471 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: bigint): bigint {
5472         if(!isWasmInitialized) {
5473                 throw new Error("initializeWasm() must be awaited first!");
5474         }
5475         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
5476         return nativeResponseValue;
5477 }
5478         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
5479 /* @internal */
5480 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: bigint): bigint {
5481         if(!isWasmInitialized) {
5482                 throw new Error("initializeWasm() must be awaited first!");
5483         }
5484         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
5485         return nativeResponseValue;
5486 }
5487         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
5488 /* @internal */
5489 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: bigint): bigint {
5490         if(!isWasmInitialized) {
5491                 throw new Error("initializeWasm() must be awaited first!");
5492         }
5493         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
5494         return nativeResponseValue;
5495 }
5496         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
5497 /* @internal */
5498 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: bigint): bigint {
5499         if(!isWasmInitialized) {
5500                 throw new Error("initializeWasm() must be awaited first!");
5501         }
5502         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
5503         return nativeResponseValue;
5504 }
5505         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
5506 /* @internal */
5507 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: bigint): bigint {
5508         if(!isWasmInitialized) {
5509                 throw new Error("initializeWasm() must be awaited first!");
5510         }
5511         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
5512         return nativeResponseValue;
5513 }
5514         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
5515 /* @internal */
5516 export function CResult_ShutdownDecodeErrorZ_get_err(owner: bigint): bigint {
5517         if(!isWasmInitialized) {
5518                 throw new Error("initializeWasm() must be awaited first!");
5519         }
5520         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
5521         return nativeResponseValue;
5522 }
5523         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
5524 /* @internal */
5525 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
5526         if(!isWasmInitialized) {
5527                 throw new Error("initializeWasm() must be awaited first!");
5528         }
5529         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
5530         return nativeResponseValue;
5531 }
5532         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
5533 /* @internal */
5534 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
5535         if(!isWasmInitialized) {
5536                 throw new Error("initializeWasm() must be awaited first!");
5537         }
5538         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
5539         return nativeResponseValue;
5540 }
5541         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
5542 /* @internal */
5543 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
5544         if(!isWasmInitialized) {
5545                 throw new Error("initializeWasm() must be awaited first!");
5546         }
5547         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
5548         return nativeResponseValue;
5549 }
5550         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
5551 /* @internal */
5552 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
5553         if(!isWasmInitialized) {
5554                 throw new Error("initializeWasm() must be awaited first!");
5555         }
5556         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
5557         return nativeResponseValue;
5558 }
5559         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5560 /* @internal */
5561 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: bigint): bigint {
5562         if(!isWasmInitialized) {
5563                 throw new Error("initializeWasm() must be awaited first!");
5564         }
5565         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
5566         return nativeResponseValue;
5567 }
5568         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5569 /* @internal */
5570 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: bigint): bigint {
5571         if(!isWasmInitialized) {
5572                 throw new Error("initializeWasm() must be awaited first!");
5573         }
5574         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
5575         return nativeResponseValue;
5576 }
5577         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5578 /* @internal */
5579 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
5580         if(!isWasmInitialized) {
5581                 throw new Error("initializeWasm() must be awaited first!");
5582         }
5583         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
5584         return nativeResponseValue;
5585 }
5586         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5587 /* @internal */
5588 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
5589         if(!isWasmInitialized) {
5590                 throw new Error("initializeWasm() must be awaited first!");
5591         }
5592         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
5593         return nativeResponseValue;
5594 }
5595         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5596 /* @internal */
5597 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
5598         if(!isWasmInitialized) {
5599                 throw new Error("initializeWasm() must be awaited first!");
5600         }
5601         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
5602         return nativeResponseValue;
5603 }
5604         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5605 /* @internal */
5606 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
5607         if(!isWasmInitialized) {
5608                 throw new Error("initializeWasm() must be awaited first!");
5609         }
5610         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
5611         return nativeResponseValue;
5612 }
5613         // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
5614 /* @internal */
5615 export function CResult_OnionMessageDecodeErrorZ_get_ok(owner: bigint): bigint {
5616         if(!isWasmInitialized) {
5617                 throw new Error("initializeWasm() must be awaited first!");
5618         }
5619         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_get_ok(owner);
5620         return nativeResponseValue;
5621 }
5622         // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
5623 /* @internal */
5624 export function CResult_OnionMessageDecodeErrorZ_get_err(owner: bigint): bigint {
5625         if(!isWasmInitialized) {
5626                 throw new Error("initializeWasm() must be awaited first!");
5627         }
5628         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_get_err(owner);
5629         return nativeResponseValue;
5630 }
5631         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5632 /* @internal */
5633 export function CResult_PingDecodeErrorZ_get_ok(owner: bigint): bigint {
5634         if(!isWasmInitialized) {
5635                 throw new Error("initializeWasm() must be awaited first!");
5636         }
5637         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
5638         return nativeResponseValue;
5639 }
5640         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5641 /* @internal */
5642 export function CResult_PingDecodeErrorZ_get_err(owner: bigint): bigint {
5643         if(!isWasmInitialized) {
5644                 throw new Error("initializeWasm() must be awaited first!");
5645         }
5646         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
5647         return nativeResponseValue;
5648 }
5649         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5650 /* @internal */
5651 export function CResult_PongDecodeErrorZ_get_ok(owner: bigint): bigint {
5652         if(!isWasmInitialized) {
5653                 throw new Error("initializeWasm() must be awaited first!");
5654         }
5655         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
5656         return nativeResponseValue;
5657 }
5658         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5659 /* @internal */
5660 export function CResult_PongDecodeErrorZ_get_err(owner: bigint): bigint {
5661         if(!isWasmInitialized) {
5662                 throw new Error("initializeWasm() must be awaited first!");
5663         }
5664         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
5665         return nativeResponseValue;
5666 }
5667         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5668 /* @internal */
5669 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
5670         if(!isWasmInitialized) {
5671                 throw new Error("initializeWasm() must be awaited first!");
5672         }
5673         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
5674         return nativeResponseValue;
5675 }
5676         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5677 /* @internal */
5678 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
5679         if(!isWasmInitialized) {
5680                 throw new Error("initializeWasm() must be awaited first!");
5681         }
5682         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
5683         return nativeResponseValue;
5684 }
5685         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5686 /* @internal */
5687 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
5688         if(!isWasmInitialized) {
5689                 throw new Error("initializeWasm() must be awaited first!");
5690         }
5691         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
5692         return nativeResponseValue;
5693 }
5694         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5695 /* @internal */
5696 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
5697         if(!isWasmInitialized) {
5698                 throw new Error("initializeWasm() must be awaited first!");
5699         }
5700         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
5701         return nativeResponseValue;
5702 }
5703         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5704 /* @internal */
5705 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
5706         if(!isWasmInitialized) {
5707                 throw new Error("initializeWasm() must be awaited first!");
5708         }
5709         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
5710         return nativeResponseValue;
5711 }
5712         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5713 /* @internal */
5714 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
5715         if(!isWasmInitialized) {
5716                 throw new Error("initializeWasm() must be awaited first!");
5717         }
5718         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
5719         return nativeResponseValue;
5720 }
5721         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5722 /* @internal */
5723 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
5724         if(!isWasmInitialized) {
5725                 throw new Error("initializeWasm() must be awaited first!");
5726         }
5727         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
5728         return nativeResponseValue;
5729 }
5730         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5731 /* @internal */
5732 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
5733         if(!isWasmInitialized) {
5734                 throw new Error("initializeWasm() must be awaited first!");
5735         }
5736         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
5737         return nativeResponseValue;
5738 }
5739         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5740 /* @internal */
5741 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: bigint): bigint {
5742         if(!isWasmInitialized) {
5743                 throw new Error("initializeWasm() must be awaited first!");
5744         }
5745         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
5746         return nativeResponseValue;
5747 }
5748         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5749 /* @internal */
5750 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: bigint): bigint {
5751         if(!isWasmInitialized) {
5752                 throw new Error("initializeWasm() must be awaited first!");
5753         }
5754         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
5755         return nativeResponseValue;
5756 }
5757         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5758 /* @internal */
5759 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: bigint): bigint {
5760         if(!isWasmInitialized) {
5761                 throw new Error("initializeWasm() must be awaited first!");
5762         }
5763         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
5764         return nativeResponseValue;
5765 }
5766         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5767 /* @internal */
5768 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: bigint): bigint {
5769         if(!isWasmInitialized) {
5770                 throw new Error("initializeWasm() must be awaited first!");
5771         }
5772         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
5773         return nativeResponseValue;
5774 }
5775         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5776 /* @internal */
5777 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
5778         if(!isWasmInitialized) {
5779                 throw new Error("initializeWasm() must be awaited first!");
5780         }
5781         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
5782         return nativeResponseValue;
5783 }
5784         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5785 /* @internal */
5786 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
5787         if(!isWasmInitialized) {
5788                 throw new Error("initializeWasm() must be awaited first!");
5789         }
5790         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
5791         return nativeResponseValue;
5792 }
5793         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5794 /* @internal */
5795 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
5796         if(!isWasmInitialized) {
5797                 throw new Error("initializeWasm() must be awaited first!");
5798         }
5799         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
5800         return nativeResponseValue;
5801 }
5802         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5803 /* @internal */
5804 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
5805         if(!isWasmInitialized) {
5806                 throw new Error("initializeWasm() must be awaited first!");
5807         }
5808         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
5809         return nativeResponseValue;
5810 }
5811         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5812 /* @internal */
5813 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: bigint): bigint {
5814         if(!isWasmInitialized) {
5815                 throw new Error("initializeWasm() must be awaited first!");
5816         }
5817         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
5818         return nativeResponseValue;
5819 }
5820         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5821 /* @internal */
5822 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: bigint): bigint {
5823         if(!isWasmInitialized) {
5824                 throw new Error("initializeWasm() must be awaited first!");
5825         }
5826         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
5827         return nativeResponseValue;
5828 }
5829         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5830 /* @internal */
5831 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: bigint): bigint {
5832         if(!isWasmInitialized) {
5833                 throw new Error("initializeWasm() must be awaited first!");
5834         }
5835         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
5836         return nativeResponseValue;
5837 }
5838         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5839 /* @internal */
5840 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: bigint): bigint {
5841         if(!isWasmInitialized) {
5842                 throw new Error("initializeWasm() must be awaited first!");
5843         }
5844         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
5845         return nativeResponseValue;
5846 }
5847         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5848 /* @internal */
5849 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: bigint): bigint {
5850         if(!isWasmInitialized) {
5851                 throw new Error("initializeWasm() must be awaited first!");
5852         }
5853         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
5854         return nativeResponseValue;
5855 }
5856         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5857 /* @internal */
5858 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: bigint): bigint {
5859         if(!isWasmInitialized) {
5860                 throw new Error("initializeWasm() must be awaited first!");
5861         }
5862         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
5863         return nativeResponseValue;
5864 }
5865         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5866 /* @internal */
5867 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: bigint): bigint {
5868         if(!isWasmInitialized) {
5869                 throw new Error("initializeWasm() must be awaited first!");
5870         }
5871         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
5872         return nativeResponseValue;
5873 }
5874         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5875 /* @internal */
5876 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: bigint): bigint {
5877         if(!isWasmInitialized) {
5878                 throw new Error("initializeWasm() must be awaited first!");
5879         }
5880         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
5881         return nativeResponseValue;
5882 }
5883         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5884 /* @internal */
5885 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: bigint): bigint {
5886         if(!isWasmInitialized) {
5887                 throw new Error("initializeWasm() must be awaited first!");
5888         }
5889         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
5890         return nativeResponseValue;
5891 }
5892         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5893 /* @internal */
5894 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: bigint): bigint {
5895         if(!isWasmInitialized) {
5896                 throw new Error("initializeWasm() must be awaited first!");
5897         }
5898         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
5899         return nativeResponseValue;
5900 }
5901 /* @internal */
5902 export class LDKSignOrCreationError {
5903         protected constructor() {}
5904 }
5905 /* @internal */
5906 export function LDKSignOrCreationError_ty_from_ptr(ptr: bigint): number {
5907         if(!isWasmInitialized) {
5908                 throw new Error("initializeWasm() must be awaited first!");
5909         }
5910         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
5911         return nativeResponseValue;
5912 }
5913 /* @internal */
5914 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: bigint): CreationError {
5915         if(!isWasmInitialized) {
5916                 throw new Error("initializeWasm() must be awaited first!");
5917         }
5918         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
5919         return nativeResponseValue;
5920 }
5921         // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5922 /* @internal */
5923 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: bigint): bigint {
5924         if(!isWasmInitialized) {
5925                 throw new Error("initializeWasm() must be awaited first!");
5926         }
5927         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
5928         return nativeResponseValue;
5929 }
5930         // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5931 /* @internal */
5932 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: bigint): bigint {
5933         if(!isWasmInitialized) {
5934                 throw new Error("initializeWasm() must be awaited first!");
5935         }
5936         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
5937         return nativeResponseValue;
5938 }
5939 /* @internal */
5940 export interface LDKFilter {
5941         register_tx (txid: number, script_pubkey: number): void;
5942         register_output (output: bigint): void;
5943 }
5944
5945 /* @internal */
5946 export function LDKFilter_new(impl: LDKFilter): [bigint, number] {
5947         if(!isWasmInitialized) {
5948                 throw new Error("initializeWasm() must be awaited first!");
5949         }
5950         var new_obj_idx = js_objs.length;
5951         for (var i = 0; i < js_objs.length; i++) {
5952                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5953         }
5954         js_objs[i] = new WeakRef(impl);
5955         return [wasm.TS_LDKFilter_new(i), i];
5956 }
5957         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
5958 /* @internal */
5959 export function Filter_register_tx(this_arg: bigint, txid: number, script_pubkey: number): void {
5960         if(!isWasmInitialized) {
5961                 throw new Error("initializeWasm() must be awaited first!");
5962         }
5963         const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
5964         // debug statements here
5965 }
5966         // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
5967 /* @internal */
5968 export function Filter_register_output(this_arg: bigint, output: bigint): void {
5969         if(!isWasmInitialized) {
5970                 throw new Error("initializeWasm() must be awaited first!");
5971         }
5972         const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
5973         // debug statements here
5974 }
5975 /* @internal */
5976 export class LDKCOption_FilterZ {
5977         protected constructor() {}
5978 }
5979 /* @internal */
5980 export function LDKCOption_FilterZ_ty_from_ptr(ptr: bigint): number {
5981         if(!isWasmInitialized) {
5982                 throw new Error("initializeWasm() must be awaited first!");
5983         }
5984         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
5985         return nativeResponseValue;
5986 }
5987 /* @internal */
5988 export function LDKCOption_FilterZ_Some_get_some(ptr: bigint): bigint {
5989         if(!isWasmInitialized) {
5990                 throw new Error("initializeWasm() must be awaited first!");
5991         }
5992         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
5993         return nativeResponseValue;
5994 }
5995         // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5996 /* @internal */
5997 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: bigint): bigint {
5998         if(!isWasmInitialized) {
5999                 throw new Error("initializeWasm() must be awaited first!");
6000         }
6001         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
6002         return nativeResponseValue;
6003 }
6004         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
6005 /* @internal */
6006 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: bigint): void {
6007         if(!isWasmInitialized) {
6008                 throw new Error("initializeWasm() must be awaited first!");
6009         }
6010         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
6011         // debug statements here
6012 }
6013 /* @internal */
6014 export interface LDKMessageSendEventsProvider {
6015         get_and_clear_pending_msg_events (): number;
6016 }
6017
6018 /* @internal */
6019 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): [bigint, number] {
6020         if(!isWasmInitialized) {
6021                 throw new Error("initializeWasm() must be awaited first!");
6022         }
6023         var new_obj_idx = js_objs.length;
6024         for (var i = 0; i < js_objs.length; i++) {
6025                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6026         }
6027         js_objs[i] = new WeakRef(impl);
6028         return [wasm.TS_LDKMessageSendEventsProvider_new(i), i];
6029 }
6030         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
6031 /* @internal */
6032 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: bigint): number {
6033         if(!isWasmInitialized) {
6034                 throw new Error("initializeWasm() must be awaited first!");
6035         }
6036         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
6037         return nativeResponseValue;
6038 }
6039 /* @internal */
6040 export interface LDKOnionMessageProvider {
6041         next_onion_message_for_peer (peer_node_id: number): bigint;
6042 }
6043
6044 /* @internal */
6045 export function LDKOnionMessageProvider_new(impl: LDKOnionMessageProvider): [bigint, number] {
6046         if(!isWasmInitialized) {
6047                 throw new Error("initializeWasm() must be awaited first!");
6048         }
6049         var new_obj_idx = js_objs.length;
6050         for (var i = 0; i < js_objs.length; i++) {
6051                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6052         }
6053         js_objs[i] = new WeakRef(impl);
6054         return [wasm.TS_LDKOnionMessageProvider_new(i), i];
6055 }
6056         // LDKOnionMessage OnionMessageProvider_next_onion_message_for_peer LDKOnionMessageProvider *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
6057 /* @internal */
6058 export function OnionMessageProvider_next_onion_message_for_peer(this_arg: bigint, peer_node_id: number): bigint {
6059         if(!isWasmInitialized) {
6060                 throw new Error("initializeWasm() must be awaited first!");
6061         }
6062         const nativeResponseValue = wasm.TS_OnionMessageProvider_next_onion_message_for_peer(this_arg, peer_node_id);
6063         return nativeResponseValue;
6064 }
6065 /* @internal */
6066 export interface LDKEventHandler {
6067         handle_event (event: bigint): void;
6068 }
6069
6070 /* @internal */
6071 export function LDKEventHandler_new(impl: LDKEventHandler): [bigint, number] {
6072         if(!isWasmInitialized) {
6073                 throw new Error("initializeWasm() must be awaited first!");
6074         }
6075         var new_obj_idx = js_objs.length;
6076         for (var i = 0; i < js_objs.length; i++) {
6077                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6078         }
6079         js_objs[i] = new WeakRef(impl);
6080         return [wasm.TS_LDKEventHandler_new(i), i];
6081 }
6082         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
6083 /* @internal */
6084 export function EventHandler_handle_event(this_arg: bigint, event: bigint): void {
6085         if(!isWasmInitialized) {
6086                 throw new Error("initializeWasm() must be awaited first!");
6087         }
6088         const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
6089         // debug statements here
6090 }
6091 /* @internal */
6092 export interface LDKEventsProvider {
6093         process_pending_events (handler: bigint): void;
6094 }
6095
6096 /* @internal */
6097 export function LDKEventsProvider_new(impl: LDKEventsProvider): [bigint, 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_LDKEventsProvider_new(i), i];
6107 }
6108         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
6109 /* @internal */
6110 export function EventsProvider_process_pending_events(this_arg: bigint, handler: bigint): void {
6111         if(!isWasmInitialized) {
6112                 throw new Error("initializeWasm() must be awaited first!");
6113         }
6114         const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
6115         // debug statements here
6116 }
6117 /* @internal */
6118 export interface LDKScore {
6119         channel_penalty_msat (short_channel_id: bigint, source: bigint, target: bigint, usage: bigint): bigint;
6120         payment_path_failed (path: number, short_channel_id: bigint): void;
6121         payment_path_successful (path: number): void;
6122         probe_failed (path: number, short_channel_id: bigint): void;
6123         probe_successful (path: number): void;
6124         write (): number;
6125 }
6126
6127 /* @internal */
6128 export function LDKScore_new(impl: LDKScore): [bigint, number] {
6129         if(!isWasmInitialized) {
6130                 throw new Error("initializeWasm() must be awaited first!");
6131         }
6132         var new_obj_idx = js_objs.length;
6133         for (var i = 0; i < js_objs.length; i++) {
6134                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6135         }
6136         js_objs[i] = new WeakRef(impl);
6137         return [wasm.TS_LDKScore_new(i), i];
6138 }
6139         // 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
6140 /* @internal */
6141 export function Score_channel_penalty_msat(this_arg: bigint, short_channel_id: bigint, source: bigint, target: bigint, usage: bigint): bigint {
6142         if(!isWasmInitialized) {
6143                 throw new Error("initializeWasm() must be awaited first!");
6144         }
6145         const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, source, target, usage);
6146         return nativeResponseValue;
6147 }
6148         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
6149 /* @internal */
6150 export function Score_payment_path_failed(this_arg: bigint, path: number, short_channel_id: bigint): void {
6151         if(!isWasmInitialized) {
6152                 throw new Error("initializeWasm() must be awaited first!");
6153         }
6154         const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
6155         // debug statements here
6156 }
6157         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
6158 /* @internal */
6159 export function Score_payment_path_successful(this_arg: bigint, path: number): void {
6160         if(!isWasmInitialized) {
6161                 throw new Error("initializeWasm() must be awaited first!");
6162         }
6163         const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
6164         // debug statements here
6165 }
6166         // void Score_probe_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
6167 /* @internal */
6168 export function Score_probe_failed(this_arg: bigint, path: number, short_channel_id: bigint): void {
6169         if(!isWasmInitialized) {
6170                 throw new Error("initializeWasm() must be awaited first!");
6171         }
6172         const nativeResponseValue = wasm.TS_Score_probe_failed(this_arg, path, short_channel_id);
6173         // debug statements here
6174 }
6175         // void Score_probe_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
6176 /* @internal */
6177 export function Score_probe_successful(this_arg: bigint, path: number): void {
6178         if(!isWasmInitialized) {
6179                 throw new Error("initializeWasm() must be awaited first!");
6180         }
6181         const nativeResponseValue = wasm.TS_Score_probe_successful(this_arg, path);
6182         // debug statements here
6183 }
6184         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
6185 /* @internal */
6186 export function Score_write(this_arg: bigint): number {
6187         if(!isWasmInitialized) {
6188                 throw new Error("initializeWasm() must be awaited first!");
6189         }
6190         const nativeResponseValue = wasm.TS_Score_write(this_arg);
6191         return nativeResponseValue;
6192 }
6193 /* @internal */
6194 export interface LDKLockableScore {
6195         lock (): bigint;
6196 }
6197
6198 /* @internal */
6199 export function LDKLockableScore_new(impl: LDKLockableScore): [bigint, number] {
6200         if(!isWasmInitialized) {
6201                 throw new Error("initializeWasm() must be awaited first!");
6202         }
6203         var new_obj_idx = js_objs.length;
6204         for (var i = 0; i < js_objs.length; i++) {
6205                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6206         }
6207         js_objs[i] = new WeakRef(impl);
6208         return [wasm.TS_LDKLockableScore_new(i), i];
6209 }
6210         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
6211 /* @internal */
6212 export function LockableScore_lock(this_arg: bigint): bigint {
6213         if(!isWasmInitialized) {
6214                 throw new Error("initializeWasm() must be awaited first!");
6215         }
6216         const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
6217         return nativeResponseValue;
6218 }
6219 /* @internal */
6220 export interface LDKWriteableScore {
6221         write (): number;
6222 }
6223
6224 /* @internal */
6225 export function LDKWriteableScore_new(impl: LDKWriteableScore, LockableScore: number): [bigint, number] {
6226         if(!isWasmInitialized) {
6227                 throw new Error("initializeWasm() must be awaited first!");
6228         }
6229         var new_obj_idx = js_objs.length;
6230         for (var i = 0; i < js_objs.length; i++) {
6231                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6232         }
6233         js_objs[i] = new WeakRef(impl);
6234         return [wasm.TS_LDKWriteableScore_new(i, LockableScore), i];
6235 }
6236         // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
6237 /* @internal */
6238 export function WriteableScore_write(this_arg: bigint): number {
6239         if(!isWasmInitialized) {
6240                 throw new Error("initializeWasm() must be awaited first!");
6241         }
6242         const nativeResponseValue = wasm.TS_WriteableScore_write(this_arg);
6243         return nativeResponseValue;
6244 }
6245 /* @internal */
6246 export interface LDKPersister {
6247         persist_manager (channel_manager: bigint): bigint;
6248         persist_graph (network_graph: bigint): bigint;
6249         persist_scorer (scorer: bigint): bigint;
6250 }
6251
6252 /* @internal */
6253 export function LDKPersister_new(impl: LDKPersister): [bigint, number] {
6254         if(!isWasmInitialized) {
6255                 throw new Error("initializeWasm() must be awaited first!");
6256         }
6257         var new_obj_idx = js_objs.length;
6258         for (var i = 0; i < js_objs.length; i++) {
6259                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6260         }
6261         js_objs[i] = new WeakRef(impl);
6262         return [wasm.TS_LDKPersister_new(i), i];
6263 }
6264         // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
6265 /* @internal */
6266 export function Persister_persist_manager(this_arg: bigint, channel_manager: bigint): bigint {
6267         if(!isWasmInitialized) {
6268                 throw new Error("initializeWasm() must be awaited first!");
6269         }
6270         const nativeResponseValue = wasm.TS_Persister_persist_manager(this_arg, channel_manager);
6271         return nativeResponseValue;
6272 }
6273         // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
6274 /* @internal */
6275 export function Persister_persist_graph(this_arg: bigint, network_graph: bigint): bigint {
6276         if(!isWasmInitialized) {
6277                 throw new Error("initializeWasm() must be awaited first!");
6278         }
6279         const nativeResponseValue = wasm.TS_Persister_persist_graph(this_arg, network_graph);
6280         return nativeResponseValue;
6281 }
6282         // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
6283 /* @internal */
6284 export function Persister_persist_scorer(this_arg: bigint, scorer: bigint): bigint {
6285         if(!isWasmInitialized) {
6286                 throw new Error("initializeWasm() must be awaited first!");
6287         }
6288         const nativeResponseValue = wasm.TS_Persister_persist_scorer(this_arg, scorer);
6289         return nativeResponseValue;
6290 }
6291 /* @internal */
6292 export interface LDKFutureCallback {
6293         call (): void;
6294 }
6295
6296 /* @internal */
6297 export function LDKFutureCallback_new(impl: LDKFutureCallback): [bigint, number] {
6298         if(!isWasmInitialized) {
6299                 throw new Error("initializeWasm() must be awaited first!");
6300         }
6301         var new_obj_idx = js_objs.length;
6302         for (var i = 0; i < js_objs.length; i++) {
6303                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6304         }
6305         js_objs[i] = new WeakRef(impl);
6306         return [wasm.TS_LDKFutureCallback_new(i), i];
6307 }
6308         // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
6309 /* @internal */
6310 export function FutureCallback_call(this_arg: bigint): void {
6311         if(!isWasmInitialized) {
6312                 throw new Error("initializeWasm() must be awaited first!");
6313         }
6314         const nativeResponseValue = wasm.TS_FutureCallback_call(this_arg);
6315         // debug statements here
6316 }
6317 /* @internal */
6318 export interface LDKListen {
6319         filtered_block_connected (header: number, txdata: number, height: number): void;
6320         block_connected (block: number, height: number): void;
6321         block_disconnected (header: number, height: number): void;
6322 }
6323
6324 /* @internal */
6325 export function LDKListen_new(impl: LDKListen): [bigint, number] {
6326         if(!isWasmInitialized) {
6327                 throw new Error("initializeWasm() must be awaited first!");
6328         }
6329         var new_obj_idx = js_objs.length;
6330         for (var i = 0; i < js_objs.length; i++) {
6331                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6332         }
6333         js_objs[i] = new WeakRef(impl);
6334         return [wasm.TS_LDKListen_new(i), i];
6335 }
6336         // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
6337 /* @internal */
6338 export function Listen_filtered_block_connected(this_arg: bigint, header: number, txdata: number, height: number): void {
6339         if(!isWasmInitialized) {
6340                 throw new Error("initializeWasm() must be awaited first!");
6341         }
6342         const nativeResponseValue = wasm.TS_Listen_filtered_block_connected(this_arg, header, txdata, height);
6343         // debug statements here
6344 }
6345         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
6346 /* @internal */
6347 export function Listen_block_connected(this_arg: bigint, block: number, height: number): void {
6348         if(!isWasmInitialized) {
6349                 throw new Error("initializeWasm() must be awaited first!");
6350         }
6351         const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
6352         // debug statements here
6353 }
6354         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
6355 /* @internal */
6356 export function Listen_block_disconnected(this_arg: bigint, header: number, height: number): void {
6357         if(!isWasmInitialized) {
6358                 throw new Error("initializeWasm() must be awaited first!");
6359         }
6360         const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
6361         // debug statements here
6362 }
6363 /* @internal */
6364 export interface LDKConfirm {
6365         transactions_confirmed (header: number, txdata: number, height: number): void;
6366         transaction_unconfirmed (txid: number): void;
6367         best_block_updated (header: number, height: number): void;
6368         get_relevant_txids (): number;
6369 }
6370
6371 /* @internal */
6372 export function LDKConfirm_new(impl: LDKConfirm): [bigint, number] {
6373         if(!isWasmInitialized) {
6374                 throw new Error("initializeWasm() must be awaited first!");
6375         }
6376         var new_obj_idx = js_objs.length;
6377         for (var i = 0; i < js_objs.length; i++) {
6378                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6379         }
6380         js_objs[i] = new WeakRef(impl);
6381         return [wasm.TS_LDKConfirm_new(i), i];
6382 }
6383         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
6384 /* @internal */
6385 export function Confirm_transactions_confirmed(this_arg: bigint, header: number, txdata: number, height: number): void {
6386         if(!isWasmInitialized) {
6387                 throw new Error("initializeWasm() must be awaited first!");
6388         }
6389         const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
6390         // debug statements here
6391 }
6392         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
6393 /* @internal */
6394 export function Confirm_transaction_unconfirmed(this_arg: bigint, txid: number): void {
6395         if(!isWasmInitialized) {
6396                 throw new Error("initializeWasm() must be awaited first!");
6397         }
6398         const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
6399         // debug statements here
6400 }
6401         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
6402 /* @internal */
6403 export function Confirm_best_block_updated(this_arg: bigint, header: number, height: number): void {
6404         if(!isWasmInitialized) {
6405                 throw new Error("initializeWasm() must be awaited first!");
6406         }
6407         const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
6408         // debug statements here
6409 }
6410         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
6411 /* @internal */
6412 export function Confirm_get_relevant_txids(this_arg: bigint): number {
6413         if(!isWasmInitialized) {
6414                 throw new Error("initializeWasm() must be awaited first!");
6415         }
6416         const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
6417         return nativeResponseValue;
6418 }
6419 /* @internal */
6420 export interface LDKPersist {
6421         persist_new_channel (channel_id: bigint, data: bigint, update_id: bigint): bigint;
6422         update_persisted_channel (channel_id: bigint, update: bigint, data: bigint, update_id: bigint): bigint;
6423 }
6424
6425 /* @internal */
6426 export function LDKPersist_new(impl: LDKPersist): [bigint, number] {
6427         if(!isWasmInitialized) {
6428                 throw new Error("initializeWasm() must be awaited first!");
6429         }
6430         var new_obj_idx = js_objs.length;
6431         for (var i = 0; i < js_objs.length; i++) {
6432                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6433         }
6434         js_objs[i] = new WeakRef(impl);
6435         return [wasm.TS_LDKPersist_new(i), i];
6436 }
6437         // 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
6438 /* @internal */
6439 export function Persist_persist_new_channel(this_arg: bigint, channel_id: bigint, data: bigint, update_id: bigint): bigint {
6440         if(!isWasmInitialized) {
6441                 throw new Error("initializeWasm() must be awaited first!");
6442         }
6443         const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
6444         return nativeResponseValue;
6445 }
6446         // 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
6447 /* @internal */
6448 export function Persist_update_persisted_channel(this_arg: bigint, channel_id: bigint, update: bigint, data: bigint, update_id: bigint): bigint {
6449         if(!isWasmInitialized) {
6450                 throw new Error("initializeWasm() must be awaited first!");
6451         }
6452         const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
6453         return nativeResponseValue;
6454 }
6455 /* @internal */
6456 export interface LDKChannelMessageHandler {
6457         handle_open_channel (their_node_id: number, their_features: bigint, msg: bigint): void;
6458         handle_accept_channel (their_node_id: number, their_features: bigint, msg: bigint): void;
6459         handle_funding_created (their_node_id: number, msg: bigint): void;
6460         handle_funding_signed (their_node_id: number, msg: bigint): void;
6461         handle_channel_ready (their_node_id: number, msg: bigint): void;
6462         handle_shutdown (their_node_id: number, their_features: bigint, msg: bigint): void;
6463         handle_closing_signed (their_node_id: number, msg: bigint): void;
6464         handle_update_add_htlc (their_node_id: number, msg: bigint): void;
6465         handle_update_fulfill_htlc (their_node_id: number, msg: bigint): void;
6466         handle_update_fail_htlc (their_node_id: number, msg: bigint): void;
6467         handle_update_fail_malformed_htlc (their_node_id: number, msg: bigint): void;
6468         handle_commitment_signed (their_node_id: number, msg: bigint): void;
6469         handle_revoke_and_ack (their_node_id: number, msg: bigint): void;
6470         handle_update_fee (their_node_id: number, msg: bigint): void;
6471         handle_announcement_signatures (their_node_id: number, msg: bigint): void;
6472         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
6473         peer_connected (their_node_id: number, msg: bigint): void;
6474         handle_channel_reestablish (their_node_id: number, msg: bigint): void;
6475         handle_channel_update (their_node_id: number, msg: bigint): void;
6476         handle_error (their_node_id: number, msg: bigint): void;
6477         provided_node_features (): bigint;
6478         provided_init_features (their_node_id: number): bigint;
6479 }
6480
6481 /* @internal */
6482 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: number): [bigint, number] {
6483         if(!isWasmInitialized) {
6484                 throw new Error("initializeWasm() must be awaited first!");
6485         }
6486         var new_obj_idx = js_objs.length;
6487         for (var i = 0; i < js_objs.length; i++) {
6488                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6489         }
6490         js_objs[i] = new WeakRef(impl);
6491         return [wasm.TS_LDKChannelMessageHandler_new(i, MessageSendEventsProvider), i];
6492 }
6493         // 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
6494 /* @internal */
6495 export function ChannelMessageHandler_handle_open_channel(this_arg: bigint, their_node_id: number, their_features: bigint, msg: bigint): void {
6496         if(!isWasmInitialized) {
6497                 throw new Error("initializeWasm() must be awaited first!");
6498         }
6499         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, their_features, msg);
6500         // debug statements here
6501 }
6502         // 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
6503 /* @internal */
6504 export function ChannelMessageHandler_handle_accept_channel(this_arg: bigint, their_node_id: number, their_features: bigint, msg: bigint): void {
6505         if(!isWasmInitialized) {
6506                 throw new Error("initializeWasm() must be awaited first!");
6507         }
6508         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, their_features, msg);
6509         // debug statements here
6510 }
6511         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
6512 /* @internal */
6513 export function ChannelMessageHandler_handle_funding_created(this_arg: bigint, their_node_id: number, msg: bigint): void {
6514         if(!isWasmInitialized) {
6515                 throw new Error("initializeWasm() must be awaited first!");
6516         }
6517         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
6518         // debug statements here
6519 }
6520         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
6521 /* @internal */
6522 export function ChannelMessageHandler_handle_funding_signed(this_arg: bigint, their_node_id: number, msg: bigint): void {
6523         if(!isWasmInitialized) {
6524                 throw new Error("initializeWasm() must be awaited first!");
6525         }
6526         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
6527         // debug statements here
6528 }
6529         // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
6530 /* @internal */
6531 export function ChannelMessageHandler_handle_channel_ready(this_arg: bigint, their_node_id: number, msg: bigint): void {
6532         if(!isWasmInitialized) {
6533                 throw new Error("initializeWasm() must be awaited first!");
6534         }
6535         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_ready(this_arg, their_node_id, msg);
6536         // debug statements here
6537 }
6538         // 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
6539 /* @internal */
6540 export function ChannelMessageHandler_handle_shutdown(this_arg: bigint, their_node_id: number, their_features: bigint, msg: bigint): void {
6541         if(!isWasmInitialized) {
6542                 throw new Error("initializeWasm() must be awaited first!");
6543         }
6544         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, their_features, msg);
6545         // debug statements here
6546 }
6547         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
6548 /* @internal */
6549 export function ChannelMessageHandler_handle_closing_signed(this_arg: bigint, their_node_id: number, msg: bigint): void {
6550         if(!isWasmInitialized) {
6551                 throw new Error("initializeWasm() must be awaited first!");
6552         }
6553         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
6554         // debug statements here
6555 }
6556         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
6557 /* @internal */
6558 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
6559         if(!isWasmInitialized) {
6560                 throw new Error("initializeWasm() must be awaited first!");
6561         }
6562         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
6563         // debug statements here
6564 }
6565         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
6566 /* @internal */
6567 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
6568         if(!isWasmInitialized) {
6569                 throw new Error("initializeWasm() must be awaited first!");
6570         }
6571         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
6572         // debug statements here
6573 }
6574         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
6575 /* @internal */
6576 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
6577         if(!isWasmInitialized) {
6578                 throw new Error("initializeWasm() must be awaited first!");
6579         }
6580         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
6581         // debug statements here
6582 }
6583         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
6584 /* @internal */
6585 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
6586         if(!isWasmInitialized) {
6587                 throw new Error("initializeWasm() must be awaited first!");
6588         }
6589         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
6590         // debug statements here
6591 }
6592         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
6593 /* @internal */
6594 export function ChannelMessageHandler_handle_commitment_signed(this_arg: bigint, their_node_id: number, msg: bigint): void {
6595         if(!isWasmInitialized) {
6596                 throw new Error("initializeWasm() must be awaited first!");
6597         }
6598         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
6599         // debug statements here
6600 }
6601         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
6602 /* @internal */
6603 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: bigint, their_node_id: number, msg: bigint): void {
6604         if(!isWasmInitialized) {
6605                 throw new Error("initializeWasm() must be awaited first!");
6606         }
6607         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
6608         // debug statements here
6609 }
6610         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
6611 /* @internal */
6612 export function ChannelMessageHandler_handle_update_fee(this_arg: bigint, their_node_id: number, msg: bigint): void {
6613         if(!isWasmInitialized) {
6614                 throw new Error("initializeWasm() must be awaited first!");
6615         }
6616         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
6617         // debug statements here
6618 }
6619         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
6620 /* @internal */
6621 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: bigint, their_node_id: number, msg: bigint): void {
6622         if(!isWasmInitialized) {
6623                 throw new Error("initializeWasm() must be awaited first!");
6624         }
6625         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
6626         // debug statements here
6627 }
6628         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
6629 /* @internal */
6630 export function ChannelMessageHandler_peer_disconnected(this_arg: bigint, their_node_id: number, no_connection_possible: boolean): void {
6631         if(!isWasmInitialized) {
6632                 throw new Error("initializeWasm() must be awaited first!");
6633         }
6634         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
6635         // debug statements here
6636 }
6637         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
6638 /* @internal */
6639 export function ChannelMessageHandler_peer_connected(this_arg: bigint, their_node_id: number, msg: bigint): void {
6640         if(!isWasmInitialized) {
6641                 throw new Error("initializeWasm() must be awaited first!");
6642         }
6643         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg);
6644         // debug statements here
6645 }
6646         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
6647 /* @internal */
6648 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: bigint, their_node_id: number, msg: bigint): void {
6649         if(!isWasmInitialized) {
6650                 throw new Error("initializeWasm() must be awaited first!");
6651         }
6652         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
6653         // debug statements here
6654 }
6655         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
6656 /* @internal */
6657 export function ChannelMessageHandler_handle_channel_update(this_arg: bigint, their_node_id: number, msg: bigint): void {
6658         if(!isWasmInitialized) {
6659                 throw new Error("initializeWasm() must be awaited first!");
6660         }
6661         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
6662         // debug statements here
6663 }
6664         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
6665 /* @internal */
6666 export function ChannelMessageHandler_handle_error(this_arg: bigint, their_node_id: number, msg: bigint): void {
6667         if(!isWasmInitialized) {
6668                 throw new Error("initializeWasm() must be awaited first!");
6669         }
6670         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
6671         // debug statements here
6672 }
6673         // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
6674 /* @internal */
6675 export function ChannelMessageHandler_provided_node_features(this_arg: bigint): bigint {
6676         if(!isWasmInitialized) {
6677                 throw new Error("initializeWasm() must be awaited first!");
6678         }
6679         const nativeResponseValue = wasm.TS_ChannelMessageHandler_provided_node_features(this_arg);
6680         return nativeResponseValue;
6681 }
6682         // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
6683 /* @internal */
6684 export function ChannelMessageHandler_provided_init_features(this_arg: bigint, their_node_id: number): bigint {
6685         if(!isWasmInitialized) {
6686                 throw new Error("initializeWasm() must be awaited first!");
6687         }
6688         const nativeResponseValue = wasm.TS_ChannelMessageHandler_provided_init_features(this_arg, their_node_id);
6689         return nativeResponseValue;
6690 }
6691 /* @internal */
6692 export interface LDKRoutingMessageHandler {
6693         handle_node_announcement (msg: bigint): bigint;
6694         handle_channel_announcement (msg: bigint): bigint;
6695         handle_channel_update (msg: bigint): bigint;
6696         get_next_channel_announcement (starting_point: bigint): bigint;
6697         get_next_node_announcement (starting_point: number): bigint;
6698         peer_connected (their_node_id: number, init: bigint): void;
6699         handle_reply_channel_range (their_node_id: number, msg: bigint): bigint;
6700         handle_reply_short_channel_ids_end (their_node_id: number, msg: bigint): bigint;
6701         handle_query_channel_range (their_node_id: number, msg: bigint): bigint;
6702         handle_query_short_channel_ids (their_node_id: number, msg: bigint): bigint;
6703         provided_node_features (): bigint;
6704         provided_init_features (their_node_id: number): bigint;
6705 }
6706
6707 /* @internal */
6708 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: number): [bigint, number] {
6709         if(!isWasmInitialized) {
6710                 throw new Error("initializeWasm() must be awaited first!");
6711         }
6712         var new_obj_idx = js_objs.length;
6713         for (var i = 0; i < js_objs.length; i++) {
6714                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6715         }
6716         js_objs[i] = new WeakRef(impl);
6717         return [wasm.TS_LDKRoutingMessageHandler_new(i, MessageSendEventsProvider), i];
6718 }
6719         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
6720 /* @internal */
6721 export function RoutingMessageHandler_handle_node_announcement(this_arg: bigint, msg: bigint): bigint {
6722         if(!isWasmInitialized) {
6723                 throw new Error("initializeWasm() must be awaited first!");
6724         }
6725         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
6726         return nativeResponseValue;
6727 }
6728         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
6729 /* @internal */
6730 export function RoutingMessageHandler_handle_channel_announcement(this_arg: bigint, msg: bigint): bigint {
6731         if(!isWasmInitialized) {
6732                 throw new Error("initializeWasm() must be awaited first!");
6733         }
6734         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
6735         return nativeResponseValue;
6736 }
6737         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
6738 /* @internal */
6739 export function RoutingMessageHandler_handle_channel_update(this_arg: bigint, msg: bigint): bigint {
6740         if(!isWasmInitialized) {
6741                 throw new Error("initializeWasm() must be awaited first!");
6742         }
6743         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
6744         return nativeResponseValue;
6745 }
6746         // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
6747 /* @internal */
6748 export function RoutingMessageHandler_get_next_channel_announcement(this_arg: bigint, starting_point: bigint): bigint {
6749         if(!isWasmInitialized) {
6750                 throw new Error("initializeWasm() must be awaited first!");
6751         }
6752         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcement(this_arg, starting_point);
6753         return nativeResponseValue;
6754 }
6755         // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point
6756 /* @internal */
6757 export function RoutingMessageHandler_get_next_node_announcement(this_arg: bigint, starting_point: number): bigint {
6758         if(!isWasmInitialized) {
6759                 throw new Error("initializeWasm() must be awaited first!");
6760         }
6761         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcement(this_arg, starting_point);
6762         return nativeResponseValue;
6763 }
6764         // void RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
6765 /* @internal */
6766 export function RoutingMessageHandler_peer_connected(this_arg: bigint, their_node_id: number, init: bigint): void {
6767         if(!isWasmInitialized) {
6768                 throw new Error("initializeWasm() must be awaited first!");
6769         }
6770         const nativeResponseValue = wasm.TS_RoutingMessageHandler_peer_connected(this_arg, their_node_id, init);
6771         // debug statements here
6772 }
6773         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
6774 /* @internal */
6775 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
6776         if(!isWasmInitialized) {
6777                 throw new Error("initializeWasm() must be awaited first!");
6778         }
6779         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
6780         return nativeResponseValue;
6781 }
6782         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
6783 /* @internal */
6784 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
6785         if(!isWasmInitialized) {
6786                 throw new Error("initializeWasm() must be awaited first!");
6787         }
6788         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
6789         return nativeResponseValue;
6790 }
6791         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
6792 /* @internal */
6793 export function RoutingMessageHandler_handle_query_channel_range(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
6794         if(!isWasmInitialized) {
6795                 throw new Error("initializeWasm() must be awaited first!");
6796         }
6797         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
6798         return nativeResponseValue;
6799 }
6800         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
6801 /* @internal */
6802 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
6803         if(!isWasmInitialized) {
6804                 throw new Error("initializeWasm() must be awaited first!");
6805         }
6806         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
6807         return nativeResponseValue;
6808 }
6809         // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
6810 /* @internal */
6811 export function RoutingMessageHandler_provided_node_features(this_arg: bigint): bigint {
6812         if(!isWasmInitialized) {
6813                 throw new Error("initializeWasm() must be awaited first!");
6814         }
6815         const nativeResponseValue = wasm.TS_RoutingMessageHandler_provided_node_features(this_arg);
6816         return nativeResponseValue;
6817 }
6818         // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
6819 /* @internal */
6820 export function RoutingMessageHandler_provided_init_features(this_arg: bigint, their_node_id: number): bigint {
6821         if(!isWasmInitialized) {
6822                 throw new Error("initializeWasm() must be awaited first!");
6823         }
6824         const nativeResponseValue = wasm.TS_RoutingMessageHandler_provided_init_features(this_arg, their_node_id);
6825         return nativeResponseValue;
6826 }
6827 /* @internal */
6828 export interface LDKOnionMessageHandler {
6829         handle_onion_message (peer_node_id: number, msg: bigint): void;
6830         peer_connected (their_node_id: number, init: bigint): void;
6831         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
6832         provided_node_features (): bigint;
6833         provided_init_features (their_node_id: number): bigint;
6834 }
6835
6836 /* @internal */
6837 export function LDKOnionMessageHandler_new(impl: LDKOnionMessageHandler, OnionMessageProvider: number): [bigint, number] {
6838         if(!isWasmInitialized) {
6839                 throw new Error("initializeWasm() must be awaited first!");
6840         }
6841         var new_obj_idx = js_objs.length;
6842         for (var i = 0; i < js_objs.length; i++) {
6843                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6844         }
6845         js_objs[i] = new WeakRef(impl);
6846         return [wasm.TS_LDKOnionMessageHandler_new(i, OnionMessageProvider), i];
6847 }
6848         // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
6849 /* @internal */
6850 export function OnionMessageHandler_handle_onion_message(this_arg: bigint, peer_node_id: number, msg: bigint): void {
6851         if(!isWasmInitialized) {
6852                 throw new Error("initializeWasm() must be awaited first!");
6853         }
6854         const nativeResponseValue = wasm.TS_OnionMessageHandler_handle_onion_message(this_arg, peer_node_id, msg);
6855         // debug statements here
6856 }
6857         // void OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
6858 /* @internal */
6859 export function OnionMessageHandler_peer_connected(this_arg: bigint, their_node_id: number, init: bigint): void {
6860         if(!isWasmInitialized) {
6861                 throw new Error("initializeWasm() must be awaited first!");
6862         }
6863         const nativeResponseValue = wasm.TS_OnionMessageHandler_peer_connected(this_arg, their_node_id, init);
6864         // debug statements here
6865 }
6866         // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
6867 /* @internal */
6868 export function OnionMessageHandler_peer_disconnected(this_arg: bigint, their_node_id: number, no_connection_possible: boolean): void {
6869         if(!isWasmInitialized) {
6870                 throw new Error("initializeWasm() must be awaited first!");
6871         }
6872         const nativeResponseValue = wasm.TS_OnionMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
6873         // debug statements here
6874 }
6875         // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
6876 /* @internal */
6877 export function OnionMessageHandler_provided_node_features(this_arg: bigint): bigint {
6878         if(!isWasmInitialized) {
6879                 throw new Error("initializeWasm() must be awaited first!");
6880         }
6881         const nativeResponseValue = wasm.TS_OnionMessageHandler_provided_node_features(this_arg);
6882         return nativeResponseValue;
6883 }
6884         // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
6885 /* @internal */
6886 export function OnionMessageHandler_provided_init_features(this_arg: bigint, their_node_id: number): bigint {
6887         if(!isWasmInitialized) {
6888                 throw new Error("initializeWasm() must be awaited first!");
6889         }
6890         const nativeResponseValue = wasm.TS_OnionMessageHandler_provided_init_features(this_arg, their_node_id);
6891         return nativeResponseValue;
6892 }
6893 /* @internal */
6894 export interface LDKCustomMessageReader {
6895         read (message_type: number, buffer: number): bigint;
6896 }
6897
6898 /* @internal */
6899 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): [bigint, number] {
6900         if(!isWasmInitialized) {
6901                 throw new Error("initializeWasm() must be awaited first!");
6902         }
6903         var new_obj_idx = js_objs.length;
6904         for (var i = 0; i < js_objs.length; i++) {
6905                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6906         }
6907         js_objs[i] = new WeakRef(impl);
6908         return [wasm.TS_LDKCustomMessageReader_new(i), i];
6909 }
6910         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
6911 /* @internal */
6912 export function CustomMessageReader_read(this_arg: bigint, message_type: number, buffer: number): bigint {
6913         if(!isWasmInitialized) {
6914                 throw new Error("initializeWasm() must be awaited first!");
6915         }
6916         const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
6917         return nativeResponseValue;
6918 }
6919 /* @internal */
6920 export interface LDKCustomMessageHandler {
6921         handle_custom_message (msg: bigint, sender_node_id: number): bigint;
6922         get_and_clear_pending_msg (): number;
6923 }
6924
6925 /* @internal */
6926 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: number): [bigint, number] {
6927         if(!isWasmInitialized) {
6928                 throw new Error("initializeWasm() must be awaited first!");
6929         }
6930         var new_obj_idx = js_objs.length;
6931         for (var i = 0; i < js_objs.length; i++) {
6932                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6933         }
6934         js_objs[i] = new WeakRef(impl);
6935         return [wasm.TS_LDKCustomMessageHandler_new(i, CustomMessageReader), i];
6936 }
6937         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
6938 /* @internal */
6939 export function CustomMessageHandler_handle_custom_message(this_arg: bigint, msg: bigint, sender_node_id: number): bigint {
6940         if(!isWasmInitialized) {
6941                 throw new Error("initializeWasm() must be awaited first!");
6942         }
6943         const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
6944         return nativeResponseValue;
6945 }
6946         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
6947 /* @internal */
6948 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: bigint): number {
6949         if(!isWasmInitialized) {
6950                 throw new Error("initializeWasm() must be awaited first!");
6951         }
6952         const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
6953         return nativeResponseValue;
6954 }
6955 /* @internal */
6956 export interface LDKSocketDescriptor {
6957         send_data (data: number, resume_read: boolean): number;
6958         disconnect_socket (): void;
6959         eq (other_arg: bigint): boolean;
6960         hash (): bigint;
6961 }
6962
6963 /* @internal */
6964 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): [bigint, number] {
6965         if(!isWasmInitialized) {
6966                 throw new Error("initializeWasm() must be awaited first!");
6967         }
6968         var new_obj_idx = js_objs.length;
6969         for (var i = 0; i < js_objs.length; i++) {
6970                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6971         }
6972         js_objs[i] = new WeakRef(impl);
6973         return [wasm.TS_LDKSocketDescriptor_new(i), i];
6974 }
6975         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
6976 /* @internal */
6977 export function SocketDescriptor_send_data(this_arg: bigint, data: number, resume_read: boolean): number {
6978         if(!isWasmInitialized) {
6979                 throw new Error("initializeWasm() must be awaited first!");
6980         }
6981         const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
6982         return nativeResponseValue;
6983 }
6984         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
6985 /* @internal */
6986 export function SocketDescriptor_disconnect_socket(this_arg: bigint): void {
6987         if(!isWasmInitialized) {
6988                 throw new Error("initializeWasm() must be awaited first!");
6989         }
6990         const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
6991         // debug statements here
6992 }
6993         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
6994 /* @internal */
6995 export function SocketDescriptor_hash(this_arg: bigint): bigint {
6996         if(!isWasmInitialized) {
6997                 throw new Error("initializeWasm() must be awaited first!");
6998         }
6999         const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
7000         return nativeResponseValue;
7001 }
7002 /* @internal */
7003 export class LDKEffectiveCapacity {
7004         protected constructor() {}
7005 }
7006 /* @internal */
7007 export function LDKEffectiveCapacity_ty_from_ptr(ptr: bigint): number {
7008         if(!isWasmInitialized) {
7009                 throw new Error("initializeWasm() must be awaited first!");
7010         }
7011         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
7012         return nativeResponseValue;
7013 }
7014 /* @internal */
7015 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: bigint): bigint {
7016         if(!isWasmInitialized) {
7017                 throw new Error("initializeWasm() must be awaited first!");
7018         }
7019         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
7020         return nativeResponseValue;
7021 }
7022 /* @internal */
7023 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: bigint): bigint {
7024         if(!isWasmInitialized) {
7025                 throw new Error("initializeWasm() must be awaited first!");
7026         }
7027         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
7028         return nativeResponseValue;
7029 }
7030 /* @internal */
7031 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: bigint): bigint {
7032         if(!isWasmInitialized) {
7033                 throw new Error("initializeWasm() must be awaited first!");
7034         }
7035         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
7036         return nativeResponseValue;
7037 }
7038 /* @internal */
7039 export function LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr: bigint): bigint {
7040         if(!isWasmInitialized) {
7041                 throw new Error("initializeWasm() must be awaited first!");
7042         }
7043         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr);
7044         return nativeResponseValue;
7045 }
7046 /* @internal */
7047 export class LDKDestination {
7048         protected constructor() {}
7049 }
7050 /* @internal */
7051 export function LDKDestination_ty_from_ptr(ptr: bigint): number {
7052         if(!isWasmInitialized) {
7053                 throw new Error("initializeWasm() must be awaited first!");
7054         }
7055         const nativeResponseValue = wasm.TS_LDKDestination_ty_from_ptr(ptr);
7056         return nativeResponseValue;
7057 }
7058 /* @internal */
7059 export function LDKDestination_Node_get_node(ptr: bigint): number {
7060         if(!isWasmInitialized) {
7061                 throw new Error("initializeWasm() must be awaited first!");
7062         }
7063         const nativeResponseValue = wasm.TS_LDKDestination_Node_get_node(ptr);
7064         return nativeResponseValue;
7065 }
7066 /* @internal */
7067 export function LDKDestination_BlindedRoute_get_blinded_route(ptr: bigint): bigint {
7068         if(!isWasmInitialized) {
7069                 throw new Error("initializeWasm() must be awaited first!");
7070         }
7071         const nativeResponseValue = wasm.TS_LDKDestination_BlindedRoute_get_blinded_route(ptr);
7072         return nativeResponseValue;
7073 }
7074 /* @internal */
7075 export class LDKFallback {
7076         protected constructor() {}
7077 }
7078 /* @internal */
7079 export function LDKFallback_ty_from_ptr(ptr: bigint): number {
7080         if(!isWasmInitialized) {
7081                 throw new Error("initializeWasm() must be awaited first!");
7082         }
7083         const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
7084         return nativeResponseValue;
7085 }
7086 /* @internal */
7087 export function LDKFallback_SegWitProgram_get_version(ptr: bigint): number {
7088         if(!isWasmInitialized) {
7089                 throw new Error("initializeWasm() must be awaited first!");
7090         }
7091         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
7092         return nativeResponseValue;
7093 }
7094 /* @internal */
7095 export function LDKFallback_SegWitProgram_get_program(ptr: bigint): number {
7096         if(!isWasmInitialized) {
7097                 throw new Error("initializeWasm() must be awaited first!");
7098         }
7099         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
7100         return nativeResponseValue;
7101 }
7102 /* @internal */
7103 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: bigint): number {
7104         if(!isWasmInitialized) {
7105                 throw new Error("initializeWasm() must be awaited first!");
7106         }
7107         const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
7108         return nativeResponseValue;
7109 }
7110 /* @internal */
7111 export function LDKFallback_ScriptHash_get_script_hash(ptr: bigint): number {
7112         if(!isWasmInitialized) {
7113                 throw new Error("initializeWasm() must be awaited first!");
7114         }
7115         const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
7116         return nativeResponseValue;
7117 }
7118 /* @internal */
7119 export interface LDKPayer {
7120         node_id (): number;
7121         first_hops (): number;
7122         send_payment (route: bigint, payment_hash: number, payment_secret: number): bigint;
7123         send_spontaneous_payment (route: bigint, payment_preimage: number): bigint;
7124         retry_payment (route: bigint, payment_id: number): bigint;
7125         abandon_payment (payment_id: number): void;
7126 }
7127
7128 /* @internal */
7129 export function LDKPayer_new(impl: LDKPayer): [bigint, number] {
7130         if(!isWasmInitialized) {
7131                 throw new Error("initializeWasm() must be awaited first!");
7132         }
7133         var new_obj_idx = js_objs.length;
7134         for (var i = 0; i < js_objs.length; i++) {
7135                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7136         }
7137         js_objs[i] = new WeakRef(impl);
7138         return [wasm.TS_LDKPayer_new(i), i];
7139 }
7140         // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
7141 /* @internal */
7142 export function Payer_node_id(this_arg: bigint): number {
7143         if(!isWasmInitialized) {
7144                 throw new Error("initializeWasm() must be awaited first!");
7145         }
7146         const nativeResponseValue = wasm.TS_Payer_node_id(this_arg);
7147         return nativeResponseValue;
7148 }
7149         // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
7150 /* @internal */
7151 export function Payer_first_hops(this_arg: bigint): number {
7152         if(!isWasmInitialized) {
7153                 throw new Error("initializeWasm() must be awaited first!");
7154         }
7155         const nativeResponseValue = wasm.TS_Payer_first_hops(this_arg);
7156         return nativeResponseValue;
7157 }
7158         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
7159 /* @internal */
7160 export function Payer_send_payment(this_arg: bigint, route: bigint, payment_hash: number, payment_secret: number): bigint {
7161         if(!isWasmInitialized) {
7162                 throw new Error("initializeWasm() must be awaited first!");
7163         }
7164         const nativeResponseValue = wasm.TS_Payer_send_payment(this_arg, route, payment_hash, payment_secret);
7165         return nativeResponseValue;
7166 }
7167         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
7168 /* @internal */
7169 export function Payer_send_spontaneous_payment(this_arg: bigint, route: bigint, payment_preimage: number): bigint {
7170         if(!isWasmInitialized) {
7171                 throw new Error("initializeWasm() must be awaited first!");
7172         }
7173         const nativeResponseValue = wasm.TS_Payer_send_spontaneous_payment(this_arg, route, payment_preimage);
7174         return nativeResponseValue;
7175 }
7176         // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
7177 /* @internal */
7178 export function Payer_retry_payment(this_arg: bigint, route: bigint, payment_id: number): bigint {
7179         if(!isWasmInitialized) {
7180                 throw new Error("initializeWasm() must be awaited first!");
7181         }
7182         const nativeResponseValue = wasm.TS_Payer_retry_payment(this_arg, route, payment_id);
7183         return nativeResponseValue;
7184 }
7185         // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
7186 /* @internal */
7187 export function Payer_abandon_payment(this_arg: bigint, payment_id: number): void {
7188         if(!isWasmInitialized) {
7189                 throw new Error("initializeWasm() must be awaited first!");
7190         }
7191         const nativeResponseValue = wasm.TS_Payer_abandon_payment(this_arg, payment_id);
7192         // debug statements here
7193 }
7194 /* @internal */
7195 export interface LDKRouter {
7196         find_route (payer: number, route_params: bigint, payment_hash: number, first_hops: number, inflight_htlcs: bigint): bigint;
7197         notify_payment_path_failed (path: number, short_channel_id: bigint): void;
7198         notify_payment_path_successful (path: number): void;
7199         notify_payment_probe_successful (path: number): void;
7200         notify_payment_probe_failed (path: number, short_channel_id: bigint): void;
7201 }
7202
7203 /* @internal */
7204 export function LDKRouter_new(impl: LDKRouter): [bigint, number] {
7205         if(!isWasmInitialized) {
7206                 throw new Error("initializeWasm() must be awaited first!");
7207         }
7208         var new_obj_idx = js_objs.length;
7209         for (var i = 0; i < js_objs.length; i++) {
7210                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7211         }
7212         js_objs[i] = new WeakRef(impl);
7213         return [wasm.TS_LDKRouter_new(i), i];
7214 }
7215         // 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, struct LDKInFlightHtlcs inflight_htlcs
7216 /* @internal */
7217 export function Router_find_route(this_arg: bigint, payer: number, route_params: bigint, payment_hash: number, first_hops: number, inflight_htlcs: bigint): bigint {
7218         if(!isWasmInitialized) {
7219                 throw new Error("initializeWasm() must be awaited first!");
7220         }
7221         const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, payment_hash, first_hops, inflight_htlcs);
7222         return nativeResponseValue;
7223 }
7224         // void Router_notify_payment_path_failed LDKRouter *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
7225 /* @internal */
7226 export function Router_notify_payment_path_failed(this_arg: bigint, path: number, short_channel_id: bigint): void {
7227         if(!isWasmInitialized) {
7228                 throw new Error("initializeWasm() must be awaited first!");
7229         }
7230         const nativeResponseValue = wasm.TS_Router_notify_payment_path_failed(this_arg, path, short_channel_id);
7231         // debug statements here
7232 }
7233         // void Router_notify_payment_path_successful LDKRouter *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
7234 /* @internal */
7235 export function Router_notify_payment_path_successful(this_arg: bigint, path: number): void {
7236         if(!isWasmInitialized) {
7237                 throw new Error("initializeWasm() must be awaited first!");
7238         }
7239         const nativeResponseValue = wasm.TS_Router_notify_payment_path_successful(this_arg, path);
7240         // debug statements here
7241 }
7242         // void Router_notify_payment_probe_successful LDKRouter *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
7243 /* @internal */
7244 export function Router_notify_payment_probe_successful(this_arg: bigint, path: number): void {
7245         if(!isWasmInitialized) {
7246                 throw new Error("initializeWasm() must be awaited first!");
7247         }
7248         const nativeResponseValue = wasm.TS_Router_notify_payment_probe_successful(this_arg, path);
7249         // debug statements here
7250 }
7251         // void Router_notify_payment_probe_failed LDKRouter *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
7252 /* @internal */
7253 export function Router_notify_payment_probe_failed(this_arg: bigint, path: number, short_channel_id: bigint): void {
7254         if(!isWasmInitialized) {
7255                 throw new Error("initializeWasm() must be awaited first!");
7256         }
7257         const nativeResponseValue = wasm.TS_Router_notify_payment_probe_failed(this_arg, path, short_channel_id);
7258         // debug statements here
7259 }
7260 /* @internal */
7261 export class LDKRetry {
7262         protected constructor() {}
7263 }
7264 /* @internal */
7265 export function LDKRetry_ty_from_ptr(ptr: bigint): number {
7266         if(!isWasmInitialized) {
7267                 throw new Error("initializeWasm() must be awaited first!");
7268         }
7269         const nativeResponseValue = wasm.TS_LDKRetry_ty_from_ptr(ptr);
7270         return nativeResponseValue;
7271 }
7272 /* @internal */
7273 export function LDKRetry_Attempts_get_attempts(ptr: bigint): number {
7274         if(!isWasmInitialized) {
7275                 throw new Error("initializeWasm() must be awaited first!");
7276         }
7277         const nativeResponseValue = wasm.TS_LDKRetry_Attempts_get_attempts(ptr);
7278         return nativeResponseValue;
7279 }
7280         // struct LDKStr _ldk_get_compiled_version(void);
7281 /* @internal */
7282 export function _ldk_get_compiled_version(): number {
7283         if(!isWasmInitialized) {
7284                 throw new Error("initializeWasm() must be awaited first!");
7285         }
7286         const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
7287         return nativeResponseValue;
7288 }
7289         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
7290 /* @internal */
7291 export function _ldk_c_bindings_get_compiled_version(): number {
7292         if(!isWasmInitialized) {
7293                 throw new Error("initializeWasm() must be awaited first!");
7294         }
7295         const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
7296         return nativeResponseValue;
7297 }
7298         // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
7299 /* @internal */
7300 export function BigEndianScalar_new(big_endian_bytes: number): bigint {
7301         if(!isWasmInitialized) {
7302                 throw new Error("initializeWasm() must be awaited first!");
7303         }
7304         const nativeResponseValue = wasm.TS_BigEndianScalar_new(big_endian_bytes);
7305         return nativeResponseValue;
7306 }
7307         // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
7308 /* @internal */
7309 export function Bech32Error_clone_ptr(arg: bigint): bigint {
7310         if(!isWasmInitialized) {
7311                 throw new Error("initializeWasm() must be awaited first!");
7312         }
7313         const nativeResponseValue = wasm.TS_Bech32Error_clone_ptr(arg);
7314         return nativeResponseValue;
7315 }
7316         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
7317 /* @internal */
7318 export function Bech32Error_clone(orig: bigint): bigint {
7319         if(!isWasmInitialized) {
7320                 throw new Error("initializeWasm() must be awaited first!");
7321         }
7322         const nativeResponseValue = wasm.TS_Bech32Error_clone(orig);
7323         return nativeResponseValue;
7324 }
7325         // void Bech32Error_free(struct LDKBech32Error o);
7326 /* @internal */
7327 export function Bech32Error_free(o: bigint): void {
7328         if(!isWasmInitialized) {
7329                 throw new Error("initializeWasm() must be awaited first!");
7330         }
7331         const nativeResponseValue = wasm.TS_Bech32Error_free(o);
7332         // debug statements here
7333 }
7334         // void Transaction_free(struct LDKTransaction _res);
7335 /* @internal */
7336 export function Transaction_free(_res: number): void {
7337         if(!isWasmInitialized) {
7338                 throw new Error("initializeWasm() must be awaited first!");
7339         }
7340         const nativeResponseValue = wasm.TS_Transaction_free(_res);
7341         // debug statements here
7342 }
7343         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
7344 /* @internal */
7345 export function TxOut_new(script_pubkey: number, value: bigint): bigint {
7346         if(!isWasmInitialized) {
7347                 throw new Error("initializeWasm() must be awaited first!");
7348         }
7349         const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
7350         return nativeResponseValue;
7351 }
7352         // void TxOut_free(struct LDKTxOut _res);
7353 /* @internal */
7354 export function TxOut_free(_res: bigint): void {
7355         if(!isWasmInitialized) {
7356                 throw new Error("initializeWasm() must be awaited first!");
7357         }
7358         const nativeResponseValue = wasm.TS_TxOut_free(_res);
7359         // debug statements here
7360 }
7361         // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
7362 /* @internal */
7363 export function TxOut_clone_ptr(arg: bigint): bigint {
7364         if(!isWasmInitialized) {
7365                 throw new Error("initializeWasm() must be awaited first!");
7366         }
7367         const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
7368         return nativeResponseValue;
7369 }
7370         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
7371 /* @internal */
7372 export function TxOut_clone(orig: bigint): bigint {
7373         if(!isWasmInitialized) {
7374                 throw new Error("initializeWasm() must be awaited first!");
7375         }
7376         const nativeResponseValue = wasm.TS_TxOut_clone(orig);
7377         return nativeResponseValue;
7378 }
7379         // void Str_free(struct LDKStr _res);
7380 /* @internal */
7381 export function Str_free(_res: number): void {
7382         if(!isWasmInitialized) {
7383                 throw new Error("initializeWasm() must be awaited first!");
7384         }
7385         const nativeResponseValue = wasm.TS_Str_free(_res);
7386         // debug statements here
7387 }
7388         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
7389 /* @internal */
7390 export function CVec_PublicKeyZ_free(_res: number): void {
7391         if(!isWasmInitialized) {
7392                 throw new Error("initializeWasm() must be awaited first!");
7393         }
7394         const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
7395         // debug statements here
7396 }
7397         // struct LDKCResult_BlindedRouteNoneZ CResult_BlindedRouteNoneZ_ok(struct LDKBlindedRoute o);
7398 /* @internal */
7399 export function CResult_BlindedRouteNoneZ_ok(o: bigint): bigint {
7400         if(!isWasmInitialized) {
7401                 throw new Error("initializeWasm() must be awaited first!");
7402         }
7403         const nativeResponseValue = wasm.TS_CResult_BlindedRouteNoneZ_ok(o);
7404         return nativeResponseValue;
7405 }
7406         // struct LDKCResult_BlindedRouteNoneZ CResult_BlindedRouteNoneZ_err(void);
7407 /* @internal */
7408 export function CResult_BlindedRouteNoneZ_err(): bigint {
7409         if(!isWasmInitialized) {
7410                 throw new Error("initializeWasm() must be awaited first!");
7411         }
7412         const nativeResponseValue = wasm.TS_CResult_BlindedRouteNoneZ_err();
7413         return nativeResponseValue;
7414 }
7415         // bool CResult_BlindedRouteNoneZ_is_ok(const struct LDKCResult_BlindedRouteNoneZ *NONNULL_PTR o);
7416 /* @internal */
7417 export function CResult_BlindedRouteNoneZ_is_ok(o: bigint): boolean {
7418         if(!isWasmInitialized) {
7419                 throw new Error("initializeWasm() must be awaited first!");
7420         }
7421         const nativeResponseValue = wasm.TS_CResult_BlindedRouteNoneZ_is_ok(o);
7422         return nativeResponseValue;
7423 }
7424         // void CResult_BlindedRouteNoneZ_free(struct LDKCResult_BlindedRouteNoneZ _res);
7425 /* @internal */
7426 export function CResult_BlindedRouteNoneZ_free(_res: bigint): void {
7427         if(!isWasmInitialized) {
7428                 throw new Error("initializeWasm() must be awaited first!");
7429         }
7430         const nativeResponseValue = wasm.TS_CResult_BlindedRouteNoneZ_free(_res);
7431         // debug statements here
7432 }
7433         // struct LDKCResult_BlindedRouteDecodeErrorZ CResult_BlindedRouteDecodeErrorZ_ok(struct LDKBlindedRoute o);
7434 /* @internal */
7435 export function CResult_BlindedRouteDecodeErrorZ_ok(o: bigint): bigint {
7436         if(!isWasmInitialized) {
7437                 throw new Error("initializeWasm() must be awaited first!");
7438         }
7439         const nativeResponseValue = wasm.TS_CResult_BlindedRouteDecodeErrorZ_ok(o);
7440         return nativeResponseValue;
7441 }
7442         // struct LDKCResult_BlindedRouteDecodeErrorZ CResult_BlindedRouteDecodeErrorZ_err(struct LDKDecodeError e);
7443 /* @internal */
7444 export function CResult_BlindedRouteDecodeErrorZ_err(e: bigint): bigint {
7445         if(!isWasmInitialized) {
7446                 throw new Error("initializeWasm() must be awaited first!");
7447         }
7448         const nativeResponseValue = wasm.TS_CResult_BlindedRouteDecodeErrorZ_err(e);
7449         return nativeResponseValue;
7450 }
7451         // bool CResult_BlindedRouteDecodeErrorZ_is_ok(const struct LDKCResult_BlindedRouteDecodeErrorZ *NONNULL_PTR o);
7452 /* @internal */
7453 export function CResult_BlindedRouteDecodeErrorZ_is_ok(o: bigint): boolean {
7454         if(!isWasmInitialized) {
7455                 throw new Error("initializeWasm() must be awaited first!");
7456         }
7457         const nativeResponseValue = wasm.TS_CResult_BlindedRouteDecodeErrorZ_is_ok(o);
7458         return nativeResponseValue;
7459 }
7460         // void CResult_BlindedRouteDecodeErrorZ_free(struct LDKCResult_BlindedRouteDecodeErrorZ _res);
7461 /* @internal */
7462 export function CResult_BlindedRouteDecodeErrorZ_free(_res: bigint): void {
7463         if(!isWasmInitialized) {
7464                 throw new Error("initializeWasm() must be awaited first!");
7465         }
7466         const nativeResponseValue = wasm.TS_CResult_BlindedRouteDecodeErrorZ_free(_res);
7467         // debug statements here
7468 }
7469         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
7470 /* @internal */
7471 export function CResult_BlindedHopDecodeErrorZ_ok(o: bigint): bigint {
7472         if(!isWasmInitialized) {
7473                 throw new Error("initializeWasm() must be awaited first!");
7474         }
7475         const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_ok(o);
7476         return nativeResponseValue;
7477 }
7478         // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
7479 /* @internal */
7480 export function CResult_BlindedHopDecodeErrorZ_err(e: bigint): bigint {
7481         if(!isWasmInitialized) {
7482                 throw new Error("initializeWasm() must be awaited first!");
7483         }
7484         const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_err(e);
7485         return nativeResponseValue;
7486 }
7487         // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
7488 /* @internal */
7489 export function CResult_BlindedHopDecodeErrorZ_is_ok(o: bigint): boolean {
7490         if(!isWasmInitialized) {
7491                 throw new Error("initializeWasm() must be awaited first!");
7492         }
7493         const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_is_ok(o);
7494         return nativeResponseValue;
7495 }
7496         // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
7497 /* @internal */
7498 export function CResult_BlindedHopDecodeErrorZ_free(_res: bigint): void {
7499         if(!isWasmInitialized) {
7500                 throw new Error("initializeWasm() must be awaited first!");
7501         }
7502         const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_free(_res);
7503         // debug statements here
7504 }
7505         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
7506 /* @internal */
7507 export function CResult_NoneNoneZ_ok(): bigint {
7508         if(!isWasmInitialized) {
7509                 throw new Error("initializeWasm() must be awaited first!");
7510         }
7511         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
7512         return nativeResponseValue;
7513 }
7514         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
7515 /* @internal */
7516 export function CResult_NoneNoneZ_err(): bigint {
7517         if(!isWasmInitialized) {
7518                 throw new Error("initializeWasm() must be awaited first!");
7519         }
7520         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
7521         return nativeResponseValue;
7522 }
7523         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
7524 /* @internal */
7525 export function CResult_NoneNoneZ_is_ok(o: bigint): boolean {
7526         if(!isWasmInitialized) {
7527                 throw new Error("initializeWasm() must be awaited first!");
7528         }
7529         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
7530         return nativeResponseValue;
7531 }
7532         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
7533 /* @internal */
7534 export function CResult_NoneNoneZ_free(_res: bigint): void {
7535         if(!isWasmInitialized) {
7536                 throw new Error("initializeWasm() must be awaited first!");
7537         }
7538         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
7539         // debug statements here
7540 }
7541         // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
7542 /* @internal */
7543 export function CResult_NoneNoneZ_clone_ptr(arg: bigint): bigint {
7544         if(!isWasmInitialized) {
7545                 throw new Error("initializeWasm() must be awaited first!");
7546         }
7547         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
7548         return nativeResponseValue;
7549 }
7550         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
7551 /* @internal */
7552 export function CResult_NoneNoneZ_clone(orig: bigint): bigint {
7553         if(!isWasmInitialized) {
7554                 throw new Error("initializeWasm() must be awaited first!");
7555         }
7556         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
7557         return nativeResponseValue;
7558 }
7559         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
7560 /* @internal */
7561 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: bigint): bigint {
7562         if(!isWasmInitialized) {
7563                 throw new Error("initializeWasm() must be awaited first!");
7564         }
7565         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
7566         return nativeResponseValue;
7567 }
7568         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
7569 /* @internal */
7570 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: bigint): bigint {
7571         if(!isWasmInitialized) {
7572                 throw new Error("initializeWasm() must be awaited first!");
7573         }
7574         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
7575         return nativeResponseValue;
7576 }
7577         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
7578 /* @internal */
7579 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: bigint): boolean {
7580         if(!isWasmInitialized) {
7581                 throw new Error("initializeWasm() must be awaited first!");
7582         }
7583         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
7584         return nativeResponseValue;
7585 }
7586         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
7587 /* @internal */
7588 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: bigint): void {
7589         if(!isWasmInitialized) {
7590                 throw new Error("initializeWasm() must be awaited first!");
7591         }
7592         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
7593         // debug statements here
7594 }
7595         // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
7596 /* @internal */
7597 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
7598         if(!isWasmInitialized) {
7599                 throw new Error("initializeWasm() must be awaited first!");
7600         }
7601         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
7602         return nativeResponseValue;
7603 }
7604         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
7605 /* @internal */
7606 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: bigint): bigint {
7607         if(!isWasmInitialized) {
7608                 throw new Error("initializeWasm() must be awaited first!");
7609         }
7610         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
7611         return nativeResponseValue;
7612 }
7613         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
7614 /* @internal */
7615 export function CResult_SecretKeyErrorZ_ok(o: number): bigint {
7616         if(!isWasmInitialized) {
7617                 throw new Error("initializeWasm() must be awaited first!");
7618         }
7619         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_ok(o);
7620         return nativeResponseValue;
7621 }
7622         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
7623 /* @internal */
7624 export function CResult_SecretKeyErrorZ_err(e: Secp256k1Error): bigint {
7625         if(!isWasmInitialized) {
7626                 throw new Error("initializeWasm() must be awaited first!");
7627         }
7628         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_err(e);
7629         return nativeResponseValue;
7630 }
7631         // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
7632 /* @internal */
7633 export function CResult_SecretKeyErrorZ_is_ok(o: bigint): boolean {
7634         if(!isWasmInitialized) {
7635                 throw new Error("initializeWasm() must be awaited first!");
7636         }
7637         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_is_ok(o);
7638         return nativeResponseValue;
7639 }
7640         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
7641 /* @internal */
7642 export function CResult_SecretKeyErrorZ_free(_res: bigint): void {
7643         if(!isWasmInitialized) {
7644                 throw new Error("initializeWasm() must be awaited first!");
7645         }
7646         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_free(_res);
7647         // debug statements here
7648 }
7649         // uint64_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
7650 /* @internal */
7651 export function CResult_SecretKeyErrorZ_clone_ptr(arg: bigint): bigint {
7652         if(!isWasmInitialized) {
7653                 throw new Error("initializeWasm() must be awaited first!");
7654         }
7655         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone_ptr(arg);
7656         return nativeResponseValue;
7657 }
7658         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
7659 /* @internal */
7660 export function CResult_SecretKeyErrorZ_clone(orig: bigint): bigint {
7661         if(!isWasmInitialized) {
7662                 throw new Error("initializeWasm() must be awaited first!");
7663         }
7664         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone(orig);
7665         return nativeResponseValue;
7666 }
7667         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
7668 /* @internal */
7669 export function CResult_PublicKeyErrorZ_ok(o: number): bigint {
7670         if(!isWasmInitialized) {
7671                 throw new Error("initializeWasm() must be awaited first!");
7672         }
7673         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
7674         return nativeResponseValue;
7675 }
7676         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
7677 /* @internal */
7678 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): bigint {
7679         if(!isWasmInitialized) {
7680                 throw new Error("initializeWasm() must be awaited first!");
7681         }
7682         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
7683         return nativeResponseValue;
7684 }
7685         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
7686 /* @internal */
7687 export function CResult_PublicKeyErrorZ_is_ok(o: bigint): boolean {
7688         if(!isWasmInitialized) {
7689                 throw new Error("initializeWasm() must be awaited first!");
7690         }
7691         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
7692         return nativeResponseValue;
7693 }
7694         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
7695 /* @internal */
7696 export function CResult_PublicKeyErrorZ_free(_res: bigint): void {
7697         if(!isWasmInitialized) {
7698                 throw new Error("initializeWasm() must be awaited first!");
7699         }
7700         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
7701         // debug statements here
7702 }
7703         // uint64_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
7704 /* @internal */
7705 export function CResult_PublicKeyErrorZ_clone_ptr(arg: bigint): bigint {
7706         if(!isWasmInitialized) {
7707                 throw new Error("initializeWasm() must be awaited first!");
7708         }
7709         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
7710         return nativeResponseValue;
7711 }
7712         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
7713 /* @internal */
7714 export function CResult_PublicKeyErrorZ_clone(orig: bigint): bigint {
7715         if(!isWasmInitialized) {
7716                 throw new Error("initializeWasm() must be awaited first!");
7717         }
7718         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
7719         return nativeResponseValue;
7720 }
7721         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
7722 /* @internal */
7723 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: bigint): bigint {
7724         if(!isWasmInitialized) {
7725                 throw new Error("initializeWasm() must be awaited first!");
7726         }
7727         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
7728         return nativeResponseValue;
7729 }
7730         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
7731 /* @internal */
7732 export function CResult_TxCreationKeysDecodeErrorZ_err(e: bigint): bigint {
7733         if(!isWasmInitialized) {
7734                 throw new Error("initializeWasm() must be awaited first!");
7735         }
7736         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
7737         return nativeResponseValue;
7738 }
7739         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
7740 /* @internal */
7741 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: bigint): boolean {
7742         if(!isWasmInitialized) {
7743                 throw new Error("initializeWasm() must be awaited first!");
7744         }
7745         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
7746         return nativeResponseValue;
7747 }
7748         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
7749 /* @internal */
7750 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: bigint): void {
7751         if(!isWasmInitialized) {
7752                 throw new Error("initializeWasm() must be awaited first!");
7753         }
7754         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
7755         // debug statements here
7756 }
7757         // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
7758 /* @internal */
7759 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint {
7760         if(!isWasmInitialized) {
7761                 throw new Error("initializeWasm() must be awaited first!");
7762         }
7763         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
7764         return nativeResponseValue;
7765 }
7766         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
7767 /* @internal */
7768 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: bigint): bigint {
7769         if(!isWasmInitialized) {
7770                 throw new Error("initializeWasm() must be awaited first!");
7771         }
7772         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
7773         return nativeResponseValue;
7774 }
7775         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
7776 /* @internal */
7777 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: bigint): bigint {
7778         if(!isWasmInitialized) {
7779                 throw new Error("initializeWasm() must be awaited first!");
7780         }
7781         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
7782         return nativeResponseValue;
7783 }
7784         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
7785 /* @internal */
7786 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: bigint): bigint {
7787         if(!isWasmInitialized) {
7788                 throw new Error("initializeWasm() must be awaited first!");
7789         }
7790         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
7791         return nativeResponseValue;
7792 }
7793         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
7794 /* @internal */
7795 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: bigint): boolean {
7796         if(!isWasmInitialized) {
7797                 throw new Error("initializeWasm() must be awaited first!");
7798         }
7799         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
7800         return nativeResponseValue;
7801 }
7802         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
7803 /* @internal */
7804 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: bigint): void {
7805         if(!isWasmInitialized) {
7806                 throw new Error("initializeWasm() must be awaited first!");
7807         }
7808         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
7809         // debug statements here
7810 }
7811         // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
7812 /* @internal */
7813 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint {
7814         if(!isWasmInitialized) {
7815                 throw new Error("initializeWasm() must be awaited first!");
7816         }
7817         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
7818         return nativeResponseValue;
7819 }
7820         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
7821 /* @internal */
7822 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: bigint): bigint {
7823         if(!isWasmInitialized) {
7824                 throw new Error("initializeWasm() must be awaited first!");
7825         }
7826         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
7827         return nativeResponseValue;
7828 }
7829         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
7830 /* @internal */
7831 export function CResult_TxCreationKeysErrorZ_ok(o: bigint): bigint {
7832         if(!isWasmInitialized) {
7833                 throw new Error("initializeWasm() must be awaited first!");
7834         }
7835         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_ok(o);
7836         return nativeResponseValue;
7837 }
7838         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
7839 /* @internal */
7840 export function CResult_TxCreationKeysErrorZ_err(e: Secp256k1Error): bigint {
7841         if(!isWasmInitialized) {
7842                 throw new Error("initializeWasm() must be awaited first!");
7843         }
7844         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_err(e);
7845         return nativeResponseValue;
7846 }
7847         // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
7848 /* @internal */
7849 export function CResult_TxCreationKeysErrorZ_is_ok(o: bigint): boolean {
7850         if(!isWasmInitialized) {
7851                 throw new Error("initializeWasm() must be awaited first!");
7852         }
7853         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_is_ok(o);
7854         return nativeResponseValue;
7855 }
7856         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
7857 /* @internal */
7858 export function CResult_TxCreationKeysErrorZ_free(_res: bigint): void {
7859         if(!isWasmInitialized) {
7860                 throw new Error("initializeWasm() must be awaited first!");
7861         }
7862         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_free(_res);
7863         // debug statements here
7864 }
7865         // uint64_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
7866 /* @internal */
7867 export function CResult_TxCreationKeysErrorZ_clone_ptr(arg: bigint): bigint {
7868         if(!isWasmInitialized) {
7869                 throw new Error("initializeWasm() must be awaited first!");
7870         }
7871         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone_ptr(arg);
7872         return nativeResponseValue;
7873 }
7874         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
7875 /* @internal */
7876 export function CResult_TxCreationKeysErrorZ_clone(orig: bigint): bigint {
7877         if(!isWasmInitialized) {
7878                 throw new Error("initializeWasm() must be awaited first!");
7879         }
7880         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone(orig);
7881         return nativeResponseValue;
7882 }
7883         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
7884 /* @internal */
7885 export function COption_u32Z_some(o: number): bigint {
7886         if(!isWasmInitialized) {
7887                 throw new Error("initializeWasm() must be awaited first!");
7888         }
7889         const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
7890         return nativeResponseValue;
7891 }
7892         // struct LDKCOption_u32Z COption_u32Z_none(void);
7893 /* @internal */
7894 export function COption_u32Z_none(): bigint {
7895         if(!isWasmInitialized) {
7896                 throw new Error("initializeWasm() must be awaited first!");
7897         }
7898         const nativeResponseValue = wasm.TS_COption_u32Z_none();
7899         return nativeResponseValue;
7900 }
7901         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
7902 /* @internal */
7903 export function COption_u32Z_free(_res: bigint): void {
7904         if(!isWasmInitialized) {
7905                 throw new Error("initializeWasm() must be awaited first!");
7906         }
7907         const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
7908         // debug statements here
7909 }
7910         // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
7911 /* @internal */
7912 export function COption_u32Z_clone_ptr(arg: bigint): bigint {
7913         if(!isWasmInitialized) {
7914                 throw new Error("initializeWasm() must be awaited first!");
7915         }
7916         const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
7917         return nativeResponseValue;
7918 }
7919         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
7920 /* @internal */
7921 export function COption_u32Z_clone(orig: bigint): bigint {
7922         if(!isWasmInitialized) {
7923                 throw new Error("initializeWasm() must be awaited first!");
7924         }
7925         const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
7926         return nativeResponseValue;
7927 }
7928         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
7929 /* @internal */
7930 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: bigint): bigint {
7931         if(!isWasmInitialized) {
7932                 throw new Error("initializeWasm() must be awaited first!");
7933         }
7934         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
7935         return nativeResponseValue;
7936 }
7937         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
7938 /* @internal */
7939 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: bigint): bigint {
7940         if(!isWasmInitialized) {
7941                 throw new Error("initializeWasm() must be awaited first!");
7942         }
7943         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
7944         return nativeResponseValue;
7945 }
7946         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
7947 /* @internal */
7948 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: bigint): boolean {
7949         if(!isWasmInitialized) {
7950                 throw new Error("initializeWasm() must be awaited first!");
7951         }
7952         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
7953         return nativeResponseValue;
7954 }
7955         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
7956 /* @internal */
7957 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: bigint): void {
7958         if(!isWasmInitialized) {
7959                 throw new Error("initializeWasm() must be awaited first!");
7960         }
7961         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
7962         // debug statements here
7963 }
7964         // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
7965 /* @internal */
7966 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: bigint): bigint {
7967         if(!isWasmInitialized) {
7968                 throw new Error("initializeWasm() must be awaited first!");
7969         }
7970         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
7971         return nativeResponseValue;
7972 }
7973         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
7974 /* @internal */
7975 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: bigint): bigint {
7976         if(!isWasmInitialized) {
7977                 throw new Error("initializeWasm() must be awaited first!");
7978         }
7979         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
7980         return nativeResponseValue;
7981 }
7982         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
7983 /* @internal */
7984 export function COption_NoneZ_some(): COption_NoneZ {
7985         if(!isWasmInitialized) {
7986                 throw new Error("initializeWasm() must be awaited first!");
7987         }
7988         const nativeResponseValue = wasm.TS_COption_NoneZ_some();
7989         return nativeResponseValue;
7990 }
7991         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
7992 /* @internal */
7993 export function COption_NoneZ_none(): COption_NoneZ {
7994         if(!isWasmInitialized) {
7995                 throw new Error("initializeWasm() must be awaited first!");
7996         }
7997         const nativeResponseValue = wasm.TS_COption_NoneZ_none();
7998         return nativeResponseValue;
7999 }
8000         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
8001 /* @internal */
8002 export function COption_NoneZ_free(_res: COption_NoneZ): void {
8003         if(!isWasmInitialized) {
8004                 throw new Error("initializeWasm() must be awaited first!");
8005         }
8006         const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
8007         // debug statements here
8008 }
8009         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
8010 /* @internal */
8011 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint {
8012         if(!isWasmInitialized) {
8013                 throw new Error("initializeWasm() must be awaited first!");
8014         }
8015         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
8016         return nativeResponseValue;
8017 }
8018         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
8019 /* @internal */
8020 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint {
8021         if(!isWasmInitialized) {
8022                 throw new Error("initializeWasm() must be awaited first!");
8023         }
8024         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
8025         return nativeResponseValue;
8026 }
8027         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
8028 /* @internal */
8029 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean {
8030         if(!isWasmInitialized) {
8031                 throw new Error("initializeWasm() must be awaited first!");
8032         }
8033         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
8034         return nativeResponseValue;
8035 }
8036         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
8037 /* @internal */
8038 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void {
8039         if(!isWasmInitialized) {
8040                 throw new Error("initializeWasm() must be awaited first!");
8041         }
8042         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
8043         // debug statements here
8044 }
8045         // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
8046 /* @internal */
8047 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8048         if(!isWasmInitialized) {
8049                 throw new Error("initializeWasm() must be awaited first!");
8050         }
8051         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
8052         return nativeResponseValue;
8053 }
8054         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
8055 /* @internal */
8056 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint {
8057         if(!isWasmInitialized) {
8058                 throw new Error("initializeWasm() must be awaited first!");
8059         }
8060         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
8061         return nativeResponseValue;
8062 }
8063         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
8064 /* @internal */
8065 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint {
8066         if(!isWasmInitialized) {
8067                 throw new Error("initializeWasm() must be awaited first!");
8068         }
8069         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
8070         return nativeResponseValue;
8071 }
8072         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
8073 /* @internal */
8074 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint {
8075         if(!isWasmInitialized) {
8076                 throw new Error("initializeWasm() must be awaited first!");
8077         }
8078         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
8079         return nativeResponseValue;
8080 }
8081         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
8082 /* @internal */
8083 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean {
8084         if(!isWasmInitialized) {
8085                 throw new Error("initializeWasm() must be awaited first!");
8086         }
8087         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
8088         return nativeResponseValue;
8089 }
8090         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
8091 /* @internal */
8092 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void {
8093         if(!isWasmInitialized) {
8094                 throw new Error("initializeWasm() must be awaited first!");
8095         }
8096         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
8097         // debug statements here
8098 }
8099         // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
8100 /* @internal */
8101 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8102         if(!isWasmInitialized) {
8103                 throw new Error("initializeWasm() must be awaited first!");
8104         }
8105         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
8106         return nativeResponseValue;
8107 }
8108         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
8109 /* @internal */
8110 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint {
8111         if(!isWasmInitialized) {
8112                 throw new Error("initializeWasm() must be awaited first!");
8113         }
8114         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
8115         return nativeResponseValue;
8116 }
8117         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
8118 /* @internal */
8119 export function CVec_SignatureZ_free(_res: number): void {
8120         if(!isWasmInitialized) {
8121                 throw new Error("initializeWasm() must be awaited first!");
8122         }
8123         const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
8124         // debug statements here
8125 }
8126         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
8127 /* @internal */
8128 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint {
8129         if(!isWasmInitialized) {
8130                 throw new Error("initializeWasm() must be awaited first!");
8131         }
8132         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
8133         return nativeResponseValue;
8134 }
8135         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
8136 /* @internal */
8137 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint {
8138         if(!isWasmInitialized) {
8139                 throw new Error("initializeWasm() must be awaited first!");
8140         }
8141         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
8142         return nativeResponseValue;
8143 }
8144         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
8145 /* @internal */
8146 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean {
8147         if(!isWasmInitialized) {
8148                 throw new Error("initializeWasm() must be awaited first!");
8149         }
8150         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
8151         return nativeResponseValue;
8152 }
8153         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
8154 /* @internal */
8155 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: bigint): void {
8156         if(!isWasmInitialized) {
8157                 throw new Error("initializeWasm() must be awaited first!");
8158         }
8159         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
8160         // debug statements here
8161 }
8162         // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
8163 /* @internal */
8164 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8165         if(!isWasmInitialized) {
8166                 throw new Error("initializeWasm() must be awaited first!");
8167         }
8168         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
8169         return nativeResponseValue;
8170 }
8171         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
8172 /* @internal */
8173 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint {
8174         if(!isWasmInitialized) {
8175                 throw new Error("initializeWasm() must be awaited first!");
8176         }
8177         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
8178         return nativeResponseValue;
8179 }
8180         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
8181 /* @internal */
8182 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint {
8183         if(!isWasmInitialized) {
8184                 throw new Error("initializeWasm() must be awaited first!");
8185         }
8186         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
8187         return nativeResponseValue;
8188 }
8189         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
8190 /* @internal */
8191 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint {
8192         if(!isWasmInitialized) {
8193                 throw new Error("initializeWasm() must be awaited first!");
8194         }
8195         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
8196         return nativeResponseValue;
8197 }
8198         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
8199 /* @internal */
8200 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean {
8201         if(!isWasmInitialized) {
8202                 throw new Error("initializeWasm() must be awaited first!");
8203         }
8204         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
8205         return nativeResponseValue;
8206 }
8207         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
8208 /* @internal */
8209 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: bigint): void {
8210         if(!isWasmInitialized) {
8211                 throw new Error("initializeWasm() must be awaited first!");
8212         }
8213         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
8214         // debug statements here
8215 }
8216         // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
8217 /* @internal */
8218 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8219         if(!isWasmInitialized) {
8220                 throw new Error("initializeWasm() must be awaited first!");
8221         }
8222         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
8223         return nativeResponseValue;
8224 }
8225         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
8226 /* @internal */
8227 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint {
8228         if(!isWasmInitialized) {
8229                 throw new Error("initializeWasm() must be awaited first!");
8230         }
8231         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
8232         return nativeResponseValue;
8233 }
8234         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
8235 /* @internal */
8236 export function CResult_TrustedClosingTransactionNoneZ_ok(o: bigint): bigint {
8237         if(!isWasmInitialized) {
8238                 throw new Error("initializeWasm() must be awaited first!");
8239         }
8240         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
8241         return nativeResponseValue;
8242 }
8243         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
8244 /* @internal */
8245 export function CResult_TrustedClosingTransactionNoneZ_err(): bigint {
8246         if(!isWasmInitialized) {
8247                 throw new Error("initializeWasm() must be awaited first!");
8248         }
8249         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
8250         return nativeResponseValue;
8251 }
8252         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
8253 /* @internal */
8254 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: bigint): boolean {
8255         if(!isWasmInitialized) {
8256                 throw new Error("initializeWasm() must be awaited first!");
8257         }
8258         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
8259         return nativeResponseValue;
8260 }
8261         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
8262 /* @internal */
8263 export function CResult_TrustedClosingTransactionNoneZ_free(_res: bigint): void {
8264         if(!isWasmInitialized) {
8265                 throw new Error("initializeWasm() must be awaited first!");
8266         }
8267         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
8268         // debug statements here
8269 }
8270         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
8271 /* @internal */
8272 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint {
8273         if(!isWasmInitialized) {
8274                 throw new Error("initializeWasm() must be awaited first!");
8275         }
8276         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
8277         return nativeResponseValue;
8278 }
8279         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
8280 /* @internal */
8281 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: bigint): bigint {
8282         if(!isWasmInitialized) {
8283                 throw new Error("initializeWasm() must be awaited first!");
8284         }
8285         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
8286         return nativeResponseValue;
8287 }
8288         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
8289 /* @internal */
8290 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean {
8291         if(!isWasmInitialized) {
8292                 throw new Error("initializeWasm() must be awaited first!");
8293         }
8294         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
8295         return nativeResponseValue;
8296 }
8297         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
8298 /* @internal */
8299 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: bigint): void {
8300         if(!isWasmInitialized) {
8301                 throw new Error("initializeWasm() must be awaited first!");
8302         }
8303         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
8304         // debug statements here
8305 }
8306         // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
8307 /* @internal */
8308 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8309         if(!isWasmInitialized) {
8310                 throw new Error("initializeWasm() must be awaited first!");
8311         }
8312         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
8313         return nativeResponseValue;
8314 }
8315         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
8316 /* @internal */
8317 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint {
8318         if(!isWasmInitialized) {
8319                 throw new Error("initializeWasm() must be awaited first!");
8320         }
8321         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
8322         return nativeResponseValue;
8323 }
8324         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
8325 /* @internal */
8326 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: bigint): bigint {
8327         if(!isWasmInitialized) {
8328                 throw new Error("initializeWasm() must be awaited first!");
8329         }
8330         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
8331         return nativeResponseValue;
8332 }
8333         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
8334 /* @internal */
8335 export function CResult_TrustedCommitmentTransactionNoneZ_err(): bigint {
8336         if(!isWasmInitialized) {
8337                 throw new Error("initializeWasm() must be awaited first!");
8338         }
8339         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
8340         return nativeResponseValue;
8341 }
8342         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
8343 /* @internal */
8344 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: bigint): boolean {
8345         if(!isWasmInitialized) {
8346                 throw new Error("initializeWasm() must be awaited first!");
8347         }
8348         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
8349         return nativeResponseValue;
8350 }
8351         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
8352 /* @internal */
8353 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: bigint): void {
8354         if(!isWasmInitialized) {
8355                 throw new Error("initializeWasm() must be awaited first!");
8356         }
8357         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
8358         // debug statements here
8359 }
8360         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
8361 /* @internal */
8362 export function CResult_CVec_SignatureZNoneZ_ok(o: number): bigint {
8363         if(!isWasmInitialized) {
8364                 throw new Error("initializeWasm() must be awaited first!");
8365         }
8366         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
8367         return nativeResponseValue;
8368 }
8369         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
8370 /* @internal */
8371 export function CResult_CVec_SignatureZNoneZ_err(): bigint {
8372         if(!isWasmInitialized) {
8373                 throw new Error("initializeWasm() must be awaited first!");
8374         }
8375         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
8376         return nativeResponseValue;
8377 }
8378         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
8379 /* @internal */
8380 export function CResult_CVec_SignatureZNoneZ_is_ok(o: bigint): boolean {
8381         if(!isWasmInitialized) {
8382                 throw new Error("initializeWasm() must be awaited first!");
8383         }
8384         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
8385         return nativeResponseValue;
8386 }
8387         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
8388 /* @internal */
8389 export function CResult_CVec_SignatureZNoneZ_free(_res: bigint): void {
8390         if(!isWasmInitialized) {
8391                 throw new Error("initializeWasm() must be awaited first!");
8392         }
8393         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
8394         // debug statements here
8395 }
8396         // uint64_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
8397 /* @internal */
8398 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: bigint): bigint {
8399         if(!isWasmInitialized) {
8400                 throw new Error("initializeWasm() must be awaited first!");
8401         }
8402         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
8403         return nativeResponseValue;
8404 }
8405         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
8406 /* @internal */
8407 export function CResult_CVec_SignatureZNoneZ_clone(orig: bigint): bigint {
8408         if(!isWasmInitialized) {
8409                 throw new Error("initializeWasm() must be awaited first!");
8410         }
8411         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
8412         return nativeResponseValue;
8413 }
8414         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
8415 /* @internal */
8416 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: bigint): bigint {
8417         if(!isWasmInitialized) {
8418                 throw new Error("initializeWasm() must be awaited first!");
8419         }
8420         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
8421         return nativeResponseValue;
8422 }
8423         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
8424 /* @internal */
8425 export function CResult_ShutdownScriptDecodeErrorZ_err(e: bigint): bigint {
8426         if(!isWasmInitialized) {
8427                 throw new Error("initializeWasm() must be awaited first!");
8428         }
8429         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
8430         return nativeResponseValue;
8431 }
8432         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
8433 /* @internal */
8434 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: bigint): boolean {
8435         if(!isWasmInitialized) {
8436                 throw new Error("initializeWasm() must be awaited first!");
8437         }
8438         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
8439         return nativeResponseValue;
8440 }
8441         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
8442 /* @internal */
8443 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: bigint): void {
8444         if(!isWasmInitialized) {
8445                 throw new Error("initializeWasm() must be awaited first!");
8446         }
8447         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
8448         // debug statements here
8449 }
8450         // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
8451 /* @internal */
8452 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8453         if(!isWasmInitialized) {
8454                 throw new Error("initializeWasm() must be awaited first!");
8455         }
8456         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
8457         return nativeResponseValue;
8458 }
8459         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
8460 /* @internal */
8461 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: bigint): bigint {
8462         if(!isWasmInitialized) {
8463                 throw new Error("initializeWasm() must be awaited first!");
8464         }
8465         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
8466         return nativeResponseValue;
8467 }
8468         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
8469 /* @internal */
8470 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: bigint): bigint {
8471         if(!isWasmInitialized) {
8472                 throw new Error("initializeWasm() must be awaited first!");
8473         }
8474         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
8475         return nativeResponseValue;
8476 }
8477         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
8478 /* @internal */
8479 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: bigint): bigint {
8480         if(!isWasmInitialized) {
8481                 throw new Error("initializeWasm() must be awaited first!");
8482         }
8483         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
8484         return nativeResponseValue;
8485 }
8486         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
8487 /* @internal */
8488 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: bigint): boolean {
8489         if(!isWasmInitialized) {
8490                 throw new Error("initializeWasm() must be awaited first!");
8491         }
8492         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
8493         return nativeResponseValue;
8494 }
8495         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
8496 /* @internal */
8497 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: bigint): void {
8498         if(!isWasmInitialized) {
8499                 throw new Error("initializeWasm() must be awaited first!");
8500         }
8501         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
8502         // debug statements here
8503 }
8504         // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
8505 /* @internal */
8506 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: bigint): bigint {
8507         if(!isWasmInitialized) {
8508                 throw new Error("initializeWasm() must be awaited first!");
8509         }
8510         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
8511         return nativeResponseValue;
8512 }
8513         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
8514 /* @internal */
8515 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: bigint): bigint {
8516         if(!isWasmInitialized) {
8517                 throw new Error("initializeWasm() must be awaited first!");
8518         }
8519         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
8520         return nativeResponseValue;
8521 }
8522         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
8523 /* @internal */
8524 export function CResult_RouteHopDecodeErrorZ_ok(o: bigint): bigint {
8525         if(!isWasmInitialized) {
8526                 throw new Error("initializeWasm() must be awaited first!");
8527         }
8528         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
8529         return nativeResponseValue;
8530 }
8531         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
8532 /* @internal */
8533 export function CResult_RouteHopDecodeErrorZ_err(e: bigint): bigint {
8534         if(!isWasmInitialized) {
8535                 throw new Error("initializeWasm() must be awaited first!");
8536         }
8537         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
8538         return nativeResponseValue;
8539 }
8540         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
8541 /* @internal */
8542 export function CResult_RouteHopDecodeErrorZ_is_ok(o: bigint): boolean {
8543         if(!isWasmInitialized) {
8544                 throw new Error("initializeWasm() must be awaited first!");
8545         }
8546         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
8547         return nativeResponseValue;
8548 }
8549         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
8550 /* @internal */
8551 export function CResult_RouteHopDecodeErrorZ_free(_res: bigint): void {
8552         if(!isWasmInitialized) {
8553                 throw new Error("initializeWasm() must be awaited first!");
8554         }
8555         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
8556         // debug statements here
8557 }
8558         // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
8559 /* @internal */
8560 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8561         if(!isWasmInitialized) {
8562                 throw new Error("initializeWasm() must be awaited first!");
8563         }
8564         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
8565         return nativeResponseValue;
8566 }
8567         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
8568 /* @internal */
8569 export function CResult_RouteHopDecodeErrorZ_clone(orig: bigint): bigint {
8570         if(!isWasmInitialized) {
8571                 throw new Error("initializeWasm() must be awaited first!");
8572         }
8573         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
8574         return nativeResponseValue;
8575 }
8576         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
8577 /* @internal */
8578 export function CVec_RouteHopZ_free(_res: number): void {
8579         if(!isWasmInitialized) {
8580                 throw new Error("initializeWasm() must be awaited first!");
8581         }
8582         const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
8583         // debug statements here
8584 }
8585         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
8586 /* @internal */
8587 export function CVec_CVec_RouteHopZZ_free(_res: number): void {
8588         if(!isWasmInitialized) {
8589                 throw new Error("initializeWasm() must be awaited first!");
8590         }
8591         const nativeResponseValue = wasm.TS_CVec_CVec_RouteHopZZ_free(_res);
8592         // debug statements here
8593 }
8594         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
8595 /* @internal */
8596 export function CResult_RouteDecodeErrorZ_ok(o: bigint): bigint {
8597         if(!isWasmInitialized) {
8598                 throw new Error("initializeWasm() must be awaited first!");
8599         }
8600         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
8601         return nativeResponseValue;
8602 }
8603         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
8604 /* @internal */
8605 export function CResult_RouteDecodeErrorZ_err(e: bigint): bigint {
8606         if(!isWasmInitialized) {
8607                 throw new Error("initializeWasm() must be awaited first!");
8608         }
8609         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
8610         return nativeResponseValue;
8611 }
8612         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
8613 /* @internal */
8614 export function CResult_RouteDecodeErrorZ_is_ok(o: bigint): boolean {
8615         if(!isWasmInitialized) {
8616                 throw new Error("initializeWasm() must be awaited first!");
8617         }
8618         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
8619         return nativeResponseValue;
8620 }
8621         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
8622 /* @internal */
8623 export function CResult_RouteDecodeErrorZ_free(_res: bigint): void {
8624         if(!isWasmInitialized) {
8625                 throw new Error("initializeWasm() must be awaited first!");
8626         }
8627         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
8628         // debug statements here
8629 }
8630         // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
8631 /* @internal */
8632 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8633         if(!isWasmInitialized) {
8634                 throw new Error("initializeWasm() must be awaited first!");
8635         }
8636         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
8637         return nativeResponseValue;
8638 }
8639         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
8640 /* @internal */
8641 export function CResult_RouteDecodeErrorZ_clone(orig: bigint): bigint {
8642         if(!isWasmInitialized) {
8643                 throw new Error("initializeWasm() must be awaited first!");
8644         }
8645         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
8646         return nativeResponseValue;
8647 }
8648         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
8649 /* @internal */
8650 export function CResult_RouteParametersDecodeErrorZ_ok(o: bigint): bigint {
8651         if(!isWasmInitialized) {
8652                 throw new Error("initializeWasm() must be awaited first!");
8653         }
8654         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
8655         return nativeResponseValue;
8656 }
8657         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
8658 /* @internal */
8659 export function CResult_RouteParametersDecodeErrorZ_err(e: bigint): bigint {
8660         if(!isWasmInitialized) {
8661                 throw new Error("initializeWasm() must be awaited first!");
8662         }
8663         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
8664         return nativeResponseValue;
8665 }
8666         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
8667 /* @internal */
8668 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: bigint): boolean {
8669         if(!isWasmInitialized) {
8670                 throw new Error("initializeWasm() must be awaited first!");
8671         }
8672         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
8673         return nativeResponseValue;
8674 }
8675         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
8676 /* @internal */
8677 export function CResult_RouteParametersDecodeErrorZ_free(_res: bigint): void {
8678         if(!isWasmInitialized) {
8679                 throw new Error("initializeWasm() must be awaited first!");
8680         }
8681         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
8682         // debug statements here
8683 }
8684         // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
8685 /* @internal */
8686 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8687         if(!isWasmInitialized) {
8688                 throw new Error("initializeWasm() must be awaited first!");
8689         }
8690         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
8691         return nativeResponseValue;
8692 }
8693         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
8694 /* @internal */
8695 export function CResult_RouteParametersDecodeErrorZ_clone(orig: bigint): bigint {
8696         if(!isWasmInitialized) {
8697                 throw new Error("initializeWasm() must be awaited first!");
8698         }
8699         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
8700         return nativeResponseValue;
8701 }
8702         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
8703 /* @internal */
8704 export function CVec_RouteHintZ_free(_res: number): void {
8705         if(!isWasmInitialized) {
8706                 throw new Error("initializeWasm() must be awaited first!");
8707         }
8708         const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
8709         // debug statements here
8710 }
8711         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
8712 /* @internal */
8713 export function COption_u64Z_some(o: bigint): bigint {
8714         if(!isWasmInitialized) {
8715                 throw new Error("initializeWasm() must be awaited first!");
8716         }
8717         const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
8718         return nativeResponseValue;
8719 }
8720         // struct LDKCOption_u64Z COption_u64Z_none(void);
8721 /* @internal */
8722 export function COption_u64Z_none(): bigint {
8723         if(!isWasmInitialized) {
8724                 throw new Error("initializeWasm() must be awaited first!");
8725         }
8726         const nativeResponseValue = wasm.TS_COption_u64Z_none();
8727         return nativeResponseValue;
8728 }
8729         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
8730 /* @internal */
8731 export function COption_u64Z_free(_res: bigint): void {
8732         if(!isWasmInitialized) {
8733                 throw new Error("initializeWasm() must be awaited first!");
8734         }
8735         const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
8736         // debug statements here
8737 }
8738         // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
8739 /* @internal */
8740 export function COption_u64Z_clone_ptr(arg: bigint): bigint {
8741         if(!isWasmInitialized) {
8742                 throw new Error("initializeWasm() must be awaited first!");
8743         }
8744         const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
8745         return nativeResponseValue;
8746 }
8747         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
8748 /* @internal */
8749 export function COption_u64Z_clone(orig: bigint): bigint {
8750         if(!isWasmInitialized) {
8751                 throw new Error("initializeWasm() must be awaited first!");
8752         }
8753         const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
8754         return nativeResponseValue;
8755 }
8756         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
8757 /* @internal */
8758 export function CVec_u64Z_free(_res: number): void {
8759         if(!isWasmInitialized) {
8760                 throw new Error("initializeWasm() must be awaited first!");
8761         }
8762         const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
8763         // debug statements here
8764 }
8765         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
8766 /* @internal */
8767 export function CResult_PaymentParametersDecodeErrorZ_ok(o: bigint): bigint {
8768         if(!isWasmInitialized) {
8769                 throw new Error("initializeWasm() must be awaited first!");
8770         }
8771         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
8772         return nativeResponseValue;
8773 }
8774         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
8775 /* @internal */
8776 export function CResult_PaymentParametersDecodeErrorZ_err(e: bigint): bigint {
8777         if(!isWasmInitialized) {
8778                 throw new Error("initializeWasm() must be awaited first!");
8779         }
8780         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
8781         return nativeResponseValue;
8782 }
8783         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
8784 /* @internal */
8785 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: bigint): boolean {
8786         if(!isWasmInitialized) {
8787                 throw new Error("initializeWasm() must be awaited first!");
8788         }
8789         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
8790         return nativeResponseValue;
8791 }
8792         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
8793 /* @internal */
8794 export function CResult_PaymentParametersDecodeErrorZ_free(_res: bigint): void {
8795         if(!isWasmInitialized) {
8796                 throw new Error("initializeWasm() must be awaited first!");
8797         }
8798         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
8799         // debug statements here
8800 }
8801         // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
8802 /* @internal */
8803 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8804         if(!isWasmInitialized) {
8805                 throw new Error("initializeWasm() must be awaited first!");
8806         }
8807         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
8808         return nativeResponseValue;
8809 }
8810         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
8811 /* @internal */
8812 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: bigint): bigint {
8813         if(!isWasmInitialized) {
8814                 throw new Error("initializeWasm() must be awaited first!");
8815         }
8816         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
8817         return nativeResponseValue;
8818 }
8819         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
8820 /* @internal */
8821 export function CVec_RouteHintHopZ_free(_res: number): void {
8822         if(!isWasmInitialized) {
8823                 throw new Error("initializeWasm() must be awaited first!");
8824         }
8825         const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
8826         // debug statements here
8827 }
8828         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
8829 /* @internal */
8830 export function CResult_RouteHintDecodeErrorZ_ok(o: bigint): bigint {
8831         if(!isWasmInitialized) {
8832                 throw new Error("initializeWasm() must be awaited first!");
8833         }
8834         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
8835         return nativeResponseValue;
8836 }
8837         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
8838 /* @internal */
8839 export function CResult_RouteHintDecodeErrorZ_err(e: bigint): bigint {
8840         if(!isWasmInitialized) {
8841                 throw new Error("initializeWasm() must be awaited first!");
8842         }
8843         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
8844         return nativeResponseValue;
8845 }
8846         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
8847 /* @internal */
8848 export function CResult_RouteHintDecodeErrorZ_is_ok(o: bigint): boolean {
8849         if(!isWasmInitialized) {
8850                 throw new Error("initializeWasm() must be awaited first!");
8851         }
8852         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
8853         return nativeResponseValue;
8854 }
8855         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
8856 /* @internal */
8857 export function CResult_RouteHintDecodeErrorZ_free(_res: bigint): void {
8858         if(!isWasmInitialized) {
8859                 throw new Error("initializeWasm() must be awaited first!");
8860         }
8861         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
8862         // debug statements here
8863 }
8864         // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
8865 /* @internal */
8866 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8867         if(!isWasmInitialized) {
8868                 throw new Error("initializeWasm() must be awaited first!");
8869         }
8870         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
8871         return nativeResponseValue;
8872 }
8873         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
8874 /* @internal */
8875 export function CResult_RouteHintDecodeErrorZ_clone(orig: bigint): bigint {
8876         if(!isWasmInitialized) {
8877                 throw new Error("initializeWasm() must be awaited first!");
8878         }
8879         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
8880         return nativeResponseValue;
8881 }
8882         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
8883 /* @internal */
8884 export function CResult_RouteHintHopDecodeErrorZ_ok(o: bigint): bigint {
8885         if(!isWasmInitialized) {
8886                 throw new Error("initializeWasm() must be awaited first!");
8887         }
8888         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
8889         return nativeResponseValue;
8890 }
8891         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
8892 /* @internal */
8893 export function CResult_RouteHintHopDecodeErrorZ_err(e: bigint): bigint {
8894         if(!isWasmInitialized) {
8895                 throw new Error("initializeWasm() must be awaited first!");
8896         }
8897         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
8898         return nativeResponseValue;
8899 }
8900         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
8901 /* @internal */
8902 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: bigint): boolean {
8903         if(!isWasmInitialized) {
8904                 throw new Error("initializeWasm() must be awaited first!");
8905         }
8906         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
8907         return nativeResponseValue;
8908 }
8909         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
8910 /* @internal */
8911 export function CResult_RouteHintHopDecodeErrorZ_free(_res: bigint): void {
8912         if(!isWasmInitialized) {
8913                 throw new Error("initializeWasm() must be awaited first!");
8914         }
8915         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
8916         // debug statements here
8917 }
8918         // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
8919 /* @internal */
8920 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8921         if(!isWasmInitialized) {
8922                 throw new Error("initializeWasm() must be awaited first!");
8923         }
8924         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
8925         return nativeResponseValue;
8926 }
8927         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
8928 /* @internal */
8929 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: bigint): bigint {
8930         if(!isWasmInitialized) {
8931                 throw new Error("initializeWasm() must be awaited first!");
8932         }
8933         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
8934         return nativeResponseValue;
8935 }
8936         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
8937 /* @internal */
8938 export function CVec_ChannelDetailsZ_free(_res: number): void {
8939         if(!isWasmInitialized) {
8940                 throw new Error("initializeWasm() must be awaited first!");
8941         }
8942         const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
8943         // debug statements here
8944 }
8945         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
8946 /* @internal */
8947 export function CResult_RouteLightningErrorZ_ok(o: bigint): bigint {
8948         if(!isWasmInitialized) {
8949                 throw new Error("initializeWasm() must be awaited first!");
8950         }
8951         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
8952         return nativeResponseValue;
8953 }
8954         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
8955 /* @internal */
8956 export function CResult_RouteLightningErrorZ_err(e: bigint): bigint {
8957         if(!isWasmInitialized) {
8958                 throw new Error("initializeWasm() must be awaited first!");
8959         }
8960         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
8961         return nativeResponseValue;
8962 }
8963         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
8964 /* @internal */
8965 export function CResult_RouteLightningErrorZ_is_ok(o: bigint): boolean {
8966         if(!isWasmInitialized) {
8967                 throw new Error("initializeWasm() must be awaited first!");
8968         }
8969         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
8970         return nativeResponseValue;
8971 }
8972         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
8973 /* @internal */
8974 export function CResult_RouteLightningErrorZ_free(_res: bigint): void {
8975         if(!isWasmInitialized) {
8976                 throw new Error("initializeWasm() must be awaited first!");
8977         }
8978         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
8979         // debug statements here
8980 }
8981         // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
8982 /* @internal */
8983 export function CResult_RouteLightningErrorZ_clone_ptr(arg: bigint): bigint {
8984         if(!isWasmInitialized) {
8985                 throw new Error("initializeWasm() must be awaited first!");
8986         }
8987         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
8988         return nativeResponseValue;
8989 }
8990         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
8991 /* @internal */
8992 export function CResult_RouteLightningErrorZ_clone(orig: bigint): bigint {
8993         if(!isWasmInitialized) {
8994                 throw new Error("initializeWasm() must be awaited first!");
8995         }
8996         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
8997         return nativeResponseValue;
8998 }
8999         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
9000 /* @internal */
9001 export function CResult_PaymentPurposeDecodeErrorZ_ok(o: bigint): bigint {
9002         if(!isWasmInitialized) {
9003                 throw new Error("initializeWasm() must be awaited first!");
9004         }
9005         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o);
9006         return nativeResponseValue;
9007 }
9008         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
9009 /* @internal */
9010 export function CResult_PaymentPurposeDecodeErrorZ_err(e: bigint): bigint {
9011         if(!isWasmInitialized) {
9012                 throw new Error("initializeWasm() must be awaited first!");
9013         }
9014         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e);
9015         return nativeResponseValue;
9016 }
9017         // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
9018 /* @internal */
9019 export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: bigint): boolean {
9020         if(!isWasmInitialized) {
9021                 throw new Error("initializeWasm() must be awaited first!");
9022         }
9023         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o);
9024         return nativeResponseValue;
9025 }
9026         // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
9027 /* @internal */
9028 export function CResult_PaymentPurposeDecodeErrorZ_free(_res: bigint): void {
9029         if(!isWasmInitialized) {
9030                 throw new Error("initializeWasm() must be awaited first!");
9031         }
9032         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res);
9033         // debug statements here
9034 }
9035         // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
9036 /* @internal */
9037 export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9038         if(!isWasmInitialized) {
9039                 throw new Error("initializeWasm() must be awaited first!");
9040         }
9041         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg);
9042         return nativeResponseValue;
9043 }
9044         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
9045 /* @internal */
9046 export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: bigint): bigint {
9047         if(!isWasmInitialized) {
9048                 throw new Error("initializeWasm() must be awaited first!");
9049         }
9050         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig);
9051         return nativeResponseValue;
9052 }
9053         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
9054 /* @internal */
9055 export function COption_ClosureReasonZ_some(o: bigint): bigint {
9056         if(!isWasmInitialized) {
9057                 throw new Error("initializeWasm() must be awaited first!");
9058         }
9059         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
9060         return nativeResponseValue;
9061 }
9062         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
9063 /* @internal */
9064 export function COption_ClosureReasonZ_none(): bigint {
9065         if(!isWasmInitialized) {
9066                 throw new Error("initializeWasm() must be awaited first!");
9067         }
9068         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
9069         return nativeResponseValue;
9070 }
9071         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
9072 /* @internal */
9073 export function COption_ClosureReasonZ_free(_res: bigint): void {
9074         if(!isWasmInitialized) {
9075                 throw new Error("initializeWasm() must be awaited first!");
9076         }
9077         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
9078         // debug statements here
9079 }
9080         // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
9081 /* @internal */
9082 export function COption_ClosureReasonZ_clone_ptr(arg: bigint): bigint {
9083         if(!isWasmInitialized) {
9084                 throw new Error("initializeWasm() must be awaited first!");
9085         }
9086         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
9087         return nativeResponseValue;
9088 }
9089         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
9090 /* @internal */
9091 export function COption_ClosureReasonZ_clone(orig: bigint): bigint {
9092         if(!isWasmInitialized) {
9093                 throw new Error("initializeWasm() must be awaited first!");
9094         }
9095         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
9096         return nativeResponseValue;
9097 }
9098         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
9099 /* @internal */
9100 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: bigint): bigint {
9101         if(!isWasmInitialized) {
9102                 throw new Error("initializeWasm() must be awaited first!");
9103         }
9104         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
9105         return nativeResponseValue;
9106 }
9107         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
9108 /* @internal */
9109 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: bigint): bigint {
9110         if(!isWasmInitialized) {
9111                 throw new Error("initializeWasm() must be awaited first!");
9112         }
9113         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
9114         return nativeResponseValue;
9115 }
9116         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
9117 /* @internal */
9118 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: bigint): boolean {
9119         if(!isWasmInitialized) {
9120                 throw new Error("initializeWasm() must be awaited first!");
9121         }
9122         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
9123         return nativeResponseValue;
9124 }
9125         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
9126 /* @internal */
9127 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: bigint): void {
9128         if(!isWasmInitialized) {
9129                 throw new Error("initializeWasm() must be awaited first!");
9130         }
9131         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
9132         // debug statements here
9133 }
9134         // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
9135 /* @internal */
9136 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9137         if(!isWasmInitialized) {
9138                 throw new Error("initializeWasm() must be awaited first!");
9139         }
9140         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
9141         return nativeResponseValue;
9142 }
9143         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
9144 /* @internal */
9145 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: bigint): bigint {
9146         if(!isWasmInitialized) {
9147                 throw new Error("initializeWasm() must be awaited first!");
9148         }
9149         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
9150         return nativeResponseValue;
9151 }
9152         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
9153 /* @internal */
9154 export function COption_HTLCDestinationZ_some(o: bigint): bigint {
9155         if(!isWasmInitialized) {
9156                 throw new Error("initializeWasm() must be awaited first!");
9157         }
9158         const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_some(o);
9159         return nativeResponseValue;
9160 }
9161         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
9162 /* @internal */
9163 export function COption_HTLCDestinationZ_none(): bigint {
9164         if(!isWasmInitialized) {
9165                 throw new Error("initializeWasm() must be awaited first!");
9166         }
9167         const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_none();
9168         return nativeResponseValue;
9169 }
9170         // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
9171 /* @internal */
9172 export function COption_HTLCDestinationZ_free(_res: bigint): void {
9173         if(!isWasmInitialized) {
9174                 throw new Error("initializeWasm() must be awaited first!");
9175         }
9176         const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_free(_res);
9177         // debug statements here
9178 }
9179         // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
9180 /* @internal */
9181 export function COption_HTLCDestinationZ_clone_ptr(arg: bigint): bigint {
9182         if(!isWasmInitialized) {
9183                 throw new Error("initializeWasm() must be awaited first!");
9184         }
9185         const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone_ptr(arg);
9186         return nativeResponseValue;
9187 }
9188         // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
9189 /* @internal */
9190 export function COption_HTLCDestinationZ_clone(orig: bigint): bigint {
9191         if(!isWasmInitialized) {
9192                 throw new Error("initializeWasm() must be awaited first!");
9193         }
9194         const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone(orig);
9195         return nativeResponseValue;
9196 }
9197         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
9198 /* @internal */
9199 export function CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o: bigint): bigint {
9200         if(!isWasmInitialized) {
9201                 throw new Error("initializeWasm() must be awaited first!");
9202         }
9203         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o);
9204         return nativeResponseValue;
9205 }
9206         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
9207 /* @internal */
9208 export function CResult_COption_HTLCDestinationZDecodeErrorZ_err(e: bigint): bigint {
9209         if(!isWasmInitialized) {
9210                 throw new Error("initializeWasm() must be awaited first!");
9211         }
9212         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_err(e);
9213         return nativeResponseValue;
9214 }
9215         // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
9216 /* @internal */
9217 export function CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o: bigint): boolean {
9218         if(!isWasmInitialized) {
9219                 throw new Error("initializeWasm() must be awaited first!");
9220         }
9221         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o);
9222         return nativeResponseValue;
9223 }
9224         // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
9225 /* @internal */
9226 export function CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res: bigint): void {
9227         if(!isWasmInitialized) {
9228                 throw new Error("initializeWasm() must be awaited first!");
9229         }
9230         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res);
9231         // debug statements here
9232 }
9233         // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
9234 /* @internal */
9235 export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9236         if(!isWasmInitialized) {
9237                 throw new Error("initializeWasm() must be awaited first!");
9238         }
9239         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg);
9240         return nativeResponseValue;
9241 }
9242         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
9243 /* @internal */
9244 export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig: bigint): bigint {
9245         if(!isWasmInitialized) {
9246                 throw new Error("initializeWasm() must be awaited first!");
9247         }
9248         const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig);
9249         return nativeResponseValue;
9250 }
9251         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
9252 /* @internal */
9253 export function COption_NetworkUpdateZ_some(o: bigint): bigint {
9254         if(!isWasmInitialized) {
9255                 throw new Error("initializeWasm() must be awaited first!");
9256         }
9257         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
9258         return nativeResponseValue;
9259 }
9260         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
9261 /* @internal */
9262 export function COption_NetworkUpdateZ_none(): bigint {
9263         if(!isWasmInitialized) {
9264                 throw new Error("initializeWasm() must be awaited first!");
9265         }
9266         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
9267         return nativeResponseValue;
9268 }
9269         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
9270 /* @internal */
9271 export function COption_NetworkUpdateZ_free(_res: bigint): void {
9272         if(!isWasmInitialized) {
9273                 throw new Error("initializeWasm() must be awaited first!");
9274         }
9275         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
9276         // debug statements here
9277 }
9278         // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
9279 /* @internal */
9280 export function COption_NetworkUpdateZ_clone_ptr(arg: bigint): bigint {
9281         if(!isWasmInitialized) {
9282                 throw new Error("initializeWasm() must be awaited first!");
9283         }
9284         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
9285         return nativeResponseValue;
9286 }
9287         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
9288 /* @internal */
9289 export function COption_NetworkUpdateZ_clone(orig: bigint): bigint {
9290         if(!isWasmInitialized) {
9291                 throw new Error("initializeWasm() must be awaited first!");
9292         }
9293         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
9294         return nativeResponseValue;
9295 }
9296         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
9297 /* @internal */
9298 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
9299         if(!isWasmInitialized) {
9300                 throw new Error("initializeWasm() must be awaited first!");
9301         }
9302         const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
9303         // debug statements here
9304 }
9305         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
9306 /* @internal */
9307 export function COption_EventZ_some(o: bigint): bigint {
9308         if(!isWasmInitialized) {
9309                 throw new Error("initializeWasm() must be awaited first!");
9310         }
9311         const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
9312         return nativeResponseValue;
9313 }
9314         // struct LDKCOption_EventZ COption_EventZ_none(void);
9315 /* @internal */
9316 export function COption_EventZ_none(): bigint {
9317         if(!isWasmInitialized) {
9318                 throw new Error("initializeWasm() must be awaited first!");
9319         }
9320         const nativeResponseValue = wasm.TS_COption_EventZ_none();
9321         return nativeResponseValue;
9322 }
9323         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
9324 /* @internal */
9325 export function COption_EventZ_free(_res: bigint): void {
9326         if(!isWasmInitialized) {
9327                 throw new Error("initializeWasm() must be awaited first!");
9328         }
9329         const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
9330         // debug statements here
9331 }
9332         // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
9333 /* @internal */
9334 export function COption_EventZ_clone_ptr(arg: bigint): bigint {
9335         if(!isWasmInitialized) {
9336                 throw new Error("initializeWasm() must be awaited first!");
9337         }
9338         const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
9339         return nativeResponseValue;
9340 }
9341         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
9342 /* @internal */
9343 export function COption_EventZ_clone(orig: bigint): bigint {
9344         if(!isWasmInitialized) {
9345                 throw new Error("initializeWasm() must be awaited first!");
9346         }
9347         const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
9348         return nativeResponseValue;
9349 }
9350         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
9351 /* @internal */
9352 export function CResult_COption_EventZDecodeErrorZ_ok(o: bigint): bigint {
9353         if(!isWasmInitialized) {
9354                 throw new Error("initializeWasm() must be awaited first!");
9355         }
9356         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
9357         return nativeResponseValue;
9358 }
9359         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
9360 /* @internal */
9361 export function CResult_COption_EventZDecodeErrorZ_err(e: bigint): bigint {
9362         if(!isWasmInitialized) {
9363                 throw new Error("initializeWasm() must be awaited first!");
9364         }
9365         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
9366         return nativeResponseValue;
9367 }
9368         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
9369 /* @internal */
9370 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: bigint): boolean {
9371         if(!isWasmInitialized) {
9372                 throw new Error("initializeWasm() must be awaited first!");
9373         }
9374         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
9375         return nativeResponseValue;
9376 }
9377         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
9378 /* @internal */
9379 export function CResult_COption_EventZDecodeErrorZ_free(_res: bigint): void {
9380         if(!isWasmInitialized) {
9381                 throw new Error("initializeWasm() must be awaited first!");
9382         }
9383         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
9384         // debug statements here
9385 }
9386         // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
9387 /* @internal */
9388 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9389         if(!isWasmInitialized) {
9390                 throw new Error("initializeWasm() must be awaited first!");
9391         }
9392         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
9393         return nativeResponseValue;
9394 }
9395         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
9396 /* @internal */
9397 export function CResult_COption_EventZDecodeErrorZ_clone(orig: bigint): bigint {
9398         if(!isWasmInitialized) {
9399                 throw new Error("initializeWasm() must be awaited first!");
9400         }
9401         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
9402         return nativeResponseValue;
9403 }
9404         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
9405 /* @internal */
9406 export function CVec_MessageSendEventZ_free(_res: number): void {
9407         if(!isWasmInitialized) {
9408                 throw new Error("initializeWasm() must be awaited first!");
9409         }
9410         const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
9411         // debug statements here
9412 }
9413         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
9414 /* @internal */
9415 export function CResult_TxOutAccessErrorZ_ok(o: bigint): bigint {
9416         if(!isWasmInitialized) {
9417                 throw new Error("initializeWasm() must be awaited first!");
9418         }
9419         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_ok(o);
9420         return nativeResponseValue;
9421 }
9422         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
9423 /* @internal */
9424 export function CResult_TxOutAccessErrorZ_err(e: AccessError): bigint {
9425         if(!isWasmInitialized) {
9426                 throw new Error("initializeWasm() must be awaited first!");
9427         }
9428         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_err(e);
9429         return nativeResponseValue;
9430 }
9431         // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
9432 /* @internal */
9433 export function CResult_TxOutAccessErrorZ_is_ok(o: bigint): boolean {
9434         if(!isWasmInitialized) {
9435                 throw new Error("initializeWasm() must be awaited first!");
9436         }
9437         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_is_ok(o);
9438         return nativeResponseValue;
9439 }
9440         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
9441 /* @internal */
9442 export function CResult_TxOutAccessErrorZ_free(_res: bigint): void {
9443         if(!isWasmInitialized) {
9444                 throw new Error("initializeWasm() must be awaited first!");
9445         }
9446         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_free(_res);
9447         // debug statements here
9448 }
9449         // uint64_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
9450 /* @internal */
9451 export function CResult_TxOutAccessErrorZ_clone_ptr(arg: bigint): bigint {
9452         if(!isWasmInitialized) {
9453                 throw new Error("initializeWasm() must be awaited first!");
9454         }
9455         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone_ptr(arg);
9456         return nativeResponseValue;
9457 }
9458         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
9459 /* @internal */
9460 export function CResult_TxOutAccessErrorZ_clone(orig: bigint): bigint {
9461         if(!isWasmInitialized) {
9462                 throw new Error("initializeWasm() must be awaited first!");
9463         }
9464         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone(orig);
9465         return nativeResponseValue;
9466 }
9467         // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
9468 /* @internal */
9469 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: bigint): bigint {
9470         if(!isWasmInitialized) {
9471                 throw new Error("initializeWasm() must be awaited first!");
9472         }
9473         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
9474         return nativeResponseValue;
9475 }
9476         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
9477 /* @internal */
9478 export function C2Tuple_usizeTransactionZ_clone(orig: bigint): bigint {
9479         if(!isWasmInitialized) {
9480                 throw new Error("initializeWasm() must be awaited first!");
9481         }
9482         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
9483         return nativeResponseValue;
9484 }
9485         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
9486 /* @internal */
9487 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): bigint {
9488         if(!isWasmInitialized) {
9489                 throw new Error("initializeWasm() must be awaited first!");
9490         }
9491         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
9492         return nativeResponseValue;
9493 }
9494         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
9495 /* @internal */
9496 export function C2Tuple_usizeTransactionZ_free(_res: bigint): void {
9497         if(!isWasmInitialized) {
9498                 throw new Error("initializeWasm() must be awaited first!");
9499         }
9500         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
9501         // debug statements here
9502 }
9503         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
9504 /* @internal */
9505 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
9506         if(!isWasmInitialized) {
9507                 throw new Error("initializeWasm() must be awaited first!");
9508         }
9509         const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
9510         // debug statements here
9511 }
9512         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
9513 /* @internal */
9514 export function CVec_TxidZ_free(_res: number): void {
9515         if(!isWasmInitialized) {
9516                 throw new Error("initializeWasm() must be awaited first!");
9517         }
9518         const nativeResponseValue = wasm.TS_CVec_TxidZ_free(_res);
9519         // debug statements here
9520 }
9521         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
9522 /* @internal */
9523 export function CResult_NoneChannelMonitorUpdateErrZ_ok(): bigint {
9524         if(!isWasmInitialized) {
9525                 throw new Error("initializeWasm() must be awaited first!");
9526         }
9527         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_ok();
9528         return nativeResponseValue;
9529 }
9530         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
9531 /* @internal */
9532 export function CResult_NoneChannelMonitorUpdateErrZ_err(e: ChannelMonitorUpdateErr): bigint {
9533         if(!isWasmInitialized) {
9534                 throw new Error("initializeWasm() must be awaited first!");
9535         }
9536         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_err(e);
9537         return nativeResponseValue;
9538 }
9539         // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
9540 /* @internal */
9541 export function CResult_NoneChannelMonitorUpdateErrZ_is_ok(o: bigint): boolean {
9542         if(!isWasmInitialized) {
9543                 throw new Error("initializeWasm() must be awaited first!");
9544         }
9545         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_is_ok(o);
9546         return nativeResponseValue;
9547 }
9548         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
9549 /* @internal */
9550 export function CResult_NoneChannelMonitorUpdateErrZ_free(_res: bigint): void {
9551         if(!isWasmInitialized) {
9552                 throw new Error("initializeWasm() must be awaited first!");
9553         }
9554         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_free(_res);
9555         // debug statements here
9556 }
9557         // uint64_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
9558 /* @internal */
9559 export function CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg: bigint): bigint {
9560         if(!isWasmInitialized) {
9561                 throw new Error("initializeWasm() must be awaited first!");
9562         }
9563         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg);
9564         return nativeResponseValue;
9565 }
9566         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
9567 /* @internal */
9568 export function CResult_NoneChannelMonitorUpdateErrZ_clone(orig: bigint): bigint {
9569         if(!isWasmInitialized) {
9570                 throw new Error("initializeWasm() must be awaited first!");
9571         }
9572         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone(orig);
9573         return nativeResponseValue;
9574 }
9575         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
9576 /* @internal */
9577 export function CVec_MonitorEventZ_free(_res: number): void {
9578         if(!isWasmInitialized) {
9579                 throw new Error("initializeWasm() must be awaited first!");
9580         }
9581         const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
9582         // debug statements here
9583 }
9584         // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
9585 /* @internal */
9586 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(arg: bigint): bigint {
9587         if(!isWasmInitialized) {
9588                 throw new Error("initializeWasm() must be awaited first!");
9589         }
9590         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(arg);
9591         return nativeResponseValue;
9592 }
9593         // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
9594 /* @internal */
9595 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(orig: bigint): bigint {
9596         if(!isWasmInitialized) {
9597                 throw new Error("initializeWasm() must be awaited first!");
9598         }
9599         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(orig);
9600         return nativeResponseValue;
9601 }
9602         // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
9603 /* @internal */
9604 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a: bigint, b: number, c: number): bigint {
9605         if(!isWasmInitialized) {
9606                 throw new Error("initializeWasm() must be awaited first!");
9607         }
9608         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a, b, c);
9609         return nativeResponseValue;
9610 }
9611         // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
9612 /* @internal */
9613 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(_res: bigint): void {
9614         if(!isWasmInitialized) {
9615                 throw new Error("initializeWasm() must be awaited first!");
9616         }
9617         const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(_res);
9618         // debug statements here
9619 }
9620         // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
9621 /* @internal */
9622 export function CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(_res: number): void {
9623         if(!isWasmInitialized) {
9624                 throw new Error("initializeWasm() must be awaited first!");
9625         }
9626         const nativeResponseValue = wasm.TS_CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(_res);
9627         // debug statements here
9628 }
9629         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
9630 /* @internal */
9631 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: bigint): bigint {
9632         if(!isWasmInitialized) {
9633                 throw new Error("initializeWasm() must be awaited first!");
9634         }
9635         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
9636         return nativeResponseValue;
9637 }
9638         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
9639 /* @internal */
9640 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: bigint): bigint {
9641         if(!isWasmInitialized) {
9642                 throw new Error("initializeWasm() must be awaited first!");
9643         }
9644         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
9645         return nativeResponseValue;
9646 }
9647         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
9648 /* @internal */
9649 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: bigint): boolean {
9650         if(!isWasmInitialized) {
9651                 throw new Error("initializeWasm() must be awaited first!");
9652         }
9653         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
9654         return nativeResponseValue;
9655 }
9656         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
9657 /* @internal */
9658 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: bigint): void {
9659         if(!isWasmInitialized) {
9660                 throw new Error("initializeWasm() must be awaited first!");
9661         }
9662         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
9663         // debug statements here
9664 }
9665         // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
9666 /* @internal */
9667 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9668         if(!isWasmInitialized) {
9669                 throw new Error("initializeWasm() must be awaited first!");
9670         }
9671         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
9672         return nativeResponseValue;
9673 }
9674         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
9675 /* @internal */
9676 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: bigint): bigint {
9677         if(!isWasmInitialized) {
9678                 throw new Error("initializeWasm() must be awaited first!");
9679         }
9680         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
9681         return nativeResponseValue;
9682 }
9683         // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
9684 /* @internal */
9685 export function C2Tuple_u64u64Z_clone_ptr(arg: bigint): bigint {
9686         if(!isWasmInitialized) {
9687                 throw new Error("initializeWasm() must be awaited first!");
9688         }
9689         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone_ptr(arg);
9690         return nativeResponseValue;
9691 }
9692         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
9693 /* @internal */
9694 export function C2Tuple_u64u64Z_clone(orig: bigint): bigint {
9695         if(!isWasmInitialized) {
9696                 throw new Error("initializeWasm() must be awaited first!");
9697         }
9698         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone(orig);
9699         return nativeResponseValue;
9700 }
9701         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
9702 /* @internal */
9703 export function C2Tuple_u64u64Z_new(a: bigint, b: bigint): bigint {
9704         if(!isWasmInitialized) {
9705                 throw new Error("initializeWasm() must be awaited first!");
9706         }
9707         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_new(a, b);
9708         return nativeResponseValue;
9709 }
9710         // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
9711 /* @internal */
9712 export function C2Tuple_u64u64Z_free(_res: bigint): void {
9713         if(!isWasmInitialized) {
9714                 throw new Error("initializeWasm() must be awaited first!");
9715         }
9716         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_free(_res);
9717         // debug statements here
9718 }
9719         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
9720 /* @internal */
9721 export function COption_C2Tuple_u64u64ZZ_some(o: bigint): bigint {
9722         if(!isWasmInitialized) {
9723                 throw new Error("initializeWasm() must be awaited first!");
9724         }
9725         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_some(o);
9726         return nativeResponseValue;
9727 }
9728         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
9729 /* @internal */
9730 export function COption_C2Tuple_u64u64ZZ_none(): bigint {
9731         if(!isWasmInitialized) {
9732                 throw new Error("initializeWasm() must be awaited first!");
9733         }
9734         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_none();
9735         return nativeResponseValue;
9736 }
9737         // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
9738 /* @internal */
9739 export function COption_C2Tuple_u64u64ZZ_free(_res: bigint): void {
9740         if(!isWasmInitialized) {
9741                 throw new Error("initializeWasm() must be awaited first!");
9742         }
9743         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_free(_res);
9744         // debug statements here
9745 }
9746         // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
9747 /* @internal */
9748 export function COption_C2Tuple_u64u64ZZ_clone_ptr(arg: bigint): bigint {
9749         if(!isWasmInitialized) {
9750                 throw new Error("initializeWasm() must be awaited first!");
9751         }
9752         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone_ptr(arg);
9753         return nativeResponseValue;
9754 }
9755         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
9756 /* @internal */
9757 export function COption_C2Tuple_u64u64ZZ_clone(orig: bigint): bigint {
9758         if(!isWasmInitialized) {
9759                 throw new Error("initializeWasm() must be awaited first!");
9760         }
9761         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone(orig);
9762         return nativeResponseValue;
9763 }
9764         // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
9765 /* @internal */
9766 export function CVec_NodeIdZ_free(_res: number): void {
9767         if(!isWasmInitialized) {
9768                 throw new Error("initializeWasm() must be awaited first!");
9769         }
9770         const nativeResponseValue = wasm.TS_CVec_NodeIdZ_free(_res);
9771         // debug statements here
9772 }
9773         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
9774 /* @internal */
9775 export function CResult_ProbabilisticScorerDecodeErrorZ_ok(o: bigint): bigint {
9776         if(!isWasmInitialized) {
9777                 throw new Error("initializeWasm() must be awaited first!");
9778         }
9779         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_ok(o);
9780         return nativeResponseValue;
9781 }
9782         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
9783 /* @internal */
9784 export function CResult_ProbabilisticScorerDecodeErrorZ_err(e: bigint): bigint {
9785         if(!isWasmInitialized) {
9786                 throw new Error("initializeWasm() must be awaited first!");
9787         }
9788         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_err(e);
9789         return nativeResponseValue;
9790 }
9791         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
9792 /* @internal */
9793 export function CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o: bigint): boolean {
9794         if(!isWasmInitialized) {
9795                 throw new Error("initializeWasm() must be awaited first!");
9796         }
9797         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o);
9798         return nativeResponseValue;
9799 }
9800         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
9801 /* @internal */
9802 export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: bigint): void {
9803         if(!isWasmInitialized) {
9804                 throw new Error("initializeWasm() must be awaited first!");
9805         }
9806         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res);
9807         // debug statements here
9808 }
9809         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
9810 /* @internal */
9811 export function CResult_InitFeaturesDecodeErrorZ_ok(o: bigint): bigint {
9812         if(!isWasmInitialized) {
9813                 throw new Error("initializeWasm() must be awaited first!");
9814         }
9815         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
9816         return nativeResponseValue;
9817 }
9818         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9819 /* @internal */
9820 export function CResult_InitFeaturesDecodeErrorZ_err(e: bigint): bigint {
9821         if(!isWasmInitialized) {
9822                 throw new Error("initializeWasm() must be awaited first!");
9823         }
9824         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
9825         return nativeResponseValue;
9826 }
9827         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
9828 /* @internal */
9829 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
9830         if(!isWasmInitialized) {
9831                 throw new Error("initializeWasm() must be awaited first!");
9832         }
9833         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
9834         return nativeResponseValue;
9835 }
9836         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
9837 /* @internal */
9838 export function CResult_InitFeaturesDecodeErrorZ_free(_res: bigint): void {
9839         if(!isWasmInitialized) {
9840                 throw new Error("initializeWasm() must be awaited first!");
9841         }
9842         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
9843         // debug statements here
9844 }
9845         // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
9846 /* @internal */
9847 export function CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9848         if(!isWasmInitialized) {
9849                 throw new Error("initializeWasm() must be awaited first!");
9850         }
9851         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg);
9852         return nativeResponseValue;
9853 }
9854         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
9855 /* @internal */
9856 export function CResult_InitFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
9857         if(!isWasmInitialized) {
9858                 throw new Error("initializeWasm() must be awaited first!");
9859         }
9860         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone(orig);
9861         return nativeResponseValue;
9862 }
9863         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
9864 /* @internal */
9865 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: bigint): bigint {
9866         if(!isWasmInitialized) {
9867                 throw new Error("initializeWasm() must be awaited first!");
9868         }
9869         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
9870         return nativeResponseValue;
9871 }
9872         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9873 /* @internal */
9874 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: bigint): bigint {
9875         if(!isWasmInitialized) {
9876                 throw new Error("initializeWasm() must be awaited first!");
9877         }
9878         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
9879         return nativeResponseValue;
9880 }
9881         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
9882 /* @internal */
9883 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
9884         if(!isWasmInitialized) {
9885                 throw new Error("initializeWasm() must be awaited first!");
9886         }
9887         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
9888         return nativeResponseValue;
9889 }
9890         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
9891 /* @internal */
9892 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: bigint): void {
9893         if(!isWasmInitialized) {
9894                 throw new Error("initializeWasm() must be awaited first!");
9895         }
9896         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
9897         // debug statements here
9898 }
9899         // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
9900 /* @internal */
9901 export function CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9902         if(!isWasmInitialized) {
9903                 throw new Error("initializeWasm() must be awaited first!");
9904         }
9905         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg);
9906         return nativeResponseValue;
9907 }
9908         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
9909 /* @internal */
9910 export function CResult_ChannelFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
9911         if(!isWasmInitialized) {
9912                 throw new Error("initializeWasm() must be awaited first!");
9913         }
9914         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone(orig);
9915         return nativeResponseValue;
9916 }
9917         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
9918 /* @internal */
9919 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: bigint): bigint {
9920         if(!isWasmInitialized) {
9921                 throw new Error("initializeWasm() must be awaited first!");
9922         }
9923         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
9924         return nativeResponseValue;
9925 }
9926         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9927 /* @internal */
9928 export function CResult_NodeFeaturesDecodeErrorZ_err(e: bigint): bigint {
9929         if(!isWasmInitialized) {
9930                 throw new Error("initializeWasm() must be awaited first!");
9931         }
9932         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
9933         return nativeResponseValue;
9934 }
9935         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
9936 /* @internal */
9937 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
9938         if(!isWasmInitialized) {
9939                 throw new Error("initializeWasm() must be awaited first!");
9940         }
9941         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
9942         return nativeResponseValue;
9943 }
9944         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
9945 /* @internal */
9946 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: bigint): void {
9947         if(!isWasmInitialized) {
9948                 throw new Error("initializeWasm() must be awaited first!");
9949         }
9950         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
9951         // debug statements here
9952 }
9953         // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
9954 /* @internal */
9955 export function CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9956         if(!isWasmInitialized) {
9957                 throw new Error("initializeWasm() must be awaited first!");
9958         }
9959         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg);
9960         return nativeResponseValue;
9961 }
9962         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
9963 /* @internal */
9964 export function CResult_NodeFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
9965         if(!isWasmInitialized) {
9966                 throw new Error("initializeWasm() must be awaited first!");
9967         }
9968         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone(orig);
9969         return nativeResponseValue;
9970 }
9971         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
9972 /* @internal */
9973 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: bigint): bigint {
9974         if(!isWasmInitialized) {
9975                 throw new Error("initializeWasm() must be awaited first!");
9976         }
9977         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
9978         return nativeResponseValue;
9979 }
9980         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9981 /* @internal */
9982 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: bigint): bigint {
9983         if(!isWasmInitialized) {
9984                 throw new Error("initializeWasm() must be awaited first!");
9985         }
9986         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
9987         return nativeResponseValue;
9988 }
9989         // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
9990 /* @internal */
9991 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
9992         if(!isWasmInitialized) {
9993                 throw new Error("initializeWasm() must be awaited first!");
9994         }
9995         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
9996         return nativeResponseValue;
9997 }
9998         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
9999 /* @internal */
10000 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: bigint): void {
10001         if(!isWasmInitialized) {
10002                 throw new Error("initializeWasm() must be awaited first!");
10003         }
10004         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
10005         // debug statements here
10006 }
10007         // uint64_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
10008 /* @internal */
10009 export function CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10010         if(!isWasmInitialized) {
10011                 throw new Error("initializeWasm() must be awaited first!");
10012         }
10013         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg);
10014         return nativeResponseValue;
10015 }
10016         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
10017 /* @internal */
10018 export function CResult_InvoiceFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10019         if(!isWasmInitialized) {
10020                 throw new Error("initializeWasm() must be awaited first!");
10021         }
10022         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone(orig);
10023         return nativeResponseValue;
10024 }
10025         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
10026 /* @internal */
10027 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: bigint): bigint {
10028         if(!isWasmInitialized) {
10029                 throw new Error("initializeWasm() must be awaited first!");
10030         }
10031         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
10032         return nativeResponseValue;
10033 }
10034         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
10035 /* @internal */
10036 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: bigint): bigint {
10037         if(!isWasmInitialized) {
10038                 throw new Error("initializeWasm() must be awaited first!");
10039         }
10040         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
10041         return nativeResponseValue;
10042 }
10043         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
10044 /* @internal */
10045 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
10046         if(!isWasmInitialized) {
10047                 throw new Error("initializeWasm() must be awaited first!");
10048         }
10049         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
10050         return nativeResponseValue;
10051 }
10052         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
10053 /* @internal */
10054 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: bigint): void {
10055         if(!isWasmInitialized) {
10056                 throw new Error("initializeWasm() must be awaited first!");
10057         }
10058         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
10059         // debug statements here
10060 }
10061         // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
10062 /* @internal */
10063 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10064         if(!isWasmInitialized) {
10065                 throw new Error("initializeWasm() must be awaited first!");
10066         }
10067         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg);
10068         return nativeResponseValue;
10069 }
10070         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
10071 /* @internal */
10072 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10073         if(!isWasmInitialized) {
10074                 throw new Error("initializeWasm() must be awaited first!");
10075         }
10076         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig);
10077         return nativeResponseValue;
10078 }
10079         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
10080 /* @internal */
10081 export function CResult_NodeIdDecodeErrorZ_ok(o: bigint): bigint {
10082         if(!isWasmInitialized) {
10083                 throw new Error("initializeWasm() must be awaited first!");
10084         }
10085         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
10086         return nativeResponseValue;
10087 }
10088         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
10089 /* @internal */
10090 export function CResult_NodeIdDecodeErrorZ_err(e: bigint): bigint {
10091         if(!isWasmInitialized) {
10092                 throw new Error("initializeWasm() must be awaited first!");
10093         }
10094         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
10095         return nativeResponseValue;
10096 }
10097         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
10098 /* @internal */
10099 export function CResult_NodeIdDecodeErrorZ_is_ok(o: bigint): boolean {
10100         if(!isWasmInitialized) {
10101                 throw new Error("initializeWasm() must be awaited first!");
10102         }
10103         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
10104         return nativeResponseValue;
10105 }
10106         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
10107 /* @internal */
10108 export function CResult_NodeIdDecodeErrorZ_free(_res: bigint): void {
10109         if(!isWasmInitialized) {
10110                 throw new Error("initializeWasm() must be awaited first!");
10111         }
10112         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
10113         // debug statements here
10114 }
10115         // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
10116 /* @internal */
10117 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10118         if(!isWasmInitialized) {
10119                 throw new Error("initializeWasm() must be awaited first!");
10120         }
10121         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
10122         return nativeResponseValue;
10123 }
10124         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
10125 /* @internal */
10126 export function CResult_NodeIdDecodeErrorZ_clone(orig: bigint): bigint {
10127         if(!isWasmInitialized) {
10128                 throw new Error("initializeWasm() must be awaited first!");
10129         }
10130         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
10131         return nativeResponseValue;
10132 }
10133         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
10134 /* @internal */
10135 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: bigint): bigint {
10136         if(!isWasmInitialized) {
10137                 throw new Error("initializeWasm() must be awaited first!");
10138         }
10139         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
10140         return nativeResponseValue;
10141 }
10142         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
10143 /* @internal */
10144 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: bigint): bigint {
10145         if(!isWasmInitialized) {
10146                 throw new Error("initializeWasm() must be awaited first!");
10147         }
10148         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
10149         return nativeResponseValue;
10150 }
10151         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
10152 /* @internal */
10153 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: bigint): boolean {
10154         if(!isWasmInitialized) {
10155                 throw new Error("initializeWasm() must be awaited first!");
10156         }
10157         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
10158         return nativeResponseValue;
10159 }
10160         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
10161 /* @internal */
10162 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: bigint): void {
10163         if(!isWasmInitialized) {
10164                 throw new Error("initializeWasm() must be awaited first!");
10165         }
10166         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
10167         // debug statements here
10168 }
10169         // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
10170 /* @internal */
10171 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10172         if(!isWasmInitialized) {
10173                 throw new Error("initializeWasm() must be awaited first!");
10174         }
10175         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
10176         return nativeResponseValue;
10177 }
10178         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
10179 /* @internal */
10180 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: bigint): bigint {
10181         if(!isWasmInitialized) {
10182                 throw new Error("initializeWasm() must be awaited first!");
10183         }
10184         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
10185         return nativeResponseValue;
10186 }
10187         // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
10188 /* @internal */
10189 export function COption_AccessZ_some(o: bigint): bigint {
10190         if(!isWasmInitialized) {
10191                 throw new Error("initializeWasm() must be awaited first!");
10192         }
10193         const nativeResponseValue = wasm.TS_COption_AccessZ_some(o);
10194         return nativeResponseValue;
10195 }
10196         // struct LDKCOption_AccessZ COption_AccessZ_none(void);
10197 /* @internal */
10198 export function COption_AccessZ_none(): bigint {
10199         if(!isWasmInitialized) {
10200                 throw new Error("initializeWasm() must be awaited first!");
10201         }
10202         const nativeResponseValue = wasm.TS_COption_AccessZ_none();
10203         return nativeResponseValue;
10204 }
10205         // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
10206 /* @internal */
10207 export function COption_AccessZ_free(_res: bigint): void {
10208         if(!isWasmInitialized) {
10209                 throw new Error("initializeWasm() must be awaited first!");
10210         }
10211         const nativeResponseValue = wasm.TS_COption_AccessZ_free(_res);
10212         // debug statements here
10213 }
10214         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
10215 /* @internal */
10216 export function CResult_boolLightningErrorZ_ok(o: boolean): bigint {
10217         if(!isWasmInitialized) {
10218                 throw new Error("initializeWasm() must be awaited first!");
10219         }
10220         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
10221         return nativeResponseValue;
10222 }
10223         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
10224 /* @internal */
10225 export function CResult_boolLightningErrorZ_err(e: bigint): bigint {
10226         if(!isWasmInitialized) {
10227                 throw new Error("initializeWasm() must be awaited first!");
10228         }
10229         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
10230         return nativeResponseValue;
10231 }
10232         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
10233 /* @internal */
10234 export function CResult_boolLightningErrorZ_is_ok(o: bigint): boolean {
10235         if(!isWasmInitialized) {
10236                 throw new Error("initializeWasm() must be awaited first!");
10237         }
10238         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
10239         return nativeResponseValue;
10240 }
10241         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
10242 /* @internal */
10243 export function CResult_boolLightningErrorZ_free(_res: bigint): void {
10244         if(!isWasmInitialized) {
10245                 throw new Error("initializeWasm() must be awaited first!");
10246         }
10247         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
10248         // debug statements here
10249 }
10250         // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
10251 /* @internal */
10252 export function CResult_boolLightningErrorZ_clone_ptr(arg: bigint): bigint {
10253         if(!isWasmInitialized) {
10254                 throw new Error("initializeWasm() must be awaited first!");
10255         }
10256         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
10257         return nativeResponseValue;
10258 }
10259         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
10260 /* @internal */
10261 export function CResult_boolLightningErrorZ_clone(orig: bigint): bigint {
10262         if(!isWasmInitialized) {
10263                 throw new Error("initializeWasm() must be awaited first!");
10264         }
10265         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
10266         return nativeResponseValue;
10267 }
10268         // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
10269 /* @internal */
10270 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: bigint): bigint {
10271         if(!isWasmInitialized) {
10272                 throw new Error("initializeWasm() must be awaited first!");
10273         }
10274         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
10275         return nativeResponseValue;
10276 }
10277         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
10278 /* @internal */
10279 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: bigint): bigint {
10280         if(!isWasmInitialized) {
10281                 throw new Error("initializeWasm() must be awaited first!");
10282         }
10283         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
10284         return nativeResponseValue;
10285 }
10286         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
10287 /* @internal */
10288 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: bigint, b: bigint, c: bigint): bigint {
10289         if(!isWasmInitialized) {
10290                 throw new Error("initializeWasm() must be awaited first!");
10291         }
10292         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
10293         return nativeResponseValue;
10294 }
10295         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
10296 /* @internal */
10297 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: bigint): void {
10298         if(!isWasmInitialized) {
10299                 throw new Error("initializeWasm() must be awaited first!");
10300         }
10301         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
10302         // debug statements here
10303 }
10304         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
10305 /* @internal */
10306 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(o: bigint): bigint {
10307         if(!isWasmInitialized) {
10308                 throw new Error("initializeWasm() must be awaited first!");
10309         }
10310         const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(o);
10311         return nativeResponseValue;
10312 }
10313         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
10314 /* @internal */
10315 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(): bigint {
10316         if(!isWasmInitialized) {
10317                 throw new Error("initializeWasm() must be awaited first!");
10318         }
10319         const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
10320         return nativeResponseValue;
10321 }
10322         // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
10323 /* @internal */
10324 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: bigint): void {
10325         if(!isWasmInitialized) {
10326                 throw new Error("initializeWasm() must be awaited first!");
10327         }
10328         const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
10329         // debug statements here
10330 }
10331         // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
10332 /* @internal */
10333 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(arg: bigint): bigint {
10334         if(!isWasmInitialized) {
10335                 throw new Error("initializeWasm() must be awaited first!");
10336         }
10337         const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(arg);
10338         return nativeResponseValue;
10339 }
10340         // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
10341 /* @internal */
10342 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(orig: bigint): bigint {
10343         if(!isWasmInitialized) {
10344                 throw new Error("initializeWasm() must be awaited first!");
10345         }
10346         const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(orig);
10347         return nativeResponseValue;
10348 }
10349         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
10350 /* @internal */
10351 export function CResult_NoneLightningErrorZ_ok(): bigint {
10352         if(!isWasmInitialized) {
10353                 throw new Error("initializeWasm() must be awaited first!");
10354         }
10355         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
10356         return nativeResponseValue;
10357 }
10358         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
10359 /* @internal */
10360 export function CResult_NoneLightningErrorZ_err(e: bigint): bigint {
10361         if(!isWasmInitialized) {
10362                 throw new Error("initializeWasm() must be awaited first!");
10363         }
10364         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
10365         return nativeResponseValue;
10366 }
10367         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
10368 /* @internal */
10369 export function CResult_NoneLightningErrorZ_is_ok(o: bigint): boolean {
10370         if(!isWasmInitialized) {
10371                 throw new Error("initializeWasm() must be awaited first!");
10372         }
10373         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
10374         return nativeResponseValue;
10375 }
10376         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
10377 /* @internal */
10378 export function CResult_NoneLightningErrorZ_free(_res: bigint): void {
10379         if(!isWasmInitialized) {
10380                 throw new Error("initializeWasm() must be awaited first!");
10381         }
10382         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
10383         // debug statements here
10384 }
10385         // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
10386 /* @internal */
10387 export function CResult_NoneLightningErrorZ_clone_ptr(arg: bigint): bigint {
10388         if(!isWasmInitialized) {
10389                 throw new Error("initializeWasm() must be awaited first!");
10390         }
10391         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
10392         return nativeResponseValue;
10393 }
10394         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
10395 /* @internal */
10396 export function CResult_NoneLightningErrorZ_clone(orig: bigint): bigint {
10397         if(!isWasmInitialized) {
10398                 throw new Error("initializeWasm() must be awaited first!");
10399         }
10400         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
10401         return nativeResponseValue;
10402 }
10403         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
10404 /* @internal */
10405 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: bigint): bigint {
10406         if(!isWasmInitialized) {
10407                 throw new Error("initializeWasm() must be awaited first!");
10408         }
10409         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
10410         return nativeResponseValue;
10411 }
10412         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
10413 /* @internal */
10414 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: bigint): bigint {
10415         if(!isWasmInitialized) {
10416                 throw new Error("initializeWasm() must be awaited first!");
10417         }
10418         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
10419         return nativeResponseValue;
10420 }
10421         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
10422 /* @internal */
10423 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: bigint): boolean {
10424         if(!isWasmInitialized) {
10425                 throw new Error("initializeWasm() must be awaited first!");
10426         }
10427         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
10428         return nativeResponseValue;
10429 }
10430         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
10431 /* @internal */
10432 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: bigint): void {
10433         if(!isWasmInitialized) {
10434                 throw new Error("initializeWasm() must be awaited first!");
10435         }
10436         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
10437         // debug statements here
10438 }
10439         // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
10440 /* @internal */
10441 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10442         if(!isWasmInitialized) {
10443                 throw new Error("initializeWasm() must be awaited first!");
10444         }
10445         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
10446         return nativeResponseValue;
10447 }
10448         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
10449 /* @internal */
10450 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: bigint): bigint {
10451         if(!isWasmInitialized) {
10452                 throw new Error("initializeWasm() must be awaited first!");
10453         }
10454         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
10455         return nativeResponseValue;
10456 }
10457         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
10458 /* @internal */
10459 export function CResult_ChannelInfoDecodeErrorZ_ok(o: bigint): bigint {
10460         if(!isWasmInitialized) {
10461                 throw new Error("initializeWasm() must be awaited first!");
10462         }
10463         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
10464         return nativeResponseValue;
10465 }
10466         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
10467 /* @internal */
10468 export function CResult_ChannelInfoDecodeErrorZ_err(e: bigint): bigint {
10469         if(!isWasmInitialized) {
10470                 throw new Error("initializeWasm() must be awaited first!");
10471         }
10472         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
10473         return nativeResponseValue;
10474 }
10475         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
10476 /* @internal */
10477 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: bigint): boolean {
10478         if(!isWasmInitialized) {
10479                 throw new Error("initializeWasm() must be awaited first!");
10480         }
10481         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
10482         return nativeResponseValue;
10483 }
10484         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
10485 /* @internal */
10486 export function CResult_ChannelInfoDecodeErrorZ_free(_res: bigint): void {
10487         if(!isWasmInitialized) {
10488                 throw new Error("initializeWasm() must be awaited first!");
10489         }
10490         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
10491         // debug statements here
10492 }
10493         // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
10494 /* @internal */
10495 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10496         if(!isWasmInitialized) {
10497                 throw new Error("initializeWasm() must be awaited first!");
10498         }
10499         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
10500         return nativeResponseValue;
10501 }
10502         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
10503 /* @internal */
10504 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: bigint): bigint {
10505         if(!isWasmInitialized) {
10506                 throw new Error("initializeWasm() must be awaited first!");
10507         }
10508         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
10509         return nativeResponseValue;
10510 }
10511         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
10512 /* @internal */
10513 export function CResult_RoutingFeesDecodeErrorZ_ok(o: bigint): bigint {
10514         if(!isWasmInitialized) {
10515                 throw new Error("initializeWasm() must be awaited first!");
10516         }
10517         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
10518         return nativeResponseValue;
10519 }
10520         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
10521 /* @internal */
10522 export function CResult_RoutingFeesDecodeErrorZ_err(e: bigint): bigint {
10523         if(!isWasmInitialized) {
10524                 throw new Error("initializeWasm() must be awaited first!");
10525         }
10526         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
10527         return nativeResponseValue;
10528 }
10529         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
10530 /* @internal */
10531 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: bigint): boolean {
10532         if(!isWasmInitialized) {
10533                 throw new Error("initializeWasm() must be awaited first!");
10534         }
10535         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
10536         return nativeResponseValue;
10537 }
10538         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
10539 /* @internal */
10540 export function CResult_RoutingFeesDecodeErrorZ_free(_res: bigint): void {
10541         if(!isWasmInitialized) {
10542                 throw new Error("initializeWasm() must be awaited first!");
10543         }
10544         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
10545         // debug statements here
10546 }
10547         // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
10548 /* @internal */
10549 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10550         if(!isWasmInitialized) {
10551                 throw new Error("initializeWasm() must be awaited first!");
10552         }
10553         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
10554         return nativeResponseValue;
10555 }
10556         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
10557 /* @internal */
10558 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: bigint): bigint {
10559         if(!isWasmInitialized) {
10560                 throw new Error("initializeWasm() must be awaited first!");
10561         }
10562         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
10563         return nativeResponseValue;
10564 }
10565         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
10566 /* @internal */
10567 export function CVec_NetAddressZ_free(_res: number): void {
10568         if(!isWasmInitialized) {
10569                 throw new Error("initializeWasm() must be awaited first!");
10570         }
10571         const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
10572         // debug statements here
10573 }
10574         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
10575 /* @internal */
10576 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: bigint): bigint {
10577         if(!isWasmInitialized) {
10578                 throw new Error("initializeWasm() must be awaited first!");
10579         }
10580         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
10581         return nativeResponseValue;
10582 }
10583         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
10584 /* @internal */
10585 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: bigint): bigint {
10586         if(!isWasmInitialized) {
10587                 throw new Error("initializeWasm() must be awaited first!");
10588         }
10589         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
10590         return nativeResponseValue;
10591 }
10592         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
10593 /* @internal */
10594 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: bigint): boolean {
10595         if(!isWasmInitialized) {
10596                 throw new Error("initializeWasm() must be awaited first!");
10597         }
10598         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
10599         return nativeResponseValue;
10600 }
10601         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
10602 /* @internal */
10603 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: bigint): void {
10604         if(!isWasmInitialized) {
10605                 throw new Error("initializeWasm() must be awaited first!");
10606         }
10607         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
10608         // debug statements here
10609 }
10610         // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
10611 /* @internal */
10612 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10613         if(!isWasmInitialized) {
10614                 throw new Error("initializeWasm() must be awaited first!");
10615         }
10616         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
10617         return nativeResponseValue;
10618 }
10619         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
10620 /* @internal */
10621 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: bigint): bigint {
10622         if(!isWasmInitialized) {
10623                 throw new Error("initializeWasm() must be awaited first!");
10624         }
10625         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
10626         return nativeResponseValue;
10627 }
10628         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
10629 /* @internal */
10630 export function CResult_NodeAliasDecodeErrorZ_ok(o: bigint): bigint {
10631         if(!isWasmInitialized) {
10632                 throw new Error("initializeWasm() must be awaited first!");
10633         }
10634         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_ok(o);
10635         return nativeResponseValue;
10636 }
10637         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
10638 /* @internal */
10639 export function CResult_NodeAliasDecodeErrorZ_err(e: bigint): bigint {
10640         if(!isWasmInitialized) {
10641                 throw new Error("initializeWasm() must be awaited first!");
10642         }
10643         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_err(e);
10644         return nativeResponseValue;
10645 }
10646         // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
10647 /* @internal */
10648 export function CResult_NodeAliasDecodeErrorZ_is_ok(o: bigint): boolean {
10649         if(!isWasmInitialized) {
10650                 throw new Error("initializeWasm() must be awaited first!");
10651         }
10652         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_is_ok(o);
10653         return nativeResponseValue;
10654 }
10655         // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
10656 /* @internal */
10657 export function CResult_NodeAliasDecodeErrorZ_free(_res: bigint): void {
10658         if(!isWasmInitialized) {
10659                 throw new Error("initializeWasm() must be awaited first!");
10660         }
10661         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_free(_res);
10662         // debug statements here
10663 }
10664         // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
10665 /* @internal */
10666 export function CResult_NodeAliasDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10667         if(!isWasmInitialized) {
10668                 throw new Error("initializeWasm() must be awaited first!");
10669         }
10670         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone_ptr(arg);
10671         return nativeResponseValue;
10672 }
10673         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
10674 /* @internal */
10675 export function CResult_NodeAliasDecodeErrorZ_clone(orig: bigint): bigint {
10676         if(!isWasmInitialized) {
10677                 throw new Error("initializeWasm() must be awaited first!");
10678         }
10679         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone(orig);
10680         return nativeResponseValue;
10681 }
10682         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
10683 /* @internal */
10684 export function CResult_NodeInfoDecodeErrorZ_ok(o: bigint): bigint {
10685         if(!isWasmInitialized) {
10686                 throw new Error("initializeWasm() must be awaited first!");
10687         }
10688         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
10689         return nativeResponseValue;
10690 }
10691         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
10692 /* @internal */
10693 export function CResult_NodeInfoDecodeErrorZ_err(e: bigint): bigint {
10694         if(!isWasmInitialized) {
10695                 throw new Error("initializeWasm() must be awaited first!");
10696         }
10697         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
10698         return nativeResponseValue;
10699 }
10700         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
10701 /* @internal */
10702 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: bigint): boolean {
10703         if(!isWasmInitialized) {
10704                 throw new Error("initializeWasm() must be awaited first!");
10705         }
10706         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
10707         return nativeResponseValue;
10708 }
10709         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
10710 /* @internal */
10711 export function CResult_NodeInfoDecodeErrorZ_free(_res: bigint): void {
10712         if(!isWasmInitialized) {
10713                 throw new Error("initializeWasm() must be awaited first!");
10714         }
10715         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
10716         // debug statements here
10717 }
10718         // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
10719 /* @internal */
10720 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10721         if(!isWasmInitialized) {
10722                 throw new Error("initializeWasm() must be awaited first!");
10723         }
10724         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
10725         return nativeResponseValue;
10726 }
10727         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
10728 /* @internal */
10729 export function CResult_NodeInfoDecodeErrorZ_clone(orig: bigint): bigint {
10730         if(!isWasmInitialized) {
10731                 throw new Error("initializeWasm() must be awaited first!");
10732         }
10733         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
10734         return nativeResponseValue;
10735 }
10736         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
10737 /* @internal */
10738 export function CResult_NetworkGraphDecodeErrorZ_ok(o: bigint): bigint {
10739         if(!isWasmInitialized) {
10740                 throw new Error("initializeWasm() must be awaited first!");
10741         }
10742         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
10743         return nativeResponseValue;
10744 }
10745         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
10746 /* @internal */
10747 export function CResult_NetworkGraphDecodeErrorZ_err(e: bigint): bigint {
10748         if(!isWasmInitialized) {
10749                 throw new Error("initializeWasm() must be awaited first!");
10750         }
10751         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
10752         return nativeResponseValue;
10753 }
10754         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
10755 /* @internal */
10756 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: bigint): boolean {
10757         if(!isWasmInitialized) {
10758                 throw new Error("initializeWasm() must be awaited first!");
10759         }
10760         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
10761         return nativeResponseValue;
10762 }
10763         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
10764 /* @internal */
10765 export function CResult_NetworkGraphDecodeErrorZ_free(_res: bigint): void {
10766         if(!isWasmInitialized) {
10767                 throw new Error("initializeWasm() must be awaited first!");
10768         }
10769         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
10770         // debug statements here
10771 }
10772         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
10773 /* @internal */
10774 export function COption_CVec_NetAddressZZ_some(o: number): bigint {
10775         if(!isWasmInitialized) {
10776                 throw new Error("initializeWasm() must be awaited first!");
10777         }
10778         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
10779         return nativeResponseValue;
10780 }
10781         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
10782 /* @internal */
10783 export function COption_CVec_NetAddressZZ_none(): bigint {
10784         if(!isWasmInitialized) {
10785                 throw new Error("initializeWasm() must be awaited first!");
10786         }
10787         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
10788         return nativeResponseValue;
10789 }
10790         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
10791 /* @internal */
10792 export function COption_CVec_NetAddressZZ_free(_res: bigint): void {
10793         if(!isWasmInitialized) {
10794                 throw new Error("initializeWasm() must be awaited first!");
10795         }
10796         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
10797         // debug statements here
10798 }
10799         // uint64_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
10800 /* @internal */
10801 export function COption_CVec_NetAddressZZ_clone_ptr(arg: bigint): bigint {
10802         if(!isWasmInitialized) {
10803                 throw new Error("initializeWasm() must be awaited first!");
10804         }
10805         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
10806         return nativeResponseValue;
10807 }
10808         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
10809 /* @internal */
10810 export function COption_CVec_NetAddressZZ_clone(orig: bigint): bigint {
10811         if(!isWasmInitialized) {
10812                 throw new Error("initializeWasm() must be awaited first!");
10813         }
10814         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
10815         return nativeResponseValue;
10816 }
10817         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
10818 /* @internal */
10819 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: bigint): bigint {
10820         if(!isWasmInitialized) {
10821                 throw new Error("initializeWasm() must be awaited first!");
10822         }
10823         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
10824         return nativeResponseValue;
10825 }
10826         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
10827 /* @internal */
10828 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: bigint): bigint {
10829         if(!isWasmInitialized) {
10830                 throw new Error("initializeWasm() must be awaited first!");
10831         }
10832         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
10833         return nativeResponseValue;
10834 }
10835         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
10836 /* @internal */
10837 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: bigint): boolean {
10838         if(!isWasmInitialized) {
10839                 throw new Error("initializeWasm() must be awaited first!");
10840         }
10841         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
10842         return nativeResponseValue;
10843 }
10844         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
10845 /* @internal */
10846 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: bigint): void {
10847         if(!isWasmInitialized) {
10848                 throw new Error("initializeWasm() must be awaited first!");
10849         }
10850         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
10851         // debug statements here
10852 }
10853         // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
10854 /* @internal */
10855 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10856         if(!isWasmInitialized) {
10857                 throw new Error("initializeWasm() must be awaited first!");
10858         }
10859         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
10860         return nativeResponseValue;
10861 }
10862         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
10863 /* @internal */
10864 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: bigint): bigint {
10865         if(!isWasmInitialized) {
10866                 throw new Error("initializeWasm() must be awaited first!");
10867         }
10868         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
10869         return nativeResponseValue;
10870 }
10871         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
10872 /* @internal */
10873 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: bigint): bigint {
10874         if(!isWasmInitialized) {
10875                 throw new Error("initializeWasm() must be awaited first!");
10876         }
10877         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
10878         return nativeResponseValue;
10879 }
10880         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
10881 /* @internal */
10882 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: bigint): bigint {
10883         if(!isWasmInitialized) {
10884                 throw new Error("initializeWasm() must be awaited first!");
10885         }
10886         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
10887         return nativeResponseValue;
10888 }
10889         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
10890 /* @internal */
10891 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: bigint): boolean {
10892         if(!isWasmInitialized) {
10893                 throw new Error("initializeWasm() must be awaited first!");
10894         }
10895         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
10896         return nativeResponseValue;
10897 }
10898         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
10899 /* @internal */
10900 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: bigint): void {
10901         if(!isWasmInitialized) {
10902                 throw new Error("initializeWasm() must be awaited first!");
10903         }
10904         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
10905         // debug statements here
10906 }
10907         // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
10908 /* @internal */
10909 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10910         if(!isWasmInitialized) {
10911                 throw new Error("initializeWasm() must be awaited first!");
10912         }
10913         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
10914         return nativeResponseValue;
10915 }
10916         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
10917 /* @internal */
10918 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: bigint): bigint {
10919         if(!isWasmInitialized) {
10920                 throw new Error("initializeWasm() must be awaited first!");
10921         }
10922         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
10923         return nativeResponseValue;
10924 }
10925         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
10926 /* @internal */
10927 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: bigint): bigint {
10928         if(!isWasmInitialized) {
10929                 throw new Error("initializeWasm() must be awaited first!");
10930         }
10931         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
10932         return nativeResponseValue;
10933 }
10934         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
10935 /* @internal */
10936 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: bigint): bigint {
10937         if(!isWasmInitialized) {
10938                 throw new Error("initializeWasm() must be awaited first!");
10939         }
10940         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
10941         return nativeResponseValue;
10942 }
10943         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
10944 /* @internal */
10945 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: bigint): boolean {
10946         if(!isWasmInitialized) {
10947                 throw new Error("initializeWasm() must be awaited first!");
10948         }
10949         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
10950         return nativeResponseValue;
10951 }
10952         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
10953 /* @internal */
10954 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: bigint): void {
10955         if(!isWasmInitialized) {
10956                 throw new Error("initializeWasm() must be awaited first!");
10957         }
10958         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
10959         // debug statements here
10960 }
10961         // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
10962 /* @internal */
10963 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10964         if(!isWasmInitialized) {
10965                 throw new Error("initializeWasm() must be awaited first!");
10966         }
10967         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
10968         return nativeResponseValue;
10969 }
10970         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
10971 /* @internal */
10972 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: bigint): bigint {
10973         if(!isWasmInitialized) {
10974                 throw new Error("initializeWasm() must be awaited first!");
10975         }
10976         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
10977         return nativeResponseValue;
10978 }
10979         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
10980 /* @internal */
10981 export function CVec_PaymentPreimageZ_free(_res: number): void {
10982         if(!isWasmInitialized) {
10983                 throw new Error("initializeWasm() must be awaited first!");
10984         }
10985         const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
10986         // debug statements here
10987 }
10988         // uint64_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
10989 /* @internal */
10990 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: bigint): bigint {
10991         if(!isWasmInitialized) {
10992                 throw new Error("initializeWasm() must be awaited first!");
10993         }
10994         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
10995         return nativeResponseValue;
10996 }
10997         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
10998 /* @internal */
10999 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: bigint): bigint {
11000         if(!isWasmInitialized) {
11001                 throw new Error("initializeWasm() must be awaited first!");
11002         }
11003         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
11004         return nativeResponseValue;
11005 }
11006         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
11007 /* @internal */
11008 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): bigint {
11009         if(!isWasmInitialized) {
11010                 throw new Error("initializeWasm() must be awaited first!");
11011         }
11012         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
11013         return nativeResponseValue;
11014 }
11015         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
11016 /* @internal */
11017 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: bigint): void {
11018         if(!isWasmInitialized) {
11019                 throw new Error("initializeWasm() must be awaited first!");
11020         }
11021         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
11022         // debug statements here
11023 }
11024         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
11025 /* @internal */
11026 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: bigint): bigint {
11027         if(!isWasmInitialized) {
11028                 throw new Error("initializeWasm() must be awaited first!");
11029         }
11030         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
11031         return nativeResponseValue;
11032 }
11033         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
11034 /* @internal */
11035 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): bigint {
11036         if(!isWasmInitialized) {
11037                 throw new Error("initializeWasm() must be awaited first!");
11038         }
11039         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
11040         return nativeResponseValue;
11041 }
11042         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
11043 /* @internal */
11044 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: bigint): boolean {
11045         if(!isWasmInitialized) {
11046                 throw new Error("initializeWasm() must be awaited first!");
11047         }
11048         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
11049         return nativeResponseValue;
11050 }
11051         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
11052 /* @internal */
11053 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: bigint): void {
11054         if(!isWasmInitialized) {
11055                 throw new Error("initializeWasm() must be awaited first!");
11056         }
11057         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
11058         // debug statements here
11059 }
11060         // uint64_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
11061 /* @internal */
11062 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: bigint): bigint {
11063         if(!isWasmInitialized) {
11064                 throw new Error("initializeWasm() must be awaited first!");
11065         }
11066         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
11067         return nativeResponseValue;
11068 }
11069         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
11070 /* @internal */
11071 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: bigint): bigint {
11072         if(!isWasmInitialized) {
11073                 throw new Error("initializeWasm() must be awaited first!");
11074         }
11075         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
11076         return nativeResponseValue;
11077 }
11078         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
11079 /* @internal */
11080 export function CResult_SignatureNoneZ_ok(o: number): bigint {
11081         if(!isWasmInitialized) {
11082                 throw new Error("initializeWasm() must be awaited first!");
11083         }
11084         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
11085         return nativeResponseValue;
11086 }
11087         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
11088 /* @internal */
11089 export function CResult_SignatureNoneZ_err(): bigint {
11090         if(!isWasmInitialized) {
11091                 throw new Error("initializeWasm() must be awaited first!");
11092         }
11093         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
11094         return nativeResponseValue;
11095 }
11096         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
11097 /* @internal */
11098 export function CResult_SignatureNoneZ_is_ok(o: bigint): boolean {
11099         if(!isWasmInitialized) {
11100                 throw new Error("initializeWasm() must be awaited first!");
11101         }
11102         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
11103         return nativeResponseValue;
11104 }
11105         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
11106 /* @internal */
11107 export function CResult_SignatureNoneZ_free(_res: bigint): void {
11108         if(!isWasmInitialized) {
11109                 throw new Error("initializeWasm() must be awaited first!");
11110         }
11111         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
11112         // debug statements here
11113 }
11114         // uint64_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
11115 /* @internal */
11116 export function CResult_SignatureNoneZ_clone_ptr(arg: bigint): bigint {
11117         if(!isWasmInitialized) {
11118                 throw new Error("initializeWasm() must be awaited first!");
11119         }
11120         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
11121         return nativeResponseValue;
11122 }
11123         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
11124 /* @internal */
11125 export function CResult_SignatureNoneZ_clone(orig: bigint): bigint {
11126         if(!isWasmInitialized) {
11127                 throw new Error("initializeWasm() must be awaited first!");
11128         }
11129         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
11130         return nativeResponseValue;
11131 }
11132         // uint64_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
11133 /* @internal */
11134 export function C2Tuple_SignatureSignatureZ_clone_ptr(arg: bigint): bigint {
11135         if(!isWasmInitialized) {
11136                 throw new Error("initializeWasm() must be awaited first!");
11137         }
11138         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone_ptr(arg);
11139         return nativeResponseValue;
11140 }
11141         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
11142 /* @internal */
11143 export function C2Tuple_SignatureSignatureZ_clone(orig: bigint): bigint {
11144         if(!isWasmInitialized) {
11145                 throw new Error("initializeWasm() must be awaited first!");
11146         }
11147         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone(orig);
11148         return nativeResponseValue;
11149 }
11150         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
11151 /* @internal */
11152 export function C2Tuple_SignatureSignatureZ_new(a: number, b: number): bigint {
11153         if(!isWasmInitialized) {
11154                 throw new Error("initializeWasm() must be awaited first!");
11155         }
11156         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_new(a, b);
11157         return nativeResponseValue;
11158 }
11159         // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
11160 /* @internal */
11161 export function C2Tuple_SignatureSignatureZ_free(_res: bigint): void {
11162         if(!isWasmInitialized) {
11163                 throw new Error("initializeWasm() must be awaited first!");
11164         }
11165         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_free(_res);
11166         // debug statements here
11167 }
11168         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
11169 /* @internal */
11170 export function CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o: bigint): bigint {
11171         if(!isWasmInitialized) {
11172                 throw new Error("initializeWasm() must be awaited first!");
11173         }
11174         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o);
11175         return nativeResponseValue;
11176 }
11177         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
11178 /* @internal */
11179 export function CResult_C2Tuple_SignatureSignatureZNoneZ_err(): bigint {
11180         if(!isWasmInitialized) {
11181                 throw new Error("initializeWasm() must be awaited first!");
11182         }
11183         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_err();
11184         return nativeResponseValue;
11185 }
11186         // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
11187 /* @internal */
11188 export function CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o: bigint): boolean {
11189         if(!isWasmInitialized) {
11190                 throw new Error("initializeWasm() must be awaited first!");
11191         }
11192         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o);
11193         return nativeResponseValue;
11194 }
11195         // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
11196 /* @internal */
11197 export function CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res: bigint): void {
11198         if(!isWasmInitialized) {
11199                 throw new Error("initializeWasm() must be awaited first!");
11200         }
11201         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res);
11202         // debug statements here
11203 }
11204         // uint64_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
11205 /* @internal */
11206 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg: bigint): bigint {
11207         if(!isWasmInitialized) {
11208                 throw new Error("initializeWasm() must be awaited first!");
11209         }
11210         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg);
11211         return nativeResponseValue;
11212 }
11213         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
11214 /* @internal */
11215 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig: bigint): bigint {
11216         if(!isWasmInitialized) {
11217                 throw new Error("initializeWasm() must be awaited first!");
11218         }
11219         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig);
11220         return nativeResponseValue;
11221 }
11222         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
11223 /* @internal */
11224 export function CResult_SecretKeyNoneZ_ok(o: number): bigint {
11225         if(!isWasmInitialized) {
11226                 throw new Error("initializeWasm() must be awaited first!");
11227         }
11228         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_ok(o);
11229         return nativeResponseValue;
11230 }
11231         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
11232 /* @internal */
11233 export function CResult_SecretKeyNoneZ_err(): bigint {
11234         if(!isWasmInitialized) {
11235                 throw new Error("initializeWasm() must be awaited first!");
11236         }
11237         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_err();
11238         return nativeResponseValue;
11239 }
11240         // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
11241 /* @internal */
11242 export function CResult_SecretKeyNoneZ_is_ok(o: bigint): boolean {
11243         if(!isWasmInitialized) {
11244                 throw new Error("initializeWasm() must be awaited first!");
11245         }
11246         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_is_ok(o);
11247         return nativeResponseValue;
11248 }
11249         // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
11250 /* @internal */
11251 export function CResult_SecretKeyNoneZ_free(_res: bigint): void {
11252         if(!isWasmInitialized) {
11253                 throw new Error("initializeWasm() must be awaited first!");
11254         }
11255         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_free(_res);
11256         // debug statements here
11257 }
11258         // uint64_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
11259 /* @internal */
11260 export function CResult_SecretKeyNoneZ_clone_ptr(arg: bigint): bigint {
11261         if(!isWasmInitialized) {
11262                 throw new Error("initializeWasm() must be awaited first!");
11263         }
11264         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone_ptr(arg);
11265         return nativeResponseValue;
11266 }
11267         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
11268 /* @internal */
11269 export function CResult_SecretKeyNoneZ_clone(orig: bigint): bigint {
11270         if(!isWasmInitialized) {
11271                 throw new Error("initializeWasm() must be awaited first!");
11272         }
11273         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone(orig);
11274         return nativeResponseValue;
11275 }
11276         // struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o);
11277 /* @internal */
11278 export function COption_ScalarZ_some(o: bigint): bigint {
11279         if(!isWasmInitialized) {
11280                 throw new Error("initializeWasm() must be awaited first!");
11281         }
11282         const nativeResponseValue = wasm.TS_COption_ScalarZ_some(o);
11283         return nativeResponseValue;
11284 }
11285         // struct LDKCOption_ScalarZ COption_ScalarZ_none(void);
11286 /* @internal */
11287 export function COption_ScalarZ_none(): bigint {
11288         if(!isWasmInitialized) {
11289                 throw new Error("initializeWasm() must be awaited first!");
11290         }
11291         const nativeResponseValue = wasm.TS_COption_ScalarZ_none();
11292         return nativeResponseValue;
11293 }
11294         // void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res);
11295 /* @internal */
11296 export function COption_ScalarZ_free(_res: bigint): void {
11297         if(!isWasmInitialized) {
11298                 throw new Error("initializeWasm() must be awaited first!");
11299         }
11300         const nativeResponseValue = wasm.TS_COption_ScalarZ_free(_res);
11301         // debug statements here
11302 }
11303         // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
11304 /* @internal */
11305 export function CResult_SharedSecretNoneZ_ok(o: number): bigint {
11306         if(!isWasmInitialized) {
11307                 throw new Error("initializeWasm() must be awaited first!");
11308         }
11309         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_ok(o);
11310         return nativeResponseValue;
11311 }
11312         // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void);
11313 /* @internal */
11314 export function CResult_SharedSecretNoneZ_err(): bigint {
11315         if(!isWasmInitialized) {
11316                 throw new Error("initializeWasm() must be awaited first!");
11317         }
11318         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_err();
11319         return nativeResponseValue;
11320 }
11321         // bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o);
11322 /* @internal */
11323 export function CResult_SharedSecretNoneZ_is_ok(o: bigint): boolean {
11324         if(!isWasmInitialized) {
11325                 throw new Error("initializeWasm() must be awaited first!");
11326         }
11327         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_is_ok(o);
11328         return nativeResponseValue;
11329 }
11330         // void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res);
11331 /* @internal */
11332 export function CResult_SharedSecretNoneZ_free(_res: bigint): void {
11333         if(!isWasmInitialized) {
11334                 throw new Error("initializeWasm() must be awaited first!");
11335         }
11336         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_free(_res);
11337         // debug statements here
11338 }
11339         // uint64_t CResult_SharedSecretNoneZ_clone_ptr(LDKCResult_SharedSecretNoneZ *NONNULL_PTR arg);
11340 /* @internal */
11341 export function CResult_SharedSecretNoneZ_clone_ptr(arg: bigint): bigint {
11342         if(!isWasmInitialized) {
11343                 throw new Error("initializeWasm() must be awaited first!");
11344         }
11345         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_clone_ptr(arg);
11346         return nativeResponseValue;
11347 }
11348         // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig);
11349 /* @internal */
11350 export function CResult_SharedSecretNoneZ_clone(orig: bigint): bigint {
11351         if(!isWasmInitialized) {
11352                 throw new Error("initializeWasm() must be awaited first!");
11353         }
11354         const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_clone(orig);
11355         return nativeResponseValue;
11356 }
11357         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
11358 /* @internal */
11359 export function CResult_SignDecodeErrorZ_ok(o: bigint): bigint {
11360         if(!isWasmInitialized) {
11361                 throw new Error("initializeWasm() must be awaited first!");
11362         }
11363         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_ok(o);
11364         return nativeResponseValue;
11365 }
11366         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
11367 /* @internal */
11368 export function CResult_SignDecodeErrorZ_err(e: bigint): bigint {
11369         if(!isWasmInitialized) {
11370                 throw new Error("initializeWasm() must be awaited first!");
11371         }
11372         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_err(e);
11373         return nativeResponseValue;
11374 }
11375         // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
11376 /* @internal */
11377 export function CResult_SignDecodeErrorZ_is_ok(o: bigint): boolean {
11378         if(!isWasmInitialized) {
11379                 throw new Error("initializeWasm() must be awaited first!");
11380         }
11381         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_is_ok(o);
11382         return nativeResponseValue;
11383 }
11384         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
11385 /* @internal */
11386 export function CResult_SignDecodeErrorZ_free(_res: bigint): void {
11387         if(!isWasmInitialized) {
11388                 throw new Error("initializeWasm() must be awaited first!");
11389         }
11390         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_free(_res);
11391         // debug statements here
11392 }
11393         // uint64_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
11394 /* @internal */
11395 export function CResult_SignDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11396         if(!isWasmInitialized) {
11397                 throw new Error("initializeWasm() must be awaited first!");
11398         }
11399         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone_ptr(arg);
11400         return nativeResponseValue;
11401 }
11402         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
11403 /* @internal */
11404 export function CResult_SignDecodeErrorZ_clone(orig: bigint): bigint {
11405         if(!isWasmInitialized) {
11406                 throw new Error("initializeWasm() must be awaited first!");
11407         }
11408         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone(orig);
11409         return nativeResponseValue;
11410 }
11411         // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
11412 /* @internal */
11413 export function CVec_u5Z_free(_res: number): void {
11414         if(!isWasmInitialized) {
11415                 throw new Error("initializeWasm() must be awaited first!");
11416         }
11417         const nativeResponseValue = wasm.TS_CVec_u5Z_free(_res);
11418         // debug statements here
11419 }
11420         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
11421 /* @internal */
11422 export function CResult_RecoverableSignatureNoneZ_ok(o: number): bigint {
11423         if(!isWasmInitialized) {
11424                 throw new Error("initializeWasm() must be awaited first!");
11425         }
11426         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
11427         return nativeResponseValue;
11428 }
11429         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
11430 /* @internal */
11431 export function CResult_RecoverableSignatureNoneZ_err(): bigint {
11432         if(!isWasmInitialized) {
11433                 throw new Error("initializeWasm() must be awaited first!");
11434         }
11435         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
11436         return nativeResponseValue;
11437 }
11438         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
11439 /* @internal */
11440 export function CResult_RecoverableSignatureNoneZ_is_ok(o: bigint): boolean {
11441         if(!isWasmInitialized) {
11442                 throw new Error("initializeWasm() must be awaited first!");
11443         }
11444         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
11445         return nativeResponseValue;
11446 }
11447         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
11448 /* @internal */
11449 export function CResult_RecoverableSignatureNoneZ_free(_res: bigint): void {
11450         if(!isWasmInitialized) {
11451                 throw new Error("initializeWasm() must be awaited first!");
11452         }
11453         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
11454         // debug statements here
11455 }
11456         // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
11457 /* @internal */
11458 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: bigint): bigint {
11459         if(!isWasmInitialized) {
11460                 throw new Error("initializeWasm() must be awaited first!");
11461         }
11462         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
11463         return nativeResponseValue;
11464 }
11465         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
11466 /* @internal */
11467 export function CResult_RecoverableSignatureNoneZ_clone(orig: bigint): bigint {
11468         if(!isWasmInitialized) {
11469                 throw new Error("initializeWasm() must be awaited first!");
11470         }
11471         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
11472         return nativeResponseValue;
11473 }
11474         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
11475 /* @internal */
11476 export function CVec_u8Z_free(_res: number): void {
11477         if(!isWasmInitialized) {
11478                 throw new Error("initializeWasm() must be awaited first!");
11479         }
11480         const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
11481         // debug statements here
11482 }
11483         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
11484 /* @internal */
11485 export function CVec_CVec_u8ZZ_free(_res: number): void {
11486         if(!isWasmInitialized) {
11487                 throw new Error("initializeWasm() must be awaited first!");
11488         }
11489         const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
11490         // debug statements here
11491 }
11492         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
11493 /* @internal */
11494 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): bigint {
11495         if(!isWasmInitialized) {
11496                 throw new Error("initializeWasm() must be awaited first!");
11497         }
11498         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
11499         return nativeResponseValue;
11500 }
11501         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
11502 /* @internal */
11503 export function CResult_CVec_CVec_u8ZZNoneZ_err(): bigint {
11504         if(!isWasmInitialized) {
11505                 throw new Error("initializeWasm() must be awaited first!");
11506         }
11507         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
11508         return nativeResponseValue;
11509 }
11510         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
11511 /* @internal */
11512 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: bigint): boolean {
11513         if(!isWasmInitialized) {
11514                 throw new Error("initializeWasm() must be awaited first!");
11515         }
11516         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
11517         return nativeResponseValue;
11518 }
11519         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
11520 /* @internal */
11521 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: bigint): void {
11522         if(!isWasmInitialized) {
11523                 throw new Error("initializeWasm() must be awaited first!");
11524         }
11525         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
11526         // debug statements here
11527 }
11528         // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
11529 /* @internal */
11530 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: bigint): bigint {
11531         if(!isWasmInitialized) {
11532                 throw new Error("initializeWasm() must be awaited first!");
11533         }
11534         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
11535         return nativeResponseValue;
11536 }
11537         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
11538 /* @internal */
11539 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: bigint): bigint {
11540         if(!isWasmInitialized) {
11541                 throw new Error("initializeWasm() must be awaited first!");
11542         }
11543         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
11544         return nativeResponseValue;
11545 }
11546         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
11547 /* @internal */
11548 export function CResult_InMemorySignerDecodeErrorZ_ok(o: bigint): bigint {
11549         if(!isWasmInitialized) {
11550                 throw new Error("initializeWasm() must be awaited first!");
11551         }
11552         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
11553         return nativeResponseValue;
11554 }
11555         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
11556 /* @internal */
11557 export function CResult_InMemorySignerDecodeErrorZ_err(e: bigint): bigint {
11558         if(!isWasmInitialized) {
11559                 throw new Error("initializeWasm() must be awaited first!");
11560         }
11561         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
11562         return nativeResponseValue;
11563 }
11564         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
11565 /* @internal */
11566 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: bigint): boolean {
11567         if(!isWasmInitialized) {
11568                 throw new Error("initializeWasm() must be awaited first!");
11569         }
11570         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
11571         return nativeResponseValue;
11572 }
11573         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
11574 /* @internal */
11575 export function CResult_InMemorySignerDecodeErrorZ_free(_res: bigint): void {
11576         if(!isWasmInitialized) {
11577                 throw new Error("initializeWasm() must be awaited first!");
11578         }
11579         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
11580         // debug statements here
11581 }
11582         // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
11583 /* @internal */
11584 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11585         if(!isWasmInitialized) {
11586                 throw new Error("initializeWasm() must be awaited first!");
11587         }
11588         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
11589         return nativeResponseValue;
11590 }
11591         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
11592 /* @internal */
11593 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: bigint): bigint {
11594         if(!isWasmInitialized) {
11595                 throw new Error("initializeWasm() must be awaited first!");
11596         }
11597         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
11598         return nativeResponseValue;
11599 }
11600         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
11601 /* @internal */
11602 export function CVec_TxOutZ_free(_res: number): void {
11603         if(!isWasmInitialized) {
11604                 throw new Error("initializeWasm() must be awaited first!");
11605         }
11606         const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
11607         // debug statements here
11608 }
11609         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
11610 /* @internal */
11611 export function CResult_TransactionNoneZ_ok(o: number): bigint {
11612         if(!isWasmInitialized) {
11613                 throw new Error("initializeWasm() must be awaited first!");
11614         }
11615         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
11616         return nativeResponseValue;
11617 }
11618         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
11619 /* @internal */
11620 export function CResult_TransactionNoneZ_err(): bigint {
11621         if(!isWasmInitialized) {
11622                 throw new Error("initializeWasm() must be awaited first!");
11623         }
11624         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
11625         return nativeResponseValue;
11626 }
11627         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
11628 /* @internal */
11629 export function CResult_TransactionNoneZ_is_ok(o: bigint): boolean {
11630         if(!isWasmInitialized) {
11631                 throw new Error("initializeWasm() must be awaited first!");
11632         }
11633         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
11634         return nativeResponseValue;
11635 }
11636         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
11637 /* @internal */
11638 export function CResult_TransactionNoneZ_free(_res: bigint): void {
11639         if(!isWasmInitialized) {
11640                 throw new Error("initializeWasm() must be awaited first!");
11641         }
11642         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
11643         // debug statements here
11644 }
11645         // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
11646 /* @internal */
11647 export function CResult_TransactionNoneZ_clone_ptr(arg: bigint): bigint {
11648         if(!isWasmInitialized) {
11649                 throw new Error("initializeWasm() must be awaited first!");
11650         }
11651         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
11652         return nativeResponseValue;
11653 }
11654         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
11655 /* @internal */
11656 export function CResult_TransactionNoneZ_clone(orig: bigint): bigint {
11657         if(!isWasmInitialized) {
11658                 throw new Error("initializeWasm() must be awaited first!");
11659         }
11660         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
11661         return nativeResponseValue;
11662 }
11663         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
11664 /* @internal */
11665 export function COption_u16Z_some(o: number): bigint {
11666         if(!isWasmInitialized) {
11667                 throw new Error("initializeWasm() must be awaited first!");
11668         }
11669         const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
11670         return nativeResponseValue;
11671 }
11672         // struct LDKCOption_u16Z COption_u16Z_none(void);
11673 /* @internal */
11674 export function COption_u16Z_none(): bigint {
11675         if(!isWasmInitialized) {
11676                 throw new Error("initializeWasm() must be awaited first!");
11677         }
11678         const nativeResponseValue = wasm.TS_COption_u16Z_none();
11679         return nativeResponseValue;
11680 }
11681         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
11682 /* @internal */
11683 export function COption_u16Z_free(_res: bigint): void {
11684         if(!isWasmInitialized) {
11685                 throw new Error("initializeWasm() must be awaited first!");
11686         }
11687         const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
11688         // debug statements here
11689 }
11690         // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
11691 /* @internal */
11692 export function COption_u16Z_clone_ptr(arg: bigint): bigint {
11693         if(!isWasmInitialized) {
11694                 throw new Error("initializeWasm() must be awaited first!");
11695         }
11696         const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
11697         return nativeResponseValue;
11698 }
11699         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
11700 /* @internal */
11701 export function COption_u16Z_clone(orig: bigint): bigint {
11702         if(!isWasmInitialized) {
11703                 throw new Error("initializeWasm() must be awaited first!");
11704         }
11705         const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
11706         return nativeResponseValue;
11707 }
11708         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
11709 /* @internal */
11710 export function CResult_NoneAPIErrorZ_ok(): bigint {
11711         if(!isWasmInitialized) {
11712                 throw new Error("initializeWasm() must be awaited first!");
11713         }
11714         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
11715         return nativeResponseValue;
11716 }
11717         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
11718 /* @internal */
11719 export function CResult_NoneAPIErrorZ_err(e: bigint): bigint {
11720         if(!isWasmInitialized) {
11721                 throw new Error("initializeWasm() must be awaited first!");
11722         }
11723         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
11724         return nativeResponseValue;
11725 }
11726         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
11727 /* @internal */
11728 export function CResult_NoneAPIErrorZ_is_ok(o: bigint): boolean {
11729         if(!isWasmInitialized) {
11730                 throw new Error("initializeWasm() must be awaited first!");
11731         }
11732         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
11733         return nativeResponseValue;
11734 }
11735         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
11736 /* @internal */
11737 export function CResult_NoneAPIErrorZ_free(_res: bigint): void {
11738         if(!isWasmInitialized) {
11739                 throw new Error("initializeWasm() must be awaited first!");
11740         }
11741         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
11742         // debug statements here
11743 }
11744         // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
11745 /* @internal */
11746 export function CResult_NoneAPIErrorZ_clone_ptr(arg: bigint): bigint {
11747         if(!isWasmInitialized) {
11748                 throw new Error("initializeWasm() must be awaited first!");
11749         }
11750         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
11751         return nativeResponseValue;
11752 }
11753         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
11754 /* @internal */
11755 export function CResult_NoneAPIErrorZ_clone(orig: bigint): bigint {
11756         if(!isWasmInitialized) {
11757                 throw new Error("initializeWasm() must be awaited first!");
11758         }
11759         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
11760         return nativeResponseValue;
11761 }
11762         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
11763 /* @internal */
11764 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
11765         if(!isWasmInitialized) {
11766                 throw new Error("initializeWasm() must be awaited first!");
11767         }
11768         const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
11769         // debug statements here
11770 }
11771         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
11772 /* @internal */
11773 export function CVec_APIErrorZ_free(_res: number): void {
11774         if(!isWasmInitialized) {
11775                 throw new Error("initializeWasm() must be awaited first!");
11776         }
11777         const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
11778         // debug statements here
11779 }
11780         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
11781 /* @internal */
11782 export function CResult__u832APIErrorZ_ok(o: number): bigint {
11783         if(!isWasmInitialized) {
11784                 throw new Error("initializeWasm() must be awaited first!");
11785         }
11786         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
11787         return nativeResponseValue;
11788 }
11789         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
11790 /* @internal */
11791 export function CResult__u832APIErrorZ_err(e: bigint): bigint {
11792         if(!isWasmInitialized) {
11793                 throw new Error("initializeWasm() must be awaited first!");
11794         }
11795         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
11796         return nativeResponseValue;
11797 }
11798         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
11799 /* @internal */
11800 export function CResult__u832APIErrorZ_is_ok(o: bigint): boolean {
11801         if(!isWasmInitialized) {
11802                 throw new Error("initializeWasm() must be awaited first!");
11803         }
11804         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
11805         return nativeResponseValue;
11806 }
11807         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
11808 /* @internal */
11809 export function CResult__u832APIErrorZ_free(_res: bigint): void {
11810         if(!isWasmInitialized) {
11811                 throw new Error("initializeWasm() must be awaited first!");
11812         }
11813         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
11814         // debug statements here
11815 }
11816         // uint64_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
11817 /* @internal */
11818 export function CResult__u832APIErrorZ_clone_ptr(arg: bigint): bigint {
11819         if(!isWasmInitialized) {
11820                 throw new Error("initializeWasm() must be awaited first!");
11821         }
11822         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
11823         return nativeResponseValue;
11824 }
11825         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
11826 /* @internal */
11827 export function CResult__u832APIErrorZ_clone(orig: bigint): bigint {
11828         if(!isWasmInitialized) {
11829                 throw new Error("initializeWasm() must be awaited first!");
11830         }
11831         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
11832         return nativeResponseValue;
11833 }
11834         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
11835 /* @internal */
11836 export function CResult_PaymentIdPaymentSendFailureZ_ok(o: number): bigint {
11837         if(!isWasmInitialized) {
11838                 throw new Error("initializeWasm() must be awaited first!");
11839         }
11840         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_ok(o);
11841         return nativeResponseValue;
11842 }
11843         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
11844 /* @internal */
11845 export function CResult_PaymentIdPaymentSendFailureZ_err(e: bigint): bigint {
11846         if(!isWasmInitialized) {
11847                 throw new Error("initializeWasm() must be awaited first!");
11848         }
11849         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_err(e);
11850         return nativeResponseValue;
11851 }
11852         // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
11853 /* @internal */
11854 export function CResult_PaymentIdPaymentSendFailureZ_is_ok(o: bigint): boolean {
11855         if(!isWasmInitialized) {
11856                 throw new Error("initializeWasm() must be awaited first!");
11857         }
11858         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_is_ok(o);
11859         return nativeResponseValue;
11860 }
11861         // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
11862 /* @internal */
11863 export function CResult_PaymentIdPaymentSendFailureZ_free(_res: bigint): void {
11864         if(!isWasmInitialized) {
11865                 throw new Error("initializeWasm() must be awaited first!");
11866         }
11867         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_free(_res);
11868         // debug statements here
11869 }
11870         // uint64_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
11871 /* @internal */
11872 export function CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg: bigint): bigint {
11873         if(!isWasmInitialized) {
11874                 throw new Error("initializeWasm() must be awaited first!");
11875         }
11876         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg);
11877         return nativeResponseValue;
11878 }
11879         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
11880 /* @internal */
11881 export function CResult_PaymentIdPaymentSendFailureZ_clone(orig: bigint): bigint {
11882         if(!isWasmInitialized) {
11883                 throw new Error("initializeWasm() must be awaited first!");
11884         }
11885         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone(orig);
11886         return nativeResponseValue;
11887 }
11888         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
11889 /* @internal */
11890 export function CResult_NonePaymentSendFailureZ_ok(): bigint {
11891         if(!isWasmInitialized) {
11892                 throw new Error("initializeWasm() must be awaited first!");
11893         }
11894         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
11895         return nativeResponseValue;
11896 }
11897         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
11898 /* @internal */
11899 export function CResult_NonePaymentSendFailureZ_err(e: bigint): bigint {
11900         if(!isWasmInitialized) {
11901                 throw new Error("initializeWasm() must be awaited first!");
11902         }
11903         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
11904         return nativeResponseValue;
11905 }
11906         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
11907 /* @internal */
11908 export function CResult_NonePaymentSendFailureZ_is_ok(o: bigint): boolean {
11909         if(!isWasmInitialized) {
11910                 throw new Error("initializeWasm() must be awaited first!");
11911         }
11912         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
11913         return nativeResponseValue;
11914 }
11915         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
11916 /* @internal */
11917 export function CResult_NonePaymentSendFailureZ_free(_res: bigint): void {
11918         if(!isWasmInitialized) {
11919                 throw new Error("initializeWasm() must be awaited first!");
11920         }
11921         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
11922         // debug statements here
11923 }
11924         // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
11925 /* @internal */
11926 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: bigint): bigint {
11927         if(!isWasmInitialized) {
11928                 throw new Error("initializeWasm() must be awaited first!");
11929         }
11930         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
11931         return nativeResponseValue;
11932 }
11933         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
11934 /* @internal */
11935 export function CResult_NonePaymentSendFailureZ_clone(orig: bigint): bigint {
11936         if(!isWasmInitialized) {
11937                 throw new Error("initializeWasm() must be awaited first!");
11938         }
11939         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
11940         return nativeResponseValue;
11941 }
11942         // uint64_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
11943 /* @internal */
11944 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: bigint): bigint {
11945         if(!isWasmInitialized) {
11946                 throw new Error("initializeWasm() must be awaited first!");
11947         }
11948         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
11949         return nativeResponseValue;
11950 }
11951         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
11952 /* @internal */
11953 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: bigint): bigint {
11954         if(!isWasmInitialized) {
11955                 throw new Error("initializeWasm() must be awaited first!");
11956         }
11957         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
11958         return nativeResponseValue;
11959 }
11960         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
11961 /* @internal */
11962 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): bigint {
11963         if(!isWasmInitialized) {
11964                 throw new Error("initializeWasm() must be awaited first!");
11965         }
11966         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
11967         return nativeResponseValue;
11968 }
11969         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
11970 /* @internal */
11971 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: bigint): void {
11972         if(!isWasmInitialized) {
11973                 throw new Error("initializeWasm() must be awaited first!");
11974         }
11975         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
11976         // debug statements here
11977 }
11978         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
11979 /* @internal */
11980 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: bigint): bigint {
11981         if(!isWasmInitialized) {
11982                 throw new Error("initializeWasm() must be awaited first!");
11983         }
11984         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
11985         return nativeResponseValue;
11986 }
11987         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
11988 /* @internal */
11989 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: bigint): bigint {
11990         if(!isWasmInitialized) {
11991                 throw new Error("initializeWasm() must be awaited first!");
11992         }
11993         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
11994         return nativeResponseValue;
11995 }
11996         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
11997 /* @internal */
11998 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: bigint): boolean {
11999         if(!isWasmInitialized) {
12000                 throw new Error("initializeWasm() must be awaited first!");
12001         }
12002         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
12003         return nativeResponseValue;
12004 }
12005         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
12006 /* @internal */
12007 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: bigint): void {
12008         if(!isWasmInitialized) {
12009                 throw new Error("initializeWasm() must be awaited first!");
12010         }
12011         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
12012         // debug statements here
12013 }
12014         // uint64_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
12015 /* @internal */
12016 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: bigint): bigint {
12017         if(!isWasmInitialized) {
12018                 throw new Error("initializeWasm() must be awaited first!");
12019         }
12020         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
12021         return nativeResponseValue;
12022 }
12023         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
12024 /* @internal */
12025 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: bigint): bigint {
12026         if(!isWasmInitialized) {
12027                 throw new Error("initializeWasm() must be awaited first!");
12028         }
12029         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
12030         return nativeResponseValue;
12031 }
12032         // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
12033 /* @internal */
12034 export function CVec_ThirtyTwoBytesZ_free(_res: number): void {
12035         if(!isWasmInitialized) {
12036                 throw new Error("initializeWasm() must be awaited first!");
12037         }
12038         const nativeResponseValue = wasm.TS_CVec_ThirtyTwoBytesZ_free(_res);
12039         // debug statements here
12040 }
12041         // uint64_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
12042 /* @internal */
12043 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: bigint): bigint {
12044         if(!isWasmInitialized) {
12045                 throw new Error("initializeWasm() must be awaited first!");
12046         }
12047         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
12048         return nativeResponseValue;
12049 }
12050         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
12051 /* @internal */
12052 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: bigint): bigint {
12053         if(!isWasmInitialized) {
12054                 throw new Error("initializeWasm() must be awaited first!");
12055         }
12056         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
12057         return nativeResponseValue;
12058 }
12059         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
12060 /* @internal */
12061 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): bigint {
12062         if(!isWasmInitialized) {
12063                 throw new Error("initializeWasm() must be awaited first!");
12064         }
12065         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
12066         return nativeResponseValue;
12067 }
12068         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
12069 /* @internal */
12070 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: bigint): void {
12071         if(!isWasmInitialized) {
12072                 throw new Error("initializeWasm() must be awaited first!");
12073         }
12074         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
12075         // debug statements here
12076 }
12077         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
12078 /* @internal */
12079 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: bigint): bigint {
12080         if(!isWasmInitialized) {
12081                 throw new Error("initializeWasm() must be awaited first!");
12082         }
12083         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
12084         return nativeResponseValue;
12085 }
12086         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
12087 /* @internal */
12088 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): bigint {
12089         if(!isWasmInitialized) {
12090                 throw new Error("initializeWasm() must be awaited first!");
12091         }
12092         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
12093         return nativeResponseValue;
12094 }
12095         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
12096 /* @internal */
12097 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: bigint): boolean {
12098         if(!isWasmInitialized) {
12099                 throw new Error("initializeWasm() must be awaited first!");
12100         }
12101         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
12102         return nativeResponseValue;
12103 }
12104         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
12105 /* @internal */
12106 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: bigint): void {
12107         if(!isWasmInitialized) {
12108                 throw new Error("initializeWasm() must be awaited first!");
12109         }
12110         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
12111         // debug statements here
12112 }
12113         // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
12114 /* @internal */
12115 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: bigint): bigint {
12116         if(!isWasmInitialized) {
12117                 throw new Error("initializeWasm() must be awaited first!");
12118         }
12119         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
12120         return nativeResponseValue;
12121 }
12122         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
12123 /* @internal */
12124 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: bigint): bigint {
12125         if(!isWasmInitialized) {
12126                 throw new Error("initializeWasm() must be awaited first!");
12127         }
12128         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
12129         return nativeResponseValue;
12130 }
12131         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
12132 /* @internal */
12133 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: bigint): bigint {
12134         if(!isWasmInitialized) {
12135                 throw new Error("initializeWasm() must be awaited first!");
12136         }
12137         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
12138         return nativeResponseValue;
12139 }
12140         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
12141 /* @internal */
12142 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: bigint): bigint {
12143         if(!isWasmInitialized) {
12144                 throw new Error("initializeWasm() must be awaited first!");
12145         }
12146         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
12147         return nativeResponseValue;
12148 }
12149         // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
12150 /* @internal */
12151 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: bigint): boolean {
12152         if(!isWasmInitialized) {
12153                 throw new Error("initializeWasm() must be awaited first!");
12154         }
12155         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
12156         return nativeResponseValue;
12157 }
12158         // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
12159 /* @internal */
12160 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: bigint): void {
12161         if(!isWasmInitialized) {
12162                 throw new Error("initializeWasm() must be awaited first!");
12163         }
12164         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
12165         // debug statements here
12166 }
12167         // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
12168 /* @internal */
12169 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: bigint): bigint {
12170         if(!isWasmInitialized) {
12171                 throw new Error("initializeWasm() must be awaited first!");
12172         }
12173         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
12174         return nativeResponseValue;
12175 }
12176         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
12177 /* @internal */
12178 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: bigint): bigint {
12179         if(!isWasmInitialized) {
12180                 throw new Error("initializeWasm() must be awaited first!");
12181         }
12182         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
12183         return nativeResponseValue;
12184 }
12185         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
12186 /* @internal */
12187 export function CResult_PaymentSecretNoneZ_ok(o: number): bigint {
12188         if(!isWasmInitialized) {
12189                 throw new Error("initializeWasm() must be awaited first!");
12190         }
12191         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
12192         return nativeResponseValue;
12193 }
12194         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
12195 /* @internal */
12196 export function CResult_PaymentSecretNoneZ_err(): bigint {
12197         if(!isWasmInitialized) {
12198                 throw new Error("initializeWasm() must be awaited first!");
12199         }
12200         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
12201         return nativeResponseValue;
12202 }
12203         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
12204 /* @internal */
12205 export function CResult_PaymentSecretNoneZ_is_ok(o: bigint): boolean {
12206         if(!isWasmInitialized) {
12207                 throw new Error("initializeWasm() must be awaited first!");
12208         }
12209         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
12210         return nativeResponseValue;
12211 }
12212         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
12213 /* @internal */
12214 export function CResult_PaymentSecretNoneZ_free(_res: bigint): void {
12215         if(!isWasmInitialized) {
12216                 throw new Error("initializeWasm() must be awaited first!");
12217         }
12218         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
12219         // debug statements here
12220 }
12221         // uint64_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
12222 /* @internal */
12223 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: bigint): bigint {
12224         if(!isWasmInitialized) {
12225                 throw new Error("initializeWasm() must be awaited first!");
12226         }
12227         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
12228         return nativeResponseValue;
12229 }
12230         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
12231 /* @internal */
12232 export function CResult_PaymentSecretNoneZ_clone(orig: bigint): bigint {
12233         if(!isWasmInitialized) {
12234                 throw new Error("initializeWasm() must be awaited first!");
12235         }
12236         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
12237         return nativeResponseValue;
12238 }
12239         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
12240 /* @internal */
12241 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): bigint {
12242         if(!isWasmInitialized) {
12243                 throw new Error("initializeWasm() must be awaited first!");
12244         }
12245         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
12246         return nativeResponseValue;
12247 }
12248         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
12249 /* @internal */
12250 export function CResult_PaymentSecretAPIErrorZ_err(e: bigint): bigint {
12251         if(!isWasmInitialized) {
12252                 throw new Error("initializeWasm() must be awaited first!");
12253         }
12254         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
12255         return nativeResponseValue;
12256 }
12257         // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
12258 /* @internal */
12259 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: bigint): boolean {
12260         if(!isWasmInitialized) {
12261                 throw new Error("initializeWasm() must be awaited first!");
12262         }
12263         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
12264         return nativeResponseValue;
12265 }
12266         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
12267 /* @internal */
12268 export function CResult_PaymentSecretAPIErrorZ_free(_res: bigint): void {
12269         if(!isWasmInitialized) {
12270                 throw new Error("initializeWasm() must be awaited first!");
12271         }
12272         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
12273         // debug statements here
12274 }
12275         // uint64_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
12276 /* @internal */
12277 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: bigint): bigint {
12278         if(!isWasmInitialized) {
12279                 throw new Error("initializeWasm() must be awaited first!");
12280         }
12281         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
12282         return nativeResponseValue;
12283 }
12284         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
12285 /* @internal */
12286 export function CResult_PaymentSecretAPIErrorZ_clone(orig: bigint): bigint {
12287         if(!isWasmInitialized) {
12288                 throw new Error("initializeWasm() must be awaited first!");
12289         }
12290         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
12291         return nativeResponseValue;
12292 }
12293         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
12294 /* @internal */
12295 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): bigint {
12296         if(!isWasmInitialized) {
12297                 throw new Error("initializeWasm() must be awaited first!");
12298         }
12299         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
12300         return nativeResponseValue;
12301 }
12302         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
12303 /* @internal */
12304 export function CResult_PaymentPreimageAPIErrorZ_err(e: bigint): bigint {
12305         if(!isWasmInitialized) {
12306                 throw new Error("initializeWasm() must be awaited first!");
12307         }
12308         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
12309         return nativeResponseValue;
12310 }
12311         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
12312 /* @internal */
12313 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: bigint): boolean {
12314         if(!isWasmInitialized) {
12315                 throw new Error("initializeWasm() must be awaited first!");
12316         }
12317         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
12318         return nativeResponseValue;
12319 }
12320         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
12321 /* @internal */
12322 export function CResult_PaymentPreimageAPIErrorZ_free(_res: bigint): void {
12323         if(!isWasmInitialized) {
12324                 throw new Error("initializeWasm() must be awaited first!");
12325         }
12326         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
12327         // debug statements here
12328 }
12329         // uint64_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
12330 /* @internal */
12331 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: bigint): bigint {
12332         if(!isWasmInitialized) {
12333                 throw new Error("initializeWasm() must be awaited first!");
12334         }
12335         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
12336         return nativeResponseValue;
12337 }
12338         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
12339 /* @internal */
12340 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: bigint): bigint {
12341         if(!isWasmInitialized) {
12342                 throw new Error("initializeWasm() must be awaited first!");
12343         }
12344         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
12345         return nativeResponseValue;
12346 }
12347         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
12348 /* @internal */
12349 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: bigint): bigint {
12350         if(!isWasmInitialized) {
12351                 throw new Error("initializeWasm() must be awaited first!");
12352         }
12353         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
12354         return nativeResponseValue;
12355 }
12356         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
12357 /* @internal */
12358 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: bigint): bigint {
12359         if(!isWasmInitialized) {
12360                 throw new Error("initializeWasm() must be awaited first!");
12361         }
12362         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
12363         return nativeResponseValue;
12364 }
12365         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
12366 /* @internal */
12367 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: bigint): boolean {
12368         if(!isWasmInitialized) {
12369                 throw new Error("initializeWasm() must be awaited first!");
12370         }
12371         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
12372         return nativeResponseValue;
12373 }
12374         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
12375 /* @internal */
12376 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: bigint): void {
12377         if(!isWasmInitialized) {
12378                 throw new Error("initializeWasm() must be awaited first!");
12379         }
12380         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
12381         // debug statements here
12382 }
12383         // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
12384 /* @internal */
12385 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12386         if(!isWasmInitialized) {
12387                 throw new Error("initializeWasm() must be awaited first!");
12388         }
12389         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
12390         return nativeResponseValue;
12391 }
12392         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
12393 /* @internal */
12394 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: bigint): bigint {
12395         if(!isWasmInitialized) {
12396                 throw new Error("initializeWasm() must be awaited first!");
12397         }
12398         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
12399         return nativeResponseValue;
12400 }
12401         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
12402 /* @internal */
12403 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: bigint): bigint {
12404         if(!isWasmInitialized) {
12405                 throw new Error("initializeWasm() must be awaited first!");
12406         }
12407         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
12408         return nativeResponseValue;
12409 }
12410         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
12411 /* @internal */
12412 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: bigint): bigint {
12413         if(!isWasmInitialized) {
12414                 throw new Error("initializeWasm() must be awaited first!");
12415         }
12416         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
12417         return nativeResponseValue;
12418 }
12419         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
12420 /* @internal */
12421 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: bigint): boolean {
12422         if(!isWasmInitialized) {
12423                 throw new Error("initializeWasm() must be awaited first!");
12424         }
12425         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
12426         return nativeResponseValue;
12427 }
12428         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
12429 /* @internal */
12430 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: bigint): void {
12431         if(!isWasmInitialized) {
12432                 throw new Error("initializeWasm() must be awaited first!");
12433         }
12434         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
12435         // debug statements here
12436 }
12437         // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
12438 /* @internal */
12439 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12440         if(!isWasmInitialized) {
12441                 throw new Error("initializeWasm() must be awaited first!");
12442         }
12443         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
12444         return nativeResponseValue;
12445 }
12446         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
12447 /* @internal */
12448 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: bigint): bigint {
12449         if(!isWasmInitialized) {
12450                 throw new Error("initializeWasm() must be awaited first!");
12451         }
12452         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
12453         return nativeResponseValue;
12454 }
12455         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
12456 /* @internal */
12457 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: bigint): bigint {
12458         if(!isWasmInitialized) {
12459                 throw new Error("initializeWasm() must be awaited first!");
12460         }
12461         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
12462         return nativeResponseValue;
12463 }
12464         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
12465 /* @internal */
12466 export function CResult_ChannelDetailsDecodeErrorZ_err(e: bigint): bigint {
12467         if(!isWasmInitialized) {
12468                 throw new Error("initializeWasm() must be awaited first!");
12469         }
12470         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
12471         return nativeResponseValue;
12472 }
12473         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
12474 /* @internal */
12475 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: bigint): boolean {
12476         if(!isWasmInitialized) {
12477                 throw new Error("initializeWasm() must be awaited first!");
12478         }
12479         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
12480         return nativeResponseValue;
12481 }
12482         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
12483 /* @internal */
12484 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: bigint): void {
12485         if(!isWasmInitialized) {
12486                 throw new Error("initializeWasm() must be awaited first!");
12487         }
12488         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
12489         // debug statements here
12490 }
12491         // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
12492 /* @internal */
12493 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12494         if(!isWasmInitialized) {
12495                 throw new Error("initializeWasm() must be awaited first!");
12496         }
12497         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
12498         return nativeResponseValue;
12499 }
12500         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
12501 /* @internal */
12502 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: bigint): bigint {
12503         if(!isWasmInitialized) {
12504                 throw new Error("initializeWasm() must be awaited first!");
12505         }
12506         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
12507         return nativeResponseValue;
12508 }
12509         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
12510 /* @internal */
12511 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: bigint): bigint {
12512         if(!isWasmInitialized) {
12513                 throw new Error("initializeWasm() must be awaited first!");
12514         }
12515         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
12516         return nativeResponseValue;
12517 }
12518         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
12519 /* @internal */
12520 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: bigint): bigint {
12521         if(!isWasmInitialized) {
12522                 throw new Error("initializeWasm() must be awaited first!");
12523         }
12524         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
12525         return nativeResponseValue;
12526 }
12527         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
12528 /* @internal */
12529 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: bigint): boolean {
12530         if(!isWasmInitialized) {
12531                 throw new Error("initializeWasm() must be awaited first!");
12532         }
12533         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
12534         return nativeResponseValue;
12535 }
12536         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
12537 /* @internal */
12538 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: bigint): void {
12539         if(!isWasmInitialized) {
12540                 throw new Error("initializeWasm() must be awaited first!");
12541         }
12542         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
12543         // debug statements here
12544 }
12545         // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
12546 /* @internal */
12547 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12548         if(!isWasmInitialized) {
12549                 throw new Error("initializeWasm() must be awaited first!");
12550         }
12551         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
12552         return nativeResponseValue;
12553 }
12554         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
12555 /* @internal */
12556 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: bigint): bigint {
12557         if(!isWasmInitialized) {
12558                 throw new Error("initializeWasm() must be awaited first!");
12559         }
12560         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
12561         return nativeResponseValue;
12562 }
12563         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
12564 /* @internal */
12565 export function CVec_ChannelMonitorZ_free(_res: number): void {
12566         if(!isWasmInitialized) {
12567                 throw new Error("initializeWasm() must be awaited first!");
12568         }
12569         const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
12570         // debug statements here
12571 }
12572         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
12573 /* @internal */
12574 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: bigint): bigint {
12575         if(!isWasmInitialized) {
12576                 throw new Error("initializeWasm() must be awaited first!");
12577         }
12578         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
12579         return nativeResponseValue;
12580 }
12581         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
12582 /* @internal */
12583 export function C2Tuple_BlockHashChannelManagerZ_free(_res: bigint): void {
12584         if(!isWasmInitialized) {
12585                 throw new Error("initializeWasm() must be awaited first!");
12586         }
12587         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
12588         // debug statements here
12589 }
12590         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
12591 /* @internal */
12592 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: bigint): bigint {
12593         if(!isWasmInitialized) {
12594                 throw new Error("initializeWasm() must be awaited first!");
12595         }
12596         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
12597         return nativeResponseValue;
12598 }
12599         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
12600 /* @internal */
12601 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: bigint): bigint {
12602         if(!isWasmInitialized) {
12603                 throw new Error("initializeWasm() must be awaited first!");
12604         }
12605         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
12606         return nativeResponseValue;
12607 }
12608         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
12609 /* @internal */
12610 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: bigint): boolean {
12611         if(!isWasmInitialized) {
12612                 throw new Error("initializeWasm() must be awaited first!");
12613         }
12614         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
12615         return nativeResponseValue;
12616 }
12617         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
12618 /* @internal */
12619 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: bigint): void {
12620         if(!isWasmInitialized) {
12621                 throw new Error("initializeWasm() must be awaited first!");
12622         }
12623         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
12624         // debug statements here
12625 }
12626         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
12627 /* @internal */
12628 export function CResult_ChannelConfigDecodeErrorZ_ok(o: bigint): bigint {
12629         if(!isWasmInitialized) {
12630                 throw new Error("initializeWasm() must be awaited first!");
12631         }
12632         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
12633         return nativeResponseValue;
12634 }
12635         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
12636 /* @internal */
12637 export function CResult_ChannelConfigDecodeErrorZ_err(e: bigint): bigint {
12638         if(!isWasmInitialized) {
12639                 throw new Error("initializeWasm() must be awaited first!");
12640         }
12641         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
12642         return nativeResponseValue;
12643 }
12644         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
12645 /* @internal */
12646 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: bigint): boolean {
12647         if(!isWasmInitialized) {
12648                 throw new Error("initializeWasm() must be awaited first!");
12649         }
12650         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
12651         return nativeResponseValue;
12652 }
12653         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
12654 /* @internal */
12655 export function CResult_ChannelConfigDecodeErrorZ_free(_res: bigint): void {
12656         if(!isWasmInitialized) {
12657                 throw new Error("initializeWasm() must be awaited first!");
12658         }
12659         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
12660         // debug statements here
12661 }
12662         // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
12663 /* @internal */
12664 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12665         if(!isWasmInitialized) {
12666                 throw new Error("initializeWasm() must be awaited first!");
12667         }
12668         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
12669         return nativeResponseValue;
12670 }
12671         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
12672 /* @internal */
12673 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: bigint): bigint {
12674         if(!isWasmInitialized) {
12675                 throw new Error("initializeWasm() must be awaited first!");
12676         }
12677         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
12678         return nativeResponseValue;
12679 }
12680         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
12681 /* @internal */
12682 export function CResult_OutPointDecodeErrorZ_ok(o: bigint): bigint {
12683         if(!isWasmInitialized) {
12684                 throw new Error("initializeWasm() must be awaited first!");
12685         }
12686         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
12687         return nativeResponseValue;
12688 }
12689         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
12690 /* @internal */
12691 export function CResult_OutPointDecodeErrorZ_err(e: bigint): bigint {
12692         if(!isWasmInitialized) {
12693                 throw new Error("initializeWasm() must be awaited first!");
12694         }
12695         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
12696         return nativeResponseValue;
12697 }
12698         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
12699 /* @internal */
12700 export function CResult_OutPointDecodeErrorZ_is_ok(o: bigint): boolean {
12701         if(!isWasmInitialized) {
12702                 throw new Error("initializeWasm() must be awaited first!");
12703         }
12704         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
12705         return nativeResponseValue;
12706 }
12707         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
12708 /* @internal */
12709 export function CResult_OutPointDecodeErrorZ_free(_res: bigint): void {
12710         if(!isWasmInitialized) {
12711                 throw new Error("initializeWasm() must be awaited first!");
12712         }
12713         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
12714         // debug statements here
12715 }
12716         // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
12717 /* @internal */
12718 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12719         if(!isWasmInitialized) {
12720                 throw new Error("initializeWasm() must be awaited first!");
12721         }
12722         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
12723         return nativeResponseValue;
12724 }
12725         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
12726 /* @internal */
12727 export function CResult_OutPointDecodeErrorZ_clone(orig: bigint): bigint {
12728         if(!isWasmInitialized) {
12729                 throw new Error("initializeWasm() must be awaited first!");
12730         }
12731         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
12732         return nativeResponseValue;
12733 }
12734         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
12735 /* @internal */
12736 export function COption_TypeZ_some(o: bigint): bigint {
12737         if(!isWasmInitialized) {
12738                 throw new Error("initializeWasm() must be awaited first!");
12739         }
12740         const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
12741         return nativeResponseValue;
12742 }
12743         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
12744 /* @internal */
12745 export function COption_TypeZ_none(): bigint {
12746         if(!isWasmInitialized) {
12747                 throw new Error("initializeWasm() must be awaited first!");
12748         }
12749         const nativeResponseValue = wasm.TS_COption_TypeZ_none();
12750         return nativeResponseValue;
12751 }
12752         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
12753 /* @internal */
12754 export function COption_TypeZ_free(_res: bigint): void {
12755         if(!isWasmInitialized) {
12756                 throw new Error("initializeWasm() must be awaited first!");
12757         }
12758         const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
12759         // debug statements here
12760 }
12761         // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
12762 /* @internal */
12763 export function COption_TypeZ_clone_ptr(arg: bigint): bigint {
12764         if(!isWasmInitialized) {
12765                 throw new Error("initializeWasm() must be awaited first!");
12766         }
12767         const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
12768         return nativeResponseValue;
12769 }
12770         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
12771 /* @internal */
12772 export function COption_TypeZ_clone(orig: bigint): bigint {
12773         if(!isWasmInitialized) {
12774                 throw new Error("initializeWasm() must be awaited first!");
12775         }
12776         const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
12777         return nativeResponseValue;
12778 }
12779         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
12780 /* @internal */
12781 export function CResult_COption_TypeZDecodeErrorZ_ok(o: bigint): bigint {
12782         if(!isWasmInitialized) {
12783                 throw new Error("initializeWasm() must be awaited first!");
12784         }
12785         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
12786         return nativeResponseValue;
12787 }
12788         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
12789 /* @internal */
12790 export function CResult_COption_TypeZDecodeErrorZ_err(e: bigint): bigint {
12791         if(!isWasmInitialized) {
12792                 throw new Error("initializeWasm() must be awaited first!");
12793         }
12794         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
12795         return nativeResponseValue;
12796 }
12797         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
12798 /* @internal */
12799 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: bigint): boolean {
12800         if(!isWasmInitialized) {
12801                 throw new Error("initializeWasm() must be awaited first!");
12802         }
12803         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
12804         return nativeResponseValue;
12805 }
12806         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
12807 /* @internal */
12808 export function CResult_COption_TypeZDecodeErrorZ_free(_res: bigint): void {
12809         if(!isWasmInitialized) {
12810                 throw new Error("initializeWasm() must be awaited first!");
12811         }
12812         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
12813         // debug statements here
12814 }
12815         // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
12816 /* @internal */
12817 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12818         if(!isWasmInitialized) {
12819                 throw new Error("initializeWasm() must be awaited first!");
12820         }
12821         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
12822         return nativeResponseValue;
12823 }
12824         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
12825 /* @internal */
12826 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: bigint): bigint {
12827         if(!isWasmInitialized) {
12828                 throw new Error("initializeWasm() must be awaited first!");
12829         }
12830         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
12831         return nativeResponseValue;
12832 }
12833         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
12834 /* @internal */
12835 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): bigint {
12836         if(!isWasmInitialized) {
12837                 throw new Error("initializeWasm() must be awaited first!");
12838         }
12839         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
12840         return nativeResponseValue;
12841 }
12842         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
12843 /* @internal */
12844 export function CResult_PaymentIdPaymentErrorZ_err(e: bigint): bigint {
12845         if(!isWasmInitialized) {
12846                 throw new Error("initializeWasm() must be awaited first!");
12847         }
12848         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
12849         return nativeResponseValue;
12850 }
12851         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
12852 /* @internal */
12853 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: bigint): boolean {
12854         if(!isWasmInitialized) {
12855                 throw new Error("initializeWasm() must be awaited first!");
12856         }
12857         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
12858         return nativeResponseValue;
12859 }
12860         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
12861 /* @internal */
12862 export function CResult_PaymentIdPaymentErrorZ_free(_res: bigint): void {
12863         if(!isWasmInitialized) {
12864                 throw new Error("initializeWasm() must be awaited first!");
12865         }
12866         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
12867         // debug statements here
12868 }
12869         // uint64_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
12870 /* @internal */
12871 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: bigint): bigint {
12872         if(!isWasmInitialized) {
12873                 throw new Error("initializeWasm() must be awaited first!");
12874         }
12875         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
12876         return nativeResponseValue;
12877 }
12878         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
12879 /* @internal */
12880 export function CResult_PaymentIdPaymentErrorZ_clone(orig: bigint): bigint {
12881         if(!isWasmInitialized) {
12882                 throw new Error("initializeWasm() must be awaited first!");
12883         }
12884         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
12885         return nativeResponseValue;
12886 }
12887         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
12888 /* @internal */
12889 export function CResult_InFlightHtlcsDecodeErrorZ_ok(o: bigint): bigint {
12890         if(!isWasmInitialized) {
12891                 throw new Error("initializeWasm() must be awaited first!");
12892         }
12893         const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_ok(o);
12894         return nativeResponseValue;
12895 }
12896         // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
12897 /* @internal */
12898 export function CResult_InFlightHtlcsDecodeErrorZ_err(e: bigint): bigint {
12899         if(!isWasmInitialized) {
12900                 throw new Error("initializeWasm() must be awaited first!");
12901         }
12902         const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_err(e);
12903         return nativeResponseValue;
12904 }
12905         // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
12906 /* @internal */
12907 export function CResult_InFlightHtlcsDecodeErrorZ_is_ok(o: bigint): boolean {
12908         if(!isWasmInitialized) {
12909                 throw new Error("initializeWasm() must be awaited first!");
12910         }
12911         const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_is_ok(o);
12912         return nativeResponseValue;
12913 }
12914         // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
12915 /* @internal */
12916 export function CResult_InFlightHtlcsDecodeErrorZ_free(_res: bigint): void {
12917         if(!isWasmInitialized) {
12918                 throw new Error("initializeWasm() must be awaited first!");
12919         }
12920         const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_free(_res);
12921         // debug statements here
12922 }
12923         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
12924 /* @internal */
12925 export function CResult_SiPrefixParseErrorZ_ok(o: SiPrefix): bigint {
12926         if(!isWasmInitialized) {
12927                 throw new Error("initializeWasm() must be awaited first!");
12928         }
12929         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_ok(o);
12930         return nativeResponseValue;
12931 }
12932         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
12933 /* @internal */
12934 export function CResult_SiPrefixParseErrorZ_err(e: bigint): bigint {
12935         if(!isWasmInitialized) {
12936                 throw new Error("initializeWasm() must be awaited first!");
12937         }
12938         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_err(e);
12939         return nativeResponseValue;
12940 }
12941         // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
12942 /* @internal */
12943 export function CResult_SiPrefixParseErrorZ_is_ok(o: bigint): boolean {
12944         if(!isWasmInitialized) {
12945                 throw new Error("initializeWasm() must be awaited first!");
12946         }
12947         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_is_ok(o);
12948         return nativeResponseValue;
12949 }
12950         // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
12951 /* @internal */
12952 export function CResult_SiPrefixParseErrorZ_free(_res: bigint): void {
12953         if(!isWasmInitialized) {
12954                 throw new Error("initializeWasm() must be awaited first!");
12955         }
12956         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_free(_res);
12957         // debug statements here
12958 }
12959         // uint64_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
12960 /* @internal */
12961 export function CResult_SiPrefixParseErrorZ_clone_ptr(arg: bigint): bigint {
12962         if(!isWasmInitialized) {
12963                 throw new Error("initializeWasm() must be awaited first!");
12964         }
12965         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone_ptr(arg);
12966         return nativeResponseValue;
12967 }
12968         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
12969 /* @internal */
12970 export function CResult_SiPrefixParseErrorZ_clone(orig: bigint): bigint {
12971         if(!isWasmInitialized) {
12972                 throw new Error("initializeWasm() must be awaited first!");
12973         }
12974         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone(orig);
12975         return nativeResponseValue;
12976 }
12977         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
12978 /* @internal */
12979 export function CResult_InvoiceParseOrSemanticErrorZ_ok(o: bigint): bigint {
12980         if(!isWasmInitialized) {
12981                 throw new Error("initializeWasm() must be awaited first!");
12982         }
12983         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_ok(o);
12984         return nativeResponseValue;
12985 }
12986         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
12987 /* @internal */
12988 export function CResult_InvoiceParseOrSemanticErrorZ_err(e: bigint): bigint {
12989         if(!isWasmInitialized) {
12990                 throw new Error("initializeWasm() must be awaited first!");
12991         }
12992         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_err(e);
12993         return nativeResponseValue;
12994 }
12995         // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
12996 /* @internal */
12997 export function CResult_InvoiceParseOrSemanticErrorZ_is_ok(o: bigint): boolean {
12998         if(!isWasmInitialized) {
12999                 throw new Error("initializeWasm() must be awaited first!");
13000         }
13001         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_is_ok(o);
13002         return nativeResponseValue;
13003 }
13004         // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
13005 /* @internal */
13006 export function CResult_InvoiceParseOrSemanticErrorZ_free(_res: bigint): void {
13007         if(!isWasmInitialized) {
13008                 throw new Error("initializeWasm() must be awaited first!");
13009         }
13010         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_free(_res);
13011         // debug statements here
13012 }
13013         // uint64_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
13014 /* @internal */
13015 export function CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg: bigint): bigint {
13016         if(!isWasmInitialized) {
13017                 throw new Error("initializeWasm() must be awaited first!");
13018         }
13019         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg);
13020         return nativeResponseValue;
13021 }
13022         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
13023 /* @internal */
13024 export function CResult_InvoiceParseOrSemanticErrorZ_clone(orig: bigint): bigint {
13025         if(!isWasmInitialized) {
13026                 throw new Error("initializeWasm() must be awaited first!");
13027         }
13028         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone(orig);
13029         return nativeResponseValue;
13030 }
13031         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
13032 /* @internal */
13033 export function CResult_SignedRawInvoiceParseErrorZ_ok(o: bigint): bigint {
13034         if(!isWasmInitialized) {
13035                 throw new Error("initializeWasm() must be awaited first!");
13036         }
13037         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_ok(o);
13038         return nativeResponseValue;
13039 }
13040         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
13041 /* @internal */
13042 export function CResult_SignedRawInvoiceParseErrorZ_err(e: bigint): bigint {
13043         if(!isWasmInitialized) {
13044                 throw new Error("initializeWasm() must be awaited first!");
13045         }
13046         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_err(e);
13047         return nativeResponseValue;
13048 }
13049         // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
13050 /* @internal */
13051 export function CResult_SignedRawInvoiceParseErrorZ_is_ok(o: bigint): boolean {
13052         if(!isWasmInitialized) {
13053                 throw new Error("initializeWasm() must be awaited first!");
13054         }
13055         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_is_ok(o);
13056         return nativeResponseValue;
13057 }
13058         // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
13059 /* @internal */
13060 export function CResult_SignedRawInvoiceParseErrorZ_free(_res: bigint): void {
13061         if(!isWasmInitialized) {
13062                 throw new Error("initializeWasm() must be awaited first!");
13063         }
13064         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_free(_res);
13065         // debug statements here
13066 }
13067         // uint64_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
13068 /* @internal */
13069 export function CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg: bigint): bigint {
13070         if(!isWasmInitialized) {
13071                 throw new Error("initializeWasm() must be awaited first!");
13072         }
13073         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg);
13074         return nativeResponseValue;
13075 }
13076         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
13077 /* @internal */
13078 export function CResult_SignedRawInvoiceParseErrorZ_clone(orig: bigint): bigint {
13079         if(!isWasmInitialized) {
13080                 throw new Error("initializeWasm() must be awaited first!");
13081         }
13082         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone(orig);
13083         return nativeResponseValue;
13084 }
13085         // uint64_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
13086 /* @internal */
13087 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: bigint): bigint {
13088         if(!isWasmInitialized) {
13089                 throw new Error("initializeWasm() must be awaited first!");
13090         }
13091         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
13092         return nativeResponseValue;
13093 }
13094         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
13095 /* @internal */
13096 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: bigint): bigint {
13097         if(!isWasmInitialized) {
13098                 throw new Error("initializeWasm() must be awaited first!");
13099         }
13100         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
13101         return nativeResponseValue;
13102 }
13103         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
13104 /* @internal */
13105 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: bigint, b: number, c: bigint): bigint {
13106         if(!isWasmInitialized) {
13107                 throw new Error("initializeWasm() must be awaited first!");
13108         }
13109         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
13110         return nativeResponseValue;
13111 }
13112         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
13113 /* @internal */
13114 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: bigint): void {
13115         if(!isWasmInitialized) {
13116                 throw new Error("initializeWasm() must be awaited first!");
13117         }
13118         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
13119         // debug statements here
13120 }
13121         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
13122 /* @internal */
13123 export function CResult_PayeePubKeyErrorZ_ok(o: bigint): bigint {
13124         if(!isWasmInitialized) {
13125                 throw new Error("initializeWasm() must be awaited first!");
13126         }
13127         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
13128         return nativeResponseValue;
13129 }
13130         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
13131 /* @internal */
13132 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): bigint {
13133         if(!isWasmInitialized) {
13134                 throw new Error("initializeWasm() must be awaited first!");
13135         }
13136         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
13137         return nativeResponseValue;
13138 }
13139         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
13140 /* @internal */
13141 export function CResult_PayeePubKeyErrorZ_is_ok(o: bigint): boolean {
13142         if(!isWasmInitialized) {
13143                 throw new Error("initializeWasm() must be awaited first!");
13144         }
13145         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
13146         return nativeResponseValue;
13147 }
13148         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
13149 /* @internal */
13150 export function CResult_PayeePubKeyErrorZ_free(_res: bigint): void {
13151         if(!isWasmInitialized) {
13152                 throw new Error("initializeWasm() must be awaited first!");
13153         }
13154         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
13155         // debug statements here
13156 }
13157         // uint64_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
13158 /* @internal */
13159 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: bigint): bigint {
13160         if(!isWasmInitialized) {
13161                 throw new Error("initializeWasm() must be awaited first!");
13162         }
13163         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
13164         return nativeResponseValue;
13165 }
13166         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
13167 /* @internal */
13168 export function CResult_PayeePubKeyErrorZ_clone(orig: bigint): bigint {
13169         if(!isWasmInitialized) {
13170                 throw new Error("initializeWasm() must be awaited first!");
13171         }
13172         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
13173         return nativeResponseValue;
13174 }
13175         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
13176 /* @internal */
13177 export function CVec_PrivateRouteZ_free(_res: number): void {
13178         if(!isWasmInitialized) {
13179                 throw new Error("initializeWasm() must be awaited first!");
13180         }
13181         const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
13182         // debug statements here
13183 }
13184         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
13185 /* @internal */
13186 export function CResult_PositiveTimestampCreationErrorZ_ok(o: bigint): bigint {
13187         if(!isWasmInitialized) {
13188                 throw new Error("initializeWasm() must be awaited first!");
13189         }
13190         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
13191         return nativeResponseValue;
13192 }
13193         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
13194 /* @internal */
13195 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): bigint {
13196         if(!isWasmInitialized) {
13197                 throw new Error("initializeWasm() must be awaited first!");
13198         }
13199         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
13200         return nativeResponseValue;
13201 }
13202         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
13203 /* @internal */
13204 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: bigint): boolean {
13205         if(!isWasmInitialized) {
13206                 throw new Error("initializeWasm() must be awaited first!");
13207         }
13208         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
13209         return nativeResponseValue;
13210 }
13211         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
13212 /* @internal */
13213 export function CResult_PositiveTimestampCreationErrorZ_free(_res: bigint): void {
13214         if(!isWasmInitialized) {
13215                 throw new Error("initializeWasm() must be awaited first!");
13216         }
13217         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
13218         // debug statements here
13219 }
13220         // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
13221 /* @internal */
13222 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: bigint): bigint {
13223         if(!isWasmInitialized) {
13224                 throw new Error("initializeWasm() must be awaited first!");
13225         }
13226         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
13227         return nativeResponseValue;
13228 }
13229         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
13230 /* @internal */
13231 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: bigint): bigint {
13232         if(!isWasmInitialized) {
13233                 throw new Error("initializeWasm() must be awaited first!");
13234         }
13235         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
13236         return nativeResponseValue;
13237 }
13238         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
13239 /* @internal */
13240 export function CResult_NoneSemanticErrorZ_ok(): bigint {
13241         if(!isWasmInitialized) {
13242                 throw new Error("initializeWasm() must be awaited first!");
13243         }
13244         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
13245         return nativeResponseValue;
13246 }
13247         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
13248 /* @internal */
13249 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): bigint {
13250         if(!isWasmInitialized) {
13251                 throw new Error("initializeWasm() must be awaited first!");
13252         }
13253         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
13254         return nativeResponseValue;
13255 }
13256         // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
13257 /* @internal */
13258 export function CResult_NoneSemanticErrorZ_is_ok(o: bigint): boolean {
13259         if(!isWasmInitialized) {
13260                 throw new Error("initializeWasm() must be awaited first!");
13261         }
13262         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
13263         return nativeResponseValue;
13264 }
13265         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
13266 /* @internal */
13267 export function CResult_NoneSemanticErrorZ_free(_res: bigint): void {
13268         if(!isWasmInitialized) {
13269                 throw new Error("initializeWasm() must be awaited first!");
13270         }
13271         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
13272         // debug statements here
13273 }
13274         // uint64_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
13275 /* @internal */
13276 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: bigint): bigint {
13277         if(!isWasmInitialized) {
13278                 throw new Error("initializeWasm() must be awaited first!");
13279         }
13280         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
13281         return nativeResponseValue;
13282 }
13283         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
13284 /* @internal */
13285 export function CResult_NoneSemanticErrorZ_clone(orig: bigint): bigint {
13286         if(!isWasmInitialized) {
13287                 throw new Error("initializeWasm() must be awaited first!");
13288         }
13289         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
13290         return nativeResponseValue;
13291 }
13292         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
13293 /* @internal */
13294 export function CResult_InvoiceSemanticErrorZ_ok(o: bigint): bigint {
13295         if(!isWasmInitialized) {
13296                 throw new Error("initializeWasm() must be awaited first!");
13297         }
13298         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
13299         return nativeResponseValue;
13300 }
13301         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
13302 /* @internal */
13303 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): bigint {
13304         if(!isWasmInitialized) {
13305                 throw new Error("initializeWasm() must be awaited first!");
13306         }
13307         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
13308         return nativeResponseValue;
13309 }
13310         // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
13311 /* @internal */
13312 export function CResult_InvoiceSemanticErrorZ_is_ok(o: bigint): boolean {
13313         if(!isWasmInitialized) {
13314                 throw new Error("initializeWasm() must be awaited first!");
13315         }
13316         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
13317         return nativeResponseValue;
13318 }
13319         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
13320 /* @internal */
13321 export function CResult_InvoiceSemanticErrorZ_free(_res: bigint): void {
13322         if(!isWasmInitialized) {
13323                 throw new Error("initializeWasm() must be awaited first!");
13324         }
13325         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
13326         // debug statements here
13327 }
13328         // uint64_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
13329 /* @internal */
13330 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: bigint): bigint {
13331         if(!isWasmInitialized) {
13332                 throw new Error("initializeWasm() must be awaited first!");
13333         }
13334         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
13335         return nativeResponseValue;
13336 }
13337         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
13338 /* @internal */
13339 export function CResult_InvoiceSemanticErrorZ_clone(orig: bigint): bigint {
13340         if(!isWasmInitialized) {
13341                 throw new Error("initializeWasm() must be awaited first!");
13342         }
13343         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
13344         return nativeResponseValue;
13345 }
13346         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
13347 /* @internal */
13348 export function CResult_DescriptionCreationErrorZ_ok(o: bigint): bigint {
13349         if(!isWasmInitialized) {
13350                 throw new Error("initializeWasm() must be awaited first!");
13351         }
13352         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
13353         return nativeResponseValue;
13354 }
13355         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
13356 /* @internal */
13357 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): bigint {
13358         if(!isWasmInitialized) {
13359                 throw new Error("initializeWasm() must be awaited first!");
13360         }
13361         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
13362         return nativeResponseValue;
13363 }
13364         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
13365 /* @internal */
13366 export function CResult_DescriptionCreationErrorZ_is_ok(o: bigint): boolean {
13367         if(!isWasmInitialized) {
13368                 throw new Error("initializeWasm() must be awaited first!");
13369         }
13370         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
13371         return nativeResponseValue;
13372 }
13373         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
13374 /* @internal */
13375 export function CResult_DescriptionCreationErrorZ_free(_res: bigint): void {
13376         if(!isWasmInitialized) {
13377                 throw new Error("initializeWasm() must be awaited first!");
13378         }
13379         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
13380         // debug statements here
13381 }
13382         // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
13383 /* @internal */
13384 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: bigint): bigint {
13385         if(!isWasmInitialized) {
13386                 throw new Error("initializeWasm() must be awaited first!");
13387         }
13388         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
13389         return nativeResponseValue;
13390 }
13391         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
13392 /* @internal */
13393 export function CResult_DescriptionCreationErrorZ_clone(orig: bigint): bigint {
13394         if(!isWasmInitialized) {
13395                 throw new Error("initializeWasm() must be awaited first!");
13396         }
13397         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
13398         return nativeResponseValue;
13399 }
13400         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
13401 /* @internal */
13402 export function CResult_PrivateRouteCreationErrorZ_ok(o: bigint): bigint {
13403         if(!isWasmInitialized) {
13404                 throw new Error("initializeWasm() must be awaited first!");
13405         }
13406         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
13407         return nativeResponseValue;
13408 }
13409         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
13410 /* @internal */
13411 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): bigint {
13412         if(!isWasmInitialized) {
13413                 throw new Error("initializeWasm() must be awaited first!");
13414         }
13415         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
13416         return nativeResponseValue;
13417 }
13418         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
13419 /* @internal */
13420 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: bigint): boolean {
13421         if(!isWasmInitialized) {
13422                 throw new Error("initializeWasm() must be awaited first!");
13423         }
13424         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
13425         return nativeResponseValue;
13426 }
13427         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
13428 /* @internal */
13429 export function CResult_PrivateRouteCreationErrorZ_free(_res: bigint): void {
13430         if(!isWasmInitialized) {
13431                 throw new Error("initializeWasm() must be awaited first!");
13432         }
13433         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
13434         // debug statements here
13435 }
13436         // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
13437 /* @internal */
13438 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: bigint): bigint {
13439         if(!isWasmInitialized) {
13440                 throw new Error("initializeWasm() must be awaited first!");
13441         }
13442         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
13443         return nativeResponseValue;
13444 }
13445         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
13446 /* @internal */
13447 export function CResult_PrivateRouteCreationErrorZ_clone(orig: bigint): bigint {
13448         if(!isWasmInitialized) {
13449                 throw new Error("initializeWasm() must be awaited first!");
13450         }
13451         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
13452         return nativeResponseValue;
13453 }
13454         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
13455 /* @internal */
13456 export function CResult_StringErrorZ_ok(o: number): bigint {
13457         if(!isWasmInitialized) {
13458                 throw new Error("initializeWasm() must be awaited first!");
13459         }
13460         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
13461         return nativeResponseValue;
13462 }
13463         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
13464 /* @internal */
13465 export function CResult_StringErrorZ_err(e: Secp256k1Error): bigint {
13466         if(!isWasmInitialized) {
13467                 throw new Error("initializeWasm() must be awaited first!");
13468         }
13469         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
13470         return nativeResponseValue;
13471 }
13472         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
13473 /* @internal */
13474 export function CResult_StringErrorZ_is_ok(o: bigint): boolean {
13475         if(!isWasmInitialized) {
13476                 throw new Error("initializeWasm() must be awaited first!");
13477         }
13478         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
13479         return nativeResponseValue;
13480 }
13481         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
13482 /* @internal */
13483 export function CResult_StringErrorZ_free(_res: bigint): void {
13484         if(!isWasmInitialized) {
13485                 throw new Error("initializeWasm() must be awaited first!");
13486         }
13487         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
13488         // debug statements here
13489 }
13490         // uint64_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
13491 /* @internal */
13492 export function CResult_StringErrorZ_clone_ptr(arg: bigint): bigint {
13493         if(!isWasmInitialized) {
13494                 throw new Error("initializeWasm() must be awaited first!");
13495         }
13496         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone_ptr(arg);
13497         return nativeResponseValue;
13498 }
13499         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
13500 /* @internal */
13501 export function CResult_StringErrorZ_clone(orig: bigint): bigint {
13502         if(!isWasmInitialized) {
13503                 throw new Error("initializeWasm() must be awaited first!");
13504         }
13505         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone(orig);
13506         return nativeResponseValue;
13507 }
13508         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
13509 /* @internal */
13510 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: bigint): bigint {
13511         if(!isWasmInitialized) {
13512                 throw new Error("initializeWasm() must be awaited first!");
13513         }
13514         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
13515         return nativeResponseValue;
13516 }
13517         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
13518 /* @internal */
13519 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: bigint): bigint {
13520         if(!isWasmInitialized) {
13521                 throw new Error("initializeWasm() must be awaited first!");
13522         }
13523         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
13524         return nativeResponseValue;
13525 }
13526         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
13527 /* @internal */
13528 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
13529         if(!isWasmInitialized) {
13530                 throw new Error("initializeWasm() must be awaited first!");
13531         }
13532         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
13533         return nativeResponseValue;
13534 }
13535         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
13536 /* @internal */
13537 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: bigint): void {
13538         if(!isWasmInitialized) {
13539                 throw new Error("initializeWasm() must be awaited first!");
13540         }
13541         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
13542         // debug statements here
13543 }
13544         // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
13545 /* @internal */
13546 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
13547         if(!isWasmInitialized) {
13548                 throw new Error("initializeWasm() must be awaited first!");
13549         }
13550         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
13551         return nativeResponseValue;
13552 }
13553         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
13554 /* @internal */
13555 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: bigint): bigint {
13556         if(!isWasmInitialized) {
13557                 throw new Error("initializeWasm() must be awaited first!");
13558         }
13559         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
13560         return nativeResponseValue;
13561 }
13562         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
13563 /* @internal */
13564 export function COption_MonitorEventZ_some(o: bigint): bigint {
13565         if(!isWasmInitialized) {
13566                 throw new Error("initializeWasm() must be awaited first!");
13567         }
13568         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
13569         return nativeResponseValue;
13570 }
13571         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
13572 /* @internal */
13573 export function COption_MonitorEventZ_none(): bigint {
13574         if(!isWasmInitialized) {
13575                 throw new Error("initializeWasm() must be awaited first!");
13576         }
13577         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
13578         return nativeResponseValue;
13579 }
13580         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
13581 /* @internal */
13582 export function COption_MonitorEventZ_free(_res: bigint): void {
13583         if(!isWasmInitialized) {
13584                 throw new Error("initializeWasm() must be awaited first!");
13585         }
13586         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
13587         // debug statements here
13588 }
13589         // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
13590 /* @internal */
13591 export function COption_MonitorEventZ_clone_ptr(arg: bigint): bigint {
13592         if(!isWasmInitialized) {
13593                 throw new Error("initializeWasm() must be awaited first!");
13594         }
13595         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
13596         return nativeResponseValue;
13597 }
13598         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
13599 /* @internal */
13600 export function COption_MonitorEventZ_clone(orig: bigint): bigint {
13601         if(!isWasmInitialized) {
13602                 throw new Error("initializeWasm() must be awaited first!");
13603         }
13604         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
13605         return nativeResponseValue;
13606 }
13607         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
13608 /* @internal */
13609 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: bigint): bigint {
13610         if(!isWasmInitialized) {
13611                 throw new Error("initializeWasm() must be awaited first!");
13612         }
13613         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
13614         return nativeResponseValue;
13615 }
13616         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
13617 /* @internal */
13618 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: bigint): bigint {
13619         if(!isWasmInitialized) {
13620                 throw new Error("initializeWasm() must be awaited first!");
13621         }
13622         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
13623         return nativeResponseValue;
13624 }
13625         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
13626 /* @internal */
13627 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: bigint): boolean {
13628         if(!isWasmInitialized) {
13629                 throw new Error("initializeWasm() must be awaited first!");
13630         }
13631         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
13632         return nativeResponseValue;
13633 }
13634         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
13635 /* @internal */
13636 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: bigint): void {
13637         if(!isWasmInitialized) {
13638                 throw new Error("initializeWasm() must be awaited first!");
13639         }
13640         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
13641         // debug statements here
13642 }
13643         // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
13644 /* @internal */
13645 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
13646         if(!isWasmInitialized) {
13647                 throw new Error("initializeWasm() must be awaited first!");
13648         }
13649         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
13650         return nativeResponseValue;
13651 }
13652         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
13653 /* @internal */
13654 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: bigint): bigint {
13655         if(!isWasmInitialized) {
13656                 throw new Error("initializeWasm() must be awaited first!");
13657         }
13658         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
13659         return nativeResponseValue;
13660 }
13661         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
13662 /* @internal */
13663 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: bigint): bigint {
13664         if(!isWasmInitialized) {
13665                 throw new Error("initializeWasm() must be awaited first!");
13666         }
13667         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
13668         return nativeResponseValue;
13669 }
13670         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
13671 /* @internal */
13672 export function CResult_HTLCUpdateDecodeErrorZ_err(e: bigint): bigint {
13673         if(!isWasmInitialized) {
13674                 throw new Error("initializeWasm() must be awaited first!");
13675         }
13676         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
13677         return nativeResponseValue;
13678 }
13679         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
13680 /* @internal */
13681 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
13682         if(!isWasmInitialized) {
13683                 throw new Error("initializeWasm() must be awaited first!");
13684         }
13685         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
13686         return nativeResponseValue;
13687 }
13688         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
13689 /* @internal */
13690 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: bigint): void {
13691         if(!isWasmInitialized) {
13692                 throw new Error("initializeWasm() must be awaited first!");
13693         }
13694         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
13695         // debug statements here
13696 }
13697         // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
13698 /* @internal */
13699 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
13700         if(!isWasmInitialized) {
13701                 throw new Error("initializeWasm() must be awaited first!");
13702         }
13703         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
13704         return nativeResponseValue;
13705 }
13706         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
13707 /* @internal */
13708 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: bigint): bigint {
13709         if(!isWasmInitialized) {
13710                 throw new Error("initializeWasm() must be awaited first!");
13711         }
13712         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
13713         return nativeResponseValue;
13714 }
13715         // uint64_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
13716 /* @internal */
13717 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: bigint): bigint {
13718         if(!isWasmInitialized) {
13719                 throw new Error("initializeWasm() must be awaited first!");
13720         }
13721         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
13722         return nativeResponseValue;
13723 }
13724         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
13725 /* @internal */
13726 export function C2Tuple_OutPointScriptZ_clone(orig: bigint): bigint {
13727         if(!isWasmInitialized) {
13728                 throw new Error("initializeWasm() must be awaited first!");
13729         }
13730         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
13731         return nativeResponseValue;
13732 }
13733         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
13734 /* @internal */
13735 export function C2Tuple_OutPointScriptZ_new(a: bigint, b: number): bigint {
13736         if(!isWasmInitialized) {
13737                 throw new Error("initializeWasm() must be awaited first!");
13738         }
13739         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
13740         return nativeResponseValue;
13741 }
13742         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
13743 /* @internal */
13744 export function C2Tuple_OutPointScriptZ_free(_res: bigint): void {
13745         if(!isWasmInitialized) {
13746                 throw new Error("initializeWasm() must be awaited first!");
13747         }
13748         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
13749         // debug statements here
13750 }
13751         // uint64_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
13752 /* @internal */
13753 export function C2Tuple_u32ScriptZ_clone_ptr(arg: bigint): bigint {
13754         if(!isWasmInitialized) {
13755                 throw new Error("initializeWasm() must be awaited first!");
13756         }
13757         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
13758         return nativeResponseValue;
13759 }
13760         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
13761 /* @internal */
13762 export function C2Tuple_u32ScriptZ_clone(orig: bigint): bigint {
13763         if(!isWasmInitialized) {
13764                 throw new Error("initializeWasm() must be awaited first!");
13765         }
13766         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
13767         return nativeResponseValue;
13768 }
13769         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
13770 /* @internal */
13771 export function C2Tuple_u32ScriptZ_new(a: number, b: number): bigint {
13772         if(!isWasmInitialized) {
13773                 throw new Error("initializeWasm() must be awaited first!");
13774         }
13775         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
13776         return nativeResponseValue;
13777 }
13778         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
13779 /* @internal */
13780 export function C2Tuple_u32ScriptZ_free(_res: bigint): void {
13781         if(!isWasmInitialized) {
13782                 throw new Error("initializeWasm() must be awaited first!");
13783         }
13784         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
13785         // debug statements here
13786 }
13787         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
13788 /* @internal */
13789 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
13790         if(!isWasmInitialized) {
13791                 throw new Error("initializeWasm() must be awaited first!");
13792         }
13793         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
13794         // debug statements here
13795 }
13796         // uint64_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
13797 /* @internal */
13798 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: bigint): bigint {
13799         if(!isWasmInitialized) {
13800                 throw new Error("initializeWasm() must be awaited first!");
13801         }
13802         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
13803         return nativeResponseValue;
13804 }
13805         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
13806 /* @internal */
13807 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: bigint): bigint {
13808         if(!isWasmInitialized) {
13809                 throw new Error("initializeWasm() must be awaited first!");
13810         }
13811         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
13812         return nativeResponseValue;
13813 }
13814         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
13815 /* @internal */
13816 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): bigint {
13817         if(!isWasmInitialized) {
13818                 throw new Error("initializeWasm() must be awaited first!");
13819         }
13820         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
13821         return nativeResponseValue;
13822 }
13823         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
13824 /* @internal */
13825 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: bigint): void {
13826         if(!isWasmInitialized) {
13827                 throw new Error("initializeWasm() must be awaited first!");
13828         }
13829         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
13830         // debug statements here
13831 }
13832         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
13833 /* @internal */
13834 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
13835         if(!isWasmInitialized) {
13836                 throw new Error("initializeWasm() must be awaited first!");
13837         }
13838         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
13839         // debug statements here
13840 }
13841         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
13842 /* @internal */
13843 export function CVec_EventZ_free(_res: number): void {
13844         if(!isWasmInitialized) {
13845                 throw new Error("initializeWasm() must be awaited first!");
13846         }
13847         const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
13848         // debug statements here
13849 }
13850         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
13851 /* @internal */
13852 export function CVec_TransactionZ_free(_res: number): void {
13853         if(!isWasmInitialized) {
13854                 throw new Error("initializeWasm() must be awaited first!");
13855         }
13856         const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
13857         // debug statements here
13858 }
13859         // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
13860 /* @internal */
13861 export function C2Tuple_u32TxOutZ_clone_ptr(arg: bigint): bigint {
13862         if(!isWasmInitialized) {
13863                 throw new Error("initializeWasm() must be awaited first!");
13864         }
13865         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
13866         return nativeResponseValue;
13867 }
13868         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
13869 /* @internal */
13870 export function C2Tuple_u32TxOutZ_clone(orig: bigint): bigint {
13871         if(!isWasmInitialized) {
13872                 throw new Error("initializeWasm() must be awaited first!");
13873         }
13874         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
13875         return nativeResponseValue;
13876 }
13877         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
13878 /* @internal */
13879 export function C2Tuple_u32TxOutZ_new(a: number, b: bigint): bigint {
13880         if(!isWasmInitialized) {
13881                 throw new Error("initializeWasm() must be awaited first!");
13882         }
13883         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
13884         return nativeResponseValue;
13885 }
13886         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
13887 /* @internal */
13888 export function C2Tuple_u32TxOutZ_free(_res: bigint): void {
13889         if(!isWasmInitialized) {
13890                 throw new Error("initializeWasm() must be awaited first!");
13891         }
13892         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
13893         // debug statements here
13894 }
13895         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
13896 /* @internal */
13897 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
13898         if(!isWasmInitialized) {
13899                 throw new Error("initializeWasm() must be awaited first!");
13900         }
13901         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
13902         // debug statements here
13903 }
13904         // uint64_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
13905 /* @internal */
13906 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: bigint): bigint {
13907         if(!isWasmInitialized) {
13908                 throw new Error("initializeWasm() must be awaited first!");
13909         }
13910         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
13911         return nativeResponseValue;
13912 }
13913         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
13914 /* @internal */
13915 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: bigint): bigint {
13916         if(!isWasmInitialized) {
13917                 throw new Error("initializeWasm() must be awaited first!");
13918         }
13919         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
13920         return nativeResponseValue;
13921 }
13922         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
13923 /* @internal */
13924 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): bigint {
13925         if(!isWasmInitialized) {
13926                 throw new Error("initializeWasm() must be awaited first!");
13927         }
13928         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
13929         return nativeResponseValue;
13930 }
13931         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
13932 /* @internal */
13933 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: bigint): void {
13934         if(!isWasmInitialized) {
13935                 throw new Error("initializeWasm() must be awaited first!");
13936         }
13937         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
13938         // debug statements here
13939 }
13940         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
13941 /* @internal */
13942 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
13943         if(!isWasmInitialized) {
13944                 throw new Error("initializeWasm() must be awaited first!");
13945         }
13946         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
13947         // debug statements here
13948 }
13949         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
13950 /* @internal */
13951 export function CVec_BalanceZ_free(_res: number): void {
13952         if(!isWasmInitialized) {
13953                 throw new Error("initializeWasm() must be awaited first!");
13954         }
13955         const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
13956         // debug statements here
13957 }
13958         // uint64_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
13959 /* @internal */
13960 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: bigint): bigint {
13961         if(!isWasmInitialized) {
13962                 throw new Error("initializeWasm() must be awaited first!");
13963         }
13964         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
13965         return nativeResponseValue;
13966 }
13967         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
13968 /* @internal */
13969 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: bigint): bigint {
13970         if(!isWasmInitialized) {
13971                 throw new Error("initializeWasm() must be awaited first!");
13972         }
13973         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
13974         return nativeResponseValue;
13975 }
13976         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
13977 /* @internal */
13978 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: bigint): bigint {
13979         if(!isWasmInitialized) {
13980                 throw new Error("initializeWasm() must be awaited first!");
13981         }
13982         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
13983         return nativeResponseValue;
13984 }
13985         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
13986 /* @internal */
13987 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: bigint): void {
13988         if(!isWasmInitialized) {
13989                 throw new Error("initializeWasm() must be awaited first!");
13990         }
13991         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
13992         // debug statements here
13993 }
13994         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
13995 /* @internal */
13996 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: bigint): bigint {
13997         if(!isWasmInitialized) {
13998                 throw new Error("initializeWasm() must be awaited first!");
13999         }
14000         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
14001         return nativeResponseValue;
14002 }
14003         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
14004 /* @internal */
14005 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: bigint): bigint {
14006         if(!isWasmInitialized) {
14007                 throw new Error("initializeWasm() must be awaited first!");
14008         }
14009         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
14010         return nativeResponseValue;
14011 }
14012         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
14013 /* @internal */
14014 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: bigint): boolean {
14015         if(!isWasmInitialized) {
14016                 throw new Error("initializeWasm() must be awaited first!");
14017         }
14018         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
14019         return nativeResponseValue;
14020 }
14021         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
14022 /* @internal */
14023 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: bigint): void {
14024         if(!isWasmInitialized) {
14025                 throw new Error("initializeWasm() must be awaited first!");
14026         }
14027         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
14028         // debug statements here
14029 }
14030         // uint64_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
14031 /* @internal */
14032 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14033         if(!isWasmInitialized) {
14034                 throw new Error("initializeWasm() must be awaited first!");
14035         }
14036         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
14037         return nativeResponseValue;
14038 }
14039         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
14040 /* @internal */
14041 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: bigint): bigint {
14042         if(!isWasmInitialized) {
14043                 throw new Error("initializeWasm() must be awaited first!");
14044         }
14045         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
14046         return nativeResponseValue;
14047 }
14048         // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
14049 /* @internal */
14050 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: bigint): bigint {
14051         if(!isWasmInitialized) {
14052                 throw new Error("initializeWasm() must be awaited first!");
14053         }
14054         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
14055         return nativeResponseValue;
14056 }
14057         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
14058 /* @internal */
14059 export function C2Tuple_PublicKeyTypeZ_clone(orig: bigint): bigint {
14060         if(!isWasmInitialized) {
14061                 throw new Error("initializeWasm() must be awaited first!");
14062         }
14063         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
14064         return nativeResponseValue;
14065 }
14066         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
14067 /* @internal */
14068 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: bigint): bigint {
14069         if(!isWasmInitialized) {
14070                 throw new Error("initializeWasm() must be awaited first!");
14071         }
14072         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
14073         return nativeResponseValue;
14074 }
14075         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
14076 /* @internal */
14077 export function C2Tuple_PublicKeyTypeZ_free(_res: bigint): void {
14078         if(!isWasmInitialized) {
14079                 throw new Error("initializeWasm() must be awaited first!");
14080         }
14081         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
14082         // debug statements here
14083 }
14084         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
14085 /* @internal */
14086 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
14087         if(!isWasmInitialized) {
14088                 throw new Error("initializeWasm() must be awaited first!");
14089         }
14090         const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
14091         // debug statements here
14092 }
14093         // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
14094 /* @internal */
14095 export function COption_NetAddressZ_some(o: bigint): bigint {
14096         if(!isWasmInitialized) {
14097                 throw new Error("initializeWasm() must be awaited first!");
14098         }
14099         const nativeResponseValue = wasm.TS_COption_NetAddressZ_some(o);
14100         return nativeResponseValue;
14101 }
14102         // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
14103 /* @internal */
14104 export function COption_NetAddressZ_none(): bigint {
14105         if(!isWasmInitialized) {
14106                 throw new Error("initializeWasm() must be awaited first!");
14107         }
14108         const nativeResponseValue = wasm.TS_COption_NetAddressZ_none();
14109         return nativeResponseValue;
14110 }
14111         // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
14112 /* @internal */
14113 export function COption_NetAddressZ_free(_res: bigint): void {
14114         if(!isWasmInitialized) {
14115                 throw new Error("initializeWasm() must be awaited first!");
14116         }
14117         const nativeResponseValue = wasm.TS_COption_NetAddressZ_free(_res);
14118         // debug statements here
14119 }
14120         // uint64_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
14121 /* @internal */
14122 export function COption_NetAddressZ_clone_ptr(arg: bigint): bigint {
14123         if(!isWasmInitialized) {
14124                 throw new Error("initializeWasm() must be awaited first!");
14125         }
14126         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone_ptr(arg);
14127         return nativeResponseValue;
14128 }
14129         // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
14130 /* @internal */
14131 export function COption_NetAddressZ_clone(orig: bigint): bigint {
14132         if(!isWasmInitialized) {
14133                 throw new Error("initializeWasm() must be awaited first!");
14134         }
14135         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone(orig);
14136         return nativeResponseValue;
14137 }
14138         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
14139 /* @internal */
14140 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): bigint {
14141         if(!isWasmInitialized) {
14142                 throw new Error("initializeWasm() must be awaited first!");
14143         }
14144         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
14145         return nativeResponseValue;
14146 }
14147         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
14148 /* @internal */
14149 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: bigint): bigint {
14150         if(!isWasmInitialized) {
14151                 throw new Error("initializeWasm() must be awaited first!");
14152         }
14153         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
14154         return nativeResponseValue;
14155 }
14156         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
14157 /* @internal */
14158 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: bigint): boolean {
14159         if(!isWasmInitialized) {
14160                 throw new Error("initializeWasm() must be awaited first!");
14161         }
14162         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
14163         return nativeResponseValue;
14164 }
14165         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
14166 /* @internal */
14167 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: bigint): void {
14168         if(!isWasmInitialized) {
14169                 throw new Error("initializeWasm() must be awaited first!");
14170         }
14171         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
14172         // debug statements here
14173 }
14174         // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
14175 /* @internal */
14176 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: bigint): bigint {
14177         if(!isWasmInitialized) {
14178                 throw new Error("initializeWasm() must be awaited first!");
14179         }
14180         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
14181         return nativeResponseValue;
14182 }
14183         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
14184 /* @internal */
14185 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: bigint): bigint {
14186         if(!isWasmInitialized) {
14187                 throw new Error("initializeWasm() must be awaited first!");
14188         }
14189         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
14190         return nativeResponseValue;
14191 }
14192         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
14193 /* @internal */
14194 export function CResult_NonePeerHandleErrorZ_ok(): bigint {
14195         if(!isWasmInitialized) {
14196                 throw new Error("initializeWasm() must be awaited first!");
14197         }
14198         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
14199         return nativeResponseValue;
14200 }
14201         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
14202 /* @internal */
14203 export function CResult_NonePeerHandleErrorZ_err(e: bigint): bigint {
14204         if(!isWasmInitialized) {
14205                 throw new Error("initializeWasm() must be awaited first!");
14206         }
14207         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
14208         return nativeResponseValue;
14209 }
14210         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
14211 /* @internal */
14212 export function CResult_NonePeerHandleErrorZ_is_ok(o: bigint): boolean {
14213         if(!isWasmInitialized) {
14214                 throw new Error("initializeWasm() must be awaited first!");
14215         }
14216         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
14217         return nativeResponseValue;
14218 }
14219         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
14220 /* @internal */
14221 export function CResult_NonePeerHandleErrorZ_free(_res: bigint): void {
14222         if(!isWasmInitialized) {
14223                 throw new Error("initializeWasm() must be awaited first!");
14224         }
14225         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
14226         // debug statements here
14227 }
14228         // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
14229 /* @internal */
14230 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: bigint): bigint {
14231         if(!isWasmInitialized) {
14232                 throw new Error("initializeWasm() must be awaited first!");
14233         }
14234         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
14235         return nativeResponseValue;
14236 }
14237         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
14238 /* @internal */
14239 export function CResult_NonePeerHandleErrorZ_clone(orig: bigint): bigint {
14240         if(!isWasmInitialized) {
14241                 throw new Error("initializeWasm() must be awaited first!");
14242         }
14243         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
14244         return nativeResponseValue;
14245 }
14246         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
14247 /* @internal */
14248 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): bigint {
14249         if(!isWasmInitialized) {
14250                 throw new Error("initializeWasm() must be awaited first!");
14251         }
14252         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
14253         return nativeResponseValue;
14254 }
14255         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
14256 /* @internal */
14257 export function CResult_boolPeerHandleErrorZ_err(e: bigint): bigint {
14258         if(!isWasmInitialized) {
14259                 throw new Error("initializeWasm() must be awaited first!");
14260         }
14261         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
14262         return nativeResponseValue;
14263 }
14264         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
14265 /* @internal */
14266 export function CResult_boolPeerHandleErrorZ_is_ok(o: bigint): boolean {
14267         if(!isWasmInitialized) {
14268                 throw new Error("initializeWasm() must be awaited first!");
14269         }
14270         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
14271         return nativeResponseValue;
14272 }
14273         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
14274 /* @internal */
14275 export function CResult_boolPeerHandleErrorZ_free(_res: bigint): void {
14276         if(!isWasmInitialized) {
14277                 throw new Error("initializeWasm() must be awaited first!");
14278         }
14279         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
14280         // debug statements here
14281 }
14282         // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
14283 /* @internal */
14284 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: bigint): bigint {
14285         if(!isWasmInitialized) {
14286                 throw new Error("initializeWasm() must be awaited first!");
14287         }
14288         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
14289         return nativeResponseValue;
14290 }
14291         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
14292 /* @internal */
14293 export function CResult_boolPeerHandleErrorZ_clone(orig: bigint): bigint {
14294         if(!isWasmInitialized) {
14295                 throw new Error("initializeWasm() must be awaited first!");
14296         }
14297         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
14298         return nativeResponseValue;
14299 }
14300         // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
14301 /* @internal */
14302 export function CResult_NoneSendErrorZ_ok(): bigint {
14303         if(!isWasmInitialized) {
14304                 throw new Error("initializeWasm() must be awaited first!");
14305         }
14306         const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_ok();
14307         return nativeResponseValue;
14308 }
14309         // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
14310 /* @internal */
14311 export function CResult_NoneSendErrorZ_err(e: bigint): bigint {
14312         if(!isWasmInitialized) {
14313                 throw new Error("initializeWasm() must be awaited first!");
14314         }
14315         const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_err(e);
14316         return nativeResponseValue;
14317 }
14318         // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
14319 /* @internal */
14320 export function CResult_NoneSendErrorZ_is_ok(o: bigint): boolean {
14321         if(!isWasmInitialized) {
14322                 throw new Error("initializeWasm() must be awaited first!");
14323         }
14324         const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_is_ok(o);
14325         return nativeResponseValue;
14326 }
14327         // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
14328 /* @internal */
14329 export function CResult_NoneSendErrorZ_free(_res: bigint): void {
14330         if(!isWasmInitialized) {
14331                 throw new Error("initializeWasm() must be awaited first!");
14332         }
14333         const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_free(_res);
14334         // debug statements here
14335 }
14336         // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
14337 /* @internal */
14338 export function CResult_u32GraphSyncErrorZ_ok(o: number): bigint {
14339         if(!isWasmInitialized) {
14340                 throw new Error("initializeWasm() must be awaited first!");
14341         }
14342         const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_ok(o);
14343         return nativeResponseValue;
14344 }
14345         // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
14346 /* @internal */
14347 export function CResult_u32GraphSyncErrorZ_err(e: bigint): bigint {
14348         if(!isWasmInitialized) {
14349                 throw new Error("initializeWasm() must be awaited first!");
14350         }
14351         const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_err(e);
14352         return nativeResponseValue;
14353 }
14354         // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
14355 /* @internal */
14356 export function CResult_u32GraphSyncErrorZ_is_ok(o: bigint): boolean {
14357         if(!isWasmInitialized) {
14358                 throw new Error("initializeWasm() must be awaited first!");
14359         }
14360         const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_is_ok(o);
14361         return nativeResponseValue;
14362 }
14363         // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
14364 /* @internal */
14365 export function CResult_u32GraphSyncErrorZ_free(_res: bigint): void {
14366         if(!isWasmInitialized) {
14367                 throw new Error("initializeWasm() must be awaited first!");
14368         }
14369         const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_free(_res);
14370         // debug statements here
14371 }
14372         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
14373 /* @internal */
14374 export function CResult_NoneErrorZ_ok(): bigint {
14375         if(!isWasmInitialized) {
14376                 throw new Error("initializeWasm() must be awaited first!");
14377         }
14378         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_ok();
14379         return nativeResponseValue;
14380 }
14381         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
14382 /* @internal */
14383 export function CResult_NoneErrorZ_err(e: IOError): bigint {
14384         if(!isWasmInitialized) {
14385                 throw new Error("initializeWasm() must be awaited first!");
14386         }
14387         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_err(e);
14388         return nativeResponseValue;
14389 }
14390         // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
14391 /* @internal */
14392 export function CResult_NoneErrorZ_is_ok(o: bigint): boolean {
14393         if(!isWasmInitialized) {
14394                 throw new Error("initializeWasm() must be awaited first!");
14395         }
14396         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_is_ok(o);
14397         return nativeResponseValue;
14398 }
14399         // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
14400 /* @internal */
14401 export function CResult_NoneErrorZ_free(_res: bigint): void {
14402         if(!isWasmInitialized) {
14403                 throw new Error("initializeWasm() must be awaited first!");
14404         }
14405         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_free(_res);
14406         // debug statements here
14407 }
14408         // uint64_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
14409 /* @internal */
14410 export function CResult_NoneErrorZ_clone_ptr(arg: bigint): bigint {
14411         if(!isWasmInitialized) {
14412                 throw new Error("initializeWasm() must be awaited first!");
14413         }
14414         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone_ptr(arg);
14415         return nativeResponseValue;
14416 }
14417         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
14418 /* @internal */
14419 export function CResult_NoneErrorZ_clone(orig: bigint): bigint {
14420         if(!isWasmInitialized) {
14421                 throw new Error("initializeWasm() must be awaited first!");
14422         }
14423         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone(orig);
14424         return nativeResponseValue;
14425 }
14426         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
14427 /* @internal */
14428 export function CResult_NetAddressDecodeErrorZ_ok(o: bigint): bigint {
14429         if(!isWasmInitialized) {
14430                 throw new Error("initializeWasm() must be awaited first!");
14431         }
14432         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
14433         return nativeResponseValue;
14434 }
14435         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
14436 /* @internal */
14437 export function CResult_NetAddressDecodeErrorZ_err(e: bigint): bigint {
14438         if(!isWasmInitialized) {
14439                 throw new Error("initializeWasm() must be awaited first!");
14440         }
14441         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
14442         return nativeResponseValue;
14443 }
14444         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
14445 /* @internal */
14446 export function CResult_NetAddressDecodeErrorZ_is_ok(o: bigint): boolean {
14447         if(!isWasmInitialized) {
14448                 throw new Error("initializeWasm() must be awaited first!");
14449         }
14450         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
14451         return nativeResponseValue;
14452 }
14453         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
14454 /* @internal */
14455 export function CResult_NetAddressDecodeErrorZ_free(_res: bigint): void {
14456         if(!isWasmInitialized) {
14457                 throw new Error("initializeWasm() must be awaited first!");
14458         }
14459         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
14460         // debug statements here
14461 }
14462         // uint64_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
14463 /* @internal */
14464 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14465         if(!isWasmInitialized) {
14466                 throw new Error("initializeWasm() must be awaited first!");
14467         }
14468         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
14469         return nativeResponseValue;
14470 }
14471         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
14472 /* @internal */
14473 export function CResult_NetAddressDecodeErrorZ_clone(orig: bigint): bigint {
14474         if(!isWasmInitialized) {
14475                 throw new Error("initializeWasm() must be awaited first!");
14476         }
14477         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
14478         return nativeResponseValue;
14479 }
14480         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
14481 /* @internal */
14482 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
14483         if(!isWasmInitialized) {
14484                 throw new Error("initializeWasm() must be awaited first!");
14485         }
14486         const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
14487         // debug statements here
14488 }
14489         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
14490 /* @internal */
14491 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
14492         if(!isWasmInitialized) {
14493                 throw new Error("initializeWasm() must be awaited first!");
14494         }
14495         const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
14496         // debug statements here
14497 }
14498         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
14499 /* @internal */
14500 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
14501         if(!isWasmInitialized) {
14502                 throw new Error("initializeWasm() must be awaited first!");
14503         }
14504         const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
14505         // debug statements here
14506 }
14507         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
14508 /* @internal */
14509 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
14510         if(!isWasmInitialized) {
14511                 throw new Error("initializeWasm() must be awaited first!");
14512         }
14513         const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
14514         // debug statements here
14515 }
14516         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
14517 /* @internal */
14518 export function CResult_AcceptChannelDecodeErrorZ_ok(o: bigint): bigint {
14519         if(!isWasmInitialized) {
14520                 throw new Error("initializeWasm() must be awaited first!");
14521         }
14522         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
14523         return nativeResponseValue;
14524 }
14525         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
14526 /* @internal */
14527 export function CResult_AcceptChannelDecodeErrorZ_err(e: bigint): bigint {
14528         if(!isWasmInitialized) {
14529                 throw new Error("initializeWasm() must be awaited first!");
14530         }
14531         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
14532         return nativeResponseValue;
14533 }
14534         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
14535 /* @internal */
14536 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: bigint): boolean {
14537         if(!isWasmInitialized) {
14538                 throw new Error("initializeWasm() must be awaited first!");
14539         }
14540         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
14541         return nativeResponseValue;
14542 }
14543         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
14544 /* @internal */
14545 export function CResult_AcceptChannelDecodeErrorZ_free(_res: bigint): void {
14546         if(!isWasmInitialized) {
14547                 throw new Error("initializeWasm() must be awaited first!");
14548         }
14549         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
14550         // debug statements here
14551 }
14552         // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
14553 /* @internal */
14554 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14555         if(!isWasmInitialized) {
14556                 throw new Error("initializeWasm() must be awaited first!");
14557         }
14558         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
14559         return nativeResponseValue;
14560 }
14561         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
14562 /* @internal */
14563 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: bigint): bigint {
14564         if(!isWasmInitialized) {
14565                 throw new Error("initializeWasm() must be awaited first!");
14566         }
14567         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
14568         return nativeResponseValue;
14569 }
14570         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
14571 /* @internal */
14572 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: bigint): bigint {
14573         if(!isWasmInitialized) {
14574                 throw new Error("initializeWasm() must be awaited first!");
14575         }
14576         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
14577         return nativeResponseValue;
14578 }
14579         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
14580 /* @internal */
14581 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: bigint): bigint {
14582         if(!isWasmInitialized) {
14583                 throw new Error("initializeWasm() must be awaited first!");
14584         }
14585         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
14586         return nativeResponseValue;
14587 }
14588         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
14589 /* @internal */
14590 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: bigint): boolean {
14591         if(!isWasmInitialized) {
14592                 throw new Error("initializeWasm() must be awaited first!");
14593         }
14594         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
14595         return nativeResponseValue;
14596 }
14597         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
14598 /* @internal */
14599 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: bigint): void {
14600         if(!isWasmInitialized) {
14601                 throw new Error("initializeWasm() must be awaited first!");
14602         }
14603         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
14604         // debug statements here
14605 }
14606         // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
14607 /* @internal */
14608 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14609         if(!isWasmInitialized) {
14610                 throw new Error("initializeWasm() must be awaited first!");
14611         }
14612         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
14613         return nativeResponseValue;
14614 }
14615         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
14616 /* @internal */
14617 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: bigint): bigint {
14618         if(!isWasmInitialized) {
14619                 throw new Error("initializeWasm() must be awaited first!");
14620         }
14621         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
14622         return nativeResponseValue;
14623 }
14624         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
14625 /* @internal */
14626 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: bigint): bigint {
14627         if(!isWasmInitialized) {
14628                 throw new Error("initializeWasm() must be awaited first!");
14629         }
14630         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
14631         return nativeResponseValue;
14632 }
14633         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
14634 /* @internal */
14635 export function CResult_ChannelReestablishDecodeErrorZ_err(e: bigint): bigint {
14636         if(!isWasmInitialized) {
14637                 throw new Error("initializeWasm() must be awaited first!");
14638         }
14639         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
14640         return nativeResponseValue;
14641 }
14642         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
14643 /* @internal */
14644 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: bigint): boolean {
14645         if(!isWasmInitialized) {
14646                 throw new Error("initializeWasm() must be awaited first!");
14647         }
14648         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
14649         return nativeResponseValue;
14650 }
14651         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
14652 /* @internal */
14653 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: bigint): void {
14654         if(!isWasmInitialized) {
14655                 throw new Error("initializeWasm() must be awaited first!");
14656         }
14657         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
14658         // debug statements here
14659 }
14660         // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
14661 /* @internal */
14662 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14663         if(!isWasmInitialized) {
14664                 throw new Error("initializeWasm() must be awaited first!");
14665         }
14666         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
14667         return nativeResponseValue;
14668 }
14669         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
14670 /* @internal */
14671 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: bigint): bigint {
14672         if(!isWasmInitialized) {
14673                 throw new Error("initializeWasm() must be awaited first!");
14674         }
14675         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
14676         return nativeResponseValue;
14677 }
14678         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
14679 /* @internal */
14680 export function CResult_ClosingSignedDecodeErrorZ_ok(o: bigint): bigint {
14681         if(!isWasmInitialized) {
14682                 throw new Error("initializeWasm() must be awaited first!");
14683         }
14684         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
14685         return nativeResponseValue;
14686 }
14687         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
14688 /* @internal */
14689 export function CResult_ClosingSignedDecodeErrorZ_err(e: bigint): bigint {
14690         if(!isWasmInitialized) {
14691                 throw new Error("initializeWasm() must be awaited first!");
14692         }
14693         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
14694         return nativeResponseValue;
14695 }
14696         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
14697 /* @internal */
14698 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: bigint): boolean {
14699         if(!isWasmInitialized) {
14700                 throw new Error("initializeWasm() must be awaited first!");
14701         }
14702         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
14703         return nativeResponseValue;
14704 }
14705         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
14706 /* @internal */
14707 export function CResult_ClosingSignedDecodeErrorZ_free(_res: bigint): void {
14708         if(!isWasmInitialized) {
14709                 throw new Error("initializeWasm() must be awaited first!");
14710         }
14711         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
14712         // debug statements here
14713 }
14714         // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
14715 /* @internal */
14716 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14717         if(!isWasmInitialized) {
14718                 throw new Error("initializeWasm() must be awaited first!");
14719         }
14720         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
14721         return nativeResponseValue;
14722 }
14723         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
14724 /* @internal */
14725 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: bigint): bigint {
14726         if(!isWasmInitialized) {
14727                 throw new Error("initializeWasm() must be awaited first!");
14728         }
14729         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
14730         return nativeResponseValue;
14731 }
14732         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
14733 /* @internal */
14734 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: bigint): bigint {
14735         if(!isWasmInitialized) {
14736                 throw new Error("initializeWasm() must be awaited first!");
14737         }
14738         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
14739         return nativeResponseValue;
14740 }
14741         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
14742 /* @internal */
14743 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: bigint): bigint {
14744         if(!isWasmInitialized) {
14745                 throw new Error("initializeWasm() must be awaited first!");
14746         }
14747         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
14748         return nativeResponseValue;
14749 }
14750         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
14751 /* @internal */
14752 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: bigint): boolean {
14753         if(!isWasmInitialized) {
14754                 throw new Error("initializeWasm() must be awaited first!");
14755         }
14756         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
14757         return nativeResponseValue;
14758 }
14759         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
14760 /* @internal */
14761 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: bigint): void {
14762         if(!isWasmInitialized) {
14763                 throw new Error("initializeWasm() must be awaited first!");
14764         }
14765         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
14766         // debug statements here
14767 }
14768         // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
14769 /* @internal */
14770 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14771         if(!isWasmInitialized) {
14772                 throw new Error("initializeWasm() must be awaited first!");
14773         }
14774         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
14775         return nativeResponseValue;
14776 }
14777         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
14778 /* @internal */
14779 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: bigint): bigint {
14780         if(!isWasmInitialized) {
14781                 throw new Error("initializeWasm() must be awaited first!");
14782         }
14783         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
14784         return nativeResponseValue;
14785 }
14786         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
14787 /* @internal */
14788 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: bigint): bigint {
14789         if(!isWasmInitialized) {
14790                 throw new Error("initializeWasm() must be awaited first!");
14791         }
14792         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
14793         return nativeResponseValue;
14794 }
14795         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
14796 /* @internal */
14797 export function CResult_CommitmentSignedDecodeErrorZ_err(e: bigint): bigint {
14798         if(!isWasmInitialized) {
14799                 throw new Error("initializeWasm() must be awaited first!");
14800         }
14801         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
14802         return nativeResponseValue;
14803 }
14804         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
14805 /* @internal */
14806 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: bigint): boolean {
14807         if(!isWasmInitialized) {
14808                 throw new Error("initializeWasm() must be awaited first!");
14809         }
14810         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
14811         return nativeResponseValue;
14812 }
14813         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
14814 /* @internal */
14815 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: bigint): void {
14816         if(!isWasmInitialized) {
14817                 throw new Error("initializeWasm() must be awaited first!");
14818         }
14819         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
14820         // debug statements here
14821 }
14822         // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
14823 /* @internal */
14824 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14825         if(!isWasmInitialized) {
14826                 throw new Error("initializeWasm() must be awaited first!");
14827         }
14828         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
14829         return nativeResponseValue;
14830 }
14831         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
14832 /* @internal */
14833 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: bigint): bigint {
14834         if(!isWasmInitialized) {
14835                 throw new Error("initializeWasm() must be awaited first!");
14836         }
14837         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
14838         return nativeResponseValue;
14839 }
14840         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
14841 /* @internal */
14842 export function CResult_FundingCreatedDecodeErrorZ_ok(o: bigint): bigint {
14843         if(!isWasmInitialized) {
14844                 throw new Error("initializeWasm() must be awaited first!");
14845         }
14846         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
14847         return nativeResponseValue;
14848 }
14849         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
14850 /* @internal */
14851 export function CResult_FundingCreatedDecodeErrorZ_err(e: bigint): bigint {
14852         if(!isWasmInitialized) {
14853                 throw new Error("initializeWasm() must be awaited first!");
14854         }
14855         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
14856         return nativeResponseValue;
14857 }
14858         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
14859 /* @internal */
14860 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: bigint): boolean {
14861         if(!isWasmInitialized) {
14862                 throw new Error("initializeWasm() must be awaited first!");
14863         }
14864         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
14865         return nativeResponseValue;
14866 }
14867         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
14868 /* @internal */
14869 export function CResult_FundingCreatedDecodeErrorZ_free(_res: bigint): void {
14870         if(!isWasmInitialized) {
14871                 throw new Error("initializeWasm() must be awaited first!");
14872         }
14873         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
14874         // debug statements here
14875 }
14876         // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
14877 /* @internal */
14878 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14879         if(!isWasmInitialized) {
14880                 throw new Error("initializeWasm() must be awaited first!");
14881         }
14882         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
14883         return nativeResponseValue;
14884 }
14885         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
14886 /* @internal */
14887 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: bigint): bigint {
14888         if(!isWasmInitialized) {
14889                 throw new Error("initializeWasm() must be awaited first!");
14890         }
14891         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
14892         return nativeResponseValue;
14893 }
14894         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
14895 /* @internal */
14896 export function CResult_FundingSignedDecodeErrorZ_ok(o: bigint): bigint {
14897         if(!isWasmInitialized) {
14898                 throw new Error("initializeWasm() must be awaited first!");
14899         }
14900         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
14901         return nativeResponseValue;
14902 }
14903         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
14904 /* @internal */
14905 export function CResult_FundingSignedDecodeErrorZ_err(e: bigint): bigint {
14906         if(!isWasmInitialized) {
14907                 throw new Error("initializeWasm() must be awaited first!");
14908         }
14909         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
14910         return nativeResponseValue;
14911 }
14912         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
14913 /* @internal */
14914 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: bigint): boolean {
14915         if(!isWasmInitialized) {
14916                 throw new Error("initializeWasm() must be awaited first!");
14917         }
14918         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
14919         return nativeResponseValue;
14920 }
14921         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
14922 /* @internal */
14923 export function CResult_FundingSignedDecodeErrorZ_free(_res: bigint): void {
14924         if(!isWasmInitialized) {
14925                 throw new Error("initializeWasm() must be awaited first!");
14926         }
14927         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
14928         // debug statements here
14929 }
14930         // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
14931 /* @internal */
14932 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14933         if(!isWasmInitialized) {
14934                 throw new Error("initializeWasm() must be awaited first!");
14935         }
14936         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
14937         return nativeResponseValue;
14938 }
14939         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
14940 /* @internal */
14941 export function CResult_FundingSignedDecodeErrorZ_clone(orig: bigint): bigint {
14942         if(!isWasmInitialized) {
14943                 throw new Error("initializeWasm() must be awaited first!");
14944         }
14945         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
14946         return nativeResponseValue;
14947 }
14948         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
14949 /* @internal */
14950 export function CResult_ChannelReadyDecodeErrorZ_ok(o: bigint): bigint {
14951         if(!isWasmInitialized) {
14952                 throw new Error("initializeWasm() must be awaited first!");
14953         }
14954         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_ok(o);
14955         return nativeResponseValue;
14956 }
14957         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
14958 /* @internal */
14959 export function CResult_ChannelReadyDecodeErrorZ_err(e: bigint): bigint {
14960         if(!isWasmInitialized) {
14961                 throw new Error("initializeWasm() must be awaited first!");
14962         }
14963         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_err(e);
14964         return nativeResponseValue;
14965 }
14966         // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
14967 /* @internal */
14968 export function CResult_ChannelReadyDecodeErrorZ_is_ok(o: bigint): boolean {
14969         if(!isWasmInitialized) {
14970                 throw new Error("initializeWasm() must be awaited first!");
14971         }
14972         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_is_ok(o);
14973         return nativeResponseValue;
14974 }
14975         // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
14976 /* @internal */
14977 export function CResult_ChannelReadyDecodeErrorZ_free(_res: bigint): void {
14978         if(!isWasmInitialized) {
14979                 throw new Error("initializeWasm() must be awaited first!");
14980         }
14981         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_free(_res);
14982         // debug statements here
14983 }
14984         // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
14985 /* @internal */
14986 export function CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14987         if(!isWasmInitialized) {
14988                 throw new Error("initializeWasm() must be awaited first!");
14989         }
14990         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg);
14991         return nativeResponseValue;
14992 }
14993         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
14994 /* @internal */
14995 export function CResult_ChannelReadyDecodeErrorZ_clone(orig: bigint): bigint {
14996         if(!isWasmInitialized) {
14997                 throw new Error("initializeWasm() must be awaited first!");
14998         }
14999         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone(orig);
15000         return nativeResponseValue;
15001 }
15002         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
15003 /* @internal */
15004 export function CResult_InitDecodeErrorZ_ok(o: bigint): bigint {
15005         if(!isWasmInitialized) {
15006                 throw new Error("initializeWasm() must be awaited first!");
15007         }
15008         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
15009         return nativeResponseValue;
15010 }
15011         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
15012 /* @internal */
15013 export function CResult_InitDecodeErrorZ_err(e: bigint): bigint {
15014         if(!isWasmInitialized) {
15015                 throw new Error("initializeWasm() must be awaited first!");
15016         }
15017         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
15018         return nativeResponseValue;
15019 }
15020         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
15021 /* @internal */
15022 export function CResult_InitDecodeErrorZ_is_ok(o: bigint): boolean {
15023         if(!isWasmInitialized) {
15024                 throw new Error("initializeWasm() must be awaited first!");
15025         }
15026         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
15027         return nativeResponseValue;
15028 }
15029         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
15030 /* @internal */
15031 export function CResult_InitDecodeErrorZ_free(_res: bigint): void {
15032         if(!isWasmInitialized) {
15033                 throw new Error("initializeWasm() must be awaited first!");
15034         }
15035         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
15036         // debug statements here
15037 }
15038         // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
15039 /* @internal */
15040 export function CResult_InitDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15041         if(!isWasmInitialized) {
15042                 throw new Error("initializeWasm() must be awaited first!");
15043         }
15044         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
15045         return nativeResponseValue;
15046 }
15047         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
15048 /* @internal */
15049 export function CResult_InitDecodeErrorZ_clone(orig: bigint): bigint {
15050         if(!isWasmInitialized) {
15051                 throw new Error("initializeWasm() must be awaited first!");
15052         }
15053         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
15054         return nativeResponseValue;
15055 }
15056         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
15057 /* @internal */
15058 export function CResult_OpenChannelDecodeErrorZ_ok(o: bigint): bigint {
15059         if(!isWasmInitialized) {
15060                 throw new Error("initializeWasm() must be awaited first!");
15061         }
15062         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
15063         return nativeResponseValue;
15064 }
15065         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
15066 /* @internal */
15067 export function CResult_OpenChannelDecodeErrorZ_err(e: bigint): bigint {
15068         if(!isWasmInitialized) {
15069                 throw new Error("initializeWasm() must be awaited first!");
15070         }
15071         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
15072         return nativeResponseValue;
15073 }
15074         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
15075 /* @internal */
15076 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: bigint): boolean {
15077         if(!isWasmInitialized) {
15078                 throw new Error("initializeWasm() must be awaited first!");
15079         }
15080         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
15081         return nativeResponseValue;
15082 }
15083         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
15084 /* @internal */
15085 export function CResult_OpenChannelDecodeErrorZ_free(_res: bigint): void {
15086         if(!isWasmInitialized) {
15087                 throw new Error("initializeWasm() must be awaited first!");
15088         }
15089         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
15090         // debug statements here
15091 }
15092         // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
15093 /* @internal */
15094 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15095         if(!isWasmInitialized) {
15096                 throw new Error("initializeWasm() must be awaited first!");
15097         }
15098         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
15099         return nativeResponseValue;
15100 }
15101         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
15102 /* @internal */
15103 export function CResult_OpenChannelDecodeErrorZ_clone(orig: bigint): bigint {
15104         if(!isWasmInitialized) {
15105                 throw new Error("initializeWasm() must be awaited first!");
15106         }
15107         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
15108         return nativeResponseValue;
15109 }
15110         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
15111 /* @internal */
15112 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: bigint): bigint {
15113         if(!isWasmInitialized) {
15114                 throw new Error("initializeWasm() must be awaited first!");
15115         }
15116         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
15117         return nativeResponseValue;
15118 }
15119         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
15120 /* @internal */
15121 export function CResult_RevokeAndACKDecodeErrorZ_err(e: bigint): bigint {
15122         if(!isWasmInitialized) {
15123                 throw new Error("initializeWasm() must be awaited first!");
15124         }
15125         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
15126         return nativeResponseValue;
15127 }
15128         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
15129 /* @internal */
15130 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: bigint): boolean {
15131         if(!isWasmInitialized) {
15132                 throw new Error("initializeWasm() must be awaited first!");
15133         }
15134         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
15135         return nativeResponseValue;
15136 }
15137         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
15138 /* @internal */
15139 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: bigint): void {
15140         if(!isWasmInitialized) {
15141                 throw new Error("initializeWasm() must be awaited first!");
15142         }
15143         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
15144         // debug statements here
15145 }
15146         // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
15147 /* @internal */
15148 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15149         if(!isWasmInitialized) {
15150                 throw new Error("initializeWasm() must be awaited first!");
15151         }
15152         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
15153         return nativeResponseValue;
15154 }
15155         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
15156 /* @internal */
15157 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: bigint): bigint {
15158         if(!isWasmInitialized) {
15159                 throw new Error("initializeWasm() must be awaited first!");
15160         }
15161         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
15162         return nativeResponseValue;
15163 }
15164         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
15165 /* @internal */
15166 export function CResult_ShutdownDecodeErrorZ_ok(o: bigint): bigint {
15167         if(!isWasmInitialized) {
15168                 throw new Error("initializeWasm() must be awaited first!");
15169         }
15170         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
15171         return nativeResponseValue;
15172 }
15173         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
15174 /* @internal */
15175 export function CResult_ShutdownDecodeErrorZ_err(e: bigint): bigint {
15176         if(!isWasmInitialized) {
15177                 throw new Error("initializeWasm() must be awaited first!");
15178         }
15179         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
15180         return nativeResponseValue;
15181 }
15182         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
15183 /* @internal */
15184 export function CResult_ShutdownDecodeErrorZ_is_ok(o: bigint): boolean {
15185         if(!isWasmInitialized) {
15186                 throw new Error("initializeWasm() must be awaited first!");
15187         }
15188         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
15189         return nativeResponseValue;
15190 }
15191         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
15192 /* @internal */
15193 export function CResult_ShutdownDecodeErrorZ_free(_res: bigint): void {
15194         if(!isWasmInitialized) {
15195                 throw new Error("initializeWasm() must be awaited first!");
15196         }
15197         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
15198         // debug statements here
15199 }
15200         // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
15201 /* @internal */
15202 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15203         if(!isWasmInitialized) {
15204                 throw new Error("initializeWasm() must be awaited first!");
15205         }
15206         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
15207         return nativeResponseValue;
15208 }
15209         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
15210 /* @internal */
15211 export function CResult_ShutdownDecodeErrorZ_clone(orig: bigint): bigint {
15212         if(!isWasmInitialized) {
15213                 throw new Error("initializeWasm() must be awaited first!");
15214         }
15215         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
15216         return nativeResponseValue;
15217 }
15218         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
15219 /* @internal */
15220 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: bigint): bigint {
15221         if(!isWasmInitialized) {
15222                 throw new Error("initializeWasm() must be awaited first!");
15223         }
15224         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
15225         return nativeResponseValue;
15226 }
15227         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
15228 /* @internal */
15229 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: bigint): bigint {
15230         if(!isWasmInitialized) {
15231                 throw new Error("initializeWasm() must be awaited first!");
15232         }
15233         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
15234         return nativeResponseValue;
15235 }
15236         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
15237 /* @internal */
15238 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
15239         if(!isWasmInitialized) {
15240                 throw new Error("initializeWasm() must be awaited first!");
15241         }
15242         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
15243         return nativeResponseValue;
15244 }
15245         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
15246 /* @internal */
15247 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: bigint): void {
15248         if(!isWasmInitialized) {
15249                 throw new Error("initializeWasm() must be awaited first!");
15250         }
15251         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
15252         // debug statements here
15253 }
15254         // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
15255 /* @internal */
15256 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15257         if(!isWasmInitialized) {
15258                 throw new Error("initializeWasm() must be awaited first!");
15259         }
15260         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
15261         return nativeResponseValue;
15262 }
15263         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
15264 /* @internal */
15265 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: bigint): bigint {
15266         if(!isWasmInitialized) {
15267                 throw new Error("initializeWasm() must be awaited first!");
15268         }
15269         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
15270         return nativeResponseValue;
15271 }
15272         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
15273 /* @internal */
15274 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: bigint): bigint {
15275         if(!isWasmInitialized) {
15276                 throw new Error("initializeWasm() must be awaited first!");
15277         }
15278         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
15279         return nativeResponseValue;
15280 }
15281         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
15282 /* @internal */
15283 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: bigint): bigint {
15284         if(!isWasmInitialized) {
15285                 throw new Error("initializeWasm() must be awaited first!");
15286         }
15287         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
15288         return nativeResponseValue;
15289 }
15290         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
15291 /* @internal */
15292 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
15293         if(!isWasmInitialized) {
15294                 throw new Error("initializeWasm() must be awaited first!");
15295         }
15296         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
15297         return nativeResponseValue;
15298 }
15299         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
15300 /* @internal */
15301 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: bigint): void {
15302         if(!isWasmInitialized) {
15303                 throw new Error("initializeWasm() must be awaited first!");
15304         }
15305         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
15306         // debug statements here
15307 }
15308         // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
15309 /* @internal */
15310 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15311         if(!isWasmInitialized) {
15312                 throw new Error("initializeWasm() must be awaited first!");
15313         }
15314         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
15315         return nativeResponseValue;
15316 }
15317         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
15318 /* @internal */
15319 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: bigint): bigint {
15320         if(!isWasmInitialized) {
15321                 throw new Error("initializeWasm() must be awaited first!");
15322         }
15323         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
15324         return nativeResponseValue;
15325 }
15326         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
15327 /* @internal */
15328 export function CResult_UpdateFeeDecodeErrorZ_ok(o: bigint): bigint {
15329         if(!isWasmInitialized) {
15330                 throw new Error("initializeWasm() must be awaited first!");
15331         }
15332         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
15333         return nativeResponseValue;
15334 }
15335         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
15336 /* @internal */
15337 export function CResult_UpdateFeeDecodeErrorZ_err(e: bigint): bigint {
15338         if(!isWasmInitialized) {
15339                 throw new Error("initializeWasm() must be awaited first!");
15340         }
15341         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
15342         return nativeResponseValue;
15343 }
15344         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
15345 /* @internal */
15346 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: bigint): boolean {
15347         if(!isWasmInitialized) {
15348                 throw new Error("initializeWasm() must be awaited first!");
15349         }
15350         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
15351         return nativeResponseValue;
15352 }
15353         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
15354 /* @internal */
15355 export function CResult_UpdateFeeDecodeErrorZ_free(_res: bigint): void {
15356         if(!isWasmInitialized) {
15357                 throw new Error("initializeWasm() must be awaited first!");
15358         }
15359         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
15360         // debug statements here
15361 }
15362         // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
15363 /* @internal */
15364 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15365         if(!isWasmInitialized) {
15366                 throw new Error("initializeWasm() must be awaited first!");
15367         }
15368         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
15369         return nativeResponseValue;
15370 }
15371         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
15372 /* @internal */
15373 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: bigint): bigint {
15374         if(!isWasmInitialized) {
15375                 throw new Error("initializeWasm() must be awaited first!");
15376         }
15377         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
15378         return nativeResponseValue;
15379 }
15380         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
15381 /* @internal */
15382 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: bigint): bigint {
15383         if(!isWasmInitialized) {
15384                 throw new Error("initializeWasm() must be awaited first!");
15385         }
15386         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
15387         return nativeResponseValue;
15388 }
15389         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
15390 /* @internal */
15391 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: bigint): bigint {
15392         if(!isWasmInitialized) {
15393                 throw new Error("initializeWasm() must be awaited first!");
15394         }
15395         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
15396         return nativeResponseValue;
15397 }
15398         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
15399 /* @internal */
15400 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
15401         if(!isWasmInitialized) {
15402                 throw new Error("initializeWasm() must be awaited first!");
15403         }
15404         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
15405         return nativeResponseValue;
15406 }
15407         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
15408 /* @internal */
15409 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: bigint): void {
15410         if(!isWasmInitialized) {
15411                 throw new Error("initializeWasm() must be awaited first!");
15412         }
15413         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
15414         // debug statements here
15415 }
15416         // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
15417 /* @internal */
15418 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15419         if(!isWasmInitialized) {
15420                 throw new Error("initializeWasm() must be awaited first!");
15421         }
15422         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
15423         return nativeResponseValue;
15424 }
15425         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
15426 /* @internal */
15427 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: bigint): bigint {
15428         if(!isWasmInitialized) {
15429                 throw new Error("initializeWasm() must be awaited first!");
15430         }
15431         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
15432         return nativeResponseValue;
15433 }
15434         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
15435 /* @internal */
15436 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: bigint): bigint {
15437         if(!isWasmInitialized) {
15438                 throw new Error("initializeWasm() must be awaited first!");
15439         }
15440         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
15441         return nativeResponseValue;
15442 }
15443         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
15444 /* @internal */
15445 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: bigint): bigint {
15446         if(!isWasmInitialized) {
15447                 throw new Error("initializeWasm() must be awaited first!");
15448         }
15449         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
15450         return nativeResponseValue;
15451 }
15452         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
15453 /* @internal */
15454 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
15455         if(!isWasmInitialized) {
15456                 throw new Error("initializeWasm() must be awaited first!");
15457         }
15458         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
15459         return nativeResponseValue;
15460 }
15461         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
15462 /* @internal */
15463 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: bigint): void {
15464         if(!isWasmInitialized) {
15465                 throw new Error("initializeWasm() must be awaited first!");
15466         }
15467         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
15468         // debug statements here
15469 }
15470         // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
15471 /* @internal */
15472 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15473         if(!isWasmInitialized) {
15474                 throw new Error("initializeWasm() must be awaited first!");
15475         }
15476         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
15477         return nativeResponseValue;
15478 }
15479         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
15480 /* @internal */
15481 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: bigint): bigint {
15482         if(!isWasmInitialized) {
15483                 throw new Error("initializeWasm() must be awaited first!");
15484         }
15485         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
15486         return nativeResponseValue;
15487 }
15488         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
15489 /* @internal */
15490 export function CResult_OnionMessageDecodeErrorZ_ok(o: bigint): bigint {
15491         if(!isWasmInitialized) {
15492                 throw new Error("initializeWasm() must be awaited first!");
15493         }
15494         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_ok(o);
15495         return nativeResponseValue;
15496 }
15497         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
15498 /* @internal */
15499 export function CResult_OnionMessageDecodeErrorZ_err(e: bigint): bigint {
15500         if(!isWasmInitialized) {
15501                 throw new Error("initializeWasm() must be awaited first!");
15502         }
15503         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_err(e);
15504         return nativeResponseValue;
15505 }
15506         // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
15507 /* @internal */
15508 export function CResult_OnionMessageDecodeErrorZ_is_ok(o: bigint): boolean {
15509         if(!isWasmInitialized) {
15510                 throw new Error("initializeWasm() must be awaited first!");
15511         }
15512         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_is_ok(o);
15513         return nativeResponseValue;
15514 }
15515         // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
15516 /* @internal */
15517 export function CResult_OnionMessageDecodeErrorZ_free(_res: bigint): void {
15518         if(!isWasmInitialized) {
15519                 throw new Error("initializeWasm() must be awaited first!");
15520         }
15521         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_free(_res);
15522         // debug statements here
15523 }
15524         // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
15525 /* @internal */
15526 export function CResult_OnionMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15527         if(!isWasmInitialized) {
15528                 throw new Error("initializeWasm() must be awaited first!");
15529         }
15530         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_clone_ptr(arg);
15531         return nativeResponseValue;
15532 }
15533         // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
15534 /* @internal */
15535 export function CResult_OnionMessageDecodeErrorZ_clone(orig: bigint): bigint {
15536         if(!isWasmInitialized) {
15537                 throw new Error("initializeWasm() must be awaited first!");
15538         }
15539         const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_clone(orig);
15540         return nativeResponseValue;
15541 }
15542         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
15543 /* @internal */
15544 export function CResult_PingDecodeErrorZ_ok(o: bigint): bigint {
15545         if(!isWasmInitialized) {
15546                 throw new Error("initializeWasm() must be awaited first!");
15547         }
15548         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
15549         return nativeResponseValue;
15550 }
15551         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
15552 /* @internal */
15553 export function CResult_PingDecodeErrorZ_err(e: bigint): bigint {
15554         if(!isWasmInitialized) {
15555                 throw new Error("initializeWasm() must be awaited first!");
15556         }
15557         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
15558         return nativeResponseValue;
15559 }
15560         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
15561 /* @internal */
15562 export function CResult_PingDecodeErrorZ_is_ok(o: bigint): boolean {
15563         if(!isWasmInitialized) {
15564                 throw new Error("initializeWasm() must be awaited first!");
15565         }
15566         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
15567         return nativeResponseValue;
15568 }
15569         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
15570 /* @internal */
15571 export function CResult_PingDecodeErrorZ_free(_res: bigint): void {
15572         if(!isWasmInitialized) {
15573                 throw new Error("initializeWasm() must be awaited first!");
15574         }
15575         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
15576         // debug statements here
15577 }
15578         // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
15579 /* @internal */
15580 export function CResult_PingDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15581         if(!isWasmInitialized) {
15582                 throw new Error("initializeWasm() must be awaited first!");
15583         }
15584         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
15585         return nativeResponseValue;
15586 }
15587         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
15588 /* @internal */
15589 export function CResult_PingDecodeErrorZ_clone(orig: bigint): bigint {
15590         if(!isWasmInitialized) {
15591                 throw new Error("initializeWasm() must be awaited first!");
15592         }
15593         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
15594         return nativeResponseValue;
15595 }
15596         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
15597 /* @internal */
15598 export function CResult_PongDecodeErrorZ_ok(o: bigint): bigint {
15599         if(!isWasmInitialized) {
15600                 throw new Error("initializeWasm() must be awaited first!");
15601         }
15602         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
15603         return nativeResponseValue;
15604 }
15605         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
15606 /* @internal */
15607 export function CResult_PongDecodeErrorZ_err(e: bigint): bigint {
15608         if(!isWasmInitialized) {
15609                 throw new Error("initializeWasm() must be awaited first!");
15610         }
15611         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
15612         return nativeResponseValue;
15613 }
15614         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
15615 /* @internal */
15616 export function CResult_PongDecodeErrorZ_is_ok(o: bigint): boolean {
15617         if(!isWasmInitialized) {
15618                 throw new Error("initializeWasm() must be awaited first!");
15619         }
15620         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
15621         return nativeResponseValue;
15622 }
15623         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
15624 /* @internal */
15625 export function CResult_PongDecodeErrorZ_free(_res: bigint): void {
15626         if(!isWasmInitialized) {
15627                 throw new Error("initializeWasm() must be awaited first!");
15628         }
15629         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
15630         // debug statements here
15631 }
15632         // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
15633 /* @internal */
15634 export function CResult_PongDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15635         if(!isWasmInitialized) {
15636                 throw new Error("initializeWasm() must be awaited first!");
15637         }
15638         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
15639         return nativeResponseValue;
15640 }
15641         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
15642 /* @internal */
15643 export function CResult_PongDecodeErrorZ_clone(orig: bigint): bigint {
15644         if(!isWasmInitialized) {
15645                 throw new Error("initializeWasm() must be awaited first!");
15646         }
15647         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
15648         return nativeResponseValue;
15649 }
15650         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
15651 /* @internal */
15652 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
15653         if(!isWasmInitialized) {
15654                 throw new Error("initializeWasm() must be awaited first!");
15655         }
15656         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
15657         return nativeResponseValue;
15658 }
15659         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
15660 /* @internal */
15661 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: bigint): bigint {
15662         if(!isWasmInitialized) {
15663                 throw new Error("initializeWasm() must be awaited first!");
15664         }
15665         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
15666         return nativeResponseValue;
15667 }
15668         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
15669 /* @internal */
15670 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
15671         if(!isWasmInitialized) {
15672                 throw new Error("initializeWasm() must be awaited first!");
15673         }
15674         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
15675         return nativeResponseValue;
15676 }
15677         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
15678 /* @internal */
15679 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: bigint): void {
15680         if(!isWasmInitialized) {
15681                 throw new Error("initializeWasm() must be awaited first!");
15682         }
15683         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
15684         // debug statements here
15685 }
15686         // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
15687 /* @internal */
15688 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15689         if(!isWasmInitialized) {
15690                 throw new Error("initializeWasm() must be awaited first!");
15691         }
15692         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
15693         return nativeResponseValue;
15694 }
15695         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
15696 /* @internal */
15697 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
15698         if(!isWasmInitialized) {
15699                 throw new Error("initializeWasm() must be awaited first!");
15700         }
15701         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
15702         return nativeResponseValue;
15703 }
15704         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
15705 /* @internal */
15706 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
15707         if(!isWasmInitialized) {
15708                 throw new Error("initializeWasm() must be awaited first!");
15709         }
15710         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
15711         return nativeResponseValue;
15712 }
15713         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
15714 /* @internal */
15715 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: bigint): bigint {
15716         if(!isWasmInitialized) {
15717                 throw new Error("initializeWasm() must be awaited first!");
15718         }
15719         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
15720         return nativeResponseValue;
15721 }
15722         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
15723 /* @internal */
15724 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
15725         if(!isWasmInitialized) {
15726                 throw new Error("initializeWasm() must be awaited first!");
15727         }
15728         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
15729         return nativeResponseValue;
15730 }
15731         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
15732 /* @internal */
15733 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: bigint): void {
15734         if(!isWasmInitialized) {
15735                 throw new Error("initializeWasm() must be awaited first!");
15736         }
15737         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
15738         // debug statements here
15739 }
15740         // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
15741 /* @internal */
15742 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15743         if(!isWasmInitialized) {
15744                 throw new Error("initializeWasm() must be awaited first!");
15745         }
15746         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
15747         return nativeResponseValue;
15748 }
15749         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
15750 /* @internal */
15751 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
15752         if(!isWasmInitialized) {
15753                 throw new Error("initializeWasm() must be awaited first!");
15754         }
15755         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
15756         return nativeResponseValue;
15757 }
15758         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
15759 /* @internal */
15760 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: bigint): bigint {
15761         if(!isWasmInitialized) {
15762                 throw new Error("initializeWasm() must be awaited first!");
15763         }
15764         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
15765         return nativeResponseValue;
15766 }
15767         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
15768 /* @internal */
15769 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: bigint): bigint {
15770         if(!isWasmInitialized) {
15771                 throw new Error("initializeWasm() must be awaited first!");
15772         }
15773         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
15774         return nativeResponseValue;
15775 }
15776         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
15777 /* @internal */
15778 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
15779         if(!isWasmInitialized) {
15780                 throw new Error("initializeWasm() must be awaited first!");
15781         }
15782         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
15783         return nativeResponseValue;
15784 }
15785         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
15786 /* @internal */
15787 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: bigint): void {
15788         if(!isWasmInitialized) {
15789                 throw new Error("initializeWasm() must be awaited first!");
15790         }
15791         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
15792         // debug statements here
15793 }
15794         // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
15795 /* @internal */
15796 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15797         if(!isWasmInitialized) {
15798                 throw new Error("initializeWasm() must be awaited first!");
15799         }
15800         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
15801         return nativeResponseValue;
15802 }
15803         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
15804 /* @internal */
15805 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: bigint): bigint {
15806         if(!isWasmInitialized) {
15807                 throw new Error("initializeWasm() must be awaited first!");
15808         }
15809         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
15810         return nativeResponseValue;
15811 }
15812         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
15813 /* @internal */
15814 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: bigint): bigint {
15815         if(!isWasmInitialized) {
15816                 throw new Error("initializeWasm() must be awaited first!");
15817         }
15818         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
15819         return nativeResponseValue;
15820 }
15821         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
15822 /* @internal */
15823 export function CResult_ChannelUpdateDecodeErrorZ_err(e: bigint): bigint {
15824         if(!isWasmInitialized) {
15825                 throw new Error("initializeWasm() must be awaited first!");
15826         }
15827         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
15828         return nativeResponseValue;
15829 }
15830         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
15831 /* @internal */
15832 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
15833         if(!isWasmInitialized) {
15834                 throw new Error("initializeWasm() must be awaited first!");
15835         }
15836         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
15837         return nativeResponseValue;
15838 }
15839         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
15840 /* @internal */
15841 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: bigint): void {
15842         if(!isWasmInitialized) {
15843                 throw new Error("initializeWasm() must be awaited first!");
15844         }
15845         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
15846         // debug statements here
15847 }
15848         // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
15849 /* @internal */
15850 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15851         if(!isWasmInitialized) {
15852                 throw new Error("initializeWasm() must be awaited first!");
15853         }
15854         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
15855         return nativeResponseValue;
15856 }
15857         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
15858 /* @internal */
15859 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: bigint): bigint {
15860         if(!isWasmInitialized) {
15861                 throw new Error("initializeWasm() must be awaited first!");
15862         }
15863         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
15864         return nativeResponseValue;
15865 }
15866         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
15867 /* @internal */
15868 export function CResult_ErrorMessageDecodeErrorZ_ok(o: bigint): bigint {
15869         if(!isWasmInitialized) {
15870                 throw new Error("initializeWasm() must be awaited first!");
15871         }
15872         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
15873         return nativeResponseValue;
15874 }
15875         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
15876 /* @internal */
15877 export function CResult_ErrorMessageDecodeErrorZ_err(e: bigint): bigint {
15878         if(!isWasmInitialized) {
15879                 throw new Error("initializeWasm() must be awaited first!");
15880         }
15881         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
15882         return nativeResponseValue;
15883 }
15884         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
15885 /* @internal */
15886 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: bigint): boolean {
15887         if(!isWasmInitialized) {
15888                 throw new Error("initializeWasm() must be awaited first!");
15889         }
15890         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
15891         return nativeResponseValue;
15892 }
15893         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
15894 /* @internal */
15895 export function CResult_ErrorMessageDecodeErrorZ_free(_res: bigint): void {
15896         if(!isWasmInitialized) {
15897                 throw new Error("initializeWasm() must be awaited first!");
15898         }
15899         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
15900         // debug statements here
15901 }
15902         // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
15903 /* @internal */
15904 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15905         if(!isWasmInitialized) {
15906                 throw new Error("initializeWasm() must be awaited first!");
15907         }
15908         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
15909         return nativeResponseValue;
15910 }
15911         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
15912 /* @internal */
15913 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: bigint): bigint {
15914         if(!isWasmInitialized) {
15915                 throw new Error("initializeWasm() must be awaited first!");
15916         }
15917         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
15918         return nativeResponseValue;
15919 }
15920         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
15921 /* @internal */
15922 export function CResult_WarningMessageDecodeErrorZ_ok(o: bigint): bigint {
15923         if(!isWasmInitialized) {
15924                 throw new Error("initializeWasm() must be awaited first!");
15925         }
15926         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
15927         return nativeResponseValue;
15928 }
15929         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
15930 /* @internal */
15931 export function CResult_WarningMessageDecodeErrorZ_err(e: bigint): bigint {
15932         if(!isWasmInitialized) {
15933                 throw new Error("initializeWasm() must be awaited first!");
15934         }
15935         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
15936         return nativeResponseValue;
15937 }
15938         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
15939 /* @internal */
15940 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: bigint): boolean {
15941         if(!isWasmInitialized) {
15942                 throw new Error("initializeWasm() must be awaited first!");
15943         }
15944         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
15945         return nativeResponseValue;
15946 }
15947         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
15948 /* @internal */
15949 export function CResult_WarningMessageDecodeErrorZ_free(_res: bigint): void {
15950         if(!isWasmInitialized) {
15951                 throw new Error("initializeWasm() must be awaited first!");
15952         }
15953         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
15954         // debug statements here
15955 }
15956         // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
15957 /* @internal */
15958 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15959         if(!isWasmInitialized) {
15960                 throw new Error("initializeWasm() must be awaited first!");
15961         }
15962         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
15963         return nativeResponseValue;
15964 }
15965         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
15966 /* @internal */
15967 export function CResult_WarningMessageDecodeErrorZ_clone(orig: bigint): bigint {
15968         if(!isWasmInitialized) {
15969                 throw new Error("initializeWasm() must be awaited first!");
15970         }
15971         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
15972         return nativeResponseValue;
15973 }
15974         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
15975 /* @internal */
15976 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
15977         if(!isWasmInitialized) {
15978                 throw new Error("initializeWasm() must be awaited first!");
15979         }
15980         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
15981         return nativeResponseValue;
15982 }
15983         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
15984 /* @internal */
15985 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: bigint): bigint {
15986         if(!isWasmInitialized) {
15987                 throw new Error("initializeWasm() must be awaited first!");
15988         }
15989         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
15990         return nativeResponseValue;
15991 }
15992         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
15993 /* @internal */
15994 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
15995         if(!isWasmInitialized) {
15996                 throw new Error("initializeWasm() must be awaited first!");
15997         }
15998         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
15999         return nativeResponseValue;
16000 }
16001         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
16002 /* @internal */
16003 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: bigint): void {
16004         if(!isWasmInitialized) {
16005                 throw new Error("initializeWasm() must be awaited first!");
16006         }
16007         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
16008         // debug statements here
16009 }
16010         // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
16011 /* @internal */
16012 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16013         if(!isWasmInitialized) {
16014                 throw new Error("initializeWasm() must be awaited first!");
16015         }
16016         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
16017         return nativeResponseValue;
16018 }
16019         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
16020 /* @internal */
16021 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
16022         if(!isWasmInitialized) {
16023                 throw new Error("initializeWasm() must be awaited first!");
16024         }
16025         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
16026         return nativeResponseValue;
16027 }
16028         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
16029 /* @internal */
16030 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
16031         if(!isWasmInitialized) {
16032                 throw new Error("initializeWasm() must be awaited first!");
16033         }
16034         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
16035         return nativeResponseValue;
16036 }
16037         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
16038 /* @internal */
16039 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: bigint): bigint {
16040         if(!isWasmInitialized) {
16041                 throw new Error("initializeWasm() must be awaited first!");
16042         }
16043         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
16044         return nativeResponseValue;
16045 }
16046         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
16047 /* @internal */
16048 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
16049         if(!isWasmInitialized) {
16050                 throw new Error("initializeWasm() must be awaited first!");
16051         }
16052         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
16053         return nativeResponseValue;
16054 }
16055         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
16056 /* @internal */
16057 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: bigint): void {
16058         if(!isWasmInitialized) {
16059                 throw new Error("initializeWasm() must be awaited first!");
16060         }
16061         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
16062         // debug statements here
16063 }
16064         // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
16065 /* @internal */
16066 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16067         if(!isWasmInitialized) {
16068                 throw new Error("initializeWasm() must be awaited first!");
16069         }
16070         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
16071         return nativeResponseValue;
16072 }
16073         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
16074 /* @internal */
16075 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
16076         if(!isWasmInitialized) {
16077                 throw new Error("initializeWasm() must be awaited first!");
16078         }
16079         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
16080         return nativeResponseValue;
16081 }
16082         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
16083 /* @internal */
16084 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: bigint): bigint {
16085         if(!isWasmInitialized) {
16086                 throw new Error("initializeWasm() must be awaited first!");
16087         }
16088         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
16089         return nativeResponseValue;
16090 }
16091         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
16092 /* @internal */
16093 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: bigint): bigint {
16094         if(!isWasmInitialized) {
16095                 throw new Error("initializeWasm() must be awaited first!");
16096         }
16097         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
16098         return nativeResponseValue;
16099 }
16100         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
16101 /* @internal */
16102 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: bigint): boolean {
16103         if(!isWasmInitialized) {
16104                 throw new Error("initializeWasm() must be awaited first!");
16105         }
16106         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
16107         return nativeResponseValue;
16108 }
16109         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
16110 /* @internal */
16111 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: bigint): void {
16112         if(!isWasmInitialized) {
16113                 throw new Error("initializeWasm() must be awaited first!");
16114         }
16115         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
16116         // debug statements here
16117 }
16118         // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
16119 /* @internal */
16120 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16121         if(!isWasmInitialized) {
16122                 throw new Error("initializeWasm() must be awaited first!");
16123         }
16124         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
16125         return nativeResponseValue;
16126 }
16127         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
16128 /* @internal */
16129 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: bigint): bigint {
16130         if(!isWasmInitialized) {
16131                 throw new Error("initializeWasm() must be awaited first!");
16132         }
16133         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
16134         return nativeResponseValue;
16135 }
16136         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
16137 /* @internal */
16138 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: bigint): bigint {
16139         if(!isWasmInitialized) {
16140                 throw new Error("initializeWasm() must be awaited first!");
16141         }
16142         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
16143         return nativeResponseValue;
16144 }
16145         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
16146 /* @internal */
16147 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: bigint): bigint {
16148         if(!isWasmInitialized) {
16149                 throw new Error("initializeWasm() must be awaited first!");
16150         }
16151         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
16152         return nativeResponseValue;
16153 }
16154         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
16155 /* @internal */
16156 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: bigint): boolean {
16157         if(!isWasmInitialized) {
16158                 throw new Error("initializeWasm() must be awaited first!");
16159         }
16160         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
16161         return nativeResponseValue;
16162 }
16163         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
16164 /* @internal */
16165 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: bigint): void {
16166         if(!isWasmInitialized) {
16167                 throw new Error("initializeWasm() must be awaited first!");
16168         }
16169         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
16170         // debug statements here
16171 }
16172         // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
16173 /* @internal */
16174 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16175         if(!isWasmInitialized) {
16176                 throw new Error("initializeWasm() must be awaited first!");
16177         }
16178         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
16179         return nativeResponseValue;
16180 }
16181         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
16182 /* @internal */
16183 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: bigint): bigint {
16184         if(!isWasmInitialized) {
16185                 throw new Error("initializeWasm() must be awaited first!");
16186         }
16187         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
16188         return nativeResponseValue;
16189 }
16190         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
16191 /* @internal */
16192 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: bigint): bigint {
16193         if(!isWasmInitialized) {
16194                 throw new Error("initializeWasm() must be awaited first!");
16195         }
16196         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
16197         return nativeResponseValue;
16198 }
16199         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
16200 /* @internal */
16201 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: bigint): bigint {
16202         if(!isWasmInitialized) {
16203                 throw new Error("initializeWasm() must be awaited first!");
16204         }
16205         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
16206         return nativeResponseValue;
16207 }
16208         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
16209 /* @internal */
16210 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: bigint): boolean {
16211         if(!isWasmInitialized) {
16212                 throw new Error("initializeWasm() must be awaited first!");
16213         }
16214         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
16215         return nativeResponseValue;
16216 }
16217         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
16218 /* @internal */
16219 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: bigint): void {
16220         if(!isWasmInitialized) {
16221                 throw new Error("initializeWasm() must be awaited first!");
16222         }
16223         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
16224         // debug statements here
16225 }
16226         // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
16227 /* @internal */
16228 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16229         if(!isWasmInitialized) {
16230                 throw new Error("initializeWasm() must be awaited first!");
16231         }
16232         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
16233         return nativeResponseValue;
16234 }
16235         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
16236 /* @internal */
16237 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: bigint): bigint {
16238         if(!isWasmInitialized) {
16239                 throw new Error("initializeWasm() must be awaited first!");
16240         }
16241         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
16242         return nativeResponseValue;
16243 }
16244         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
16245 /* @internal */
16246 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: bigint): bigint {
16247         if(!isWasmInitialized) {
16248                 throw new Error("initializeWasm() must be awaited first!");
16249         }
16250         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
16251         return nativeResponseValue;
16252 }
16253         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
16254 /* @internal */
16255 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: bigint): bigint {
16256         if(!isWasmInitialized) {
16257                 throw new Error("initializeWasm() must be awaited first!");
16258         }
16259         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
16260         return nativeResponseValue;
16261 }
16262         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
16263 /* @internal */
16264 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: bigint): boolean {
16265         if(!isWasmInitialized) {
16266                 throw new Error("initializeWasm() must be awaited first!");
16267         }
16268         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
16269         return nativeResponseValue;
16270 }
16271         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
16272 /* @internal */
16273 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: bigint): void {
16274         if(!isWasmInitialized) {
16275                 throw new Error("initializeWasm() must be awaited first!");
16276         }
16277         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
16278         // debug statements here
16279 }
16280         // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
16281 /* @internal */
16282 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16283         if(!isWasmInitialized) {
16284                 throw new Error("initializeWasm() must be awaited first!");
16285         }
16286         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
16287         return nativeResponseValue;
16288 }
16289         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
16290 /* @internal */
16291 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: bigint): bigint {
16292         if(!isWasmInitialized) {
16293                 throw new Error("initializeWasm() must be awaited first!");
16294         }
16295         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
16296         return nativeResponseValue;
16297 }
16298         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
16299 /* @internal */
16300 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: bigint): bigint {
16301         if(!isWasmInitialized) {
16302                 throw new Error("initializeWasm() must be awaited first!");
16303         }
16304         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
16305         return nativeResponseValue;
16306 }
16307         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
16308 /* @internal */
16309 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: bigint): bigint {
16310         if(!isWasmInitialized) {
16311                 throw new Error("initializeWasm() must be awaited first!");
16312         }
16313         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
16314         return nativeResponseValue;
16315 }
16316         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
16317 /* @internal */
16318 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: bigint): boolean {
16319         if(!isWasmInitialized) {
16320                 throw new Error("initializeWasm() must be awaited first!");
16321         }
16322         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
16323         return nativeResponseValue;
16324 }
16325         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
16326 /* @internal */
16327 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: bigint): void {
16328         if(!isWasmInitialized) {
16329                 throw new Error("initializeWasm() must be awaited first!");
16330         }
16331         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
16332         // debug statements here
16333 }
16334         // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
16335 /* @internal */
16336 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16337         if(!isWasmInitialized) {
16338                 throw new Error("initializeWasm() must be awaited first!");
16339         }
16340         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
16341         return nativeResponseValue;
16342 }
16343         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
16344 /* @internal */
16345 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: bigint): bigint {
16346         if(!isWasmInitialized) {
16347                 throw new Error("initializeWasm() must be awaited first!");
16348         }
16349         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
16350         return nativeResponseValue;
16351 }
16352         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
16353 /* @internal */
16354 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: bigint): bigint {
16355         if(!isWasmInitialized) {
16356                 throw new Error("initializeWasm() must be awaited first!");
16357         }
16358         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
16359         return nativeResponseValue;
16360 }
16361         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
16362 /* @internal */
16363 export function CResult_InvoiceSignOrCreationErrorZ_err(e: bigint): bigint {
16364         if(!isWasmInitialized) {
16365                 throw new Error("initializeWasm() must be awaited first!");
16366         }
16367         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
16368         return nativeResponseValue;
16369 }
16370         // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
16371 /* @internal */
16372 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: bigint): boolean {
16373         if(!isWasmInitialized) {
16374                 throw new Error("initializeWasm() must be awaited first!");
16375         }
16376         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
16377         return nativeResponseValue;
16378 }
16379         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
16380 /* @internal */
16381 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: bigint): void {
16382         if(!isWasmInitialized) {
16383                 throw new Error("initializeWasm() must be awaited first!");
16384         }
16385         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
16386         // debug statements here
16387 }
16388         // uint64_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
16389 /* @internal */
16390 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: bigint): bigint {
16391         if(!isWasmInitialized) {
16392                 throw new Error("initializeWasm() must be awaited first!");
16393         }
16394         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
16395         return nativeResponseValue;
16396 }
16397         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
16398 /* @internal */
16399 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: bigint): bigint {
16400         if(!isWasmInitialized) {
16401                 throw new Error("initializeWasm() must be awaited first!");
16402         }
16403         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
16404         return nativeResponseValue;
16405 }
16406         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
16407 /* @internal */
16408 export function COption_FilterZ_some(o: bigint): bigint {
16409         if(!isWasmInitialized) {
16410                 throw new Error("initializeWasm() must be awaited first!");
16411         }
16412         const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
16413         return nativeResponseValue;
16414 }
16415         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
16416 /* @internal */
16417 export function COption_FilterZ_none(): bigint {
16418         if(!isWasmInitialized) {
16419                 throw new Error("initializeWasm() must be awaited first!");
16420         }
16421         const nativeResponseValue = wasm.TS_COption_FilterZ_none();
16422         return nativeResponseValue;
16423 }
16424         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
16425 /* @internal */
16426 export function COption_FilterZ_free(_res: bigint): void {
16427         if(!isWasmInitialized) {
16428                 throw new Error("initializeWasm() must be awaited first!");
16429         }
16430         const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
16431         // debug statements here
16432 }
16433         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
16434 /* @internal */
16435 export function CResult_LockedChannelMonitorNoneZ_ok(o: bigint): bigint {
16436         if(!isWasmInitialized) {
16437                 throw new Error("initializeWasm() must be awaited first!");
16438         }
16439         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
16440         return nativeResponseValue;
16441 }
16442         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
16443 /* @internal */
16444 export function CResult_LockedChannelMonitorNoneZ_err(): bigint {
16445         if(!isWasmInitialized) {
16446                 throw new Error("initializeWasm() must be awaited first!");
16447         }
16448         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
16449         return nativeResponseValue;
16450 }
16451         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
16452 /* @internal */
16453 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: bigint): boolean {
16454         if(!isWasmInitialized) {
16455                 throw new Error("initializeWasm() must be awaited first!");
16456         }
16457         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
16458         return nativeResponseValue;
16459 }
16460         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
16461 /* @internal */
16462 export function CResult_LockedChannelMonitorNoneZ_free(_res: bigint): void {
16463         if(!isWasmInitialized) {
16464                 throw new Error("initializeWasm() must be awaited first!");
16465         }
16466         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
16467         // debug statements here
16468 }
16469         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
16470 /* @internal */
16471 export function CVec_OutPointZ_free(_res: number): void {
16472         if(!isWasmInitialized) {
16473                 throw new Error("initializeWasm() must be awaited first!");
16474         }
16475         const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
16476         // debug statements here
16477 }
16478         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
16479 /* @internal */
16480 export function PaymentPurpose_free(this_ptr: bigint): void {
16481         if(!isWasmInitialized) {
16482                 throw new Error("initializeWasm() must be awaited first!");
16483         }
16484         const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
16485         // debug statements here
16486 }
16487         // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
16488 /* @internal */
16489 export function PaymentPurpose_clone_ptr(arg: bigint): bigint {
16490         if(!isWasmInitialized) {
16491                 throw new Error("initializeWasm() must be awaited first!");
16492         }
16493         const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
16494         return nativeResponseValue;
16495 }
16496         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
16497 /* @internal */
16498 export function PaymentPurpose_clone(orig: bigint): bigint {
16499         if(!isWasmInitialized) {
16500                 throw new Error("initializeWasm() must be awaited first!");
16501         }
16502         const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
16503         return nativeResponseValue;
16504 }
16505         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
16506 /* @internal */
16507 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): bigint {
16508         if(!isWasmInitialized) {
16509                 throw new Error("initializeWasm() must be awaited first!");
16510         }
16511         const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
16512         return nativeResponseValue;
16513 }
16514         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
16515 /* @internal */
16516 export function PaymentPurpose_spontaneous_payment(a: number): bigint {
16517         if(!isWasmInitialized) {
16518                 throw new Error("initializeWasm() must be awaited first!");
16519         }
16520         const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
16521         return nativeResponseValue;
16522 }
16523         // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
16524 /* @internal */
16525 export function PaymentPurpose_write(obj: bigint): number {
16526         if(!isWasmInitialized) {
16527                 throw new Error("initializeWasm() must be awaited first!");
16528         }
16529         const nativeResponseValue = wasm.TS_PaymentPurpose_write(obj);
16530         return nativeResponseValue;
16531 }
16532         // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
16533 /* @internal */
16534 export function PaymentPurpose_read(ser: number): bigint {
16535         if(!isWasmInitialized) {
16536                 throw new Error("initializeWasm() must be awaited first!");
16537         }
16538         const nativeResponseValue = wasm.TS_PaymentPurpose_read(ser);
16539         return nativeResponseValue;
16540 }
16541         // void ClosureReason_free(struct LDKClosureReason this_ptr);
16542 /* @internal */
16543 export function ClosureReason_free(this_ptr: bigint): void {
16544         if(!isWasmInitialized) {
16545                 throw new Error("initializeWasm() must be awaited first!");
16546         }
16547         const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
16548         // debug statements here
16549 }
16550         // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
16551 /* @internal */
16552 export function ClosureReason_clone_ptr(arg: bigint): bigint {
16553         if(!isWasmInitialized) {
16554                 throw new Error("initializeWasm() must be awaited first!");
16555         }
16556         const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
16557         return nativeResponseValue;
16558 }
16559         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
16560 /* @internal */
16561 export function ClosureReason_clone(orig: bigint): bigint {
16562         if(!isWasmInitialized) {
16563                 throw new Error("initializeWasm() must be awaited first!");
16564         }
16565         const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
16566         return nativeResponseValue;
16567 }
16568         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
16569 /* @internal */
16570 export function ClosureReason_counterparty_force_closed(peer_msg: number): bigint {
16571         if(!isWasmInitialized) {
16572                 throw new Error("initializeWasm() must be awaited first!");
16573         }
16574         const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
16575         return nativeResponseValue;
16576 }
16577         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
16578 /* @internal */
16579 export function ClosureReason_holder_force_closed(): bigint {
16580         if(!isWasmInitialized) {
16581                 throw new Error("initializeWasm() must be awaited first!");
16582         }
16583         const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
16584         return nativeResponseValue;
16585 }
16586         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
16587 /* @internal */
16588 export function ClosureReason_cooperative_closure(): bigint {
16589         if(!isWasmInitialized) {
16590                 throw new Error("initializeWasm() must be awaited first!");
16591         }
16592         const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
16593         return nativeResponseValue;
16594 }
16595         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
16596 /* @internal */
16597 export function ClosureReason_commitment_tx_confirmed(): bigint {
16598         if(!isWasmInitialized) {
16599                 throw new Error("initializeWasm() must be awaited first!");
16600         }
16601         const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
16602         return nativeResponseValue;
16603 }
16604         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
16605 /* @internal */
16606 export function ClosureReason_funding_timed_out(): bigint {
16607         if(!isWasmInitialized) {
16608                 throw new Error("initializeWasm() must be awaited first!");
16609         }
16610         const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
16611         return nativeResponseValue;
16612 }
16613         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
16614 /* @internal */
16615 export function ClosureReason_processing_error(err: number): bigint {
16616         if(!isWasmInitialized) {
16617                 throw new Error("initializeWasm() must be awaited first!");
16618         }
16619         const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
16620         return nativeResponseValue;
16621 }
16622         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
16623 /* @internal */
16624 export function ClosureReason_disconnected_peer(): bigint {
16625         if(!isWasmInitialized) {
16626                 throw new Error("initializeWasm() must be awaited first!");
16627         }
16628         const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
16629         return nativeResponseValue;
16630 }
16631         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
16632 /* @internal */
16633 export function ClosureReason_outdated_channel_manager(): bigint {
16634         if(!isWasmInitialized) {
16635                 throw new Error("initializeWasm() must be awaited first!");
16636         }
16637         const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
16638         return nativeResponseValue;
16639 }
16640         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
16641 /* @internal */
16642 export function ClosureReason_write(obj: bigint): number {
16643         if(!isWasmInitialized) {
16644                 throw new Error("initializeWasm() must be awaited first!");
16645         }
16646         const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
16647         return nativeResponseValue;
16648 }
16649         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
16650 /* @internal */
16651 export function ClosureReason_read(ser: number): bigint {
16652         if(!isWasmInitialized) {
16653                 throw new Error("initializeWasm() must be awaited first!");
16654         }
16655         const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
16656         return nativeResponseValue;
16657 }
16658         // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
16659 /* @internal */
16660 export function HTLCDestination_free(this_ptr: bigint): void {
16661         if(!isWasmInitialized) {
16662                 throw new Error("initializeWasm() must be awaited first!");
16663         }
16664         const nativeResponseValue = wasm.TS_HTLCDestination_free(this_ptr);
16665         // debug statements here
16666 }
16667         // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
16668 /* @internal */
16669 export function HTLCDestination_clone_ptr(arg: bigint): bigint {
16670         if(!isWasmInitialized) {
16671                 throw new Error("initializeWasm() must be awaited first!");
16672         }
16673         const nativeResponseValue = wasm.TS_HTLCDestination_clone_ptr(arg);
16674         return nativeResponseValue;
16675 }
16676         // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
16677 /* @internal */
16678 export function HTLCDestination_clone(orig: bigint): bigint {
16679         if(!isWasmInitialized) {
16680                 throw new Error("initializeWasm() must be awaited first!");
16681         }
16682         const nativeResponseValue = wasm.TS_HTLCDestination_clone(orig);
16683         return nativeResponseValue;
16684 }
16685         // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
16686 /* @internal */
16687 export function HTLCDestination_next_hop_channel(node_id: number, channel_id: number): bigint {
16688         if(!isWasmInitialized) {
16689                 throw new Error("initializeWasm() must be awaited first!");
16690         }
16691         const nativeResponseValue = wasm.TS_HTLCDestination_next_hop_channel(node_id, channel_id);
16692         return nativeResponseValue;
16693 }
16694         // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
16695 /* @internal */
16696 export function HTLCDestination_unknown_next_hop(requested_forward_scid: bigint): bigint {
16697         if(!isWasmInitialized) {
16698                 throw new Error("initializeWasm() must be awaited first!");
16699         }
16700         const nativeResponseValue = wasm.TS_HTLCDestination_unknown_next_hop(requested_forward_scid);
16701         return nativeResponseValue;
16702 }
16703         // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
16704 /* @internal */
16705 export function HTLCDestination_failed_payment(payment_hash: number): bigint {
16706         if(!isWasmInitialized) {
16707                 throw new Error("initializeWasm() must be awaited first!");
16708         }
16709         const nativeResponseValue = wasm.TS_HTLCDestination_failed_payment(payment_hash);
16710         return nativeResponseValue;
16711 }
16712         // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
16713 /* @internal */
16714 export function HTLCDestination_write(obj: bigint): number {
16715         if(!isWasmInitialized) {
16716                 throw new Error("initializeWasm() must be awaited first!");
16717         }
16718         const nativeResponseValue = wasm.TS_HTLCDestination_write(obj);
16719         return nativeResponseValue;
16720 }
16721         // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
16722 /* @internal */
16723 export function HTLCDestination_read(ser: number): bigint {
16724         if(!isWasmInitialized) {
16725                 throw new Error("initializeWasm() must be awaited first!");
16726         }
16727         const nativeResponseValue = wasm.TS_HTLCDestination_read(ser);
16728         return nativeResponseValue;
16729 }
16730         // void Event_free(struct LDKEvent this_ptr);
16731 /* @internal */
16732 export function Event_free(this_ptr: bigint): void {
16733         if(!isWasmInitialized) {
16734                 throw new Error("initializeWasm() must be awaited first!");
16735         }
16736         const nativeResponseValue = wasm.TS_Event_free(this_ptr);
16737         // debug statements here
16738 }
16739         // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
16740 /* @internal */
16741 export function Event_clone_ptr(arg: bigint): bigint {
16742         if(!isWasmInitialized) {
16743                 throw new Error("initializeWasm() must be awaited first!");
16744         }
16745         const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
16746         return nativeResponseValue;
16747 }
16748         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
16749 /* @internal */
16750 export function Event_clone(orig: bigint): bigint {
16751         if(!isWasmInitialized) {
16752                 throw new Error("initializeWasm() must be awaited first!");
16753         }
16754         const nativeResponseValue = wasm.TS_Event_clone(orig);
16755         return nativeResponseValue;
16756 }
16757         // 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);
16758 /* @internal */
16759 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): bigint {
16760         if(!isWasmInitialized) {
16761                 throw new Error("initializeWasm() must be awaited first!");
16762         }
16763         const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, counterparty_node_id, channel_value_satoshis, output_script, user_channel_id);
16764         return nativeResponseValue;
16765 }
16766         // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
16767 /* @internal */
16768 export function Event_payment_received(payment_hash: number, amount_msat: bigint, purpose: bigint): bigint {
16769         if(!isWasmInitialized) {
16770                 throw new Error("initializeWasm() must be awaited first!");
16771         }
16772         const nativeResponseValue = wasm.TS_Event_payment_received(payment_hash, amount_msat, purpose);
16773         return nativeResponseValue;
16774 }
16775         // struct LDKEvent Event_payment_claimed(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
16776 /* @internal */
16777 export function Event_payment_claimed(payment_hash: number, amount_msat: bigint, purpose: bigint): bigint {
16778         if(!isWasmInitialized) {
16779                 throw new Error("initializeWasm() must be awaited first!");
16780         }
16781         const nativeResponseValue = wasm.TS_Event_payment_claimed(payment_hash, amount_msat, purpose);
16782         return nativeResponseValue;
16783 }
16784         // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
16785 /* @internal */
16786 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: bigint): bigint {
16787         if(!isWasmInitialized) {
16788                 throw new Error("initializeWasm() must be awaited first!");
16789         }
16790         const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
16791         return nativeResponseValue;
16792 }
16793         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
16794 /* @internal */
16795 export function Event_payment_failed(payment_id: number, payment_hash: number): bigint {
16796         if(!isWasmInitialized) {
16797                 throw new Error("initializeWasm() must be awaited first!");
16798         }
16799         const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash);
16800         return nativeResponseValue;
16801 }
16802         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
16803 /* @internal */
16804 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: number): bigint {
16805         if(!isWasmInitialized) {
16806                 throw new Error("initializeWasm() must be awaited first!");
16807         }
16808         const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
16809         return nativeResponseValue;
16810 }
16811         // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKCOption_NetworkUpdateZ network_update, bool all_paths_failed, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id, struct LDKRouteParameters retry);
16812 /* @internal */
16813 export function Event_payment_path_failed(payment_id: number, payment_hash: number, payment_failed_permanently: boolean, network_update: bigint, all_paths_failed: boolean, path: number, short_channel_id: bigint, retry: bigint): bigint {
16814         if(!isWasmInitialized) {
16815                 throw new Error("initializeWasm() must be awaited first!");
16816         }
16817         const nativeResponseValue = wasm.TS_Event_payment_path_failed(payment_id, payment_hash, payment_failed_permanently, network_update, all_paths_failed, path, short_channel_id, retry);
16818         return nativeResponseValue;
16819 }
16820         // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
16821 /* @internal */
16822 export function Event_probe_successful(payment_id: number, payment_hash: number, path: number): bigint {
16823         if(!isWasmInitialized) {
16824                 throw new Error("initializeWasm() must be awaited first!");
16825         }
16826         const nativeResponseValue = wasm.TS_Event_probe_successful(payment_id, payment_hash, path);
16827         return nativeResponseValue;
16828 }
16829         // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id);
16830 /* @internal */
16831 export function Event_probe_failed(payment_id: number, payment_hash: number, path: number, short_channel_id: bigint): bigint {
16832         if(!isWasmInitialized) {
16833                 throw new Error("initializeWasm() must be awaited first!");
16834         }
16835         const nativeResponseValue = wasm.TS_Event_probe_failed(payment_id, payment_hash, path, short_channel_id);
16836         return nativeResponseValue;
16837 }
16838         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
16839 /* @internal */
16840 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): bigint {
16841         if(!isWasmInitialized) {
16842                 throw new Error("initializeWasm() must be awaited first!");
16843         }
16844         const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
16845         return nativeResponseValue;
16846 }
16847         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
16848 /* @internal */
16849 export function Event_spendable_outputs(outputs: number): bigint {
16850         if(!isWasmInitialized) {
16851                 throw new Error("initializeWasm() must be awaited first!");
16852         }
16853         const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
16854         return nativeResponseValue;
16855 }
16856         // 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);
16857 /* @internal */
16858 export function Event_payment_forwarded(prev_channel_id: number, next_channel_id: number, fee_earned_msat: bigint, claim_from_onchain_tx: boolean): bigint {
16859         if(!isWasmInitialized) {
16860                 throw new Error("initializeWasm() must be awaited first!");
16861         }
16862         const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, fee_earned_msat, claim_from_onchain_tx);
16863         return nativeResponseValue;
16864 }
16865         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
16866 /* @internal */
16867 export function Event_channel_closed(channel_id: number, user_channel_id: bigint, reason: bigint): bigint {
16868         if(!isWasmInitialized) {
16869                 throw new Error("initializeWasm() must be awaited first!");
16870         }
16871         const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
16872         return nativeResponseValue;
16873 }
16874         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
16875 /* @internal */
16876 export function Event_discard_funding(channel_id: number, transaction: number): bigint {
16877         if(!isWasmInitialized) {
16878                 throw new Error("initializeWasm() must be awaited first!");
16879         }
16880         const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
16881         return nativeResponseValue;
16882 }
16883         // 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);
16884 /* @internal */
16885 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: bigint): bigint {
16886         if(!isWasmInitialized) {
16887                 throw new Error("initializeWasm() must be awaited first!");
16888         }
16889         const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type);
16890         return nativeResponseValue;
16891 }
16892         // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
16893 /* @internal */
16894 export function Event_htlchandling_failed(prev_channel_id: number, failed_next_destination: bigint): bigint {
16895         if(!isWasmInitialized) {
16896                 throw new Error("initializeWasm() must be awaited first!");
16897         }
16898         const nativeResponseValue = wasm.TS_Event_htlchandling_failed(prev_channel_id, failed_next_destination);
16899         return nativeResponseValue;
16900 }
16901         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
16902 /* @internal */
16903 export function Event_write(obj: bigint): number {
16904         if(!isWasmInitialized) {
16905                 throw new Error("initializeWasm() must be awaited first!");
16906         }
16907         const nativeResponseValue = wasm.TS_Event_write(obj);
16908         return nativeResponseValue;
16909 }
16910         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
16911 /* @internal */
16912 export function Event_read(ser: number): bigint {
16913         if(!isWasmInitialized) {
16914                 throw new Error("initializeWasm() must be awaited first!");
16915         }
16916         const nativeResponseValue = wasm.TS_Event_read(ser);
16917         return nativeResponseValue;
16918 }
16919         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
16920 /* @internal */
16921 export function MessageSendEvent_free(this_ptr: bigint): void {
16922         if(!isWasmInitialized) {
16923                 throw new Error("initializeWasm() must be awaited first!");
16924         }
16925         const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
16926         // debug statements here
16927 }
16928         // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
16929 /* @internal */
16930 export function MessageSendEvent_clone_ptr(arg: bigint): bigint {
16931         if(!isWasmInitialized) {
16932                 throw new Error("initializeWasm() must be awaited first!");
16933         }
16934         const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
16935         return nativeResponseValue;
16936 }
16937         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
16938 /* @internal */
16939 export function MessageSendEvent_clone(orig: bigint): bigint {
16940         if(!isWasmInitialized) {
16941                 throw new Error("initializeWasm() must be awaited first!");
16942         }
16943         const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
16944         return nativeResponseValue;
16945 }
16946         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
16947 /* @internal */
16948 export function MessageSendEvent_send_accept_channel(node_id: number, msg: bigint): bigint {
16949         if(!isWasmInitialized) {
16950                 throw new Error("initializeWasm() must be awaited first!");
16951         }
16952         const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
16953         return nativeResponseValue;
16954 }
16955         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
16956 /* @internal */
16957 export function MessageSendEvent_send_open_channel(node_id: number, msg: bigint): bigint {
16958         if(!isWasmInitialized) {
16959                 throw new Error("initializeWasm() must be awaited first!");
16960         }
16961         const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
16962         return nativeResponseValue;
16963 }
16964         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
16965 /* @internal */
16966 export function MessageSendEvent_send_funding_created(node_id: number, msg: bigint): bigint {
16967         if(!isWasmInitialized) {
16968                 throw new Error("initializeWasm() must be awaited first!");
16969         }
16970         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
16971         return nativeResponseValue;
16972 }
16973         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
16974 /* @internal */
16975 export function MessageSendEvent_send_funding_signed(node_id: number, msg: bigint): bigint {
16976         if(!isWasmInitialized) {
16977                 throw new Error("initializeWasm() must be awaited first!");
16978         }
16979         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
16980         return nativeResponseValue;
16981 }
16982         // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
16983 /* @internal */
16984 export function MessageSendEvent_send_channel_ready(node_id: number, msg: bigint): bigint {
16985         if(!isWasmInitialized) {
16986                 throw new Error("initializeWasm() must be awaited first!");
16987         }
16988         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_ready(node_id, msg);
16989         return nativeResponseValue;
16990 }
16991         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
16992 /* @internal */
16993 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: bigint): bigint {
16994         if(!isWasmInitialized) {
16995                 throw new Error("initializeWasm() must be awaited first!");
16996         }
16997         const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
16998         return nativeResponseValue;
16999 }
17000         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
17001 /* @internal */
17002 export function MessageSendEvent_update_htlcs(node_id: number, updates: bigint): bigint {
17003         if(!isWasmInitialized) {
17004                 throw new Error("initializeWasm() must be awaited first!");
17005         }
17006         const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
17007         return nativeResponseValue;
17008 }
17009         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
17010 /* @internal */
17011 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: bigint): bigint {
17012         if(!isWasmInitialized) {
17013                 throw new Error("initializeWasm() must be awaited first!");
17014         }
17015         const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
17016         return nativeResponseValue;
17017 }
17018         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
17019 /* @internal */
17020 export function MessageSendEvent_send_closing_signed(node_id: number, msg: bigint): bigint {
17021         if(!isWasmInitialized) {
17022                 throw new Error("initializeWasm() must be awaited first!");
17023         }
17024         const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
17025         return nativeResponseValue;
17026 }
17027         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
17028 /* @internal */
17029 export function MessageSendEvent_send_shutdown(node_id: number, msg: bigint): bigint {
17030         if(!isWasmInitialized) {
17031                 throw new Error("initializeWasm() must be awaited first!");
17032         }
17033         const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
17034         return nativeResponseValue;
17035 }
17036         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
17037 /* @internal */
17038 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: bigint): bigint {
17039         if(!isWasmInitialized) {
17040                 throw new Error("initializeWasm() must be awaited first!");
17041         }
17042         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
17043         return nativeResponseValue;
17044 }
17045         // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
17046 /* @internal */
17047 export function MessageSendEvent_send_channel_announcement(node_id: number, msg: bigint, update_msg: bigint): bigint {
17048         if(!isWasmInitialized) {
17049                 throw new Error("initializeWasm() must be awaited first!");
17050         }
17051         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_announcement(node_id, msg, update_msg);
17052         return nativeResponseValue;
17053 }
17054         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
17055 /* @internal */
17056 export function MessageSendEvent_broadcast_channel_announcement(msg: bigint, update_msg: bigint): bigint {
17057         if(!isWasmInitialized) {
17058                 throw new Error("initializeWasm() must be awaited first!");
17059         }
17060         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
17061         return nativeResponseValue;
17062 }
17063         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
17064 /* @internal */
17065 export function MessageSendEvent_broadcast_channel_update(msg: bigint): bigint {
17066         if(!isWasmInitialized) {
17067                 throw new Error("initializeWasm() must be awaited first!");
17068         }
17069         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
17070         return nativeResponseValue;
17071 }
17072         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
17073 /* @internal */
17074 export function MessageSendEvent_send_channel_update(node_id: number, msg: bigint): bigint {
17075         if(!isWasmInitialized) {
17076                 throw new Error("initializeWasm() must be awaited first!");
17077         }
17078         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
17079         return nativeResponseValue;
17080 }
17081         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
17082 /* @internal */
17083 export function MessageSendEvent_handle_error(node_id: number, action: bigint): bigint {
17084         if(!isWasmInitialized) {
17085                 throw new Error("initializeWasm() must be awaited first!");
17086         }
17087         const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
17088         return nativeResponseValue;
17089 }
17090         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
17091 /* @internal */
17092 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: bigint): bigint {
17093         if(!isWasmInitialized) {
17094                 throw new Error("initializeWasm() must be awaited first!");
17095         }
17096         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
17097         return nativeResponseValue;
17098 }
17099         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
17100 /* @internal */
17101 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: bigint): bigint {
17102         if(!isWasmInitialized) {
17103                 throw new Error("initializeWasm() must be awaited first!");
17104         }
17105         const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
17106         return nativeResponseValue;
17107 }
17108         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
17109 /* @internal */
17110 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: bigint): bigint {
17111         if(!isWasmInitialized) {
17112                 throw new Error("initializeWasm() must be awaited first!");
17113         }
17114         const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
17115         return nativeResponseValue;
17116 }
17117         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
17118 /* @internal */
17119 export function MessageSendEvent_send_gossip_timestamp_filter(node_id: number, msg: bigint): bigint {
17120         if(!isWasmInitialized) {
17121                 throw new Error("initializeWasm() must be awaited first!");
17122         }
17123         const nativeResponseValue = wasm.TS_MessageSendEvent_send_gossip_timestamp_filter(node_id, msg);
17124         return nativeResponseValue;
17125 }
17126         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
17127 /* @internal */
17128 export function MessageSendEventsProvider_free(this_ptr: bigint): void {
17129         if(!isWasmInitialized) {
17130                 throw new Error("initializeWasm() must be awaited first!");
17131         }
17132         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
17133         // debug statements here
17134 }
17135         // void OnionMessageProvider_free(struct LDKOnionMessageProvider this_ptr);
17136 /* @internal */
17137 export function OnionMessageProvider_free(this_ptr: bigint): void {
17138         if(!isWasmInitialized) {
17139                 throw new Error("initializeWasm() must be awaited first!");
17140         }
17141         const nativeResponseValue = wasm.TS_OnionMessageProvider_free(this_ptr);
17142         // debug statements here
17143 }
17144         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
17145 /* @internal */
17146 export function EventsProvider_free(this_ptr: bigint): void {
17147         if(!isWasmInitialized) {
17148                 throw new Error("initializeWasm() must be awaited first!");
17149         }
17150         const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
17151         // debug statements here
17152 }
17153         // void EventHandler_free(struct LDKEventHandler this_ptr);
17154 /* @internal */
17155 export function EventHandler_free(this_ptr: bigint): void {
17156         if(!isWasmInitialized) {
17157                 throw new Error("initializeWasm() must be awaited first!");
17158         }
17159         const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
17160         // debug statements here
17161 }
17162         // void APIError_free(struct LDKAPIError this_ptr);
17163 /* @internal */
17164 export function APIError_free(this_ptr: bigint): void {
17165         if(!isWasmInitialized) {
17166                 throw new Error("initializeWasm() must be awaited first!");
17167         }
17168         const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
17169         // debug statements here
17170 }
17171         // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
17172 /* @internal */
17173 export function APIError_clone_ptr(arg: bigint): bigint {
17174         if(!isWasmInitialized) {
17175                 throw new Error("initializeWasm() must be awaited first!");
17176         }
17177         const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
17178         return nativeResponseValue;
17179 }
17180         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
17181 /* @internal */
17182 export function APIError_clone(orig: bigint): bigint {
17183         if(!isWasmInitialized) {
17184                 throw new Error("initializeWasm() must be awaited first!");
17185         }
17186         const nativeResponseValue = wasm.TS_APIError_clone(orig);
17187         return nativeResponseValue;
17188 }
17189         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
17190 /* @internal */
17191 export function APIError_apimisuse_error(err: number): bigint {
17192         if(!isWasmInitialized) {
17193                 throw new Error("initializeWasm() must be awaited first!");
17194         }
17195         const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
17196         return nativeResponseValue;
17197 }
17198         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
17199 /* @internal */
17200 export function APIError_fee_rate_too_high(err: number, feerate: number): bigint {
17201         if(!isWasmInitialized) {
17202                 throw new Error("initializeWasm() must be awaited first!");
17203         }
17204         const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
17205         return nativeResponseValue;
17206 }
17207         // struct LDKAPIError APIError_route_error(struct LDKStr err);
17208 /* @internal */
17209 export function APIError_route_error(err: number): bigint {
17210         if(!isWasmInitialized) {
17211                 throw new Error("initializeWasm() must be awaited first!");
17212         }
17213         const nativeResponseValue = wasm.TS_APIError_route_error(err);
17214         return nativeResponseValue;
17215 }
17216         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
17217 /* @internal */
17218 export function APIError_channel_unavailable(err: number): bigint {
17219         if(!isWasmInitialized) {
17220                 throw new Error("initializeWasm() must be awaited first!");
17221         }
17222         const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
17223         return nativeResponseValue;
17224 }
17225         // struct LDKAPIError APIError_monitor_update_failed(void);
17226 /* @internal */
17227 export function APIError_monitor_update_failed(): bigint {
17228         if(!isWasmInitialized) {
17229                 throw new Error("initializeWasm() must be awaited first!");
17230         }
17231         const nativeResponseValue = wasm.TS_APIError_monitor_update_failed();
17232         return nativeResponseValue;
17233 }
17234         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
17235 /* @internal */
17236 export function APIError_incompatible_shutdown_script(script: bigint): bigint {
17237         if(!isWasmInitialized) {
17238                 throw new Error("initializeWasm() must be awaited first!");
17239         }
17240         const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
17241         return nativeResponseValue;
17242 }
17243         // void BigSize_free(struct LDKBigSize this_obj);
17244 /* @internal */
17245 export function BigSize_free(this_obj: bigint): void {
17246         if(!isWasmInitialized) {
17247                 throw new Error("initializeWasm() must be awaited first!");
17248         }
17249         const nativeResponseValue = wasm.TS_BigSize_free(this_obj);
17250         // debug statements here
17251 }
17252         // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
17253 /* @internal */
17254 export function BigSize_get_a(this_ptr: bigint): bigint {
17255         if(!isWasmInitialized) {
17256                 throw new Error("initializeWasm() must be awaited first!");
17257         }
17258         const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr);
17259         return nativeResponseValue;
17260 }
17261         // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
17262 /* @internal */
17263 export function BigSize_set_a(this_ptr: bigint, val: bigint): void {
17264         if(!isWasmInitialized) {
17265                 throw new Error("initializeWasm() must be awaited first!");
17266         }
17267         const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val);
17268         // debug statements here
17269 }
17270         // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
17271 /* @internal */
17272 export function BigSize_new(a_arg: bigint): bigint {
17273         if(!isWasmInitialized) {
17274                 throw new Error("initializeWasm() must be awaited first!");
17275         }
17276         const nativeResponseValue = wasm.TS_BigSize_new(a_arg);
17277         return nativeResponseValue;
17278 }
17279         // void Hostname_free(struct LDKHostname this_obj);
17280 /* @internal */
17281 export function Hostname_free(this_obj: bigint): void {
17282         if(!isWasmInitialized) {
17283                 throw new Error("initializeWasm() must be awaited first!");
17284         }
17285         const nativeResponseValue = wasm.TS_Hostname_free(this_obj);
17286         // debug statements here
17287 }
17288         // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
17289 /* @internal */
17290 export function Hostname_clone_ptr(arg: bigint): bigint {
17291         if(!isWasmInitialized) {
17292                 throw new Error("initializeWasm() must be awaited first!");
17293         }
17294         const nativeResponseValue = wasm.TS_Hostname_clone_ptr(arg);
17295         return nativeResponseValue;
17296 }
17297         // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
17298 /* @internal */
17299 export function Hostname_clone(orig: bigint): bigint {
17300         if(!isWasmInitialized) {
17301                 throw new Error("initializeWasm() must be awaited first!");
17302         }
17303         const nativeResponseValue = wasm.TS_Hostname_clone(orig);
17304         return nativeResponseValue;
17305 }
17306         // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
17307 /* @internal */
17308 export function Hostname_len(this_arg: bigint): number {
17309         if(!isWasmInitialized) {
17310                 throw new Error("initializeWasm() must be awaited first!");
17311         }
17312         const nativeResponseValue = wasm.TS_Hostname_len(this_arg);
17313         return nativeResponseValue;
17314 }
17315         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
17316 /* @internal */
17317 export function sign(msg: number, sk: number): bigint {
17318         if(!isWasmInitialized) {
17319                 throw new Error("initializeWasm() must be awaited first!");
17320         }
17321         const nativeResponseValue = wasm.TS_sign(msg, sk);
17322         return nativeResponseValue;
17323 }
17324         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
17325 /* @internal */
17326 export function recover_pk(msg: number, sig: number): bigint {
17327         if(!isWasmInitialized) {
17328                 throw new Error("initializeWasm() must be awaited first!");
17329         }
17330         const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
17331         return nativeResponseValue;
17332 }
17333         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
17334 /* @internal */
17335 export function verify(msg: number, sig: number, pk: number): boolean {
17336         if(!isWasmInitialized) {
17337                 throw new Error("initializeWasm() must be awaited first!");
17338         }
17339         const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
17340         return nativeResponseValue;
17341 }
17342         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
17343 /* @internal */
17344 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
17345         if(!isWasmInitialized) {
17346                 throw new Error("initializeWasm() must be awaited first!");
17347         }
17348         const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
17349         return nativeResponseValue;
17350 }
17351         // void Persister_free(struct LDKPersister this_ptr);
17352 /* @internal */
17353 export function Persister_free(this_ptr: bigint): void {
17354         if(!isWasmInitialized) {
17355                 throw new Error("initializeWasm() must be awaited first!");
17356         }
17357         const nativeResponseValue = wasm.TS_Persister_free(this_ptr);
17358         // debug statements here
17359 }
17360         // void FutureCallback_free(struct LDKFutureCallback this_ptr);
17361 /* @internal */
17362 export function FutureCallback_free(this_ptr: bigint): void {
17363         if(!isWasmInitialized) {
17364                 throw new Error("initializeWasm() must be awaited first!");
17365         }
17366         const nativeResponseValue = wasm.TS_FutureCallback_free(this_ptr);
17367         // debug statements here
17368 }
17369         // void Future_free(struct LDKFuture this_obj);
17370 /* @internal */
17371 export function Future_free(this_obj: bigint): void {
17372         if(!isWasmInitialized) {
17373                 throw new Error("initializeWasm() must be awaited first!");
17374         }
17375         const nativeResponseValue = wasm.TS_Future_free(this_obj);
17376         // debug statements here
17377 }
17378         // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
17379 /* @internal */
17380 export function Future_register_callback_fn(this_arg: bigint, callback: bigint): void {
17381         if(!isWasmInitialized) {
17382                 throw new Error("initializeWasm() must be awaited first!");
17383         }
17384         const nativeResponseValue = wasm.TS_Future_register_callback_fn(this_arg, callback);
17385         // debug statements here
17386 }
17387         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
17388 /* @internal */
17389 export function Level_clone(orig: bigint): Level {
17390         if(!isWasmInitialized) {
17391                 throw new Error("initializeWasm() must be awaited first!");
17392         }
17393         const nativeResponseValue = wasm.TS_Level_clone(orig);
17394         return nativeResponseValue;
17395 }
17396         // enum LDKLevel Level_gossip(void);
17397 /* @internal */
17398 export function Level_gossip(): Level {
17399         if(!isWasmInitialized) {
17400                 throw new Error("initializeWasm() must be awaited first!");
17401         }
17402         const nativeResponseValue = wasm.TS_Level_gossip();
17403         return nativeResponseValue;
17404 }
17405         // enum LDKLevel Level_trace(void);
17406 /* @internal */
17407 export function Level_trace(): Level {
17408         if(!isWasmInitialized) {
17409                 throw new Error("initializeWasm() must be awaited first!");
17410         }
17411         const nativeResponseValue = wasm.TS_Level_trace();
17412         return nativeResponseValue;
17413 }
17414         // enum LDKLevel Level_debug(void);
17415 /* @internal */
17416 export function Level_debug(): Level {
17417         if(!isWasmInitialized) {
17418                 throw new Error("initializeWasm() must be awaited first!");
17419         }
17420         const nativeResponseValue = wasm.TS_Level_debug();
17421         return nativeResponseValue;
17422 }
17423         // enum LDKLevel Level_info(void);
17424 /* @internal */
17425 export function Level_info(): Level {
17426         if(!isWasmInitialized) {
17427                 throw new Error("initializeWasm() must be awaited first!");
17428         }
17429         const nativeResponseValue = wasm.TS_Level_info();
17430         return nativeResponseValue;
17431 }
17432         // enum LDKLevel Level_warn(void);
17433 /* @internal */
17434 export function Level_warn(): Level {
17435         if(!isWasmInitialized) {
17436                 throw new Error("initializeWasm() must be awaited first!");
17437         }
17438         const nativeResponseValue = wasm.TS_Level_warn();
17439         return nativeResponseValue;
17440 }
17441         // enum LDKLevel Level_error(void);
17442 /* @internal */
17443 export function Level_error(): Level {
17444         if(!isWasmInitialized) {
17445                 throw new Error("initializeWasm() must be awaited first!");
17446         }
17447         const nativeResponseValue = wasm.TS_Level_error();
17448         return nativeResponseValue;
17449 }
17450         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
17451 /* @internal */
17452 export function Level_eq(a: bigint, b: bigint): boolean {
17453         if(!isWasmInitialized) {
17454                 throw new Error("initializeWasm() must be awaited first!");
17455         }
17456         const nativeResponseValue = wasm.TS_Level_eq(a, b);
17457         return nativeResponseValue;
17458 }
17459         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
17460 /* @internal */
17461 export function Level_hash(o: bigint): bigint {
17462         if(!isWasmInitialized) {
17463                 throw new Error("initializeWasm() must be awaited first!");
17464         }
17465         const nativeResponseValue = wasm.TS_Level_hash(o);
17466         return nativeResponseValue;
17467 }
17468         // MUST_USE_RES enum LDKLevel Level_max(void);
17469 /* @internal */
17470 export function Level_max(): Level {
17471         if(!isWasmInitialized) {
17472                 throw new Error("initializeWasm() must be awaited first!");
17473         }
17474         const nativeResponseValue = wasm.TS_Level_max();
17475         return nativeResponseValue;
17476 }
17477         // void Record_free(struct LDKRecord this_obj);
17478 /* @internal */
17479 export function Record_free(this_obj: bigint): void {
17480         if(!isWasmInitialized) {
17481                 throw new Error("initializeWasm() must be awaited first!");
17482         }
17483         const nativeResponseValue = wasm.TS_Record_free(this_obj);
17484         // debug statements here
17485 }
17486         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
17487 /* @internal */
17488 export function Record_get_level(this_ptr: bigint): Level {
17489         if(!isWasmInitialized) {
17490                 throw new Error("initializeWasm() must be awaited first!");
17491         }
17492         const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
17493         return nativeResponseValue;
17494 }
17495         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
17496 /* @internal */
17497 export function Record_set_level(this_ptr: bigint, val: Level): void {
17498         if(!isWasmInitialized) {
17499                 throw new Error("initializeWasm() must be awaited first!");
17500         }
17501         const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
17502         // debug statements here
17503 }
17504         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
17505 /* @internal */
17506 export function Record_get_args(this_ptr: bigint): number {
17507         if(!isWasmInitialized) {
17508                 throw new Error("initializeWasm() must be awaited first!");
17509         }
17510         const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
17511         return nativeResponseValue;
17512 }
17513         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
17514 /* @internal */
17515 export function Record_set_args(this_ptr: bigint, val: number): void {
17516         if(!isWasmInitialized) {
17517                 throw new Error("initializeWasm() must be awaited first!");
17518         }
17519         const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
17520         // debug statements here
17521 }
17522         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
17523 /* @internal */
17524 export function Record_get_module_path(this_ptr: bigint): number {
17525         if(!isWasmInitialized) {
17526                 throw new Error("initializeWasm() must be awaited first!");
17527         }
17528         const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
17529         return nativeResponseValue;
17530 }
17531         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
17532 /* @internal */
17533 export function Record_set_module_path(this_ptr: bigint, val: number): void {
17534         if(!isWasmInitialized) {
17535                 throw new Error("initializeWasm() must be awaited first!");
17536         }
17537         const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
17538         // debug statements here
17539 }
17540         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
17541 /* @internal */
17542 export function Record_get_file(this_ptr: bigint): number {
17543         if(!isWasmInitialized) {
17544                 throw new Error("initializeWasm() must be awaited first!");
17545         }
17546         const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
17547         return nativeResponseValue;
17548 }
17549         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
17550 /* @internal */
17551 export function Record_set_file(this_ptr: bigint, val: number): void {
17552         if(!isWasmInitialized) {
17553                 throw new Error("initializeWasm() must be awaited first!");
17554         }
17555         const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
17556         // debug statements here
17557 }
17558         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
17559 /* @internal */
17560 export function Record_get_line(this_ptr: bigint): number {
17561         if(!isWasmInitialized) {
17562                 throw new Error("initializeWasm() must be awaited first!");
17563         }
17564         const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
17565         return nativeResponseValue;
17566 }
17567         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
17568 /* @internal */
17569 export function Record_set_line(this_ptr: bigint, val: number): void {
17570         if(!isWasmInitialized) {
17571                 throw new Error("initializeWasm() must be awaited first!");
17572         }
17573         const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
17574         // debug statements here
17575 }
17576         // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
17577 /* @internal */
17578 export function Record_clone_ptr(arg: bigint): bigint {
17579         if(!isWasmInitialized) {
17580                 throw new Error("initializeWasm() must be awaited first!");
17581         }
17582         const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
17583         return nativeResponseValue;
17584 }
17585         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
17586 /* @internal */
17587 export function Record_clone(orig: bigint): bigint {
17588         if(!isWasmInitialized) {
17589                 throw new Error("initializeWasm() must be awaited first!");
17590         }
17591         const nativeResponseValue = wasm.TS_Record_clone(orig);
17592         return nativeResponseValue;
17593 }
17594         // void Logger_free(struct LDKLogger this_ptr);
17595 /* @internal */
17596 export function Logger_free(this_ptr: bigint): void {
17597         if(!isWasmInitialized) {
17598                 throw new Error("initializeWasm() must be awaited first!");
17599         }
17600         const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
17601         // debug statements here
17602 }
17603         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
17604 /* @internal */
17605 export function ChannelHandshakeConfig_free(this_obj: bigint): void {
17606         if(!isWasmInitialized) {
17607                 throw new Error("initializeWasm() must be awaited first!");
17608         }
17609         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
17610         // debug statements here
17611 }
17612         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17613 /* @internal */
17614 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: bigint): number {
17615         if(!isWasmInitialized) {
17616                 throw new Error("initializeWasm() must be awaited first!");
17617         }
17618         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
17619         return nativeResponseValue;
17620 }
17621         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
17622 /* @internal */
17623 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: bigint, val: number): void {
17624         if(!isWasmInitialized) {
17625                 throw new Error("initializeWasm() must be awaited first!");
17626         }
17627         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
17628         // debug statements here
17629 }
17630         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17631 /* @internal */
17632 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: bigint): number {
17633         if(!isWasmInitialized) {
17634                 throw new Error("initializeWasm() must be awaited first!");
17635         }
17636         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
17637         return nativeResponseValue;
17638 }
17639         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
17640 /* @internal */
17641 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: bigint, val: number): void {
17642         if(!isWasmInitialized) {
17643                 throw new Error("initializeWasm() must be awaited first!");
17644         }
17645         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
17646         // debug statements here
17647 }
17648         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17649 /* @internal */
17650 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: bigint): bigint {
17651         if(!isWasmInitialized) {
17652                 throw new Error("initializeWasm() must be awaited first!");
17653         }
17654         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
17655         return nativeResponseValue;
17656 }
17657         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
17658 /* @internal */
17659 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
17660         if(!isWasmInitialized) {
17661                 throw new Error("initializeWasm() must be awaited first!");
17662         }
17663         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
17664         // debug statements here
17665 }
17666         // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17667 /* @internal */
17668 export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint): number {
17669         if(!isWasmInitialized) {
17670                 throw new Error("initializeWasm() must be awaited first!");
17671         }
17672         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr);
17673         return nativeResponseValue;
17674 }
17675         // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
17676 /* @internal */
17677 export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint, val: number): void {
17678         if(!isWasmInitialized) {
17679                 throw new Error("initializeWasm() must be awaited first!");
17680         }
17681         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val);
17682         // debug statements here
17683 }
17684         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17685 /* @internal */
17686 export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: bigint): boolean {
17687         if(!isWasmInitialized) {
17688                 throw new Error("initializeWasm() must be awaited first!");
17689         }
17690         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr);
17691         return nativeResponseValue;
17692 }
17693         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
17694 /* @internal */
17695 export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: bigint, val: boolean): void {
17696         if(!isWasmInitialized) {
17697                 throw new Error("initializeWasm() must be awaited first!");
17698         }
17699         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val);
17700         // debug statements here
17701 }
17702         // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17703 /* @internal */
17704 export function ChannelHandshakeConfig_get_announced_channel(this_ptr: bigint): boolean {
17705         if(!isWasmInitialized) {
17706                 throw new Error("initializeWasm() must be awaited first!");
17707         }
17708         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_announced_channel(this_ptr);
17709         return nativeResponseValue;
17710 }
17711         // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
17712 /* @internal */
17713 export function ChannelHandshakeConfig_set_announced_channel(this_ptr: bigint, val: boolean): void {
17714         if(!isWasmInitialized) {
17715                 throw new Error("initializeWasm() must be awaited first!");
17716         }
17717         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_announced_channel(this_ptr, val);
17718         // debug statements here
17719 }
17720         // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17721 /* @internal */
17722 export function ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr: bigint): boolean {
17723         if(!isWasmInitialized) {
17724                 throw new Error("initializeWasm() must be awaited first!");
17725         }
17726         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
17727         return nativeResponseValue;
17728 }
17729         // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
17730 /* @internal */
17731 export function ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr: bigint, val: boolean): void {
17732         if(!isWasmInitialized) {
17733                 throw new Error("initializeWasm() must be awaited first!");
17734         }
17735         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
17736         // debug statements here
17737 }
17738         // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
17739 /* @internal */
17740 export function ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr: bigint): number {
17741         if(!isWasmInitialized) {
17742                 throw new Error("initializeWasm() must be awaited first!");
17743         }
17744         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr);
17745         return nativeResponseValue;
17746 }
17747         // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
17748 /* @internal */
17749 export function ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr: bigint, val: number): void {
17750         if(!isWasmInitialized) {
17751                 throw new Error("initializeWasm() must be awaited first!");
17752         }
17753         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr, val);
17754         // debug statements here
17755 }
17756         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint32_t their_channel_reserve_proportional_millionths_arg);
17757 /* @internal */
17758 export function ChannelHandshakeConfig_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint, max_inbound_htlc_value_in_flight_percent_of_channel_arg: number, negotiate_scid_privacy_arg: boolean, announced_channel_arg: boolean, commit_upfront_shutdown_pubkey_arg: boolean, their_channel_reserve_proportional_millionths_arg: number): bigint {
17759         if(!isWasmInitialized) {
17760                 throw new Error("initializeWasm() must be awaited first!");
17761         }
17762         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, max_inbound_htlc_value_in_flight_percent_of_channel_arg, negotiate_scid_privacy_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, their_channel_reserve_proportional_millionths_arg);
17763         return nativeResponseValue;
17764 }
17765         // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
17766 /* @internal */
17767 export function ChannelHandshakeConfig_clone_ptr(arg: bigint): bigint {
17768         if(!isWasmInitialized) {
17769                 throw new Error("initializeWasm() must be awaited first!");
17770         }
17771         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
17772         return nativeResponseValue;
17773 }
17774         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
17775 /* @internal */
17776 export function ChannelHandshakeConfig_clone(orig: bigint): bigint {
17777         if(!isWasmInitialized) {
17778                 throw new Error("initializeWasm() must be awaited first!");
17779         }
17780         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
17781         return nativeResponseValue;
17782 }
17783         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
17784 /* @internal */
17785 export function ChannelHandshakeConfig_default(): bigint {
17786         if(!isWasmInitialized) {
17787                 throw new Error("initializeWasm() must be awaited first!");
17788         }
17789         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
17790         return nativeResponseValue;
17791 }
17792         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
17793 /* @internal */
17794 export function ChannelHandshakeLimits_free(this_obj: bigint): void {
17795         if(!isWasmInitialized) {
17796                 throw new Error("initializeWasm() must be awaited first!");
17797         }
17798         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
17799         // debug statements here
17800 }
17801         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17802 /* @internal */
17803 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: bigint): bigint {
17804         if(!isWasmInitialized) {
17805                 throw new Error("initializeWasm() must be awaited first!");
17806         }
17807         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
17808         return nativeResponseValue;
17809 }
17810         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
17811 /* @internal */
17812 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: bigint, val: bigint): void {
17813         if(!isWasmInitialized) {
17814                 throw new Error("initializeWasm() must be awaited first!");
17815         }
17816         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
17817         // debug statements here
17818 }
17819         // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17820 /* @internal */
17821 export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: bigint): bigint {
17822         if(!isWasmInitialized) {
17823                 throw new Error("initializeWasm() must be awaited first!");
17824         }
17825         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr);
17826         return nativeResponseValue;
17827 }
17828         // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
17829 /* @internal */
17830 export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: bigint, val: bigint): void {
17831         if(!isWasmInitialized) {
17832                 throw new Error("initializeWasm() must be awaited first!");
17833         }
17834         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val);
17835         // debug statements here
17836 }
17837         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17838 /* @internal */
17839 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: bigint): bigint {
17840         if(!isWasmInitialized) {
17841                 throw new Error("initializeWasm() must be awaited first!");
17842         }
17843         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
17844         return nativeResponseValue;
17845 }
17846         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
17847 /* @internal */
17848 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
17849         if(!isWasmInitialized) {
17850                 throw new Error("initializeWasm() must be awaited first!");
17851         }
17852         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
17853         // debug statements here
17854 }
17855         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17856 /* @internal */
17857 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint {
17858         if(!isWasmInitialized) {
17859                 throw new Error("initializeWasm() must be awaited first!");
17860         }
17861         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
17862         return nativeResponseValue;
17863 }
17864         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
17865 /* @internal */
17866 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void {
17867         if(!isWasmInitialized) {
17868                 throw new Error("initializeWasm() must be awaited first!");
17869         }
17870         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
17871         // debug statements here
17872 }
17873         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17874 /* @internal */
17875 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: bigint): bigint {
17876         if(!isWasmInitialized) {
17877                 throw new Error("initializeWasm() must be awaited first!");
17878         }
17879         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
17880         return nativeResponseValue;
17881 }
17882         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
17883 /* @internal */
17884 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void {
17885         if(!isWasmInitialized) {
17886                 throw new Error("initializeWasm() must be awaited first!");
17887         }
17888         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
17889         // debug statements here
17890 }
17891         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17892 /* @internal */
17893 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: bigint): number {
17894         if(!isWasmInitialized) {
17895                 throw new Error("initializeWasm() must be awaited first!");
17896         }
17897         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
17898         return nativeResponseValue;
17899 }
17900         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
17901 /* @internal */
17902 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: bigint, val: number): void {
17903         if(!isWasmInitialized) {
17904                 throw new Error("initializeWasm() must be awaited first!");
17905         }
17906         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
17907         // debug statements here
17908 }
17909         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17910 /* @internal */
17911 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: bigint): number {
17912         if(!isWasmInitialized) {
17913                 throw new Error("initializeWasm() must be awaited first!");
17914         }
17915         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
17916         return nativeResponseValue;
17917 }
17918         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
17919 /* @internal */
17920 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: bigint, val: number): void {
17921         if(!isWasmInitialized) {
17922                 throw new Error("initializeWasm() must be awaited first!");
17923         }
17924         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
17925         // debug statements here
17926 }
17927         // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17928 /* @internal */
17929 export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: bigint): boolean {
17930         if(!isWasmInitialized) {
17931                 throw new Error("initializeWasm() must be awaited first!");
17932         }
17933         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr);
17934         return nativeResponseValue;
17935 }
17936         // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
17937 /* @internal */
17938 export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: bigint, val: boolean): void {
17939         if(!isWasmInitialized) {
17940                 throw new Error("initializeWasm() must be awaited first!");
17941         }
17942         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val);
17943         // debug statements here
17944 }
17945         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17946 /* @internal */
17947 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: bigint): boolean {
17948         if(!isWasmInitialized) {
17949                 throw new Error("initializeWasm() must be awaited first!");
17950         }
17951         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
17952         return nativeResponseValue;
17953 }
17954         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
17955 /* @internal */
17956 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: bigint, val: boolean): void {
17957         if(!isWasmInitialized) {
17958                 throw new Error("initializeWasm() must be awaited first!");
17959         }
17960         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
17961         // debug statements here
17962 }
17963         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
17964 /* @internal */
17965 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: bigint): number {
17966         if(!isWasmInitialized) {
17967                 throw new Error("initializeWasm() must be awaited first!");
17968         }
17969         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
17970         return nativeResponseValue;
17971 }
17972         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
17973 /* @internal */
17974 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: bigint, val: number): void {
17975         if(!isWasmInitialized) {
17976                 throw new Error("initializeWasm() must be awaited first!");
17977         }
17978         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
17979         // debug statements here
17980 }
17981         // 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);
17982 /* @internal */
17983 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): bigint {
17984         if(!isWasmInitialized) {
17985                 throw new Error("initializeWasm() must be awaited first!");
17986         }
17987         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);
17988         return nativeResponseValue;
17989 }
17990         // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
17991 /* @internal */
17992 export function ChannelHandshakeLimits_clone_ptr(arg: bigint): bigint {
17993         if(!isWasmInitialized) {
17994                 throw new Error("initializeWasm() must be awaited first!");
17995         }
17996         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
17997         return nativeResponseValue;
17998 }
17999         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
18000 /* @internal */
18001 export function ChannelHandshakeLimits_clone(orig: bigint): bigint {
18002         if(!isWasmInitialized) {
18003                 throw new Error("initializeWasm() must be awaited first!");
18004         }
18005         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
18006         return nativeResponseValue;
18007 }
18008         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
18009 /* @internal */
18010 export function ChannelHandshakeLimits_default(): bigint {
18011         if(!isWasmInitialized) {
18012                 throw new Error("initializeWasm() must be awaited first!");
18013         }
18014         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
18015         return nativeResponseValue;
18016 }
18017         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
18018 /* @internal */
18019 export function ChannelConfig_free(this_obj: bigint): void {
18020         if(!isWasmInitialized) {
18021                 throw new Error("initializeWasm() must be awaited first!");
18022         }
18023         const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
18024         // debug statements here
18025 }
18026         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
18027 /* @internal */
18028 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: bigint): number {
18029         if(!isWasmInitialized) {
18030                 throw new Error("initializeWasm() must be awaited first!");
18031         }
18032         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
18033         return nativeResponseValue;
18034 }
18035         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
18036 /* @internal */
18037 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: bigint, val: number): void {
18038         if(!isWasmInitialized) {
18039                 throw new Error("initializeWasm() must be awaited first!");
18040         }
18041         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
18042         // debug statements here
18043 }
18044         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
18045 /* @internal */
18046 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: bigint): number {
18047         if(!isWasmInitialized) {
18048                 throw new Error("initializeWasm() must be awaited first!");
18049         }
18050         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
18051         return nativeResponseValue;
18052 }
18053         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
18054 /* @internal */
18055 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: bigint, val: number): void {
18056         if(!isWasmInitialized) {
18057                 throw new Error("initializeWasm() must be awaited first!");
18058         }
18059         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
18060         // debug statements here
18061 }
18062         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
18063 /* @internal */
18064 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: bigint): number {
18065         if(!isWasmInitialized) {
18066                 throw new Error("initializeWasm() must be awaited first!");
18067         }
18068         const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
18069         return nativeResponseValue;
18070 }
18071         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
18072 /* @internal */
18073 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
18074         if(!isWasmInitialized) {
18075                 throw new Error("initializeWasm() must be awaited first!");
18076         }
18077         const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
18078         // debug statements here
18079 }
18080         // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
18081 /* @internal */
18082 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: bigint): bigint {
18083         if(!isWasmInitialized) {
18084                 throw new Error("initializeWasm() must be awaited first!");
18085         }
18086         const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
18087         return nativeResponseValue;
18088 }
18089         // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
18090 /* @internal */
18091 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: bigint, val: bigint): void {
18092         if(!isWasmInitialized) {
18093                 throw new Error("initializeWasm() must be awaited first!");
18094         }
18095         const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
18096         // debug statements here
18097 }
18098         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
18099 /* @internal */
18100 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: bigint): bigint {
18101         if(!isWasmInitialized) {
18102                 throw new Error("initializeWasm() must be awaited first!");
18103         }
18104         const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
18105         return nativeResponseValue;
18106 }
18107         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
18108 /* @internal */
18109 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: bigint, val: bigint): void {
18110         if(!isWasmInitialized) {
18111                 throw new Error("initializeWasm() must be awaited first!");
18112         }
18113         const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
18114         // debug statements here
18115 }
18116         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
18117 /* @internal */
18118 export function ChannelConfig_new(forwarding_fee_proportional_millionths_arg: number, forwarding_fee_base_msat_arg: number, cltv_expiry_delta_arg: number, max_dust_htlc_exposure_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): bigint {
18119         if(!isWasmInitialized) {
18120                 throw new Error("initializeWasm() must be awaited first!");
18121         }
18122         const nativeResponseValue = wasm.TS_ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg);
18123         return nativeResponseValue;
18124 }
18125         // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
18126 /* @internal */
18127 export function ChannelConfig_clone_ptr(arg: bigint): bigint {
18128         if(!isWasmInitialized) {
18129                 throw new Error("initializeWasm() must be awaited first!");
18130         }
18131         const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
18132         return nativeResponseValue;
18133 }
18134         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
18135 /* @internal */
18136 export function ChannelConfig_clone(orig: bigint): bigint {
18137         if(!isWasmInitialized) {
18138                 throw new Error("initializeWasm() must be awaited first!");
18139         }
18140         const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
18141         return nativeResponseValue;
18142 }
18143         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
18144 /* @internal */
18145 export function ChannelConfig_default(): bigint {
18146         if(!isWasmInitialized) {
18147                 throw new Error("initializeWasm() must be awaited first!");
18148         }
18149         const nativeResponseValue = wasm.TS_ChannelConfig_default();
18150         return nativeResponseValue;
18151 }
18152         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
18153 /* @internal */
18154 export function ChannelConfig_write(obj: bigint): number {
18155         if(!isWasmInitialized) {
18156                 throw new Error("initializeWasm() must be awaited first!");
18157         }
18158         const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
18159         return nativeResponseValue;
18160 }
18161         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
18162 /* @internal */
18163 export function ChannelConfig_read(ser: number): bigint {
18164         if(!isWasmInitialized) {
18165                 throw new Error("initializeWasm() must be awaited first!");
18166         }
18167         const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
18168         return nativeResponseValue;
18169 }
18170         // void UserConfig_free(struct LDKUserConfig this_obj);
18171 /* @internal */
18172 export function UserConfig_free(this_obj: bigint): void {
18173         if(!isWasmInitialized) {
18174                 throw new Error("initializeWasm() must be awaited first!");
18175         }
18176         const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
18177         // debug statements here
18178 }
18179         // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
18180 /* @internal */
18181 export function UserConfig_get_channel_handshake_config(this_ptr: bigint): bigint {
18182         if(!isWasmInitialized) {
18183                 throw new Error("initializeWasm() must be awaited first!");
18184         }
18185         const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_config(this_ptr);
18186         return nativeResponseValue;
18187 }
18188         // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
18189 /* @internal */
18190 export function UserConfig_set_channel_handshake_config(this_ptr: bigint, val: bigint): void {
18191         if(!isWasmInitialized) {
18192                 throw new Error("initializeWasm() must be awaited first!");
18193         }
18194         const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_config(this_ptr, val);
18195         // debug statements here
18196 }
18197         // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
18198 /* @internal */
18199 export function UserConfig_get_channel_handshake_limits(this_ptr: bigint): bigint {
18200         if(!isWasmInitialized) {
18201                 throw new Error("initializeWasm() must be awaited first!");
18202         }
18203         const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_limits(this_ptr);
18204         return nativeResponseValue;
18205 }
18206         // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
18207 /* @internal */
18208 export function UserConfig_set_channel_handshake_limits(this_ptr: bigint, val: bigint): void {
18209         if(!isWasmInitialized) {
18210                 throw new Error("initializeWasm() must be awaited first!");
18211         }
18212         const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_limits(this_ptr, val);
18213         // debug statements here
18214 }
18215         // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
18216 /* @internal */
18217 export function UserConfig_get_channel_config(this_ptr: bigint): bigint {
18218         if(!isWasmInitialized) {
18219                 throw new Error("initializeWasm() must be awaited first!");
18220         }
18221         const nativeResponseValue = wasm.TS_UserConfig_get_channel_config(this_ptr);
18222         return nativeResponseValue;
18223 }
18224         // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
18225 /* @internal */
18226 export function UserConfig_set_channel_config(this_ptr: bigint, val: bigint): void {
18227         if(!isWasmInitialized) {
18228                 throw new Error("initializeWasm() must be awaited first!");
18229         }
18230         const nativeResponseValue = wasm.TS_UserConfig_set_channel_config(this_ptr, val);
18231         // debug statements here
18232 }
18233         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
18234 /* @internal */
18235 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: bigint): boolean {
18236         if(!isWasmInitialized) {
18237                 throw new Error("initializeWasm() must be awaited first!");
18238         }
18239         const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
18240         return nativeResponseValue;
18241 }
18242         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
18243 /* @internal */
18244 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: bigint, val: boolean): void {
18245         if(!isWasmInitialized) {
18246                 throw new Error("initializeWasm() must be awaited first!");
18247         }
18248         const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
18249         // debug statements here
18250 }
18251         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
18252 /* @internal */
18253 export function UserConfig_get_accept_inbound_channels(this_ptr: bigint): boolean {
18254         if(!isWasmInitialized) {
18255                 throw new Error("initializeWasm() must be awaited first!");
18256         }
18257         const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
18258         return nativeResponseValue;
18259 }
18260         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
18261 /* @internal */
18262 export function UserConfig_set_accept_inbound_channels(this_ptr: bigint, val: boolean): void {
18263         if(!isWasmInitialized) {
18264                 throw new Error("initializeWasm() must be awaited first!");
18265         }
18266         const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
18267         // debug statements here
18268 }
18269         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
18270 /* @internal */
18271 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: bigint): boolean {
18272         if(!isWasmInitialized) {
18273                 throw new Error("initializeWasm() must be awaited first!");
18274         }
18275         const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
18276         return nativeResponseValue;
18277 }
18278         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
18279 /* @internal */
18280 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: bigint, val: boolean): void {
18281         if(!isWasmInitialized) {
18282                 throw new Error("initializeWasm() must be awaited first!");
18283         }
18284         const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
18285         // debug statements here
18286 }
18287         // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg);
18288 /* @internal */
18289 export function UserConfig_new(channel_handshake_config_arg: bigint, channel_handshake_limits_arg: bigint, channel_config_arg: bigint, accept_forwards_to_priv_channels_arg: boolean, accept_inbound_channels_arg: boolean, manually_accept_inbound_channels_arg: boolean): bigint {
18290         if(!isWasmInitialized) {
18291                 throw new Error("initializeWasm() must be awaited first!");
18292         }
18293         const nativeResponseValue = wasm.TS_UserConfig_new(channel_handshake_config_arg, channel_handshake_limits_arg, channel_config_arg, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg);
18294         return nativeResponseValue;
18295 }
18296         // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
18297 /* @internal */
18298 export function UserConfig_clone_ptr(arg: bigint): bigint {
18299         if(!isWasmInitialized) {
18300                 throw new Error("initializeWasm() must be awaited first!");
18301         }
18302         const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
18303         return nativeResponseValue;
18304 }
18305         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
18306 /* @internal */
18307 export function UserConfig_clone(orig: bigint): bigint {
18308         if(!isWasmInitialized) {
18309                 throw new Error("initializeWasm() must be awaited first!");
18310         }
18311         const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
18312         return nativeResponseValue;
18313 }
18314         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
18315 /* @internal */
18316 export function UserConfig_default(): bigint {
18317         if(!isWasmInitialized) {
18318                 throw new Error("initializeWasm() must be awaited first!");
18319         }
18320         const nativeResponseValue = wasm.TS_UserConfig_default();
18321         return nativeResponseValue;
18322 }
18323         // void BestBlock_free(struct LDKBestBlock this_obj);
18324 /* @internal */
18325 export function BestBlock_free(this_obj: bigint): void {
18326         if(!isWasmInitialized) {
18327                 throw new Error("initializeWasm() must be awaited first!");
18328         }
18329         const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
18330         // debug statements here
18331 }
18332         // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
18333 /* @internal */
18334 export function BestBlock_clone_ptr(arg: bigint): bigint {
18335         if(!isWasmInitialized) {
18336                 throw new Error("initializeWasm() must be awaited first!");
18337         }
18338         const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
18339         return nativeResponseValue;
18340 }
18341         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
18342 /* @internal */
18343 export function BestBlock_clone(orig: bigint): bigint {
18344         if(!isWasmInitialized) {
18345                 throw new Error("initializeWasm() must be awaited first!");
18346         }
18347         const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
18348         return nativeResponseValue;
18349 }
18350         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
18351 /* @internal */
18352 export function BestBlock_from_genesis(network: Network): bigint {
18353         if(!isWasmInitialized) {
18354                 throw new Error("initializeWasm() must be awaited first!");
18355         }
18356         const nativeResponseValue = wasm.TS_BestBlock_from_genesis(network);
18357         return nativeResponseValue;
18358 }
18359         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
18360 /* @internal */
18361 export function BestBlock_new(block_hash: number, height: number): bigint {
18362         if(!isWasmInitialized) {
18363                 throw new Error("initializeWasm() must be awaited first!");
18364         }
18365         const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
18366         return nativeResponseValue;
18367 }
18368         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
18369 /* @internal */
18370 export function BestBlock_block_hash(this_arg: bigint): number {
18371         if(!isWasmInitialized) {
18372                 throw new Error("initializeWasm() must be awaited first!");
18373         }
18374         const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
18375         return nativeResponseValue;
18376 }
18377         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
18378 /* @internal */
18379 export function BestBlock_height(this_arg: bigint): number {
18380         if(!isWasmInitialized) {
18381                 throw new Error("initializeWasm() must be awaited first!");
18382         }
18383         const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
18384         return nativeResponseValue;
18385 }
18386         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
18387 /* @internal */
18388 export function AccessError_clone(orig: bigint): AccessError {
18389         if(!isWasmInitialized) {
18390                 throw new Error("initializeWasm() must be awaited first!");
18391         }
18392         const nativeResponseValue = wasm.TS_AccessError_clone(orig);
18393         return nativeResponseValue;
18394 }
18395         // enum LDKAccessError AccessError_unknown_chain(void);
18396 /* @internal */
18397 export function AccessError_unknown_chain(): AccessError {
18398         if(!isWasmInitialized) {
18399                 throw new Error("initializeWasm() must be awaited first!");
18400         }
18401         const nativeResponseValue = wasm.TS_AccessError_unknown_chain();
18402         return nativeResponseValue;
18403 }
18404         // enum LDKAccessError AccessError_unknown_tx(void);
18405 /* @internal */
18406 export function AccessError_unknown_tx(): AccessError {
18407         if(!isWasmInitialized) {
18408                 throw new Error("initializeWasm() must be awaited first!");
18409         }
18410         const nativeResponseValue = wasm.TS_AccessError_unknown_tx();
18411         return nativeResponseValue;
18412 }
18413         // void Access_free(struct LDKAccess this_ptr);
18414 /* @internal */
18415 export function Access_free(this_ptr: bigint): void {
18416         if(!isWasmInitialized) {
18417                 throw new Error("initializeWasm() must be awaited first!");
18418         }
18419         const nativeResponseValue = wasm.TS_Access_free(this_ptr);
18420         // debug statements here
18421 }
18422         // void Listen_free(struct LDKListen this_ptr);
18423 /* @internal */
18424 export function Listen_free(this_ptr: bigint): void {
18425         if(!isWasmInitialized) {
18426                 throw new Error("initializeWasm() must be awaited first!");
18427         }
18428         const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
18429         // debug statements here
18430 }
18431         // void Confirm_free(struct LDKConfirm this_ptr);
18432 /* @internal */
18433 export function Confirm_free(this_ptr: bigint): void {
18434         if(!isWasmInitialized) {
18435                 throw new Error("initializeWasm() must be awaited first!");
18436         }
18437         const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
18438         // debug statements here
18439 }
18440         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
18441 /* @internal */
18442 export function ChannelMonitorUpdateErr_clone(orig: bigint): ChannelMonitorUpdateErr {
18443         if(!isWasmInitialized) {
18444                 throw new Error("initializeWasm() must be awaited first!");
18445         }
18446         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_clone(orig);
18447         return nativeResponseValue;
18448 }
18449         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
18450 /* @internal */
18451 export function ChannelMonitorUpdateErr_temporary_failure(): ChannelMonitorUpdateErr {
18452         if(!isWasmInitialized) {
18453                 throw new Error("initializeWasm() must be awaited first!");
18454         }
18455         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_temporary_failure();
18456         return nativeResponseValue;
18457 }
18458         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
18459 /* @internal */
18460 export function ChannelMonitorUpdateErr_permanent_failure(): ChannelMonitorUpdateErr {
18461         if(!isWasmInitialized) {
18462                 throw new Error("initializeWasm() must be awaited first!");
18463         }
18464         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_permanent_failure();
18465         return nativeResponseValue;
18466 }
18467         // void Watch_free(struct LDKWatch this_ptr);
18468 /* @internal */
18469 export function Watch_free(this_ptr: bigint): void {
18470         if(!isWasmInitialized) {
18471                 throw new Error("initializeWasm() must be awaited first!");
18472         }
18473         const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
18474         // debug statements here
18475 }
18476         // void Filter_free(struct LDKFilter this_ptr);
18477 /* @internal */
18478 export function Filter_free(this_ptr: bigint): void {
18479         if(!isWasmInitialized) {
18480                 throw new Error("initializeWasm() must be awaited first!");
18481         }
18482         const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
18483         // debug statements here
18484 }
18485         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
18486 /* @internal */
18487 export function WatchedOutput_free(this_obj: bigint): void {
18488         if(!isWasmInitialized) {
18489                 throw new Error("initializeWasm() must be awaited first!");
18490         }
18491         const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
18492         // debug statements here
18493 }
18494         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
18495 /* @internal */
18496 export function WatchedOutput_get_block_hash(this_ptr: bigint): number {
18497         if(!isWasmInitialized) {
18498                 throw new Error("initializeWasm() must be awaited first!");
18499         }
18500         const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
18501         return nativeResponseValue;
18502 }
18503         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18504 /* @internal */
18505 export function WatchedOutput_set_block_hash(this_ptr: bigint, val: number): void {
18506         if(!isWasmInitialized) {
18507                 throw new Error("initializeWasm() must be awaited first!");
18508         }
18509         const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
18510         // debug statements here
18511 }
18512         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
18513 /* @internal */
18514 export function WatchedOutput_get_outpoint(this_ptr: bigint): bigint {
18515         if(!isWasmInitialized) {
18516                 throw new Error("initializeWasm() must be awaited first!");
18517         }
18518         const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
18519         return nativeResponseValue;
18520 }
18521         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
18522 /* @internal */
18523 export function WatchedOutput_set_outpoint(this_ptr: bigint, val: bigint): void {
18524         if(!isWasmInitialized) {
18525                 throw new Error("initializeWasm() must be awaited first!");
18526         }
18527         const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
18528         // debug statements here
18529 }
18530         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
18531 /* @internal */
18532 export function WatchedOutput_get_script_pubkey(this_ptr: bigint): number {
18533         if(!isWasmInitialized) {
18534                 throw new Error("initializeWasm() must be awaited first!");
18535         }
18536         const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
18537         return nativeResponseValue;
18538 }
18539         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
18540 /* @internal */
18541 export function WatchedOutput_set_script_pubkey(this_ptr: bigint, val: number): void {
18542         if(!isWasmInitialized) {
18543                 throw new Error("initializeWasm() must be awaited first!");
18544         }
18545         const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
18546         // debug statements here
18547 }
18548         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
18549 /* @internal */
18550 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: bigint, script_pubkey_arg: number): bigint {
18551         if(!isWasmInitialized) {
18552                 throw new Error("initializeWasm() must be awaited first!");
18553         }
18554         const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
18555         return nativeResponseValue;
18556 }
18557         // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
18558 /* @internal */
18559 export function WatchedOutput_clone_ptr(arg: bigint): bigint {
18560         if(!isWasmInitialized) {
18561                 throw new Error("initializeWasm() must be awaited first!");
18562         }
18563         const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
18564         return nativeResponseValue;
18565 }
18566         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
18567 /* @internal */
18568 export function WatchedOutput_clone(orig: bigint): bigint {
18569         if(!isWasmInitialized) {
18570                 throw new Error("initializeWasm() must be awaited first!");
18571         }
18572         const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
18573         return nativeResponseValue;
18574 }
18575         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
18576 /* @internal */
18577 export function WatchedOutput_hash(o: bigint): bigint {
18578         if(!isWasmInitialized) {
18579                 throw new Error("initializeWasm() must be awaited first!");
18580         }
18581         const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
18582         return nativeResponseValue;
18583 }
18584         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
18585 /* @internal */
18586 export function BroadcasterInterface_free(this_ptr: bigint): void {
18587         if(!isWasmInitialized) {
18588                 throw new Error("initializeWasm() must be awaited first!");
18589         }
18590         const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
18591         // debug statements here
18592 }
18593         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
18594 /* @internal */
18595 export function ConfirmationTarget_clone(orig: bigint): ConfirmationTarget {
18596         if(!isWasmInitialized) {
18597                 throw new Error("initializeWasm() must be awaited first!");
18598         }
18599         const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
18600         return nativeResponseValue;
18601 }
18602         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
18603 /* @internal */
18604 export function ConfirmationTarget_background(): ConfirmationTarget {
18605         if(!isWasmInitialized) {
18606                 throw new Error("initializeWasm() must be awaited first!");
18607         }
18608         const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
18609         return nativeResponseValue;
18610 }
18611         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
18612 /* @internal */
18613 export function ConfirmationTarget_normal(): ConfirmationTarget {
18614         if(!isWasmInitialized) {
18615                 throw new Error("initializeWasm() must be awaited first!");
18616         }
18617         const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
18618         return nativeResponseValue;
18619 }
18620         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
18621 /* @internal */
18622 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
18623         if(!isWasmInitialized) {
18624                 throw new Error("initializeWasm() must be awaited first!");
18625         }
18626         const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
18627         return nativeResponseValue;
18628 }
18629         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
18630 /* @internal */
18631 export function ConfirmationTarget_eq(a: bigint, b: bigint): boolean {
18632         if(!isWasmInitialized) {
18633                 throw new Error("initializeWasm() must be awaited first!");
18634         }
18635         const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
18636         return nativeResponseValue;
18637 }
18638         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
18639 /* @internal */
18640 export function FeeEstimator_free(this_ptr: bigint): void {
18641         if(!isWasmInitialized) {
18642                 throw new Error("initializeWasm() must be awaited first!");
18643         }
18644         const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
18645         // debug statements here
18646 }
18647         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
18648 /* @internal */
18649 export function MonitorUpdateId_free(this_obj: bigint): void {
18650         if(!isWasmInitialized) {
18651                 throw new Error("initializeWasm() must be awaited first!");
18652         }
18653         const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
18654         // debug statements here
18655 }
18656         // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
18657 /* @internal */
18658 export function MonitorUpdateId_clone_ptr(arg: bigint): bigint {
18659         if(!isWasmInitialized) {
18660                 throw new Error("initializeWasm() must be awaited first!");
18661         }
18662         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
18663         return nativeResponseValue;
18664 }
18665         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
18666 /* @internal */
18667 export function MonitorUpdateId_clone(orig: bigint): bigint {
18668         if(!isWasmInitialized) {
18669                 throw new Error("initializeWasm() must be awaited first!");
18670         }
18671         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
18672         return nativeResponseValue;
18673 }
18674         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
18675 /* @internal */
18676 export function MonitorUpdateId_hash(o: bigint): bigint {
18677         if(!isWasmInitialized) {
18678                 throw new Error("initializeWasm() must be awaited first!");
18679         }
18680         const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
18681         return nativeResponseValue;
18682 }
18683         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
18684 /* @internal */
18685 export function MonitorUpdateId_eq(a: bigint, b: bigint): boolean {
18686         if(!isWasmInitialized) {
18687                 throw new Error("initializeWasm() must be awaited first!");
18688         }
18689         const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
18690         return nativeResponseValue;
18691 }
18692         // void Persist_free(struct LDKPersist this_ptr);
18693 /* @internal */
18694 export function Persist_free(this_ptr: bigint): void {
18695         if(!isWasmInitialized) {
18696                 throw new Error("initializeWasm() must be awaited first!");
18697         }
18698         const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
18699         // debug statements here
18700 }
18701         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
18702 /* @internal */
18703 export function LockedChannelMonitor_free(this_obj: bigint): void {
18704         if(!isWasmInitialized) {
18705                 throw new Error("initializeWasm() must be awaited first!");
18706         }
18707         const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
18708         // debug statements here
18709 }
18710         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
18711 /* @internal */
18712 export function ChainMonitor_free(this_obj: bigint): void {
18713         if(!isWasmInitialized) {
18714                 throw new Error("initializeWasm() must be awaited first!");
18715         }
18716         const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
18717         // debug statements here
18718 }
18719         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
18720 /* @internal */
18721 export function ChainMonitor_new(chain_source: bigint, broadcaster: bigint, logger: bigint, feeest: bigint, persister: bigint): bigint {
18722         if(!isWasmInitialized) {
18723                 throw new Error("initializeWasm() must be awaited first!");
18724         }
18725         const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
18726         return nativeResponseValue;
18727 }
18728         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
18729 /* @internal */
18730 export function ChainMonitor_get_claimable_balances(this_arg: bigint, ignored_channels: number): number {
18731         if(!isWasmInitialized) {
18732                 throw new Error("initializeWasm() must be awaited first!");
18733         }
18734         const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
18735         return nativeResponseValue;
18736 }
18737         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
18738 /* @internal */
18739 export function ChainMonitor_get_monitor(this_arg: bigint, funding_txo: bigint): bigint {
18740         if(!isWasmInitialized) {
18741                 throw new Error("initializeWasm() must be awaited first!");
18742         }
18743         const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
18744         return nativeResponseValue;
18745 }
18746         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
18747 /* @internal */
18748 export function ChainMonitor_list_monitors(this_arg: bigint): number {
18749         if(!isWasmInitialized) {
18750                 throw new Error("initializeWasm() must be awaited first!");
18751         }
18752         const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
18753         return nativeResponseValue;
18754 }
18755         // 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);
18756 /* @internal */
18757 export function ChainMonitor_channel_monitor_updated(this_arg: bigint, funding_txo: bigint, completed_update_id: bigint): bigint {
18758         if(!isWasmInitialized) {
18759                 throw new Error("initializeWasm() must be awaited first!");
18760         }
18761         const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
18762         return nativeResponseValue;
18763 }
18764         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
18765 /* @internal */
18766 export function ChainMonitor_as_Listen(this_arg: bigint): bigint {
18767         if(!isWasmInitialized) {
18768                 throw new Error("initializeWasm() must be awaited first!");
18769         }
18770         const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
18771         return nativeResponseValue;
18772 }
18773         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
18774 /* @internal */
18775 export function ChainMonitor_as_Confirm(this_arg: bigint): bigint {
18776         if(!isWasmInitialized) {
18777                 throw new Error("initializeWasm() must be awaited first!");
18778         }
18779         const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
18780         return nativeResponseValue;
18781 }
18782         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
18783 /* @internal */
18784 export function ChainMonitor_as_Watch(this_arg: bigint): bigint {
18785         if(!isWasmInitialized) {
18786                 throw new Error("initializeWasm() must be awaited first!");
18787         }
18788         const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
18789         return nativeResponseValue;
18790 }
18791         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
18792 /* @internal */
18793 export function ChainMonitor_as_EventsProvider(this_arg: bigint): bigint {
18794         if(!isWasmInitialized) {
18795                 throw new Error("initializeWasm() must be awaited first!");
18796         }
18797         const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
18798         return nativeResponseValue;
18799 }
18800         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
18801 /* @internal */
18802 export function ChannelMonitorUpdate_free(this_obj: bigint): void {
18803         if(!isWasmInitialized) {
18804                 throw new Error("initializeWasm() must be awaited first!");
18805         }
18806         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
18807         // debug statements here
18808 }
18809         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
18810 /* @internal */
18811 export function ChannelMonitorUpdate_get_update_id(this_ptr: bigint): bigint {
18812         if(!isWasmInitialized) {
18813                 throw new Error("initializeWasm() must be awaited first!");
18814         }
18815         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
18816         return nativeResponseValue;
18817 }
18818         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
18819 /* @internal */
18820 export function ChannelMonitorUpdate_set_update_id(this_ptr: bigint, val: bigint): void {
18821         if(!isWasmInitialized) {
18822                 throw new Error("initializeWasm() must be awaited first!");
18823         }
18824         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
18825         // debug statements here
18826 }
18827         // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
18828 /* @internal */
18829 export function ChannelMonitorUpdate_clone_ptr(arg: bigint): bigint {
18830         if(!isWasmInitialized) {
18831                 throw new Error("initializeWasm() must be awaited first!");
18832         }
18833         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
18834         return nativeResponseValue;
18835 }
18836         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
18837 /* @internal */
18838 export function ChannelMonitorUpdate_clone(orig: bigint): bigint {
18839         if(!isWasmInitialized) {
18840                 throw new Error("initializeWasm() must be awaited first!");
18841         }
18842         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
18843         return nativeResponseValue;
18844 }
18845         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
18846 /* @internal */
18847 export function ChannelMonitorUpdate_write(obj: bigint): number {
18848         if(!isWasmInitialized) {
18849                 throw new Error("initializeWasm() must be awaited first!");
18850         }
18851         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
18852         return nativeResponseValue;
18853 }
18854         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
18855 /* @internal */
18856 export function ChannelMonitorUpdate_read(ser: number): bigint {
18857         if(!isWasmInitialized) {
18858                 throw new Error("initializeWasm() must be awaited first!");
18859         }
18860         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
18861         return nativeResponseValue;
18862 }
18863         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
18864 /* @internal */
18865 export function MonitorEvent_free(this_ptr: bigint): void {
18866         if(!isWasmInitialized) {
18867                 throw new Error("initializeWasm() must be awaited first!");
18868         }
18869         const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
18870         // debug statements here
18871 }
18872         // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
18873 /* @internal */
18874 export function MonitorEvent_clone_ptr(arg: bigint): bigint {
18875         if(!isWasmInitialized) {
18876                 throw new Error("initializeWasm() must be awaited first!");
18877         }
18878         const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
18879         return nativeResponseValue;
18880 }
18881         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
18882 /* @internal */
18883 export function MonitorEvent_clone(orig: bigint): bigint {
18884         if(!isWasmInitialized) {
18885                 throw new Error("initializeWasm() must be awaited first!");
18886         }
18887         const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
18888         return nativeResponseValue;
18889 }
18890         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
18891 /* @internal */
18892 export function MonitorEvent_htlcevent(a: bigint): bigint {
18893         if(!isWasmInitialized) {
18894                 throw new Error("initializeWasm() must be awaited first!");
18895         }
18896         const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
18897         return nativeResponseValue;
18898 }
18899         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
18900 /* @internal */
18901 export function MonitorEvent_commitment_tx_confirmed(a: bigint): bigint {
18902         if(!isWasmInitialized) {
18903                 throw new Error("initializeWasm() must be awaited first!");
18904         }
18905         const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
18906         return nativeResponseValue;
18907 }
18908         // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
18909 /* @internal */
18910 export function MonitorEvent_update_completed(funding_txo: bigint, monitor_update_id: bigint): bigint {
18911         if(!isWasmInitialized) {
18912                 throw new Error("initializeWasm() must be awaited first!");
18913         }
18914         const nativeResponseValue = wasm.TS_MonitorEvent_update_completed(funding_txo, monitor_update_id);
18915         return nativeResponseValue;
18916 }
18917         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
18918 /* @internal */
18919 export function MonitorEvent_update_failed(a: bigint): bigint {
18920         if(!isWasmInitialized) {
18921                 throw new Error("initializeWasm() must be awaited first!");
18922         }
18923         const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
18924         return nativeResponseValue;
18925 }
18926         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
18927 /* @internal */
18928 export function MonitorEvent_write(obj: bigint): number {
18929         if(!isWasmInitialized) {
18930                 throw new Error("initializeWasm() must be awaited first!");
18931         }
18932         const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
18933         return nativeResponseValue;
18934 }
18935         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
18936 /* @internal */
18937 export function MonitorEvent_read(ser: number): bigint {
18938         if(!isWasmInitialized) {
18939                 throw new Error("initializeWasm() must be awaited first!");
18940         }
18941         const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
18942         return nativeResponseValue;
18943 }
18944         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
18945 /* @internal */
18946 export function HTLCUpdate_free(this_obj: bigint): void {
18947         if(!isWasmInitialized) {
18948                 throw new Error("initializeWasm() must be awaited first!");
18949         }
18950         const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
18951         // debug statements here
18952 }
18953         // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
18954 /* @internal */
18955 export function HTLCUpdate_clone_ptr(arg: bigint): bigint {
18956         if(!isWasmInitialized) {
18957                 throw new Error("initializeWasm() must be awaited first!");
18958         }
18959         const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
18960         return nativeResponseValue;
18961 }
18962         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
18963 /* @internal */
18964 export function HTLCUpdate_clone(orig: bigint): bigint {
18965         if(!isWasmInitialized) {
18966                 throw new Error("initializeWasm() must be awaited first!");
18967         }
18968         const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
18969         return nativeResponseValue;
18970 }
18971         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
18972 /* @internal */
18973 export function HTLCUpdate_write(obj: bigint): number {
18974         if(!isWasmInitialized) {
18975                 throw new Error("initializeWasm() must be awaited first!");
18976         }
18977         const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
18978         return nativeResponseValue;
18979 }
18980         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
18981 /* @internal */
18982 export function HTLCUpdate_read(ser: number): bigint {
18983         if(!isWasmInitialized) {
18984                 throw new Error("initializeWasm() must be awaited first!");
18985         }
18986         const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
18987         return nativeResponseValue;
18988 }
18989         // void Balance_free(struct LDKBalance this_ptr);
18990 /* @internal */
18991 export function Balance_free(this_ptr: bigint): void {
18992         if(!isWasmInitialized) {
18993                 throw new Error("initializeWasm() must be awaited first!");
18994         }
18995         const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
18996         // debug statements here
18997 }
18998         // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
18999 /* @internal */
19000 export function Balance_clone_ptr(arg: bigint): bigint {
19001         if(!isWasmInitialized) {
19002                 throw new Error("initializeWasm() must be awaited first!");
19003         }
19004         const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
19005         return nativeResponseValue;
19006 }
19007         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
19008 /* @internal */
19009 export function Balance_clone(orig: bigint): bigint {
19010         if(!isWasmInitialized) {
19011                 throw new Error("initializeWasm() must be awaited first!");
19012         }
19013         const nativeResponseValue = wasm.TS_Balance_clone(orig);
19014         return nativeResponseValue;
19015 }
19016         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
19017 /* @internal */
19018 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): bigint {
19019         if(!isWasmInitialized) {
19020                 throw new Error("initializeWasm() must be awaited first!");
19021         }
19022         const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
19023         return nativeResponseValue;
19024 }
19025         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
19026 /* @internal */
19027 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): bigint {
19028         if(!isWasmInitialized) {
19029                 throw new Error("initializeWasm() must be awaited first!");
19030         }
19031         const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
19032         return nativeResponseValue;
19033 }
19034         // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
19035 /* @internal */
19036 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): bigint {
19037         if(!isWasmInitialized) {
19038                 throw new Error("initializeWasm() must be awaited first!");
19039         }
19040         const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
19041         return nativeResponseValue;
19042 }
19043         // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
19044 /* @internal */
19045 export function Balance_maybe_timeout_claimable_htlc(claimable_amount_satoshis: bigint, claimable_height: number): bigint {
19046         if(!isWasmInitialized) {
19047                 throw new Error("initializeWasm() must be awaited first!");
19048         }
19049         const nativeResponseValue = wasm.TS_Balance_maybe_timeout_claimable_htlc(claimable_amount_satoshis, claimable_height);
19050         return nativeResponseValue;
19051 }
19052         // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t expiry_height);
19053 /* @internal */
19054 export function Balance_maybe_preimage_claimable_htlc(claimable_amount_satoshis: bigint, expiry_height: number): bigint {
19055         if(!isWasmInitialized) {
19056                 throw new Error("initializeWasm() must be awaited first!");
19057         }
19058         const nativeResponseValue = wasm.TS_Balance_maybe_preimage_claimable_htlc(claimable_amount_satoshis, expiry_height);
19059         return nativeResponseValue;
19060 }
19061         // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t claimable_amount_satoshis);
19062 /* @internal */
19063 export function Balance_counterparty_revoked_output_claimable(claimable_amount_satoshis: bigint): bigint {
19064         if(!isWasmInitialized) {
19065                 throw new Error("initializeWasm() must be awaited first!");
19066         }
19067         const nativeResponseValue = wasm.TS_Balance_counterparty_revoked_output_claimable(claimable_amount_satoshis);
19068         return nativeResponseValue;
19069 }
19070         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
19071 /* @internal */
19072 export function Balance_eq(a: bigint, b: bigint): boolean {
19073         if(!isWasmInitialized) {
19074                 throw new Error("initializeWasm() must be awaited first!");
19075         }
19076         const nativeResponseValue = wasm.TS_Balance_eq(a, b);
19077         return nativeResponseValue;
19078 }
19079         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
19080 /* @internal */
19081 export function ChannelMonitor_free(this_obj: bigint): void {
19082         if(!isWasmInitialized) {
19083                 throw new Error("initializeWasm() must be awaited first!");
19084         }
19085         const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
19086         // debug statements here
19087 }
19088         // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
19089 /* @internal */
19090 export function ChannelMonitor_clone_ptr(arg: bigint): bigint {
19091         if(!isWasmInitialized) {
19092                 throw new Error("initializeWasm() must be awaited first!");
19093         }
19094         const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
19095         return nativeResponseValue;
19096 }
19097         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
19098 /* @internal */
19099 export function ChannelMonitor_clone(orig: bigint): bigint {
19100         if(!isWasmInitialized) {
19101                 throw new Error("initializeWasm() must be awaited first!");
19102         }
19103         const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
19104         return nativeResponseValue;
19105 }
19106         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
19107 /* @internal */
19108 export function ChannelMonitor_write(obj: bigint): number {
19109         if(!isWasmInitialized) {
19110                 throw new Error("initializeWasm() must be awaited first!");
19111         }
19112         const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
19113         return nativeResponseValue;
19114 }
19115         // 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, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
19116 /* @internal */
19117 export function ChannelMonitor_update_monitor(this_arg: bigint, updates: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): bigint {
19118         if(!isWasmInitialized) {
19119                 throw new Error("initializeWasm() must be awaited first!");
19120         }
19121         const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
19122         return nativeResponseValue;
19123 }
19124         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19125 /* @internal */
19126 export function ChannelMonitor_get_latest_update_id(this_arg: bigint): bigint {
19127         if(!isWasmInitialized) {
19128                 throw new Error("initializeWasm() must be awaited first!");
19129         }
19130         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
19131         return nativeResponseValue;
19132 }
19133         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19134 /* @internal */
19135 export function ChannelMonitor_get_funding_txo(this_arg: bigint): bigint {
19136         if(!isWasmInitialized) {
19137                 throw new Error("initializeWasm() must be awaited first!");
19138         }
19139         const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
19140         return nativeResponseValue;
19141 }
19142         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19143 /* @internal */
19144 export function ChannelMonitor_get_outputs_to_watch(this_arg: bigint): number {
19145         if(!isWasmInitialized) {
19146                 throw new Error("initializeWasm() must be awaited first!");
19147         }
19148         const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
19149         return nativeResponseValue;
19150 }
19151         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
19152 /* @internal */
19153 export function ChannelMonitor_load_outputs_to_watch(this_arg: bigint, filter: bigint): void {
19154         if(!isWasmInitialized) {
19155                 throw new Error("initializeWasm() must be awaited first!");
19156         }
19157         const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
19158         // debug statements here
19159 }
19160         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19161 /* @internal */
19162 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: bigint): number {
19163         if(!isWasmInitialized) {
19164                 throw new Error("initializeWasm() must be awaited first!");
19165         }
19166         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
19167         return nativeResponseValue;
19168 }
19169         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19170 /* @internal */
19171 export function ChannelMonitor_get_and_clear_pending_events(this_arg: bigint): number {
19172         if(!isWasmInitialized) {
19173                 throw new Error("initializeWasm() must be awaited first!");
19174         }
19175         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
19176         return nativeResponseValue;
19177 }
19178         // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19179 /* @internal */
19180 export function ChannelMonitor_get_counterparty_node_id(this_arg: bigint): number {
19181         if(!isWasmInitialized) {
19182                 throw new Error("initializeWasm() must be awaited first!");
19183         }
19184         const nativeResponseValue = wasm.TS_ChannelMonitor_get_counterparty_node_id(this_arg);
19185         return nativeResponseValue;
19186 }
19187         // 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);
19188 /* @internal */
19189 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: bigint, logger: bigint): number {
19190         if(!isWasmInitialized) {
19191                 throw new Error("initializeWasm() must be awaited first!");
19192         }
19193         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
19194         return nativeResponseValue;
19195 }
19196         // 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);
19197 /* @internal */
19198 export function ChannelMonitor_block_connected(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number {
19199         if(!isWasmInitialized) {
19200                 throw new Error("initializeWasm() must be awaited first!");
19201         }
19202         const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
19203         return nativeResponseValue;
19204 }
19205         // 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);
19206 /* @internal */
19207 export function ChannelMonitor_block_disconnected(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void {
19208         if(!isWasmInitialized) {
19209                 throw new Error("initializeWasm() must be awaited first!");
19210         }
19211         const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
19212         // debug statements here
19213 }
19214         // 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);
19215 /* @internal */
19216 export function ChannelMonitor_transactions_confirmed(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number {
19217         if(!isWasmInitialized) {
19218                 throw new Error("initializeWasm() must be awaited first!");
19219         }
19220         const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
19221         return nativeResponseValue;
19222 }
19223         // 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);
19224 /* @internal */
19225 export function ChannelMonitor_transaction_unconfirmed(this_arg: bigint, txid: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void {
19226         if(!isWasmInitialized) {
19227                 throw new Error("initializeWasm() must be awaited first!");
19228         }
19229         const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
19230         // debug statements here
19231 }
19232         // 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);
19233 /* @internal */
19234 export function ChannelMonitor_best_block_updated(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number {
19235         if(!isWasmInitialized) {
19236                 throw new Error("initializeWasm() must be awaited first!");
19237         }
19238         const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
19239         return nativeResponseValue;
19240 }
19241         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19242 /* @internal */
19243 export function ChannelMonitor_get_relevant_txids(this_arg: bigint): number {
19244         if(!isWasmInitialized) {
19245                 throw new Error("initializeWasm() must be awaited first!");
19246         }
19247         const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
19248         return nativeResponseValue;
19249 }
19250         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19251 /* @internal */
19252 export function ChannelMonitor_current_best_block(this_arg: bigint): bigint {
19253         if(!isWasmInitialized) {
19254                 throw new Error("initializeWasm() must be awaited first!");
19255         }
19256         const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
19257         return nativeResponseValue;
19258 }
19259         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
19260 /* @internal */
19261 export function ChannelMonitor_get_claimable_balances(this_arg: bigint): number {
19262         if(!isWasmInitialized) {
19263                 throw new Error("initializeWasm() must be awaited first!");
19264         }
19265         const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
19266         return nativeResponseValue;
19267 }
19268         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
19269 /* @internal */
19270 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg: bigint): bigint {
19271         if(!isWasmInitialized) {
19272                 throw new Error("initializeWasm() must be awaited first!");
19273         }
19274         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg);
19275         return nativeResponseValue;
19276 }
19277         // void OutPoint_free(struct LDKOutPoint this_obj);
19278 /* @internal */
19279 export function OutPoint_free(this_obj: bigint): void {
19280         if(!isWasmInitialized) {
19281                 throw new Error("initializeWasm() must be awaited first!");
19282         }
19283         const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
19284         // debug statements here
19285 }
19286         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
19287 /* @internal */
19288 export function OutPoint_get_txid(this_ptr: bigint): number {
19289         if(!isWasmInitialized) {
19290                 throw new Error("initializeWasm() must be awaited first!");
19291         }
19292         const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
19293         return nativeResponseValue;
19294 }
19295         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19296 /* @internal */
19297 export function OutPoint_set_txid(this_ptr: bigint, val: number): void {
19298         if(!isWasmInitialized) {
19299                 throw new Error("initializeWasm() must be awaited first!");
19300         }
19301         const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
19302         // debug statements here
19303 }
19304         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
19305 /* @internal */
19306 export function OutPoint_get_index(this_ptr: bigint): number {
19307         if(!isWasmInitialized) {
19308                 throw new Error("initializeWasm() must be awaited first!");
19309         }
19310         const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
19311         return nativeResponseValue;
19312 }
19313         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
19314 /* @internal */
19315 export function OutPoint_set_index(this_ptr: bigint, val: number): void {
19316         if(!isWasmInitialized) {
19317                 throw new Error("initializeWasm() must be awaited first!");
19318         }
19319         const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
19320         // debug statements here
19321 }
19322         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
19323 /* @internal */
19324 export function OutPoint_new(txid_arg: number, index_arg: number): bigint {
19325         if(!isWasmInitialized) {
19326                 throw new Error("initializeWasm() must be awaited first!");
19327         }
19328         const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
19329         return nativeResponseValue;
19330 }
19331         // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
19332 /* @internal */
19333 export function OutPoint_clone_ptr(arg: bigint): bigint {
19334         if(!isWasmInitialized) {
19335                 throw new Error("initializeWasm() must be awaited first!");
19336         }
19337         const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
19338         return nativeResponseValue;
19339 }
19340         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
19341 /* @internal */
19342 export function OutPoint_clone(orig: bigint): bigint {
19343         if(!isWasmInitialized) {
19344                 throw new Error("initializeWasm() must be awaited first!");
19345         }
19346         const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
19347         return nativeResponseValue;
19348 }
19349         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
19350 /* @internal */
19351 export function OutPoint_eq(a: bigint, b: bigint): boolean {
19352         if(!isWasmInitialized) {
19353                 throw new Error("initializeWasm() must be awaited first!");
19354         }
19355         const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
19356         return nativeResponseValue;
19357 }
19358         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
19359 /* @internal */
19360 export function OutPoint_hash(o: bigint): bigint {
19361         if(!isWasmInitialized) {
19362                 throw new Error("initializeWasm() must be awaited first!");
19363         }
19364         const nativeResponseValue = wasm.TS_OutPoint_hash(o);
19365         return nativeResponseValue;
19366 }
19367         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
19368 /* @internal */
19369 export function OutPoint_to_channel_id(this_arg: bigint): number {
19370         if(!isWasmInitialized) {
19371                 throw new Error("initializeWasm() must be awaited first!");
19372         }
19373         const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
19374         return nativeResponseValue;
19375 }
19376         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
19377 /* @internal */
19378 export function OutPoint_write(obj: bigint): number {
19379         if(!isWasmInitialized) {
19380                 throw new Error("initializeWasm() must be awaited first!");
19381         }
19382         const nativeResponseValue = wasm.TS_OutPoint_write(obj);
19383         return nativeResponseValue;
19384 }
19385         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
19386 /* @internal */
19387 export function OutPoint_read(ser: number): bigint {
19388         if(!isWasmInitialized) {
19389                 throw new Error("initializeWasm() must be awaited first!");
19390         }
19391         const nativeResponseValue = wasm.TS_OutPoint_read(ser);
19392         return nativeResponseValue;
19393 }
19394         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
19395 /* @internal */
19396 export function DelayedPaymentOutputDescriptor_free(this_obj: bigint): void {
19397         if(!isWasmInitialized) {
19398                 throw new Error("initializeWasm() must be awaited first!");
19399         }
19400         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
19401         // debug statements here
19402 }
19403         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19404 /* @internal */
19405 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: bigint): bigint {
19406         if(!isWasmInitialized) {
19407                 throw new Error("initializeWasm() must be awaited first!");
19408         }
19409         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
19410         return nativeResponseValue;
19411 }
19412         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
19413 /* @internal */
19414 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: bigint, val: bigint): void {
19415         if(!isWasmInitialized) {
19416                 throw new Error("initializeWasm() must be awaited first!");
19417         }
19418         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
19419         // debug statements here
19420 }
19421         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19422 /* @internal */
19423 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: bigint): number {
19424         if(!isWasmInitialized) {
19425                 throw new Error("initializeWasm() must be awaited first!");
19426         }
19427         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
19428         return nativeResponseValue;
19429 }
19430         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19431 /* @internal */
19432 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: bigint, val: number): void {
19433         if(!isWasmInitialized) {
19434                 throw new Error("initializeWasm() must be awaited first!");
19435         }
19436         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
19437         // debug statements here
19438 }
19439         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19440 /* @internal */
19441 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: bigint): number {
19442         if(!isWasmInitialized) {
19443                 throw new Error("initializeWasm() must be awaited first!");
19444         }
19445         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
19446         return nativeResponseValue;
19447 }
19448         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
19449 /* @internal */
19450 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: bigint, val: number): void {
19451         if(!isWasmInitialized) {
19452                 throw new Error("initializeWasm() must be awaited first!");
19453         }
19454         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
19455         // debug statements here
19456 }
19457         // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19458 /* @internal */
19459 export function DelayedPaymentOutputDescriptor_get_output(this_ptr: bigint): bigint {
19460         if(!isWasmInitialized) {
19461                 throw new Error("initializeWasm() must be awaited first!");
19462         }
19463         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_output(this_ptr);
19464         return nativeResponseValue;
19465 }
19466         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
19467 /* @internal */
19468 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: bigint, val: bigint): void {
19469         if(!isWasmInitialized) {
19470                 throw new Error("initializeWasm() must be awaited first!");
19471         }
19472         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
19473         // debug statements here
19474 }
19475         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19476 /* @internal */
19477 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: bigint): number {
19478         if(!isWasmInitialized) {
19479                 throw new Error("initializeWasm() must be awaited first!");
19480         }
19481         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
19482         return nativeResponseValue;
19483 }
19484         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19485 /* @internal */
19486 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: bigint, val: number): void {
19487         if(!isWasmInitialized) {
19488                 throw new Error("initializeWasm() must be awaited first!");
19489         }
19490         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
19491         // debug statements here
19492 }
19493         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
19494 /* @internal */
19495 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: bigint): number {
19496         if(!isWasmInitialized) {
19497                 throw new Error("initializeWasm() must be awaited first!");
19498         }
19499         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
19500         return nativeResponseValue;
19501 }
19502         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19503 /* @internal */
19504 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: bigint, val: number): void {
19505         if(!isWasmInitialized) {
19506                 throw new Error("initializeWasm() must be awaited first!");
19507         }
19508         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
19509         // debug statements here
19510 }
19511         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19512 /* @internal */
19513 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: bigint): bigint {
19514         if(!isWasmInitialized) {
19515                 throw new Error("initializeWasm() must be awaited first!");
19516         }
19517         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
19518         return nativeResponseValue;
19519 }
19520         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
19521 /* @internal */
19522 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void {
19523         if(!isWasmInitialized) {
19524                 throw new Error("initializeWasm() must be awaited first!");
19525         }
19526         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
19527         // debug statements here
19528 }
19529         // 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);
19530 /* @internal */
19531 export function DelayedPaymentOutputDescriptor_new(outpoint_arg: bigint, per_commitment_point_arg: number, to_self_delay_arg: number, output_arg: bigint, revocation_pubkey_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): bigint {
19532         if(!isWasmInitialized) {
19533                 throw new Error("initializeWasm() must be awaited first!");
19534         }
19535         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);
19536         return nativeResponseValue;
19537 }
19538         // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
19539 /* @internal */
19540 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: bigint): bigint {
19541         if(!isWasmInitialized) {
19542                 throw new Error("initializeWasm() must be awaited first!");
19543         }
19544         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
19545         return nativeResponseValue;
19546 }
19547         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
19548 /* @internal */
19549 export function DelayedPaymentOutputDescriptor_clone(orig: bigint): bigint {
19550         if(!isWasmInitialized) {
19551                 throw new Error("initializeWasm() must be awaited first!");
19552         }
19553         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
19554         return nativeResponseValue;
19555 }
19556         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
19557 /* @internal */
19558 export function DelayedPaymentOutputDescriptor_write(obj: bigint): number {
19559         if(!isWasmInitialized) {
19560                 throw new Error("initializeWasm() must be awaited first!");
19561         }
19562         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
19563         return nativeResponseValue;
19564 }
19565         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
19566 /* @internal */
19567 export function DelayedPaymentOutputDescriptor_read(ser: number): bigint {
19568         if(!isWasmInitialized) {
19569                 throw new Error("initializeWasm() must be awaited first!");
19570         }
19571         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
19572         return nativeResponseValue;
19573 }
19574         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
19575 /* @internal */
19576 export function StaticPaymentOutputDescriptor_free(this_obj: bigint): void {
19577         if(!isWasmInitialized) {
19578                 throw new Error("initializeWasm() must be awaited first!");
19579         }
19580         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
19581         // debug statements here
19582 }
19583         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19584 /* @internal */
19585 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: bigint): bigint {
19586         if(!isWasmInitialized) {
19587                 throw new Error("initializeWasm() must be awaited first!");
19588         }
19589         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
19590         return nativeResponseValue;
19591 }
19592         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
19593 /* @internal */
19594 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: bigint, val: bigint): void {
19595         if(!isWasmInitialized) {
19596                 throw new Error("initializeWasm() must be awaited first!");
19597         }
19598         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
19599         // debug statements here
19600 }
19601         // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19602 /* @internal */
19603 export function StaticPaymentOutputDescriptor_get_output(this_ptr: bigint): bigint {
19604         if(!isWasmInitialized) {
19605                 throw new Error("initializeWasm() must be awaited first!");
19606         }
19607         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_output(this_ptr);
19608         return nativeResponseValue;
19609 }
19610         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
19611 /* @internal */
19612 export function StaticPaymentOutputDescriptor_set_output(this_ptr: bigint, val: bigint): void {
19613         if(!isWasmInitialized) {
19614                 throw new Error("initializeWasm() must be awaited first!");
19615         }
19616         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
19617         // debug statements here
19618 }
19619         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
19620 /* @internal */
19621 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: bigint): number {
19622         if(!isWasmInitialized) {
19623                 throw new Error("initializeWasm() must be awaited first!");
19624         }
19625         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
19626         return nativeResponseValue;
19627 }
19628         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19629 /* @internal */
19630 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: bigint, val: number): void {
19631         if(!isWasmInitialized) {
19632                 throw new Error("initializeWasm() must be awaited first!");
19633         }
19634         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
19635         // debug statements here
19636 }
19637         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
19638 /* @internal */
19639 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: bigint): bigint {
19640         if(!isWasmInitialized) {
19641                 throw new Error("initializeWasm() must be awaited first!");
19642         }
19643         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
19644         return nativeResponseValue;
19645 }
19646         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
19647 /* @internal */
19648 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void {
19649         if(!isWasmInitialized) {
19650                 throw new Error("initializeWasm() must be awaited first!");
19651         }
19652         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
19653         // debug statements here
19654 }
19655         // 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);
19656 /* @internal */
19657 export function StaticPaymentOutputDescriptor_new(outpoint_arg: bigint, output_arg: bigint, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): bigint {
19658         if(!isWasmInitialized) {
19659                 throw new Error("initializeWasm() must be awaited first!");
19660         }
19661         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
19662         return nativeResponseValue;
19663 }
19664         // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
19665 /* @internal */
19666 export function StaticPaymentOutputDescriptor_clone_ptr(arg: bigint): bigint {
19667         if(!isWasmInitialized) {
19668                 throw new Error("initializeWasm() must be awaited first!");
19669         }
19670         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
19671         return nativeResponseValue;
19672 }
19673         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
19674 /* @internal */
19675 export function StaticPaymentOutputDescriptor_clone(orig: bigint): bigint {
19676         if(!isWasmInitialized) {
19677                 throw new Error("initializeWasm() must be awaited first!");
19678         }
19679         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
19680         return nativeResponseValue;
19681 }
19682         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
19683 /* @internal */
19684 export function StaticPaymentOutputDescriptor_write(obj: bigint): number {
19685         if(!isWasmInitialized) {
19686                 throw new Error("initializeWasm() must be awaited first!");
19687         }
19688         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
19689         return nativeResponseValue;
19690 }
19691         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
19692 /* @internal */
19693 export function StaticPaymentOutputDescriptor_read(ser: number): bigint {
19694         if(!isWasmInitialized) {
19695                 throw new Error("initializeWasm() must be awaited first!");
19696         }
19697         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
19698         return nativeResponseValue;
19699 }
19700         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
19701 /* @internal */
19702 export function SpendableOutputDescriptor_free(this_ptr: bigint): void {
19703         if(!isWasmInitialized) {
19704                 throw new Error("initializeWasm() must be awaited first!");
19705         }
19706         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
19707         // debug statements here
19708 }
19709         // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
19710 /* @internal */
19711 export function SpendableOutputDescriptor_clone_ptr(arg: bigint): bigint {
19712         if(!isWasmInitialized) {
19713                 throw new Error("initializeWasm() must be awaited first!");
19714         }
19715         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
19716         return nativeResponseValue;
19717 }
19718         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
19719 /* @internal */
19720 export function SpendableOutputDescriptor_clone(orig: bigint): bigint {
19721         if(!isWasmInitialized) {
19722                 throw new Error("initializeWasm() must be awaited first!");
19723         }
19724         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
19725         return nativeResponseValue;
19726 }
19727         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
19728 /* @internal */
19729 export function SpendableOutputDescriptor_static_output(outpoint: bigint, output: bigint): bigint {
19730         if(!isWasmInitialized) {
19731                 throw new Error("initializeWasm() must be awaited first!");
19732         }
19733         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
19734         return nativeResponseValue;
19735 }
19736         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
19737 /* @internal */
19738 export function SpendableOutputDescriptor_delayed_payment_output(a: bigint): bigint {
19739         if(!isWasmInitialized) {
19740                 throw new Error("initializeWasm() must be awaited first!");
19741         }
19742         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
19743         return nativeResponseValue;
19744 }
19745         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
19746 /* @internal */
19747 export function SpendableOutputDescriptor_static_payment_output(a: bigint): bigint {
19748         if(!isWasmInitialized) {
19749                 throw new Error("initializeWasm() must be awaited first!");
19750         }
19751         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
19752         return nativeResponseValue;
19753 }
19754         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
19755 /* @internal */
19756 export function SpendableOutputDescriptor_write(obj: bigint): number {
19757         if(!isWasmInitialized) {
19758                 throw new Error("initializeWasm() must be awaited first!");
19759         }
19760         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
19761         return nativeResponseValue;
19762 }
19763         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
19764 /* @internal */
19765 export function SpendableOutputDescriptor_read(ser: number): bigint {
19766         if(!isWasmInitialized) {
19767                 throw new Error("initializeWasm() must be awaited first!");
19768         }
19769         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
19770         return nativeResponseValue;
19771 }
19772         // void BaseSign_free(struct LDKBaseSign this_ptr);
19773 /* @internal */
19774 export function BaseSign_free(this_ptr: bigint): void {
19775         if(!isWasmInitialized) {
19776                 throw new Error("initializeWasm() must be awaited first!");
19777         }
19778         const nativeResponseValue = wasm.TS_BaseSign_free(this_ptr);
19779         // debug statements here
19780 }
19781         // uint64_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
19782 /* @internal */
19783 export function Sign_clone_ptr(arg: bigint): bigint {
19784         if(!isWasmInitialized) {
19785                 throw new Error("initializeWasm() must be awaited first!");
19786         }
19787         const nativeResponseValue = wasm.TS_Sign_clone_ptr(arg);
19788         return nativeResponseValue;
19789 }
19790         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
19791 /* @internal */
19792 export function Sign_clone(orig: bigint): bigint {
19793         if(!isWasmInitialized) {
19794                 throw new Error("initializeWasm() must be awaited first!");
19795         }
19796         const nativeResponseValue = wasm.TS_Sign_clone(orig);
19797         return nativeResponseValue;
19798 }
19799         // void Sign_free(struct LDKSign this_ptr);
19800 /* @internal */
19801 export function Sign_free(this_ptr: bigint): void {
19802         if(!isWasmInitialized) {
19803                 throw new Error("initializeWasm() must be awaited first!");
19804         }
19805         const nativeResponseValue = wasm.TS_Sign_free(this_ptr);
19806         // debug statements here
19807 }
19808         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
19809 /* @internal */
19810 export function Recipient_clone(orig: bigint): Recipient {
19811         if(!isWasmInitialized) {
19812                 throw new Error("initializeWasm() must be awaited first!");
19813         }
19814         const nativeResponseValue = wasm.TS_Recipient_clone(orig);
19815         return nativeResponseValue;
19816 }
19817         // enum LDKRecipient Recipient_node(void);
19818 /* @internal */
19819 export function Recipient_node(): Recipient {
19820         if(!isWasmInitialized) {
19821                 throw new Error("initializeWasm() must be awaited first!");
19822         }
19823         const nativeResponseValue = wasm.TS_Recipient_node();
19824         return nativeResponseValue;
19825 }
19826         // enum LDKRecipient Recipient_phantom_node(void);
19827 /* @internal */
19828 export function Recipient_phantom_node(): Recipient {
19829         if(!isWasmInitialized) {
19830                 throw new Error("initializeWasm() must be awaited first!");
19831         }
19832         const nativeResponseValue = wasm.TS_Recipient_phantom_node();
19833         return nativeResponseValue;
19834 }
19835         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
19836 /* @internal */
19837 export function KeysInterface_free(this_ptr: bigint): void {
19838         if(!isWasmInitialized) {
19839                 throw new Error("initializeWasm() must be awaited first!");
19840         }
19841         const nativeResponseValue = wasm.TS_KeysInterface_free(this_ptr);
19842         // debug statements here
19843 }
19844         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
19845 /* @internal */
19846 export function InMemorySigner_free(this_obj: bigint): void {
19847         if(!isWasmInitialized) {
19848                 throw new Error("initializeWasm() must be awaited first!");
19849         }
19850         const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
19851         // debug statements here
19852 }
19853         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
19854 /* @internal */
19855 export function InMemorySigner_get_funding_key(this_ptr: bigint): number {
19856         if(!isWasmInitialized) {
19857                 throw new Error("initializeWasm() must be awaited first!");
19858         }
19859         const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
19860         return nativeResponseValue;
19861 }
19862         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
19863 /* @internal */
19864 export function InMemorySigner_set_funding_key(this_ptr: bigint, val: number): void {
19865         if(!isWasmInitialized) {
19866                 throw new Error("initializeWasm() must be awaited first!");
19867         }
19868         const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
19869         // debug statements here
19870 }
19871         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
19872 /* @internal */
19873 export function InMemorySigner_get_revocation_base_key(this_ptr: bigint): number {
19874         if(!isWasmInitialized) {
19875                 throw new Error("initializeWasm() must be awaited first!");
19876         }
19877         const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
19878         return nativeResponseValue;
19879 }
19880         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
19881 /* @internal */
19882 export function InMemorySigner_set_revocation_base_key(this_ptr: bigint, val: number): void {
19883         if(!isWasmInitialized) {
19884                 throw new Error("initializeWasm() must be awaited first!");
19885         }
19886         const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
19887         // debug statements here
19888 }
19889         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
19890 /* @internal */
19891 export function InMemorySigner_get_payment_key(this_ptr: bigint): number {
19892         if(!isWasmInitialized) {
19893                 throw new Error("initializeWasm() must be awaited first!");
19894         }
19895         const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
19896         return nativeResponseValue;
19897 }
19898         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
19899 /* @internal */
19900 export function InMemorySigner_set_payment_key(this_ptr: bigint, val: number): void {
19901         if(!isWasmInitialized) {
19902                 throw new Error("initializeWasm() must be awaited first!");
19903         }
19904         const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
19905         // debug statements here
19906 }
19907         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
19908 /* @internal */
19909 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: bigint): number {
19910         if(!isWasmInitialized) {
19911                 throw new Error("initializeWasm() must be awaited first!");
19912         }
19913         const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
19914         return nativeResponseValue;
19915 }
19916         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
19917 /* @internal */
19918 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: bigint, val: number): void {
19919         if(!isWasmInitialized) {
19920                 throw new Error("initializeWasm() must be awaited first!");
19921         }
19922         const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
19923         // debug statements here
19924 }
19925         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
19926 /* @internal */
19927 export function InMemorySigner_get_htlc_base_key(this_ptr: bigint): number {
19928         if(!isWasmInitialized) {
19929                 throw new Error("initializeWasm() must be awaited first!");
19930         }
19931         const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
19932         return nativeResponseValue;
19933 }
19934         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
19935 /* @internal */
19936 export function InMemorySigner_set_htlc_base_key(this_ptr: bigint, val: number): void {
19937         if(!isWasmInitialized) {
19938                 throw new Error("initializeWasm() must be awaited first!");
19939         }
19940         const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
19941         // debug statements here
19942 }
19943         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
19944 /* @internal */
19945 export function InMemorySigner_get_commitment_seed(this_ptr: bigint): number {
19946         if(!isWasmInitialized) {
19947                 throw new Error("initializeWasm() must be awaited first!");
19948         }
19949         const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
19950         return nativeResponseValue;
19951 }
19952         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19953 /* @internal */
19954 export function InMemorySigner_set_commitment_seed(this_ptr: bigint, val: number): void {
19955         if(!isWasmInitialized) {
19956                 throw new Error("initializeWasm() must be awaited first!");
19957         }
19958         const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
19959         // debug statements here
19960 }
19961         // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
19962 /* @internal */
19963 export function InMemorySigner_clone_ptr(arg: bigint): bigint {
19964         if(!isWasmInitialized) {
19965                 throw new Error("initializeWasm() must be awaited first!");
19966         }
19967         const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
19968         return nativeResponseValue;
19969 }
19970         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
19971 /* @internal */
19972 export function InMemorySigner_clone(orig: bigint): bigint {
19973         if(!isWasmInitialized) {
19974                 throw new Error("initializeWasm() must be awaited first!");
19975         }
19976         const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
19977         return nativeResponseValue;
19978 }
19979         // 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);
19980 /* @internal */
19981 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): bigint {
19982         if(!isWasmInitialized) {
19983                 throw new Error("initializeWasm() must be awaited first!");
19984         }
19985         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);
19986         return nativeResponseValue;
19987 }
19988         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
19989 /* @internal */
19990 export function InMemorySigner_counterparty_pubkeys(this_arg: bigint): bigint {
19991         if(!isWasmInitialized) {
19992                 throw new Error("initializeWasm() must be awaited first!");
19993         }
19994         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
19995         return nativeResponseValue;
19996 }
19997         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
19998 /* @internal */
19999 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: bigint): number {
20000         if(!isWasmInitialized) {
20001                 throw new Error("initializeWasm() must be awaited first!");
20002         }
20003         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
20004         return nativeResponseValue;
20005 }
20006         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20007 /* @internal */
20008 export function InMemorySigner_holder_selected_contest_delay(this_arg: bigint): number {
20009         if(!isWasmInitialized) {
20010                 throw new Error("initializeWasm() must be awaited first!");
20011         }
20012         const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
20013         return nativeResponseValue;
20014 }
20015         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20016 /* @internal */
20017 export function InMemorySigner_is_outbound(this_arg: bigint): boolean {
20018         if(!isWasmInitialized) {
20019                 throw new Error("initializeWasm() must be awaited first!");
20020         }
20021         const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
20022         return nativeResponseValue;
20023 }
20024         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20025 /* @internal */
20026 export function InMemorySigner_funding_outpoint(this_arg: bigint): bigint {
20027         if(!isWasmInitialized) {
20028                 throw new Error("initializeWasm() must be awaited first!");
20029         }
20030         const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
20031         return nativeResponseValue;
20032 }
20033         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20034 /* @internal */
20035 export function InMemorySigner_get_channel_parameters(this_arg: bigint): bigint {
20036         if(!isWasmInitialized) {
20037                 throw new Error("initializeWasm() must be awaited first!");
20038         }
20039         const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
20040         return nativeResponseValue;
20041 }
20042         // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20043 /* @internal */
20044 export function InMemorySigner_opt_anchors(this_arg: bigint): boolean {
20045         if(!isWasmInitialized) {
20046                 throw new Error("initializeWasm() must be awaited first!");
20047         }
20048         const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
20049         return nativeResponseValue;
20050 }
20051         // 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);
20052 /* @internal */
20053 export function InMemorySigner_sign_counterparty_payment_input(this_arg: bigint, spend_tx: number, input_idx: number, descriptor: bigint): bigint {
20054         if(!isWasmInitialized) {
20055                 throw new Error("initializeWasm() must be awaited first!");
20056         }
20057         const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
20058         return nativeResponseValue;
20059 }
20060         // 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);
20061 /* @internal */
20062 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: bigint, spend_tx: number, input_idx: number, descriptor: bigint): bigint {
20063         if(!isWasmInitialized) {
20064                 throw new Error("initializeWasm() must be awaited first!");
20065         }
20066         const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
20067         return nativeResponseValue;
20068 }
20069         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20070 /* @internal */
20071 export function InMemorySigner_as_BaseSign(this_arg: bigint): bigint {
20072         if(!isWasmInitialized) {
20073                 throw new Error("initializeWasm() must be awaited first!");
20074         }
20075         const nativeResponseValue = wasm.TS_InMemorySigner_as_BaseSign(this_arg);
20076         return nativeResponseValue;
20077 }
20078         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
20079 /* @internal */
20080 export function InMemorySigner_as_Sign(this_arg: bigint): bigint {
20081         if(!isWasmInitialized) {
20082                 throw new Error("initializeWasm() must be awaited first!");
20083         }
20084         const nativeResponseValue = wasm.TS_InMemorySigner_as_Sign(this_arg);
20085         return nativeResponseValue;
20086 }
20087         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
20088 /* @internal */
20089 export function InMemorySigner_write(obj: bigint): number {
20090         if(!isWasmInitialized) {
20091                 throw new Error("initializeWasm() must be awaited first!");
20092         }
20093         const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
20094         return nativeResponseValue;
20095 }
20096         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
20097 /* @internal */
20098 export function InMemorySigner_read(ser: number, arg: number): bigint {
20099         if(!isWasmInitialized) {
20100                 throw new Error("initializeWasm() must be awaited first!");
20101         }
20102         const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
20103         return nativeResponseValue;
20104 }
20105         // void KeysManager_free(struct LDKKeysManager this_obj);
20106 /* @internal */
20107 export function KeysManager_free(this_obj: bigint): void {
20108         if(!isWasmInitialized) {
20109                 throw new Error("initializeWasm() must be awaited first!");
20110         }
20111         const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
20112         // debug statements here
20113 }
20114         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
20115 /* @internal */
20116 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): bigint {
20117         if(!isWasmInitialized) {
20118                 throw new Error("initializeWasm() must be awaited first!");
20119         }
20120         const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
20121         return nativeResponseValue;
20122 }
20123         // 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]);
20124 /* @internal */
20125 export function KeysManager_derive_channel_keys(this_arg: bigint, channel_value_satoshis: bigint, params: number): bigint {
20126         if(!isWasmInitialized) {
20127                 throw new Error("initializeWasm() must be awaited first!");
20128         }
20129         const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
20130         return nativeResponseValue;
20131 }
20132         // 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);
20133 /* @internal */
20134 export function KeysManager_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): bigint {
20135         if(!isWasmInitialized) {
20136                 throw new Error("initializeWasm() must be awaited first!");
20137         }
20138         const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
20139         return nativeResponseValue;
20140 }
20141         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
20142 /* @internal */
20143 export function KeysManager_as_KeysInterface(this_arg: bigint): bigint {
20144         if(!isWasmInitialized) {
20145                 throw new Error("initializeWasm() must be awaited first!");
20146         }
20147         const nativeResponseValue = wasm.TS_KeysManager_as_KeysInterface(this_arg);
20148         return nativeResponseValue;
20149 }
20150         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
20151 /* @internal */
20152 export function PhantomKeysManager_free(this_obj: bigint): void {
20153         if(!isWasmInitialized) {
20154                 throw new Error("initializeWasm() must be awaited first!");
20155         }
20156         const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
20157         // debug statements here
20158 }
20159         // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
20160 /* @internal */
20161 export function PhantomKeysManager_as_KeysInterface(this_arg: bigint): bigint {
20162         if(!isWasmInitialized) {
20163                 throw new Error("initializeWasm() must be awaited first!");
20164         }
20165         const nativeResponseValue = wasm.TS_PhantomKeysManager_as_KeysInterface(this_arg);
20166         return nativeResponseValue;
20167 }
20168         // 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]);
20169 /* @internal */
20170 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): bigint {
20171         if(!isWasmInitialized) {
20172                 throw new Error("initializeWasm() must be awaited first!");
20173         }
20174         const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
20175         return nativeResponseValue;
20176 }
20177         // 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);
20178 /* @internal */
20179 export function PhantomKeysManager_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): bigint {
20180         if(!isWasmInitialized) {
20181                 throw new Error("initializeWasm() must be awaited first!");
20182         }
20183         const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
20184         return nativeResponseValue;
20185 }
20186         // 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]);
20187 /* @internal */
20188 export function PhantomKeysManager_derive_channel_keys(this_arg: bigint, channel_value_satoshis: bigint, params: number): bigint {
20189         if(!isWasmInitialized) {
20190                 throw new Error("initializeWasm() must be awaited first!");
20191         }
20192         const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
20193         return nativeResponseValue;
20194 }
20195         // void ChannelManager_free(struct LDKChannelManager this_obj);
20196 /* @internal */
20197 export function ChannelManager_free(this_obj: bigint): void {
20198         if(!isWasmInitialized) {
20199                 throw new Error("initializeWasm() must be awaited first!");
20200         }
20201         const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
20202         // debug statements here
20203 }
20204         // void ChainParameters_free(struct LDKChainParameters this_obj);
20205 /* @internal */
20206 export function ChainParameters_free(this_obj: bigint): void {
20207         if(!isWasmInitialized) {
20208                 throw new Error("initializeWasm() must be awaited first!");
20209         }
20210         const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
20211         // debug statements here
20212 }
20213         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
20214 /* @internal */
20215 export function ChainParameters_get_network(this_ptr: bigint): Network {
20216         if(!isWasmInitialized) {
20217                 throw new Error("initializeWasm() must be awaited first!");
20218         }
20219         const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
20220         return nativeResponseValue;
20221 }
20222         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
20223 /* @internal */
20224 export function ChainParameters_set_network(this_ptr: bigint, val: Network): void {
20225         if(!isWasmInitialized) {
20226                 throw new Error("initializeWasm() must be awaited first!");
20227         }
20228         const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
20229         // debug statements here
20230 }
20231         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
20232 /* @internal */
20233 export function ChainParameters_get_best_block(this_ptr: bigint): bigint {
20234         if(!isWasmInitialized) {
20235                 throw new Error("initializeWasm() must be awaited first!");
20236         }
20237         const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
20238         return nativeResponseValue;
20239 }
20240         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
20241 /* @internal */
20242 export function ChainParameters_set_best_block(this_ptr: bigint, val: bigint): void {
20243         if(!isWasmInitialized) {
20244                 throw new Error("initializeWasm() must be awaited first!");
20245         }
20246         const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
20247         // debug statements here
20248 }
20249         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
20250 /* @internal */
20251 export function ChainParameters_new(network_arg: Network, best_block_arg: bigint): bigint {
20252         if(!isWasmInitialized) {
20253                 throw new Error("initializeWasm() must be awaited first!");
20254         }
20255         const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
20256         return nativeResponseValue;
20257 }
20258         // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
20259 /* @internal */
20260 export function ChainParameters_clone_ptr(arg: bigint): bigint {
20261         if(!isWasmInitialized) {
20262                 throw new Error("initializeWasm() must be awaited first!");
20263         }
20264         const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
20265         return nativeResponseValue;
20266 }
20267         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
20268 /* @internal */
20269 export function ChainParameters_clone(orig: bigint): bigint {
20270         if(!isWasmInitialized) {
20271                 throw new Error("initializeWasm() must be awaited first!");
20272         }
20273         const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
20274         return nativeResponseValue;
20275 }
20276         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
20277 /* @internal */
20278 export function CounterpartyForwardingInfo_free(this_obj: bigint): void {
20279         if(!isWasmInitialized) {
20280                 throw new Error("initializeWasm() must be awaited first!");
20281         }
20282         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
20283         // debug statements here
20284 }
20285         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
20286 /* @internal */
20287 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: bigint): number {
20288         if(!isWasmInitialized) {
20289                 throw new Error("initializeWasm() must be awaited first!");
20290         }
20291         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
20292         return nativeResponseValue;
20293 }
20294         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
20295 /* @internal */
20296 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: bigint, val: number): void {
20297         if(!isWasmInitialized) {
20298                 throw new Error("initializeWasm() must be awaited first!");
20299         }
20300         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
20301         // debug statements here
20302 }
20303         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
20304 /* @internal */
20305 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: bigint): number {
20306         if(!isWasmInitialized) {
20307                 throw new Error("initializeWasm() must be awaited first!");
20308         }
20309         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
20310         return nativeResponseValue;
20311 }
20312         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
20313 /* @internal */
20314 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: bigint, val: number): void {
20315         if(!isWasmInitialized) {
20316                 throw new Error("initializeWasm() must be awaited first!");
20317         }
20318         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
20319         // debug statements here
20320 }
20321         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
20322 /* @internal */
20323 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: bigint): number {
20324         if(!isWasmInitialized) {
20325                 throw new Error("initializeWasm() must be awaited first!");
20326         }
20327         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
20328         return nativeResponseValue;
20329 }
20330         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
20331 /* @internal */
20332 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
20333         if(!isWasmInitialized) {
20334                 throw new Error("initializeWasm() must be awaited first!");
20335         }
20336         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
20337         // debug statements here
20338 }
20339         // 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);
20340 /* @internal */
20341 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): bigint {
20342         if(!isWasmInitialized) {
20343                 throw new Error("initializeWasm() must be awaited first!");
20344         }
20345         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
20346         return nativeResponseValue;
20347 }
20348         // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
20349 /* @internal */
20350 export function CounterpartyForwardingInfo_clone_ptr(arg: bigint): bigint {
20351         if(!isWasmInitialized) {
20352                 throw new Error("initializeWasm() must be awaited first!");
20353         }
20354         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
20355         return nativeResponseValue;
20356 }
20357         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
20358 /* @internal */
20359 export function CounterpartyForwardingInfo_clone(orig: bigint): bigint {
20360         if(!isWasmInitialized) {
20361                 throw new Error("initializeWasm() must be awaited first!");
20362         }
20363         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
20364         return nativeResponseValue;
20365 }
20366         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
20367 /* @internal */
20368 export function ChannelCounterparty_free(this_obj: bigint): void {
20369         if(!isWasmInitialized) {
20370                 throw new Error("initializeWasm() must be awaited first!");
20371         }
20372         const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
20373         // debug statements here
20374 }
20375         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
20376 /* @internal */
20377 export function ChannelCounterparty_get_node_id(this_ptr: bigint): number {
20378         if(!isWasmInitialized) {
20379                 throw new Error("initializeWasm() must be awaited first!");
20380         }
20381         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
20382         return nativeResponseValue;
20383 }
20384         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20385 /* @internal */
20386 export function ChannelCounterparty_set_node_id(this_ptr: bigint, val: number): void {
20387         if(!isWasmInitialized) {
20388                 throw new Error("initializeWasm() must be awaited first!");
20389         }
20390         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
20391         // debug statements here
20392 }
20393         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
20394 /* @internal */
20395 export function ChannelCounterparty_get_features(this_ptr: bigint): bigint {
20396         if(!isWasmInitialized) {
20397                 throw new Error("initializeWasm() must be awaited first!");
20398         }
20399         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
20400         return nativeResponseValue;
20401 }
20402         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
20403 /* @internal */
20404 export function ChannelCounterparty_set_features(this_ptr: bigint, val: bigint): void {
20405         if(!isWasmInitialized) {
20406                 throw new Error("initializeWasm() must be awaited first!");
20407         }
20408         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
20409         // debug statements here
20410 }
20411         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
20412 /* @internal */
20413 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: bigint): bigint {
20414         if(!isWasmInitialized) {
20415                 throw new Error("initializeWasm() must be awaited first!");
20416         }
20417         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
20418         return nativeResponseValue;
20419 }
20420         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
20421 /* @internal */
20422 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void {
20423         if(!isWasmInitialized) {
20424                 throw new Error("initializeWasm() must be awaited first!");
20425         }
20426         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
20427         // debug statements here
20428 }
20429         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
20430 /* @internal */
20431 export function ChannelCounterparty_get_forwarding_info(this_ptr: bigint): bigint {
20432         if(!isWasmInitialized) {
20433                 throw new Error("initializeWasm() must be awaited first!");
20434         }
20435         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
20436         return nativeResponseValue;
20437 }
20438         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
20439 /* @internal */
20440 export function ChannelCounterparty_set_forwarding_info(this_ptr: bigint, val: bigint): void {
20441         if(!isWasmInitialized) {
20442                 throw new Error("initializeWasm() must be awaited first!");
20443         }
20444         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
20445         // debug statements here
20446 }
20447         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
20448 /* @internal */
20449 export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: bigint): bigint {
20450         if(!isWasmInitialized) {
20451                 throw new Error("initializeWasm() must be awaited first!");
20452         }
20453         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr);
20454         return nativeResponseValue;
20455 }
20456         // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20457 /* @internal */
20458 export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
20459         if(!isWasmInitialized) {
20460                 throw new Error("initializeWasm() must be awaited first!");
20461         }
20462         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val);
20463         // debug statements here
20464 }
20465         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
20466 /* @internal */
20467 export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: bigint): bigint {
20468         if(!isWasmInitialized) {
20469                 throw new Error("initializeWasm() must be awaited first!");
20470         }
20471         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr);
20472         return nativeResponseValue;
20473 }
20474         // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20475 /* @internal */
20476 export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
20477         if(!isWasmInitialized) {
20478                 throw new Error("initializeWasm() must be awaited first!");
20479         }
20480         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val);
20481         // debug statements here
20482 }
20483         // 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);
20484 /* @internal */
20485 export function ChannelCounterparty_new(node_id_arg: number, features_arg: bigint, unspendable_punishment_reserve_arg: bigint, forwarding_info_arg: bigint, outbound_htlc_minimum_msat_arg: bigint, outbound_htlc_maximum_msat_arg: bigint): bigint {
20486         if(!isWasmInitialized) {
20487                 throw new Error("initializeWasm() must be awaited first!");
20488         }
20489         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);
20490         return nativeResponseValue;
20491 }
20492         // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
20493 /* @internal */
20494 export function ChannelCounterparty_clone_ptr(arg: bigint): bigint {
20495         if(!isWasmInitialized) {
20496                 throw new Error("initializeWasm() must be awaited first!");
20497         }
20498         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
20499         return nativeResponseValue;
20500 }
20501         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
20502 /* @internal */
20503 export function ChannelCounterparty_clone(orig: bigint): bigint {
20504         if(!isWasmInitialized) {
20505                 throw new Error("initializeWasm() must be awaited first!");
20506         }
20507         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
20508         return nativeResponseValue;
20509 }
20510         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
20511 /* @internal */
20512 export function ChannelDetails_free(this_obj: bigint): void {
20513         if(!isWasmInitialized) {
20514                 throw new Error("initializeWasm() must be awaited first!");
20515         }
20516         const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
20517         // debug statements here
20518 }
20519         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
20520 /* @internal */
20521 export function ChannelDetails_get_channel_id(this_ptr: bigint): number {
20522         if(!isWasmInitialized) {
20523                 throw new Error("initializeWasm() must be awaited first!");
20524         }
20525         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
20526         return nativeResponseValue;
20527 }
20528         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20529 /* @internal */
20530 export function ChannelDetails_set_channel_id(this_ptr: bigint, val: number): void {
20531         if(!isWasmInitialized) {
20532                 throw new Error("initializeWasm() must be awaited first!");
20533         }
20534         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
20535         // debug statements here
20536 }
20537         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20538 /* @internal */
20539 export function ChannelDetails_get_counterparty(this_ptr: bigint): bigint {
20540         if(!isWasmInitialized) {
20541                 throw new Error("initializeWasm() must be awaited first!");
20542         }
20543         const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
20544         return nativeResponseValue;
20545 }
20546         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
20547 /* @internal */
20548 export function ChannelDetails_set_counterparty(this_ptr: bigint, val: bigint): void {
20549         if(!isWasmInitialized) {
20550                 throw new Error("initializeWasm() must be awaited first!");
20551         }
20552         const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
20553         // debug statements here
20554 }
20555         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20556 /* @internal */
20557 export function ChannelDetails_get_funding_txo(this_ptr: bigint): bigint {
20558         if(!isWasmInitialized) {
20559                 throw new Error("initializeWasm() must be awaited first!");
20560         }
20561         const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
20562         return nativeResponseValue;
20563 }
20564         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
20565 /* @internal */
20566 export function ChannelDetails_set_funding_txo(this_ptr: bigint, val: bigint): void {
20567         if(!isWasmInitialized) {
20568                 throw new Error("initializeWasm() must be awaited first!");
20569         }
20570         const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
20571         // debug statements here
20572 }
20573         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20574 /* @internal */
20575 export function ChannelDetails_get_channel_type(this_ptr: bigint): bigint {
20576         if(!isWasmInitialized) {
20577                 throw new Error("initializeWasm() must be awaited first!");
20578         }
20579         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr);
20580         return nativeResponseValue;
20581 }
20582         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
20583 /* @internal */
20584 export function ChannelDetails_set_channel_type(this_ptr: bigint, val: bigint): void {
20585         if(!isWasmInitialized) {
20586                 throw new Error("initializeWasm() must be awaited first!");
20587         }
20588         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val);
20589         // debug statements here
20590 }
20591         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20592 /* @internal */
20593 export function ChannelDetails_get_short_channel_id(this_ptr: bigint): bigint {
20594         if(!isWasmInitialized) {
20595                 throw new Error("initializeWasm() must be awaited first!");
20596         }
20597         const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
20598         return nativeResponseValue;
20599 }
20600         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20601 /* @internal */
20602 export function ChannelDetails_set_short_channel_id(this_ptr: bigint, val: bigint): void {
20603         if(!isWasmInitialized) {
20604                 throw new Error("initializeWasm() must be awaited first!");
20605         }
20606         const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
20607         // debug statements here
20608 }
20609         // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20610 /* @internal */
20611 export function ChannelDetails_get_outbound_scid_alias(this_ptr: bigint): bigint {
20612         if(!isWasmInitialized) {
20613                 throw new Error("initializeWasm() must be awaited first!");
20614         }
20615         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr);
20616         return nativeResponseValue;
20617 }
20618         // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20619 /* @internal */
20620 export function ChannelDetails_set_outbound_scid_alias(this_ptr: bigint, val: bigint): void {
20621         if(!isWasmInitialized) {
20622                 throw new Error("initializeWasm() must be awaited first!");
20623         }
20624         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val);
20625         // debug statements here
20626 }
20627         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20628 /* @internal */
20629 export function ChannelDetails_get_inbound_scid_alias(this_ptr: bigint): bigint {
20630         if(!isWasmInitialized) {
20631                 throw new Error("initializeWasm() must be awaited first!");
20632         }
20633         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr);
20634         return nativeResponseValue;
20635 }
20636         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20637 /* @internal */
20638 export function ChannelDetails_set_inbound_scid_alias(this_ptr: bigint, val: bigint): void {
20639         if(!isWasmInitialized) {
20640                 throw new Error("initializeWasm() must be awaited first!");
20641         }
20642         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val);
20643         // debug statements here
20644 }
20645         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20646 /* @internal */
20647 export function ChannelDetails_get_channel_value_satoshis(this_ptr: bigint): bigint {
20648         if(!isWasmInitialized) {
20649                 throw new Error("initializeWasm() must be awaited first!");
20650         }
20651         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
20652         return nativeResponseValue;
20653 }
20654         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
20655 /* @internal */
20656 export function ChannelDetails_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void {
20657         if(!isWasmInitialized) {
20658                 throw new Error("initializeWasm() must be awaited first!");
20659         }
20660         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
20661         // debug statements here
20662 }
20663         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20664 /* @internal */
20665 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: bigint): bigint {
20666         if(!isWasmInitialized) {
20667                 throw new Error("initializeWasm() must be awaited first!");
20668         }
20669         const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
20670         return nativeResponseValue;
20671 }
20672         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20673 /* @internal */
20674 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void {
20675         if(!isWasmInitialized) {
20676                 throw new Error("initializeWasm() must be awaited first!");
20677         }
20678         const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
20679         // debug statements here
20680 }
20681         // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20682 /* @internal */
20683 export function ChannelDetails_get_user_channel_id(this_ptr: bigint): bigint {
20684         if(!isWasmInitialized) {
20685                 throw new Error("initializeWasm() must be awaited first!");
20686         }
20687         const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
20688         return nativeResponseValue;
20689 }
20690         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
20691 /* @internal */
20692 export function ChannelDetails_set_user_channel_id(this_ptr: bigint, val: bigint): void {
20693         if(!isWasmInitialized) {
20694                 throw new Error("initializeWasm() must be awaited first!");
20695         }
20696         const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
20697         // debug statements here
20698 }
20699         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20700 /* @internal */
20701 export function ChannelDetails_get_balance_msat(this_ptr: bigint): bigint {
20702         if(!isWasmInitialized) {
20703                 throw new Error("initializeWasm() must be awaited first!");
20704         }
20705         const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
20706         return nativeResponseValue;
20707 }
20708         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
20709 /* @internal */
20710 export function ChannelDetails_set_balance_msat(this_ptr: bigint, val: bigint): void {
20711         if(!isWasmInitialized) {
20712                 throw new Error("initializeWasm() must be awaited first!");
20713         }
20714         const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
20715         // debug statements here
20716 }
20717         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20718 /* @internal */
20719 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: bigint): bigint {
20720         if(!isWasmInitialized) {
20721                 throw new Error("initializeWasm() must be awaited first!");
20722         }
20723         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
20724         return nativeResponseValue;
20725 }
20726         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
20727 /* @internal */
20728 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: bigint, val: bigint): void {
20729         if(!isWasmInitialized) {
20730                 throw new Error("initializeWasm() must be awaited first!");
20731         }
20732         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
20733         // debug statements here
20734 }
20735         // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20736 /* @internal */
20737 export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: bigint): bigint {
20738         if(!isWasmInitialized) {
20739                 throw new Error("initializeWasm() must be awaited first!");
20740         }
20741         const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr);
20742         return nativeResponseValue;
20743 }
20744         // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
20745 /* @internal */
20746 export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: bigint, val: bigint): void {
20747         if(!isWasmInitialized) {
20748                 throw new Error("initializeWasm() must be awaited first!");
20749         }
20750         const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val);
20751         // debug statements here
20752 }
20753         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20754 /* @internal */
20755 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: bigint): bigint {
20756         if(!isWasmInitialized) {
20757                 throw new Error("initializeWasm() must be awaited first!");
20758         }
20759         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
20760         return nativeResponseValue;
20761 }
20762         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
20763 /* @internal */
20764 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: bigint, val: bigint): void {
20765         if(!isWasmInitialized) {
20766                 throw new Error("initializeWasm() must be awaited first!");
20767         }
20768         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
20769         // debug statements here
20770 }
20771         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20772 /* @internal */
20773 export function ChannelDetails_get_confirmations_required(this_ptr: bigint): bigint {
20774         if(!isWasmInitialized) {
20775                 throw new Error("initializeWasm() must be awaited first!");
20776         }
20777         const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
20778         return nativeResponseValue;
20779 }
20780         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
20781 /* @internal */
20782 export function ChannelDetails_set_confirmations_required(this_ptr: bigint, val: bigint): void {
20783         if(!isWasmInitialized) {
20784                 throw new Error("initializeWasm() must be awaited first!");
20785         }
20786         const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
20787         // debug statements here
20788 }
20789         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20790 /* @internal */
20791 export function ChannelDetails_get_force_close_spend_delay(this_ptr: bigint): bigint {
20792         if(!isWasmInitialized) {
20793                 throw new Error("initializeWasm() must be awaited first!");
20794         }
20795         const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
20796         return nativeResponseValue;
20797 }
20798         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
20799 /* @internal */
20800 export function ChannelDetails_set_force_close_spend_delay(this_ptr: bigint, val: bigint): void {
20801         if(!isWasmInitialized) {
20802                 throw new Error("initializeWasm() must be awaited first!");
20803         }
20804         const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
20805         // debug statements here
20806 }
20807         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20808 /* @internal */
20809 export function ChannelDetails_get_is_outbound(this_ptr: bigint): boolean {
20810         if(!isWasmInitialized) {
20811                 throw new Error("initializeWasm() must be awaited first!");
20812         }
20813         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
20814         return nativeResponseValue;
20815 }
20816         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
20817 /* @internal */
20818 export function ChannelDetails_set_is_outbound(this_ptr: bigint, val: boolean): void {
20819         if(!isWasmInitialized) {
20820                 throw new Error("initializeWasm() must be awaited first!");
20821         }
20822         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
20823         // debug statements here
20824 }
20825         // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20826 /* @internal */
20827 export function ChannelDetails_get_is_channel_ready(this_ptr: bigint): boolean {
20828         if(!isWasmInitialized) {
20829                 throw new Error("initializeWasm() must be awaited first!");
20830         }
20831         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr);
20832         return nativeResponseValue;
20833 }
20834         // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
20835 /* @internal */
20836 export function ChannelDetails_set_is_channel_ready(this_ptr: bigint, val: boolean): void {
20837         if(!isWasmInitialized) {
20838                 throw new Error("initializeWasm() must be awaited first!");
20839         }
20840         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val);
20841         // debug statements here
20842 }
20843         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20844 /* @internal */
20845 export function ChannelDetails_get_is_usable(this_ptr: bigint): boolean {
20846         if(!isWasmInitialized) {
20847                 throw new Error("initializeWasm() must be awaited first!");
20848         }
20849         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
20850         return nativeResponseValue;
20851 }
20852         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
20853 /* @internal */
20854 export function ChannelDetails_set_is_usable(this_ptr: bigint, val: boolean): void {
20855         if(!isWasmInitialized) {
20856                 throw new Error("initializeWasm() must be awaited first!");
20857         }
20858         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
20859         // debug statements here
20860 }
20861         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20862 /* @internal */
20863 export function ChannelDetails_get_is_public(this_ptr: bigint): boolean {
20864         if(!isWasmInitialized) {
20865                 throw new Error("initializeWasm() must be awaited first!");
20866         }
20867         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
20868         return nativeResponseValue;
20869 }
20870         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
20871 /* @internal */
20872 export function ChannelDetails_set_is_public(this_ptr: bigint, val: boolean): void {
20873         if(!isWasmInitialized) {
20874                 throw new Error("initializeWasm() must be awaited first!");
20875         }
20876         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
20877         // debug statements here
20878 }
20879         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20880 /* @internal */
20881 export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: bigint): bigint {
20882         if(!isWasmInitialized) {
20883                 throw new Error("initializeWasm() must be awaited first!");
20884         }
20885         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr);
20886         return nativeResponseValue;
20887 }
20888         // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20889 /* @internal */
20890 export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
20891         if(!isWasmInitialized) {
20892                 throw new Error("initializeWasm() must be awaited first!");
20893         }
20894         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val);
20895         // debug statements here
20896 }
20897         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20898 /* @internal */
20899 export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: bigint): bigint {
20900         if(!isWasmInitialized) {
20901                 throw new Error("initializeWasm() must be awaited first!");
20902         }
20903         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr);
20904         return nativeResponseValue;
20905 }
20906         // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20907 /* @internal */
20908 export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
20909         if(!isWasmInitialized) {
20910                 throw new Error("initializeWasm() must be awaited first!");
20911         }
20912         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val);
20913         // debug statements here
20914 }
20915         // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
20916 /* @internal */
20917 export function ChannelDetails_get_config(this_ptr: bigint): bigint {
20918         if(!isWasmInitialized) {
20919                 throw new Error("initializeWasm() must be awaited first!");
20920         }
20921         const nativeResponseValue = wasm.TS_ChannelDetails_get_config(this_ptr);
20922         return nativeResponseValue;
20923 }
20924         // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
20925 /* @internal */
20926 export function ChannelDetails_set_config(this_ptr: bigint, val: bigint): void {
20927         if(!isWasmInitialized) {
20928                 throw new Error("initializeWasm() must be awaited first!");
20929         }
20930         const nativeResponseValue = wasm.TS_ChannelDetails_set_config(this_ptr, val);
20931         // debug statements here
20932 }
20933         // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, uint64_t user_channel_id_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg);
20934 /* @internal */
20935 export function ChannelDetails_new(channel_id_arg: number, counterparty_arg: bigint, funding_txo_arg: bigint, channel_type_arg: bigint, short_channel_id_arg: bigint, outbound_scid_alias_arg: bigint, inbound_scid_alias_arg: bigint, channel_value_satoshis_arg: bigint, unspendable_punishment_reserve_arg: bigint, 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: bigint, force_close_spend_delay_arg: bigint, is_outbound_arg: boolean, is_channel_ready_arg: boolean, is_usable_arg: boolean, is_public_arg: boolean, inbound_htlc_minimum_msat_arg: bigint, inbound_htlc_maximum_msat_arg: bigint, config_arg: bigint): bigint {
20936         if(!isWasmInitialized) {
20937                 throw new Error("initializeWasm() must be awaited first!");
20938         }
20939         const nativeResponseValue = wasm.TS_ChannelDetails_new(channel_id_arg, counterparty_arg, funding_txo_arg, channel_type_arg, short_channel_id_arg, outbound_scid_alias_arg, inbound_scid_alias_arg, channel_value_satoshis_arg, unspendable_punishment_reserve_arg, user_channel_id_arg, balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg, force_close_spend_delay_arg, is_outbound_arg, is_channel_ready_arg, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg, inbound_htlc_maximum_msat_arg, config_arg);
20940         return nativeResponseValue;
20941 }
20942         // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
20943 /* @internal */
20944 export function ChannelDetails_clone_ptr(arg: bigint): bigint {
20945         if(!isWasmInitialized) {
20946                 throw new Error("initializeWasm() must be awaited first!");
20947         }
20948         const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
20949         return nativeResponseValue;
20950 }
20951         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
20952 /* @internal */
20953 export function ChannelDetails_clone(orig: bigint): bigint {
20954         if(!isWasmInitialized) {
20955                 throw new Error("initializeWasm() must be awaited first!");
20956         }
20957         const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
20958         return nativeResponseValue;
20959 }
20960         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
20961 /* @internal */
20962 export function ChannelDetails_get_inbound_payment_scid(this_arg: bigint): bigint {
20963         if(!isWasmInitialized) {
20964                 throw new Error("initializeWasm() must be awaited first!");
20965         }
20966         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg);
20967         return nativeResponseValue;
20968 }
20969         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
20970 /* @internal */
20971 export function ChannelDetails_get_outbound_payment_scid(this_arg: bigint): bigint {
20972         if(!isWasmInitialized) {
20973                 throw new Error("initializeWasm() must be awaited first!");
20974         }
20975         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg);
20976         return nativeResponseValue;
20977 }
20978         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
20979 /* @internal */
20980 export function PaymentSendFailure_free(this_ptr: bigint): void {
20981         if(!isWasmInitialized) {
20982                 throw new Error("initializeWasm() must be awaited first!");
20983         }
20984         const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
20985         // debug statements here
20986 }
20987         // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
20988 /* @internal */
20989 export function PaymentSendFailure_clone_ptr(arg: bigint): bigint {
20990         if(!isWasmInitialized) {
20991                 throw new Error("initializeWasm() must be awaited first!");
20992         }
20993         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
20994         return nativeResponseValue;
20995 }
20996         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
20997 /* @internal */
20998 export function PaymentSendFailure_clone(orig: bigint): bigint {
20999         if(!isWasmInitialized) {
21000                 throw new Error("initializeWasm() must be awaited first!");
21001         }
21002         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
21003         return nativeResponseValue;
21004 }
21005         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
21006 /* @internal */
21007 export function PaymentSendFailure_parameter_error(a: bigint): bigint {
21008         if(!isWasmInitialized) {
21009                 throw new Error("initializeWasm() must be awaited first!");
21010         }
21011         const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
21012         return nativeResponseValue;
21013 }
21014         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
21015 /* @internal */
21016 export function PaymentSendFailure_path_parameter_error(a: number): bigint {
21017         if(!isWasmInitialized) {
21018                 throw new Error("initializeWasm() must be awaited first!");
21019         }
21020         const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
21021         return nativeResponseValue;
21022 }
21023         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
21024 /* @internal */
21025 export function PaymentSendFailure_all_failed_retry_safe(a: number): bigint {
21026         if(!isWasmInitialized) {
21027                 throw new Error("initializeWasm() must be awaited first!");
21028         }
21029         const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_retry_safe(a);
21030         return nativeResponseValue;
21031 }
21032         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
21033 /* @internal */
21034 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: bigint, payment_id: number): bigint {
21035         if(!isWasmInitialized) {
21036                 throw new Error("initializeWasm() must be awaited first!");
21037         }
21038         const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
21039         return nativeResponseValue;
21040 }
21041         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
21042 /* @internal */
21043 export function PhantomRouteHints_free(this_obj: bigint): void {
21044         if(!isWasmInitialized) {
21045                 throw new Error("initializeWasm() must be awaited first!");
21046         }
21047         const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
21048         // debug statements here
21049 }
21050         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
21051 /* @internal */
21052 export function PhantomRouteHints_get_channels(this_ptr: bigint): number {
21053         if(!isWasmInitialized) {
21054                 throw new Error("initializeWasm() must be awaited first!");
21055         }
21056         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
21057         return nativeResponseValue;
21058 }
21059         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
21060 /* @internal */
21061 export function PhantomRouteHints_set_channels(this_ptr: bigint, val: number): void {
21062         if(!isWasmInitialized) {
21063                 throw new Error("initializeWasm() must be awaited first!");
21064         }
21065         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
21066         // debug statements here
21067 }
21068         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
21069 /* @internal */
21070 export function PhantomRouteHints_get_phantom_scid(this_ptr: bigint): bigint {
21071         if(!isWasmInitialized) {
21072                 throw new Error("initializeWasm() must be awaited first!");
21073         }
21074         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
21075         return nativeResponseValue;
21076 }
21077         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
21078 /* @internal */
21079 export function PhantomRouteHints_set_phantom_scid(this_ptr: bigint, val: bigint): void {
21080         if(!isWasmInitialized) {
21081                 throw new Error("initializeWasm() must be awaited first!");
21082         }
21083         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
21084         // debug statements here
21085 }
21086         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
21087 /* @internal */
21088 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: bigint): number {
21089         if(!isWasmInitialized) {
21090                 throw new Error("initializeWasm() must be awaited first!");
21091         }
21092         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
21093         return nativeResponseValue;
21094 }
21095         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21096 /* @internal */
21097 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: bigint, val: number): void {
21098         if(!isWasmInitialized) {
21099                 throw new Error("initializeWasm() must be awaited first!");
21100         }
21101         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
21102         // debug statements here
21103 }
21104         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
21105 /* @internal */
21106 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): bigint {
21107         if(!isWasmInitialized) {
21108                 throw new Error("initializeWasm() must be awaited first!");
21109         }
21110         const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
21111         return nativeResponseValue;
21112 }
21113         // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
21114 /* @internal */
21115 export function PhantomRouteHints_clone_ptr(arg: bigint): bigint {
21116         if(!isWasmInitialized) {
21117                 throw new Error("initializeWasm() must be awaited first!");
21118         }
21119         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
21120         return nativeResponseValue;
21121 }
21122         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
21123 /* @internal */
21124 export function PhantomRouteHints_clone(orig: bigint): bigint {
21125         if(!isWasmInitialized) {
21126                 throw new Error("initializeWasm() must be awaited first!");
21127         }
21128         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
21129         return nativeResponseValue;
21130 }
21131         // 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);
21132 /* @internal */
21133 export function ChannelManager_new(fee_est: bigint, chain_monitor: bigint, tx_broadcaster: bigint, logger: bigint, keys_manager: bigint, config: bigint, params: bigint): bigint {
21134         if(!isWasmInitialized) {
21135                 throw new Error("initializeWasm() must be awaited first!");
21136         }
21137         const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, logger, keys_manager, config, params);
21138         return nativeResponseValue;
21139 }
21140         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
21141 /* @internal */
21142 export function ChannelManager_get_current_default_configuration(this_arg: bigint): bigint {
21143         if(!isWasmInitialized) {
21144                 throw new Error("initializeWasm() must be awaited first!");
21145         }
21146         const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
21147         return nativeResponseValue;
21148 }
21149         // 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);
21150 /* @internal */
21151 export function ChannelManager_create_channel(this_arg: bigint, their_network_key: number, channel_value_satoshis: bigint, push_msat: bigint, user_channel_id: bigint, override_config: bigint): bigint {
21152         if(!isWasmInitialized) {
21153                 throw new Error("initializeWasm() must be awaited first!");
21154         }
21155         const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
21156         return nativeResponseValue;
21157 }
21158         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
21159 /* @internal */
21160 export function ChannelManager_list_channels(this_arg: bigint): number {
21161         if(!isWasmInitialized) {
21162                 throw new Error("initializeWasm() must be awaited first!");
21163         }
21164         const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
21165         return nativeResponseValue;
21166 }
21167         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
21168 /* @internal */
21169 export function ChannelManager_list_usable_channels(this_arg: bigint): number {
21170         if(!isWasmInitialized) {
21171                 throw new Error("initializeWasm() must be awaited first!");
21172         }
21173         const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
21174         return nativeResponseValue;
21175 }
21176         // 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);
21177 /* @internal */
21178 export function ChannelManager_close_channel(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint {
21179         if(!isWasmInitialized) {
21180                 throw new Error("initializeWasm() must be awaited first!");
21181         }
21182         const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id);
21183         return nativeResponseValue;
21184 }
21185         // 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);
21186 /* @internal */
21187 export function ChannelManager_close_channel_with_target_feerate(this_arg: bigint, channel_id: number, counterparty_node_id: number, target_feerate_sats_per_1000_weight: number): bigint {
21188         if(!isWasmInitialized) {
21189                 throw new Error("initializeWasm() must be awaited first!");
21190         }
21191         const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight);
21192         return nativeResponseValue;
21193 }
21194         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
21195 /* @internal */
21196 export function ChannelManager_force_close_broadcasting_latest_txn(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint {
21197         if(!isWasmInitialized) {
21198                 throw new Error("initializeWasm() must be awaited first!");
21199         }
21200         const nativeResponseValue = wasm.TS_ChannelManager_force_close_broadcasting_latest_txn(this_arg, channel_id, counterparty_node_id);
21201         return nativeResponseValue;
21202 }
21203         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
21204 /* @internal */
21205 export function ChannelManager_force_close_without_broadcasting_txn(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint {
21206         if(!isWasmInitialized) {
21207                 throw new Error("initializeWasm() must be awaited first!");
21208         }
21209         const nativeResponseValue = wasm.TS_ChannelManager_force_close_without_broadcasting_txn(this_arg, channel_id, counterparty_node_id);
21210         return nativeResponseValue;
21211 }
21212         // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
21213 /* @internal */
21214 export function ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg: bigint): void {
21215         if(!isWasmInitialized) {
21216                 throw new Error("initializeWasm() must be awaited first!");
21217         }
21218         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg);
21219         // debug statements here
21220 }
21221         // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
21222 /* @internal */
21223 export function ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg: bigint): void {
21224         if(!isWasmInitialized) {
21225                 throw new Error("initializeWasm() must be awaited first!");
21226         }
21227         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg);
21228         // debug statements here
21229 }
21230         // 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);
21231 /* @internal */
21232 export function ChannelManager_send_payment(this_arg: bigint, route: bigint, payment_hash: number, payment_secret: number): bigint {
21233         if(!isWasmInitialized) {
21234                 throw new Error("initializeWasm() must be awaited first!");
21235         }
21236         const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, route, payment_hash, payment_secret);
21237         return nativeResponseValue;
21238 }
21239         // 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);
21240 /* @internal */
21241 export function ChannelManager_retry_payment(this_arg: bigint, route: bigint, payment_id: number): bigint {
21242         if(!isWasmInitialized) {
21243                 throw new Error("initializeWasm() must be awaited first!");
21244         }
21245         const nativeResponseValue = wasm.TS_ChannelManager_retry_payment(this_arg, route, payment_id);
21246         return nativeResponseValue;
21247 }
21248         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
21249 /* @internal */
21250 export function ChannelManager_abandon_payment(this_arg: bigint, payment_id: number): void {
21251         if(!isWasmInitialized) {
21252                 throw new Error("initializeWasm() must be awaited first!");
21253         }
21254         const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
21255         // debug statements here
21256 }
21257         // 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);
21258 /* @internal */
21259 export function ChannelManager_send_spontaneous_payment(this_arg: bigint, route: bigint, payment_preimage: number): bigint {
21260         if(!isWasmInitialized) {
21261                 throw new Error("initializeWasm() must be awaited first!");
21262         }
21263         const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage);
21264         return nativeResponseValue;
21265 }
21266         // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ hops);
21267 /* @internal */
21268 export function ChannelManager_send_probe(this_arg: bigint, hops: number): bigint {
21269         if(!isWasmInitialized) {
21270                 throw new Error("initializeWasm() must be awaited first!");
21271         }
21272         const nativeResponseValue = wasm.TS_ChannelManager_send_probe(this_arg, hops);
21273         return nativeResponseValue;
21274 }
21275         // 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);
21276 /* @internal */
21277 export function ChannelManager_funding_transaction_generated(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, funding_transaction: number): bigint {
21278         if(!isWasmInitialized) {
21279                 throw new Error("initializeWasm() must be awaited first!");
21280         }
21281         const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction);
21282         return nativeResponseValue;
21283 }
21284         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config);
21285 /* @internal */
21286 export function ChannelManager_update_channel_config(this_arg: bigint, counterparty_node_id: number, channel_ids: number, config: bigint): bigint {
21287         if(!isWasmInitialized) {
21288                 throw new Error("initializeWasm() must be awaited first!");
21289         }
21290         const nativeResponseValue = wasm.TS_ChannelManager_update_channel_config(this_arg, counterparty_node_id, channel_ids, config);
21291         return nativeResponseValue;
21292 }
21293         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
21294 /* @internal */
21295 export function ChannelManager_process_pending_htlc_forwards(this_arg: bigint): void {
21296         if(!isWasmInitialized) {
21297                 throw new Error("initializeWasm() must be awaited first!");
21298         }
21299         const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
21300         // debug statements here
21301 }
21302         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
21303 /* @internal */
21304 export function ChannelManager_timer_tick_occurred(this_arg: bigint): void {
21305         if(!isWasmInitialized) {
21306                 throw new Error("initializeWasm() must be awaited first!");
21307         }
21308         const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
21309         // debug statements here
21310 }
21311         // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
21312 /* @internal */
21313 export function ChannelManager_fail_htlc_backwards(this_arg: bigint, payment_hash: number): void {
21314         if(!isWasmInitialized) {
21315                 throw new Error("initializeWasm() must be awaited first!");
21316         }
21317         const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
21318         // debug statements here
21319 }
21320         // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
21321 /* @internal */
21322 export function ChannelManager_claim_funds(this_arg: bigint, payment_preimage: number): void {
21323         if(!isWasmInitialized) {
21324                 throw new Error("initializeWasm() must be awaited first!");
21325         }
21326         const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
21327         // debug statements here
21328 }
21329         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
21330 /* @internal */
21331 export function ChannelManager_get_our_node_id(this_arg: bigint): number {
21332         if(!isWasmInitialized) {
21333                 throw new Error("initializeWasm() must be awaited first!");
21334         }
21335         const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
21336         return nativeResponseValue;
21337 }
21338         // 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);
21339 /* @internal */
21340 export function ChannelManager_accept_inbound_channel(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: bigint): bigint {
21341         if(!isWasmInitialized) {
21342                 throw new Error("initializeWasm() must be awaited first!");
21343         }
21344         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
21345         return nativeResponseValue;
21346 }
21347         // 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);
21348 /* @internal */
21349 export function ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: bigint): bigint {
21350         if(!isWasmInitialized) {
21351                 throw new Error("initializeWasm() must be awaited first!");
21352         }
21353         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
21354         return nativeResponseValue;
21355 }
21356         // 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);
21357 /* @internal */
21358 export function ChannelManager_create_inbound_payment(this_arg: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number): bigint {
21359         if(!isWasmInitialized) {
21360                 throw new Error("initializeWasm() must be awaited first!");
21361         }
21362         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs);
21363         return nativeResponseValue;
21364 }
21365         // 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);
21366 /* @internal */
21367 export function ChannelManager_create_inbound_payment_legacy(this_arg: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number): bigint {
21368         if(!isWasmInitialized) {
21369                 throw new Error("initializeWasm() must be awaited first!");
21370         }
21371         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
21372         return nativeResponseValue;
21373 }
21374         // 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);
21375 /* @internal */
21376 export function ChannelManager_create_inbound_payment_for_hash(this_arg: bigint, payment_hash: number, min_value_msat: bigint, invoice_expiry_delta_secs: number): bigint {
21377         if(!isWasmInitialized) {
21378                 throw new Error("initializeWasm() must be awaited first!");
21379         }
21380         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
21381         return nativeResponseValue;
21382 }
21383         // 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);
21384 /* @internal */
21385 export function ChannelManager_create_inbound_payment_for_hash_legacy(this_arg: bigint, payment_hash: number, min_value_msat: bigint, invoice_expiry_delta_secs: number): bigint {
21386         if(!isWasmInitialized) {
21387                 throw new Error("initializeWasm() must be awaited first!");
21388         }
21389         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
21390         return nativeResponseValue;
21391 }
21392         // 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);
21393 /* @internal */
21394 export function ChannelManager_get_payment_preimage(this_arg: bigint, payment_hash: number, payment_secret: number): bigint {
21395         if(!isWasmInitialized) {
21396                 throw new Error("initializeWasm() must be awaited first!");
21397         }
21398         const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
21399         return nativeResponseValue;
21400 }
21401         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
21402 /* @internal */
21403 export function ChannelManager_get_phantom_scid(this_arg: bigint): bigint {
21404         if(!isWasmInitialized) {
21405                 throw new Error("initializeWasm() must be awaited first!");
21406         }
21407         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
21408         return nativeResponseValue;
21409 }
21410         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
21411 /* @internal */
21412 export function ChannelManager_get_phantom_route_hints(this_arg: bigint): bigint {
21413         if(!isWasmInitialized) {
21414                 throw new Error("initializeWasm() must be awaited first!");
21415         }
21416         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
21417         return nativeResponseValue;
21418 }
21419         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
21420 /* @internal */
21421 export function ChannelManager_as_MessageSendEventsProvider(this_arg: bigint): bigint {
21422         if(!isWasmInitialized) {
21423                 throw new Error("initializeWasm() must be awaited first!");
21424         }
21425         const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
21426         return nativeResponseValue;
21427 }
21428         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
21429 /* @internal */
21430 export function ChannelManager_as_EventsProvider(this_arg: bigint): bigint {
21431         if(!isWasmInitialized) {
21432                 throw new Error("initializeWasm() must be awaited first!");
21433         }
21434         const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
21435         return nativeResponseValue;
21436 }
21437         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
21438 /* @internal */
21439 export function ChannelManager_as_Listen(this_arg: bigint): bigint {
21440         if(!isWasmInitialized) {
21441                 throw new Error("initializeWasm() must be awaited first!");
21442         }
21443         const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
21444         return nativeResponseValue;
21445 }
21446         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
21447 /* @internal */
21448 export function ChannelManager_as_Confirm(this_arg: bigint): bigint {
21449         if(!isWasmInitialized) {
21450                 throw new Error("initializeWasm() must be awaited first!");
21451         }
21452         const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
21453         return nativeResponseValue;
21454 }
21455         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
21456 /* @internal */
21457 export function ChannelManager_await_persistable_update(this_arg: bigint): void {
21458         if(!isWasmInitialized) {
21459                 throw new Error("initializeWasm() must be awaited first!");
21460         }
21461         const nativeResponseValue = wasm.TS_ChannelManager_await_persistable_update(this_arg);
21462         // debug statements here
21463 }
21464         // MUST_USE_RES struct LDKFuture ChannelManager_get_persistable_update_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
21465 /* @internal */
21466 export function ChannelManager_get_persistable_update_future(this_arg: bigint): bigint {
21467         if(!isWasmInitialized) {
21468                 throw new Error("initializeWasm() must be awaited first!");
21469         }
21470         const nativeResponseValue = wasm.TS_ChannelManager_get_persistable_update_future(this_arg);
21471         return nativeResponseValue;
21472 }
21473         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
21474 /* @internal */
21475 export function ChannelManager_current_best_block(this_arg: bigint): bigint {
21476         if(!isWasmInitialized) {
21477                 throw new Error("initializeWasm() must be awaited first!");
21478         }
21479         const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
21480         return nativeResponseValue;
21481 }
21482         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
21483 /* @internal */
21484 export function ChannelManager_as_ChannelMessageHandler(this_arg: bigint): bigint {
21485         if(!isWasmInitialized) {
21486                 throw new Error("initializeWasm() must be awaited first!");
21487         }
21488         const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
21489         return nativeResponseValue;
21490 }
21491         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
21492 /* @internal */
21493 export function CounterpartyForwardingInfo_write(obj: bigint): number {
21494         if(!isWasmInitialized) {
21495                 throw new Error("initializeWasm() must be awaited first!");
21496         }
21497         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
21498         return nativeResponseValue;
21499 }
21500         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
21501 /* @internal */
21502 export function CounterpartyForwardingInfo_read(ser: number): bigint {
21503         if(!isWasmInitialized) {
21504                 throw new Error("initializeWasm() must be awaited first!");
21505         }
21506         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
21507         return nativeResponseValue;
21508 }
21509         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
21510 /* @internal */
21511 export function ChannelCounterparty_write(obj: bigint): number {
21512         if(!isWasmInitialized) {
21513                 throw new Error("initializeWasm() must be awaited first!");
21514         }
21515         const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
21516         return nativeResponseValue;
21517 }
21518         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
21519 /* @internal */
21520 export function ChannelCounterparty_read(ser: number): bigint {
21521         if(!isWasmInitialized) {
21522                 throw new Error("initializeWasm() must be awaited first!");
21523         }
21524         const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
21525         return nativeResponseValue;
21526 }
21527         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
21528 /* @internal */
21529 export function ChannelDetails_write(obj: bigint): number {
21530         if(!isWasmInitialized) {
21531                 throw new Error("initializeWasm() must be awaited first!");
21532         }
21533         const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
21534         return nativeResponseValue;
21535 }
21536         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
21537 /* @internal */
21538 export function ChannelDetails_read(ser: number): bigint {
21539         if(!isWasmInitialized) {
21540                 throw new Error("initializeWasm() must be awaited first!");
21541         }
21542         const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
21543         return nativeResponseValue;
21544 }
21545         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
21546 /* @internal */
21547 export function PhantomRouteHints_write(obj: bigint): number {
21548         if(!isWasmInitialized) {
21549                 throw new Error("initializeWasm() must be awaited first!");
21550         }
21551         const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
21552         return nativeResponseValue;
21553 }
21554         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
21555 /* @internal */
21556 export function PhantomRouteHints_read(ser: number): bigint {
21557         if(!isWasmInitialized) {
21558                 throw new Error("initializeWasm() must be awaited first!");
21559         }
21560         const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
21561         return nativeResponseValue;
21562 }
21563         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
21564 /* @internal */
21565 export function ChannelManager_write(obj: bigint): number {
21566         if(!isWasmInitialized) {
21567                 throw new Error("initializeWasm() must be awaited first!");
21568         }
21569         const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
21570         return nativeResponseValue;
21571 }
21572         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
21573 /* @internal */
21574 export function ChannelManagerReadArgs_free(this_obj: bigint): void {
21575         if(!isWasmInitialized) {
21576                 throw new Error("initializeWasm() must be awaited first!");
21577         }
21578         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
21579         // debug statements here
21580 }
21581         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
21582 /* @internal */
21583 export function ChannelManagerReadArgs_get_keys_manager(this_ptr: bigint): bigint {
21584         if(!isWasmInitialized) {
21585                 throw new Error("initializeWasm() must be awaited first!");
21586         }
21587         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_keys_manager(this_ptr);
21588         return nativeResponseValue;
21589 }
21590         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
21591 /* @internal */
21592 export function ChannelManagerReadArgs_set_keys_manager(this_ptr: bigint, val: bigint): void {
21593         if(!isWasmInitialized) {
21594                 throw new Error("initializeWasm() must be awaited first!");
21595         }
21596         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_keys_manager(this_ptr, val);
21597         // debug statements here
21598 }
21599         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
21600 /* @internal */
21601 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: bigint): bigint {
21602         if(!isWasmInitialized) {
21603                 throw new Error("initializeWasm() must be awaited first!");
21604         }
21605         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
21606         return nativeResponseValue;
21607 }
21608         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
21609 /* @internal */
21610 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: bigint, val: bigint): void {
21611         if(!isWasmInitialized) {
21612                 throw new Error("initializeWasm() must be awaited first!");
21613         }
21614         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
21615         // debug statements here
21616 }
21617         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
21618 /* @internal */
21619 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: bigint): bigint {
21620         if(!isWasmInitialized) {
21621                 throw new Error("initializeWasm() must be awaited first!");
21622         }
21623         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
21624         return nativeResponseValue;
21625 }
21626         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
21627 /* @internal */
21628 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: bigint, val: bigint): void {
21629         if(!isWasmInitialized) {
21630                 throw new Error("initializeWasm() must be awaited first!");
21631         }
21632         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
21633         // debug statements here
21634 }
21635         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
21636 /* @internal */
21637 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: bigint): bigint {
21638         if(!isWasmInitialized) {
21639                 throw new Error("initializeWasm() must be awaited first!");
21640         }
21641         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
21642         return nativeResponseValue;
21643 }
21644         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
21645 /* @internal */
21646 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: bigint, val: bigint): void {
21647         if(!isWasmInitialized) {
21648                 throw new Error("initializeWasm() must be awaited first!");
21649         }
21650         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
21651         // debug statements here
21652 }
21653         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
21654 /* @internal */
21655 export function ChannelManagerReadArgs_get_logger(this_ptr: bigint): bigint {
21656         if(!isWasmInitialized) {
21657                 throw new Error("initializeWasm() must be awaited first!");
21658         }
21659         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
21660         return nativeResponseValue;
21661 }
21662         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
21663 /* @internal */
21664 export function ChannelManagerReadArgs_set_logger(this_ptr: bigint, val: bigint): void {
21665         if(!isWasmInitialized) {
21666                 throw new Error("initializeWasm() must be awaited first!");
21667         }
21668         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
21669         // debug statements here
21670 }
21671         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
21672 /* @internal */
21673 export function ChannelManagerReadArgs_get_default_config(this_ptr: bigint): bigint {
21674         if(!isWasmInitialized) {
21675                 throw new Error("initializeWasm() must be awaited first!");
21676         }
21677         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
21678         return nativeResponseValue;
21679 }
21680         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
21681 /* @internal */
21682 export function ChannelManagerReadArgs_set_default_config(this_ptr: bigint, val: bigint): void {
21683         if(!isWasmInitialized) {
21684                 throw new Error("initializeWasm() must be awaited first!");
21685         }
21686         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
21687         // debug statements here
21688 }
21689         // 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);
21690 /* @internal */
21691 export function ChannelManagerReadArgs_new(keys_manager: bigint, fee_estimator: bigint, chain_monitor: bigint, tx_broadcaster: bigint, logger: bigint, default_config: bigint, channel_monitors: number): bigint {
21692         if(!isWasmInitialized) {
21693                 throw new Error("initializeWasm() must be awaited first!");
21694         }
21695         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(keys_manager, fee_estimator, chain_monitor, tx_broadcaster, logger, default_config, channel_monitors);
21696         return nativeResponseValue;
21697 }
21698         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
21699 /* @internal */
21700 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: bigint): bigint {
21701         if(!isWasmInitialized) {
21702                 throw new Error("initializeWasm() must be awaited first!");
21703         }
21704         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
21705         return nativeResponseValue;
21706 }
21707         // void ExpandedKey_free(struct LDKExpandedKey this_obj);
21708 /* @internal */
21709 export function ExpandedKey_free(this_obj: bigint): void {
21710         if(!isWasmInitialized) {
21711                 throw new Error("initializeWasm() must be awaited first!");
21712         }
21713         const nativeResponseValue = wasm.TS_ExpandedKey_free(this_obj);
21714         // debug statements here
21715 }
21716         // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
21717 /* @internal */
21718 export function ExpandedKey_new(key_material: number): bigint {
21719         if(!isWasmInitialized) {
21720                 throw new Error("initializeWasm() must be awaited first!");
21721         }
21722         const nativeResponseValue = wasm.TS_ExpandedKey_new(key_material);
21723         return nativeResponseValue;
21724 }
21725         // 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);
21726 /* @internal */
21727 export function create(keys: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number, keys_manager: bigint, current_time: bigint): bigint {
21728         if(!isWasmInitialized) {
21729                 throw new Error("initializeWasm() must be awaited first!");
21730         }
21731         const nativeResponseValue = wasm.TS_create(keys, min_value_msat, invoice_expiry_delta_secs, keys_manager, current_time);
21732         return nativeResponseValue;
21733 }
21734         // 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);
21735 /* @internal */
21736 export function create_from_hash(keys: bigint, min_value_msat: bigint, payment_hash: number, invoice_expiry_delta_secs: number, current_time: bigint): bigint {
21737         if(!isWasmInitialized) {
21738                 throw new Error("initializeWasm() must be awaited first!");
21739         }
21740         const nativeResponseValue = wasm.TS_create_from_hash(keys, min_value_msat, payment_hash, invoice_expiry_delta_secs, current_time);
21741         return nativeResponseValue;
21742 }
21743         // void DecodeError_free(struct LDKDecodeError this_obj);
21744 /* @internal */
21745 export function DecodeError_free(this_obj: bigint): void {
21746         if(!isWasmInitialized) {
21747                 throw new Error("initializeWasm() must be awaited first!");
21748         }
21749         const nativeResponseValue = wasm.TS_DecodeError_free(this_obj);
21750         // debug statements here
21751 }
21752         // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
21753 /* @internal */
21754 export function DecodeError_clone_ptr(arg: bigint): bigint {
21755         if(!isWasmInitialized) {
21756                 throw new Error("initializeWasm() must be awaited first!");
21757         }
21758         const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
21759         return nativeResponseValue;
21760 }
21761         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
21762 /* @internal */
21763 export function DecodeError_clone(orig: bigint): bigint {
21764         if(!isWasmInitialized) {
21765                 throw new Error("initializeWasm() must be awaited first!");
21766         }
21767         const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
21768         return nativeResponseValue;
21769 }
21770         // void Init_free(struct LDKInit this_obj);
21771 /* @internal */
21772 export function Init_free(this_obj: bigint): void {
21773         if(!isWasmInitialized) {
21774                 throw new Error("initializeWasm() must be awaited first!");
21775         }
21776         const nativeResponseValue = wasm.TS_Init_free(this_obj);
21777         // debug statements here
21778 }
21779         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
21780 /* @internal */
21781 export function Init_get_features(this_ptr: bigint): bigint {
21782         if(!isWasmInitialized) {
21783                 throw new Error("initializeWasm() must be awaited first!");
21784         }
21785         const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
21786         return nativeResponseValue;
21787 }
21788         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
21789 /* @internal */
21790 export function Init_set_features(this_ptr: bigint, val: bigint): void {
21791         if(!isWasmInitialized) {
21792                 throw new Error("initializeWasm() must be awaited first!");
21793         }
21794         const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
21795         // debug statements here
21796 }
21797         // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
21798 /* @internal */
21799 export function Init_get_remote_network_address(this_ptr: bigint): bigint {
21800         if(!isWasmInitialized) {
21801                 throw new Error("initializeWasm() must be awaited first!");
21802         }
21803         const nativeResponseValue = wasm.TS_Init_get_remote_network_address(this_ptr);
21804         return nativeResponseValue;
21805 }
21806         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
21807 /* @internal */
21808 export function Init_set_remote_network_address(this_ptr: bigint, val: bigint): void {
21809         if(!isWasmInitialized) {
21810                 throw new Error("initializeWasm() must be awaited first!");
21811         }
21812         const nativeResponseValue = wasm.TS_Init_set_remote_network_address(this_ptr, val);
21813         // debug statements here
21814 }
21815         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
21816 /* @internal */
21817 export function Init_new(features_arg: bigint, remote_network_address_arg: bigint): bigint {
21818         if(!isWasmInitialized) {
21819                 throw new Error("initializeWasm() must be awaited first!");
21820         }
21821         const nativeResponseValue = wasm.TS_Init_new(features_arg, remote_network_address_arg);
21822         return nativeResponseValue;
21823 }
21824         // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
21825 /* @internal */
21826 export function Init_clone_ptr(arg: bigint): bigint {
21827         if(!isWasmInitialized) {
21828                 throw new Error("initializeWasm() must be awaited first!");
21829         }
21830         const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
21831         return nativeResponseValue;
21832 }
21833         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
21834 /* @internal */
21835 export function Init_clone(orig: bigint): bigint {
21836         if(!isWasmInitialized) {
21837                 throw new Error("initializeWasm() must be awaited first!");
21838         }
21839         const nativeResponseValue = wasm.TS_Init_clone(orig);
21840         return nativeResponseValue;
21841 }
21842         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
21843 /* @internal */
21844 export function ErrorMessage_free(this_obj: bigint): void {
21845         if(!isWasmInitialized) {
21846                 throw new Error("initializeWasm() must be awaited first!");
21847         }
21848         const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
21849         // debug statements here
21850 }
21851         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
21852 /* @internal */
21853 export function ErrorMessage_get_channel_id(this_ptr: bigint): number {
21854         if(!isWasmInitialized) {
21855                 throw new Error("initializeWasm() must be awaited first!");
21856         }
21857         const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
21858         return nativeResponseValue;
21859 }
21860         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21861 /* @internal */
21862 export function ErrorMessage_set_channel_id(this_ptr: bigint, val: number): void {
21863         if(!isWasmInitialized) {
21864                 throw new Error("initializeWasm() must be awaited first!");
21865         }
21866         const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
21867         // debug statements here
21868 }
21869         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
21870 /* @internal */
21871 export function ErrorMessage_get_data(this_ptr: bigint): number {
21872         if(!isWasmInitialized) {
21873                 throw new Error("initializeWasm() must be awaited first!");
21874         }
21875         const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
21876         return nativeResponseValue;
21877 }
21878         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
21879 /* @internal */
21880 export function ErrorMessage_set_data(this_ptr: bigint, val: number): void {
21881         if(!isWasmInitialized) {
21882                 throw new Error("initializeWasm() must be awaited first!");
21883         }
21884         const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
21885         // debug statements here
21886 }
21887         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
21888 /* @internal */
21889 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): bigint {
21890         if(!isWasmInitialized) {
21891                 throw new Error("initializeWasm() must be awaited first!");
21892         }
21893         const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
21894         return nativeResponseValue;
21895 }
21896         // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
21897 /* @internal */
21898 export function ErrorMessage_clone_ptr(arg: bigint): bigint {
21899         if(!isWasmInitialized) {
21900                 throw new Error("initializeWasm() must be awaited first!");
21901         }
21902         const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
21903         return nativeResponseValue;
21904 }
21905         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
21906 /* @internal */
21907 export function ErrorMessage_clone(orig: bigint): bigint {
21908         if(!isWasmInitialized) {
21909                 throw new Error("initializeWasm() must be awaited first!");
21910         }
21911         const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
21912         return nativeResponseValue;
21913 }
21914         // void WarningMessage_free(struct LDKWarningMessage this_obj);
21915 /* @internal */
21916 export function WarningMessage_free(this_obj: bigint): void {
21917         if(!isWasmInitialized) {
21918                 throw new Error("initializeWasm() must be awaited first!");
21919         }
21920         const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
21921         // debug statements here
21922 }
21923         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
21924 /* @internal */
21925 export function WarningMessage_get_channel_id(this_ptr: bigint): number {
21926         if(!isWasmInitialized) {
21927                 throw new Error("initializeWasm() must be awaited first!");
21928         }
21929         const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
21930         return nativeResponseValue;
21931 }
21932         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21933 /* @internal */
21934 export function WarningMessage_set_channel_id(this_ptr: bigint, val: number): void {
21935         if(!isWasmInitialized) {
21936                 throw new Error("initializeWasm() must be awaited first!");
21937         }
21938         const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
21939         // debug statements here
21940 }
21941         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
21942 /* @internal */
21943 export function WarningMessage_get_data(this_ptr: bigint): number {
21944         if(!isWasmInitialized) {
21945                 throw new Error("initializeWasm() must be awaited first!");
21946         }
21947         const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
21948         return nativeResponseValue;
21949 }
21950         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
21951 /* @internal */
21952 export function WarningMessage_set_data(this_ptr: bigint, val: number): void {
21953         if(!isWasmInitialized) {
21954                 throw new Error("initializeWasm() must be awaited first!");
21955         }
21956         const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
21957         // debug statements here
21958 }
21959         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
21960 /* @internal */
21961 export function WarningMessage_new(channel_id_arg: number, data_arg: number): bigint {
21962         if(!isWasmInitialized) {
21963                 throw new Error("initializeWasm() must be awaited first!");
21964         }
21965         const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
21966         return nativeResponseValue;
21967 }
21968         // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
21969 /* @internal */
21970 export function WarningMessage_clone_ptr(arg: bigint): bigint {
21971         if(!isWasmInitialized) {
21972                 throw new Error("initializeWasm() must be awaited first!");
21973         }
21974         const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
21975         return nativeResponseValue;
21976 }
21977         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
21978 /* @internal */
21979 export function WarningMessage_clone(orig: bigint): bigint {
21980         if(!isWasmInitialized) {
21981                 throw new Error("initializeWasm() must be awaited first!");
21982         }
21983         const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
21984         return nativeResponseValue;
21985 }
21986         // void Ping_free(struct LDKPing this_obj);
21987 /* @internal */
21988 export function Ping_free(this_obj: bigint): void {
21989         if(!isWasmInitialized) {
21990                 throw new Error("initializeWasm() must be awaited first!");
21991         }
21992         const nativeResponseValue = wasm.TS_Ping_free(this_obj);
21993         // debug statements here
21994 }
21995         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
21996 /* @internal */
21997 export function Ping_get_ponglen(this_ptr: bigint): number {
21998         if(!isWasmInitialized) {
21999                 throw new Error("initializeWasm() must be awaited first!");
22000         }
22001         const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
22002         return nativeResponseValue;
22003 }
22004         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
22005 /* @internal */
22006 export function Ping_set_ponglen(this_ptr: bigint, val: number): void {
22007         if(!isWasmInitialized) {
22008                 throw new Error("initializeWasm() must be awaited first!");
22009         }
22010         const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
22011         // debug statements here
22012 }
22013         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
22014 /* @internal */
22015 export function Ping_get_byteslen(this_ptr: bigint): number {
22016         if(!isWasmInitialized) {
22017                 throw new Error("initializeWasm() must be awaited first!");
22018         }
22019         const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
22020         return nativeResponseValue;
22021 }
22022         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
22023 /* @internal */
22024 export function Ping_set_byteslen(this_ptr: bigint, val: number): void {
22025         if(!isWasmInitialized) {
22026                 throw new Error("initializeWasm() must be awaited first!");
22027         }
22028         const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
22029         // debug statements here
22030 }
22031         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
22032 /* @internal */
22033 export function Ping_new(ponglen_arg: number, byteslen_arg: number): bigint {
22034         if(!isWasmInitialized) {
22035                 throw new Error("initializeWasm() must be awaited first!");
22036         }
22037         const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
22038         return nativeResponseValue;
22039 }
22040         // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
22041 /* @internal */
22042 export function Ping_clone_ptr(arg: bigint): bigint {
22043         if(!isWasmInitialized) {
22044                 throw new Error("initializeWasm() must be awaited first!");
22045         }
22046         const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
22047         return nativeResponseValue;
22048 }
22049         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
22050 /* @internal */
22051 export function Ping_clone(orig: bigint): bigint {
22052         if(!isWasmInitialized) {
22053                 throw new Error("initializeWasm() must be awaited first!");
22054         }
22055         const nativeResponseValue = wasm.TS_Ping_clone(orig);
22056         return nativeResponseValue;
22057 }
22058         // void Pong_free(struct LDKPong this_obj);
22059 /* @internal */
22060 export function Pong_free(this_obj: bigint): void {
22061         if(!isWasmInitialized) {
22062                 throw new Error("initializeWasm() must be awaited first!");
22063         }
22064         const nativeResponseValue = wasm.TS_Pong_free(this_obj);
22065         // debug statements here
22066 }
22067         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
22068 /* @internal */
22069 export function Pong_get_byteslen(this_ptr: bigint): number {
22070         if(!isWasmInitialized) {
22071                 throw new Error("initializeWasm() must be awaited first!");
22072         }
22073         const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
22074         return nativeResponseValue;
22075 }
22076         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
22077 /* @internal */
22078 export function Pong_set_byteslen(this_ptr: bigint, val: number): void {
22079         if(!isWasmInitialized) {
22080                 throw new Error("initializeWasm() must be awaited first!");
22081         }
22082         const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
22083         // debug statements here
22084 }
22085         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
22086 /* @internal */
22087 export function Pong_new(byteslen_arg: number): bigint {
22088         if(!isWasmInitialized) {
22089                 throw new Error("initializeWasm() must be awaited first!");
22090         }
22091         const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
22092         return nativeResponseValue;
22093 }
22094         // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
22095 /* @internal */
22096 export function Pong_clone_ptr(arg: bigint): bigint {
22097         if(!isWasmInitialized) {
22098                 throw new Error("initializeWasm() must be awaited first!");
22099         }
22100         const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
22101         return nativeResponseValue;
22102 }
22103         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
22104 /* @internal */
22105 export function Pong_clone(orig: bigint): bigint {
22106         if(!isWasmInitialized) {
22107                 throw new Error("initializeWasm() must be awaited first!");
22108         }
22109         const nativeResponseValue = wasm.TS_Pong_clone(orig);
22110         return nativeResponseValue;
22111 }
22112         // void OpenChannel_free(struct LDKOpenChannel this_obj);
22113 /* @internal */
22114 export function OpenChannel_free(this_obj: bigint): void {
22115         if(!isWasmInitialized) {
22116                 throw new Error("initializeWasm() must be awaited first!");
22117         }
22118         const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
22119         // debug statements here
22120 }
22121         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
22122 /* @internal */
22123 export function OpenChannel_get_chain_hash(this_ptr: bigint): number {
22124         if(!isWasmInitialized) {
22125                 throw new Error("initializeWasm() must be awaited first!");
22126         }
22127         const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
22128         return nativeResponseValue;
22129 }
22130         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22131 /* @internal */
22132 export function OpenChannel_set_chain_hash(this_ptr: bigint, val: number): void {
22133         if(!isWasmInitialized) {
22134                 throw new Error("initializeWasm() must be awaited first!");
22135         }
22136         const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
22137         // debug statements here
22138 }
22139         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
22140 /* @internal */
22141 export function OpenChannel_get_temporary_channel_id(this_ptr: bigint): number {
22142         if(!isWasmInitialized) {
22143                 throw new Error("initializeWasm() must be awaited first!");
22144         }
22145         const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
22146         return nativeResponseValue;
22147 }
22148         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22149 /* @internal */
22150 export function OpenChannel_set_temporary_channel_id(this_ptr: bigint, val: number): void {
22151         if(!isWasmInitialized) {
22152                 throw new Error("initializeWasm() must be awaited first!");
22153         }
22154         const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
22155         // debug statements here
22156 }
22157         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22158 /* @internal */
22159 export function OpenChannel_get_funding_satoshis(this_ptr: bigint): bigint {
22160         if(!isWasmInitialized) {
22161                 throw new Error("initializeWasm() must be awaited first!");
22162         }
22163         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
22164         return nativeResponseValue;
22165 }
22166         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
22167 /* @internal */
22168 export function OpenChannel_set_funding_satoshis(this_ptr: bigint, val: bigint): void {
22169         if(!isWasmInitialized) {
22170                 throw new Error("initializeWasm() must be awaited first!");
22171         }
22172         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
22173         // debug statements here
22174 }
22175         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22176 /* @internal */
22177 export function OpenChannel_get_push_msat(this_ptr: bigint): bigint {
22178         if(!isWasmInitialized) {
22179                 throw new Error("initializeWasm() must be awaited first!");
22180         }
22181         const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
22182         return nativeResponseValue;
22183 }
22184         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
22185 /* @internal */
22186 export function OpenChannel_set_push_msat(this_ptr: bigint, val: bigint): void {
22187         if(!isWasmInitialized) {
22188                 throw new Error("initializeWasm() must be awaited first!");
22189         }
22190         const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
22191         // debug statements here
22192 }
22193         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22194 /* @internal */
22195 export function OpenChannel_get_dust_limit_satoshis(this_ptr: bigint): bigint {
22196         if(!isWasmInitialized) {
22197                 throw new Error("initializeWasm() must be awaited first!");
22198         }
22199         const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
22200         return nativeResponseValue;
22201 }
22202         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
22203 /* @internal */
22204 export function OpenChannel_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void {
22205         if(!isWasmInitialized) {
22206                 throw new Error("initializeWasm() must be awaited first!");
22207         }
22208         const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
22209         // debug statements here
22210 }
22211         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22212 /* @internal */
22213 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint {
22214         if(!isWasmInitialized) {
22215                 throw new Error("initializeWasm() must be awaited first!");
22216         }
22217         const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
22218         return nativeResponseValue;
22219 }
22220         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
22221 /* @internal */
22222 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void {
22223         if(!isWasmInitialized) {
22224                 throw new Error("initializeWasm() must be awaited first!");
22225         }
22226         const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
22227         // debug statements here
22228 }
22229         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22230 /* @internal */
22231 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint {
22232         if(!isWasmInitialized) {
22233                 throw new Error("initializeWasm() must be awaited first!");
22234         }
22235         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
22236         return nativeResponseValue;
22237 }
22238         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
22239 /* @internal */
22240 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void {
22241         if(!isWasmInitialized) {
22242                 throw new Error("initializeWasm() must be awaited first!");
22243         }
22244         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
22245         // debug statements here
22246 }
22247         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22248 /* @internal */
22249 export function OpenChannel_get_htlc_minimum_msat(this_ptr: bigint): bigint {
22250         if(!isWasmInitialized) {
22251                 throw new Error("initializeWasm() must be awaited first!");
22252         }
22253         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
22254         return nativeResponseValue;
22255 }
22256         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
22257 /* @internal */
22258 export function OpenChannel_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
22259         if(!isWasmInitialized) {
22260                 throw new Error("initializeWasm() must be awaited first!");
22261         }
22262         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
22263         // debug statements here
22264 }
22265         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22266 /* @internal */
22267 export function OpenChannel_get_feerate_per_kw(this_ptr: bigint): number {
22268         if(!isWasmInitialized) {
22269                 throw new Error("initializeWasm() must be awaited first!");
22270         }
22271         const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
22272         return nativeResponseValue;
22273 }
22274         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
22275 /* @internal */
22276 export function OpenChannel_set_feerate_per_kw(this_ptr: bigint, val: number): void {
22277         if(!isWasmInitialized) {
22278                 throw new Error("initializeWasm() must be awaited first!");
22279         }
22280         const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
22281         // debug statements here
22282 }
22283         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22284 /* @internal */
22285 export function OpenChannel_get_to_self_delay(this_ptr: bigint): number {
22286         if(!isWasmInitialized) {
22287                 throw new Error("initializeWasm() must be awaited first!");
22288         }
22289         const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
22290         return nativeResponseValue;
22291 }
22292         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
22293 /* @internal */
22294 export function OpenChannel_set_to_self_delay(this_ptr: bigint, val: number): void {
22295         if(!isWasmInitialized) {
22296                 throw new Error("initializeWasm() must be awaited first!");
22297         }
22298         const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
22299         // debug statements here
22300 }
22301         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22302 /* @internal */
22303 export function OpenChannel_get_max_accepted_htlcs(this_ptr: bigint): number {
22304         if(!isWasmInitialized) {
22305                 throw new Error("initializeWasm() must be awaited first!");
22306         }
22307         const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
22308         return nativeResponseValue;
22309 }
22310         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
22311 /* @internal */
22312 export function OpenChannel_set_max_accepted_htlcs(this_ptr: bigint, val: number): void {
22313         if(!isWasmInitialized) {
22314                 throw new Error("initializeWasm() must be awaited first!");
22315         }
22316         const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
22317         // debug statements here
22318 }
22319         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22320 /* @internal */
22321 export function OpenChannel_get_funding_pubkey(this_ptr: bigint): number {
22322         if(!isWasmInitialized) {
22323                 throw new Error("initializeWasm() must be awaited first!");
22324         }
22325         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
22326         return nativeResponseValue;
22327 }
22328         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22329 /* @internal */
22330 export function OpenChannel_set_funding_pubkey(this_ptr: bigint, val: number): void {
22331         if(!isWasmInitialized) {
22332                 throw new Error("initializeWasm() must be awaited first!");
22333         }
22334         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
22335         // debug statements here
22336 }
22337         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22338 /* @internal */
22339 export function OpenChannel_get_revocation_basepoint(this_ptr: bigint): number {
22340         if(!isWasmInitialized) {
22341                 throw new Error("initializeWasm() must be awaited first!");
22342         }
22343         const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
22344         return nativeResponseValue;
22345 }
22346         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22347 /* @internal */
22348 export function OpenChannel_set_revocation_basepoint(this_ptr: bigint, val: number): void {
22349         if(!isWasmInitialized) {
22350                 throw new Error("initializeWasm() must be awaited first!");
22351         }
22352         const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
22353         // debug statements here
22354 }
22355         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22356 /* @internal */
22357 export function OpenChannel_get_payment_point(this_ptr: bigint): number {
22358         if(!isWasmInitialized) {
22359                 throw new Error("initializeWasm() must be awaited first!");
22360         }
22361         const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
22362         return nativeResponseValue;
22363 }
22364         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22365 /* @internal */
22366 export function OpenChannel_set_payment_point(this_ptr: bigint, val: number): void {
22367         if(!isWasmInitialized) {
22368                 throw new Error("initializeWasm() must be awaited first!");
22369         }
22370         const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
22371         // debug statements here
22372 }
22373         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22374 /* @internal */
22375 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: bigint): number {
22376         if(!isWasmInitialized) {
22377                 throw new Error("initializeWasm() must be awaited first!");
22378         }
22379         const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
22380         return nativeResponseValue;
22381 }
22382         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22383 /* @internal */
22384 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void {
22385         if(!isWasmInitialized) {
22386                 throw new Error("initializeWasm() must be awaited first!");
22387         }
22388         const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
22389         // debug statements here
22390 }
22391         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22392 /* @internal */
22393 export function OpenChannel_get_htlc_basepoint(this_ptr: bigint): number {
22394         if(!isWasmInitialized) {
22395                 throw new Error("initializeWasm() must be awaited first!");
22396         }
22397         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
22398         return nativeResponseValue;
22399 }
22400         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22401 /* @internal */
22402 export function OpenChannel_set_htlc_basepoint(this_ptr: bigint, val: number): void {
22403         if(!isWasmInitialized) {
22404                 throw new Error("initializeWasm() must be awaited first!");
22405         }
22406         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
22407         // debug statements here
22408 }
22409         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22410 /* @internal */
22411 export function OpenChannel_get_first_per_commitment_point(this_ptr: bigint): number {
22412         if(!isWasmInitialized) {
22413                 throw new Error("initializeWasm() must be awaited first!");
22414         }
22415         const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
22416         return nativeResponseValue;
22417 }
22418         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22419 /* @internal */
22420 export function OpenChannel_set_first_per_commitment_point(this_ptr: bigint, val: number): void {
22421         if(!isWasmInitialized) {
22422                 throw new Error("initializeWasm() must be awaited first!");
22423         }
22424         const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
22425         // debug statements here
22426 }
22427         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22428 /* @internal */
22429 export function OpenChannel_get_channel_flags(this_ptr: bigint): number {
22430         if(!isWasmInitialized) {
22431                 throw new Error("initializeWasm() must be awaited first!");
22432         }
22433         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
22434         return nativeResponseValue;
22435 }
22436         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
22437 /* @internal */
22438 export function OpenChannel_set_channel_flags(this_ptr: bigint, val: number): void {
22439         if(!isWasmInitialized) {
22440                 throw new Error("initializeWasm() must be awaited first!");
22441         }
22442         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
22443         // debug statements here
22444 }
22445         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
22446 /* @internal */
22447 export function OpenChannel_get_channel_type(this_ptr: bigint): bigint {
22448         if(!isWasmInitialized) {
22449                 throw new Error("initializeWasm() must be awaited first!");
22450         }
22451         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
22452         return nativeResponseValue;
22453 }
22454         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
22455 /* @internal */
22456 export function OpenChannel_set_channel_type(this_ptr: bigint, val: bigint): void {
22457         if(!isWasmInitialized) {
22458                 throw new Error("initializeWasm() must be awaited first!");
22459         }
22460         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
22461         // debug statements here
22462 }
22463         // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
22464 /* @internal */
22465 export function OpenChannel_clone_ptr(arg: bigint): bigint {
22466         if(!isWasmInitialized) {
22467                 throw new Error("initializeWasm() must be awaited first!");
22468         }
22469         const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
22470         return nativeResponseValue;
22471 }
22472         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
22473 /* @internal */
22474 export function OpenChannel_clone(orig: bigint): bigint {
22475         if(!isWasmInitialized) {
22476                 throw new Error("initializeWasm() must be awaited first!");
22477         }
22478         const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
22479         return nativeResponseValue;
22480 }
22481         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
22482 /* @internal */
22483 export function AcceptChannel_free(this_obj: bigint): void {
22484         if(!isWasmInitialized) {
22485                 throw new Error("initializeWasm() must be awaited first!");
22486         }
22487         const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
22488         // debug statements here
22489 }
22490         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
22491 /* @internal */
22492 export function AcceptChannel_get_temporary_channel_id(this_ptr: bigint): number {
22493         if(!isWasmInitialized) {
22494                 throw new Error("initializeWasm() must be awaited first!");
22495         }
22496         const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
22497         return nativeResponseValue;
22498 }
22499         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22500 /* @internal */
22501 export function AcceptChannel_set_temporary_channel_id(this_ptr: bigint, val: number): void {
22502         if(!isWasmInitialized) {
22503                 throw new Error("initializeWasm() must be awaited first!");
22504         }
22505         const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
22506         // debug statements here
22507 }
22508         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22509 /* @internal */
22510 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: bigint): bigint {
22511         if(!isWasmInitialized) {
22512                 throw new Error("initializeWasm() must be awaited first!");
22513         }
22514         const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
22515         return nativeResponseValue;
22516 }
22517         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
22518 /* @internal */
22519 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void {
22520         if(!isWasmInitialized) {
22521                 throw new Error("initializeWasm() must be awaited first!");
22522         }
22523         const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
22524         // debug statements here
22525 }
22526         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22527 /* @internal */
22528 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint {
22529         if(!isWasmInitialized) {
22530                 throw new Error("initializeWasm() must be awaited first!");
22531         }
22532         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
22533         return nativeResponseValue;
22534 }
22535         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
22536 /* @internal */
22537 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void {
22538         if(!isWasmInitialized) {
22539                 throw new Error("initializeWasm() must be awaited first!");
22540         }
22541         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
22542         // debug statements here
22543 }
22544         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22545 /* @internal */
22546 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint {
22547         if(!isWasmInitialized) {
22548                 throw new Error("initializeWasm() must be awaited first!");
22549         }
22550         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
22551         return nativeResponseValue;
22552 }
22553         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
22554 /* @internal */
22555 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void {
22556         if(!isWasmInitialized) {
22557                 throw new Error("initializeWasm() must be awaited first!");
22558         }
22559         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
22560         // debug statements here
22561 }
22562         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22563 /* @internal */
22564 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: bigint): bigint {
22565         if(!isWasmInitialized) {
22566                 throw new Error("initializeWasm() must be awaited first!");
22567         }
22568         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
22569         return nativeResponseValue;
22570 }
22571         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
22572 /* @internal */
22573 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
22574         if(!isWasmInitialized) {
22575                 throw new Error("initializeWasm() must be awaited first!");
22576         }
22577         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
22578         // debug statements here
22579 }
22580         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22581 /* @internal */
22582 export function AcceptChannel_get_minimum_depth(this_ptr: bigint): number {
22583         if(!isWasmInitialized) {
22584                 throw new Error("initializeWasm() must be awaited first!");
22585         }
22586         const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
22587         return nativeResponseValue;
22588 }
22589         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
22590 /* @internal */
22591 export function AcceptChannel_set_minimum_depth(this_ptr: bigint, val: number): void {
22592         if(!isWasmInitialized) {
22593                 throw new Error("initializeWasm() must be awaited first!");
22594         }
22595         const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
22596         // debug statements here
22597 }
22598         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22599 /* @internal */
22600 export function AcceptChannel_get_to_self_delay(this_ptr: bigint): number {
22601         if(!isWasmInitialized) {
22602                 throw new Error("initializeWasm() must be awaited first!");
22603         }
22604         const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
22605         return nativeResponseValue;
22606 }
22607         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
22608 /* @internal */
22609 export function AcceptChannel_set_to_self_delay(this_ptr: bigint, val: number): void {
22610         if(!isWasmInitialized) {
22611                 throw new Error("initializeWasm() must be awaited first!");
22612         }
22613         const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
22614         // debug statements here
22615 }
22616         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22617 /* @internal */
22618 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: bigint): number {
22619         if(!isWasmInitialized) {
22620                 throw new Error("initializeWasm() must be awaited first!");
22621         }
22622         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
22623         return nativeResponseValue;
22624 }
22625         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
22626 /* @internal */
22627 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: bigint, val: number): void {
22628         if(!isWasmInitialized) {
22629                 throw new Error("initializeWasm() must be awaited first!");
22630         }
22631         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
22632         // debug statements here
22633 }
22634         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22635 /* @internal */
22636 export function AcceptChannel_get_funding_pubkey(this_ptr: bigint): number {
22637         if(!isWasmInitialized) {
22638                 throw new Error("initializeWasm() must be awaited first!");
22639         }
22640         const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
22641         return nativeResponseValue;
22642 }
22643         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22644 /* @internal */
22645 export function AcceptChannel_set_funding_pubkey(this_ptr: bigint, val: number): void {
22646         if(!isWasmInitialized) {
22647                 throw new Error("initializeWasm() must be awaited first!");
22648         }
22649         const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
22650         // debug statements here
22651 }
22652         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22653 /* @internal */
22654 export function AcceptChannel_get_revocation_basepoint(this_ptr: bigint): number {
22655         if(!isWasmInitialized) {
22656                 throw new Error("initializeWasm() must be awaited first!");
22657         }
22658         const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
22659         return nativeResponseValue;
22660 }
22661         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22662 /* @internal */
22663 export function AcceptChannel_set_revocation_basepoint(this_ptr: bigint, val: number): void {
22664         if(!isWasmInitialized) {
22665                 throw new Error("initializeWasm() must be awaited first!");
22666         }
22667         const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
22668         // debug statements here
22669 }
22670         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22671 /* @internal */
22672 export function AcceptChannel_get_payment_point(this_ptr: bigint): number {
22673         if(!isWasmInitialized) {
22674                 throw new Error("initializeWasm() must be awaited first!");
22675         }
22676         const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
22677         return nativeResponseValue;
22678 }
22679         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22680 /* @internal */
22681 export function AcceptChannel_set_payment_point(this_ptr: bigint, val: number): void {
22682         if(!isWasmInitialized) {
22683                 throw new Error("initializeWasm() must be awaited first!");
22684         }
22685         const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
22686         // debug statements here
22687 }
22688         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22689 /* @internal */
22690 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: bigint): number {
22691         if(!isWasmInitialized) {
22692                 throw new Error("initializeWasm() must be awaited first!");
22693         }
22694         const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
22695         return nativeResponseValue;
22696 }
22697         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22698 /* @internal */
22699 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void {
22700         if(!isWasmInitialized) {
22701                 throw new Error("initializeWasm() must be awaited first!");
22702         }
22703         const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
22704         // debug statements here
22705 }
22706         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22707 /* @internal */
22708 export function AcceptChannel_get_htlc_basepoint(this_ptr: bigint): number {
22709         if(!isWasmInitialized) {
22710                 throw new Error("initializeWasm() must be awaited first!");
22711         }
22712         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
22713         return nativeResponseValue;
22714 }
22715         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22716 /* @internal */
22717 export function AcceptChannel_set_htlc_basepoint(this_ptr: bigint, val: number): void {
22718         if(!isWasmInitialized) {
22719                 throw new Error("initializeWasm() must be awaited first!");
22720         }
22721         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
22722         // debug statements here
22723 }
22724         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22725 /* @internal */
22726 export function AcceptChannel_get_first_per_commitment_point(this_ptr: bigint): number {
22727         if(!isWasmInitialized) {
22728                 throw new Error("initializeWasm() must be awaited first!");
22729         }
22730         const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
22731         return nativeResponseValue;
22732 }
22733         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22734 /* @internal */
22735 export function AcceptChannel_set_first_per_commitment_point(this_ptr: bigint, val: number): void {
22736         if(!isWasmInitialized) {
22737                 throw new Error("initializeWasm() must be awaited first!");
22738         }
22739         const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
22740         // debug statements here
22741 }
22742         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
22743 /* @internal */
22744 export function AcceptChannel_get_channel_type(this_ptr: bigint): bigint {
22745         if(!isWasmInitialized) {
22746                 throw new Error("initializeWasm() must be awaited first!");
22747         }
22748         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
22749         return nativeResponseValue;
22750 }
22751         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
22752 /* @internal */
22753 export function AcceptChannel_set_channel_type(this_ptr: bigint, val: bigint): void {
22754         if(!isWasmInitialized) {
22755                 throw new Error("initializeWasm() must be awaited first!");
22756         }
22757         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
22758         // debug statements here
22759 }
22760         // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
22761 /* @internal */
22762 export function AcceptChannel_clone_ptr(arg: bigint): bigint {
22763         if(!isWasmInitialized) {
22764                 throw new Error("initializeWasm() must be awaited first!");
22765         }
22766         const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
22767         return nativeResponseValue;
22768 }
22769         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
22770 /* @internal */
22771 export function AcceptChannel_clone(orig: bigint): bigint {
22772         if(!isWasmInitialized) {
22773                 throw new Error("initializeWasm() must be awaited first!");
22774         }
22775         const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
22776         return nativeResponseValue;
22777 }
22778         // void FundingCreated_free(struct LDKFundingCreated this_obj);
22779 /* @internal */
22780 export function FundingCreated_free(this_obj: bigint): void {
22781         if(!isWasmInitialized) {
22782                 throw new Error("initializeWasm() must be awaited first!");
22783         }
22784         const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
22785         // debug statements here
22786 }
22787         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
22788 /* @internal */
22789 export function FundingCreated_get_temporary_channel_id(this_ptr: bigint): number {
22790         if(!isWasmInitialized) {
22791                 throw new Error("initializeWasm() must be awaited first!");
22792         }
22793         const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
22794         return nativeResponseValue;
22795 }
22796         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22797 /* @internal */
22798 export function FundingCreated_set_temporary_channel_id(this_ptr: bigint, val: number): void {
22799         if(!isWasmInitialized) {
22800                 throw new Error("initializeWasm() must be awaited first!");
22801         }
22802         const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
22803         // debug statements here
22804 }
22805         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
22806 /* @internal */
22807 export function FundingCreated_get_funding_txid(this_ptr: bigint): number {
22808         if(!isWasmInitialized) {
22809                 throw new Error("initializeWasm() must be awaited first!");
22810         }
22811         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
22812         return nativeResponseValue;
22813 }
22814         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22815 /* @internal */
22816 export function FundingCreated_set_funding_txid(this_ptr: bigint, val: number): void {
22817         if(!isWasmInitialized) {
22818                 throw new Error("initializeWasm() must be awaited first!");
22819         }
22820         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
22821         // debug statements here
22822 }
22823         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
22824 /* @internal */
22825 export function FundingCreated_get_funding_output_index(this_ptr: bigint): number {
22826         if(!isWasmInitialized) {
22827                 throw new Error("initializeWasm() must be awaited first!");
22828         }
22829         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
22830         return nativeResponseValue;
22831 }
22832         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
22833 /* @internal */
22834 export function FundingCreated_set_funding_output_index(this_ptr: bigint, val: number): void {
22835         if(!isWasmInitialized) {
22836                 throw new Error("initializeWasm() must be awaited first!");
22837         }
22838         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
22839         // debug statements here
22840 }
22841         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
22842 /* @internal */
22843 export function FundingCreated_get_signature(this_ptr: bigint): number {
22844         if(!isWasmInitialized) {
22845                 throw new Error("initializeWasm() must be awaited first!");
22846         }
22847         const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
22848         return nativeResponseValue;
22849 }
22850         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
22851 /* @internal */
22852 export function FundingCreated_set_signature(this_ptr: bigint, val: number): void {
22853         if(!isWasmInitialized) {
22854                 throw new Error("initializeWasm() must be awaited first!");
22855         }
22856         const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
22857         // debug statements here
22858 }
22859         // 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);
22860 /* @internal */
22861 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): bigint {
22862         if(!isWasmInitialized) {
22863                 throw new Error("initializeWasm() must be awaited first!");
22864         }
22865         const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
22866         return nativeResponseValue;
22867 }
22868         // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
22869 /* @internal */
22870 export function FundingCreated_clone_ptr(arg: bigint): bigint {
22871         if(!isWasmInitialized) {
22872                 throw new Error("initializeWasm() must be awaited first!");
22873         }
22874         const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
22875         return nativeResponseValue;
22876 }
22877         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
22878 /* @internal */
22879 export function FundingCreated_clone(orig: bigint): bigint {
22880         if(!isWasmInitialized) {
22881                 throw new Error("initializeWasm() must be awaited first!");
22882         }
22883         const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
22884         return nativeResponseValue;
22885 }
22886         // void FundingSigned_free(struct LDKFundingSigned this_obj);
22887 /* @internal */
22888 export function FundingSigned_free(this_obj: bigint): void {
22889         if(!isWasmInitialized) {
22890                 throw new Error("initializeWasm() must be awaited first!");
22891         }
22892         const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
22893         // debug statements here
22894 }
22895         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
22896 /* @internal */
22897 export function FundingSigned_get_channel_id(this_ptr: bigint): number {
22898         if(!isWasmInitialized) {
22899                 throw new Error("initializeWasm() must be awaited first!");
22900         }
22901         const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
22902         return nativeResponseValue;
22903 }
22904         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22905 /* @internal */
22906 export function FundingSigned_set_channel_id(this_ptr: bigint, val: number): void {
22907         if(!isWasmInitialized) {
22908                 throw new Error("initializeWasm() must be awaited first!");
22909         }
22910         const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
22911         // debug statements here
22912 }
22913         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
22914 /* @internal */
22915 export function FundingSigned_get_signature(this_ptr: bigint): number {
22916         if(!isWasmInitialized) {
22917                 throw new Error("initializeWasm() must be awaited first!");
22918         }
22919         const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
22920         return nativeResponseValue;
22921 }
22922         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
22923 /* @internal */
22924 export function FundingSigned_set_signature(this_ptr: bigint, val: number): void {
22925         if(!isWasmInitialized) {
22926                 throw new Error("initializeWasm() must be awaited first!");
22927         }
22928         const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
22929         // debug statements here
22930 }
22931         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
22932 /* @internal */
22933 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): bigint {
22934         if(!isWasmInitialized) {
22935                 throw new Error("initializeWasm() must be awaited first!");
22936         }
22937         const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
22938         return nativeResponseValue;
22939 }
22940         // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
22941 /* @internal */
22942 export function FundingSigned_clone_ptr(arg: bigint): bigint {
22943         if(!isWasmInitialized) {
22944                 throw new Error("initializeWasm() must be awaited first!");
22945         }
22946         const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
22947         return nativeResponseValue;
22948 }
22949         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
22950 /* @internal */
22951 export function FundingSigned_clone(orig: bigint): bigint {
22952         if(!isWasmInitialized) {
22953                 throw new Error("initializeWasm() must be awaited first!");
22954         }
22955         const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
22956         return nativeResponseValue;
22957 }
22958         // void ChannelReady_free(struct LDKChannelReady this_obj);
22959 /* @internal */
22960 export function ChannelReady_free(this_obj: bigint): void {
22961         if(!isWasmInitialized) {
22962                 throw new Error("initializeWasm() must be awaited first!");
22963         }
22964         const nativeResponseValue = wasm.TS_ChannelReady_free(this_obj);
22965         // debug statements here
22966 }
22967         // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
22968 /* @internal */
22969 export function ChannelReady_get_channel_id(this_ptr: bigint): number {
22970         if(!isWasmInitialized) {
22971                 throw new Error("initializeWasm() must be awaited first!");
22972         }
22973         const nativeResponseValue = wasm.TS_ChannelReady_get_channel_id(this_ptr);
22974         return nativeResponseValue;
22975 }
22976         // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22977 /* @internal */
22978 export function ChannelReady_set_channel_id(this_ptr: bigint, val: number): void {
22979         if(!isWasmInitialized) {
22980                 throw new Error("initializeWasm() must be awaited first!");
22981         }
22982         const nativeResponseValue = wasm.TS_ChannelReady_set_channel_id(this_ptr, val);
22983         // debug statements here
22984 }
22985         // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
22986 /* @internal */
22987 export function ChannelReady_get_next_per_commitment_point(this_ptr: bigint): number {
22988         if(!isWasmInitialized) {
22989                 throw new Error("initializeWasm() must be awaited first!");
22990         }
22991         const nativeResponseValue = wasm.TS_ChannelReady_get_next_per_commitment_point(this_ptr);
22992         return nativeResponseValue;
22993 }
22994         // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22995 /* @internal */
22996 export function ChannelReady_set_next_per_commitment_point(this_ptr: bigint, val: number): void {
22997         if(!isWasmInitialized) {
22998                 throw new Error("initializeWasm() must be awaited first!");
22999         }
23000         const nativeResponseValue = wasm.TS_ChannelReady_set_next_per_commitment_point(this_ptr, val);
23001         // debug statements here
23002 }
23003         // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
23004 /* @internal */
23005 export function ChannelReady_get_short_channel_id_alias(this_ptr: bigint): bigint {
23006         if(!isWasmInitialized) {
23007                 throw new Error("initializeWasm() must be awaited first!");
23008         }
23009         const nativeResponseValue = wasm.TS_ChannelReady_get_short_channel_id_alias(this_ptr);
23010         return nativeResponseValue;
23011 }
23012         // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
23013 /* @internal */
23014 export function ChannelReady_set_short_channel_id_alias(this_ptr: bigint, val: bigint): void {
23015         if(!isWasmInitialized) {
23016                 throw new Error("initializeWasm() must be awaited first!");
23017         }
23018         const nativeResponseValue = wasm.TS_ChannelReady_set_short_channel_id_alias(this_ptr, val);
23019         // debug statements here
23020 }
23021         // 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);
23022 /* @internal */
23023 export function ChannelReady_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: bigint): bigint {
23024         if(!isWasmInitialized) {
23025                 throw new Error("initializeWasm() must be awaited first!");
23026         }
23027         const nativeResponseValue = wasm.TS_ChannelReady_new(channel_id_arg, next_per_commitment_point_arg, short_channel_id_alias_arg);
23028         return nativeResponseValue;
23029 }
23030         // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
23031 /* @internal */
23032 export function ChannelReady_clone_ptr(arg: bigint): bigint {
23033         if(!isWasmInitialized) {
23034                 throw new Error("initializeWasm() must be awaited first!");
23035         }
23036         const nativeResponseValue = wasm.TS_ChannelReady_clone_ptr(arg);
23037         return nativeResponseValue;
23038 }
23039         // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
23040 /* @internal */
23041 export function ChannelReady_clone(orig: bigint): bigint {
23042         if(!isWasmInitialized) {
23043                 throw new Error("initializeWasm() must be awaited first!");
23044         }
23045         const nativeResponseValue = wasm.TS_ChannelReady_clone(orig);
23046         return nativeResponseValue;
23047 }
23048         // void Shutdown_free(struct LDKShutdown this_obj);
23049 /* @internal */
23050 export function Shutdown_free(this_obj: bigint): void {
23051         if(!isWasmInitialized) {
23052                 throw new Error("initializeWasm() must be awaited first!");
23053         }
23054         const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
23055         // debug statements here
23056 }
23057         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
23058 /* @internal */
23059 export function Shutdown_get_channel_id(this_ptr: bigint): number {
23060         if(!isWasmInitialized) {
23061                 throw new Error("initializeWasm() must be awaited first!");
23062         }
23063         const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
23064         return nativeResponseValue;
23065 }
23066         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23067 /* @internal */
23068 export function Shutdown_set_channel_id(this_ptr: bigint, val: number): void {
23069         if(!isWasmInitialized) {
23070                 throw new Error("initializeWasm() must be awaited first!");
23071         }
23072         const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
23073         // debug statements here
23074 }
23075         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
23076 /* @internal */
23077 export function Shutdown_get_scriptpubkey(this_ptr: bigint): number {
23078         if(!isWasmInitialized) {
23079                 throw new Error("initializeWasm() must be awaited first!");
23080         }
23081         const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
23082         return nativeResponseValue;
23083 }
23084         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
23085 /* @internal */
23086 export function Shutdown_set_scriptpubkey(this_ptr: bigint, val: number): void {
23087         if(!isWasmInitialized) {
23088                 throw new Error("initializeWasm() must be awaited first!");
23089         }
23090         const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
23091         // debug statements here
23092 }
23093         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
23094 /* @internal */
23095 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): bigint {
23096         if(!isWasmInitialized) {
23097                 throw new Error("initializeWasm() must be awaited first!");
23098         }
23099         const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
23100         return nativeResponseValue;
23101 }
23102         // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
23103 /* @internal */
23104 export function Shutdown_clone_ptr(arg: bigint): bigint {
23105         if(!isWasmInitialized) {
23106                 throw new Error("initializeWasm() must be awaited first!");
23107         }
23108         const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
23109         return nativeResponseValue;
23110 }
23111         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
23112 /* @internal */
23113 export function Shutdown_clone(orig: bigint): bigint {
23114         if(!isWasmInitialized) {
23115                 throw new Error("initializeWasm() must be awaited first!");
23116         }
23117         const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
23118         return nativeResponseValue;
23119 }
23120         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
23121 /* @internal */
23122 export function ClosingSignedFeeRange_free(this_obj: bigint): void {
23123         if(!isWasmInitialized) {
23124                 throw new Error("initializeWasm() must be awaited first!");
23125         }
23126         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
23127         // debug statements here
23128 }
23129         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
23130 /* @internal */
23131 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: bigint): bigint {
23132         if(!isWasmInitialized) {
23133                 throw new Error("initializeWasm() must be awaited first!");
23134         }
23135         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
23136         return nativeResponseValue;
23137 }
23138         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
23139 /* @internal */
23140 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: bigint, val: bigint): void {
23141         if(!isWasmInitialized) {
23142                 throw new Error("initializeWasm() must be awaited first!");
23143         }
23144         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
23145         // debug statements here
23146 }
23147         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
23148 /* @internal */
23149 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: bigint): bigint {
23150         if(!isWasmInitialized) {
23151                 throw new Error("initializeWasm() must be awaited first!");
23152         }
23153         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
23154         return nativeResponseValue;
23155 }
23156         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
23157 /* @internal */
23158 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: bigint, val: bigint): void {
23159         if(!isWasmInitialized) {
23160                 throw new Error("initializeWasm() must be awaited first!");
23161         }
23162         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
23163         // debug statements here
23164 }
23165         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
23166 /* @internal */
23167 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): bigint {
23168         if(!isWasmInitialized) {
23169                 throw new Error("initializeWasm() must be awaited first!");
23170         }
23171         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
23172         return nativeResponseValue;
23173 }
23174         // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
23175 /* @internal */
23176 export function ClosingSignedFeeRange_clone_ptr(arg: bigint): bigint {
23177         if(!isWasmInitialized) {
23178                 throw new Error("initializeWasm() must be awaited first!");
23179         }
23180         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
23181         return nativeResponseValue;
23182 }
23183         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
23184 /* @internal */
23185 export function ClosingSignedFeeRange_clone(orig: bigint): bigint {
23186         if(!isWasmInitialized) {
23187                 throw new Error("initializeWasm() must be awaited first!");
23188         }
23189         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
23190         return nativeResponseValue;
23191 }
23192         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
23193 /* @internal */
23194 export function ClosingSigned_free(this_obj: bigint): void {
23195         if(!isWasmInitialized) {
23196                 throw new Error("initializeWasm() must be awaited first!");
23197         }
23198         const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
23199         // debug statements here
23200 }
23201         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
23202 /* @internal */
23203 export function ClosingSigned_get_channel_id(this_ptr: bigint): number {
23204         if(!isWasmInitialized) {
23205                 throw new Error("initializeWasm() must be awaited first!");
23206         }
23207         const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
23208         return nativeResponseValue;
23209 }
23210         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23211 /* @internal */
23212 export function ClosingSigned_set_channel_id(this_ptr: bigint, val: number): void {
23213         if(!isWasmInitialized) {
23214                 throw new Error("initializeWasm() must be awaited first!");
23215         }
23216         const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
23217         // debug statements here
23218 }
23219         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
23220 /* @internal */
23221 export function ClosingSigned_get_fee_satoshis(this_ptr: bigint): bigint {
23222         if(!isWasmInitialized) {
23223                 throw new Error("initializeWasm() must be awaited first!");
23224         }
23225         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
23226         return nativeResponseValue;
23227 }
23228         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
23229 /* @internal */
23230 export function ClosingSigned_set_fee_satoshis(this_ptr: bigint, val: bigint): void {
23231         if(!isWasmInitialized) {
23232                 throw new Error("initializeWasm() must be awaited first!");
23233         }
23234         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
23235         // debug statements here
23236 }
23237         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
23238 /* @internal */
23239 export function ClosingSigned_get_signature(this_ptr: bigint): number {
23240         if(!isWasmInitialized) {
23241                 throw new Error("initializeWasm() must be awaited first!");
23242         }
23243         const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
23244         return nativeResponseValue;
23245 }
23246         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
23247 /* @internal */
23248 export function ClosingSigned_set_signature(this_ptr: bigint, val: number): void {
23249         if(!isWasmInitialized) {
23250                 throw new Error("initializeWasm() must be awaited first!");
23251         }
23252         const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
23253         // debug statements here
23254 }
23255         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
23256 /* @internal */
23257 export function ClosingSigned_get_fee_range(this_ptr: bigint): bigint {
23258         if(!isWasmInitialized) {
23259                 throw new Error("initializeWasm() must be awaited first!");
23260         }
23261         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
23262         return nativeResponseValue;
23263 }
23264         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
23265 /* @internal */
23266 export function ClosingSigned_set_fee_range(this_ptr: bigint, val: bigint): void {
23267         if(!isWasmInitialized) {
23268                 throw new Error("initializeWasm() must be awaited first!");
23269         }
23270         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
23271         // debug statements here
23272 }
23273         // 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);
23274 /* @internal */
23275 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: bigint): bigint {
23276         if(!isWasmInitialized) {
23277                 throw new Error("initializeWasm() must be awaited first!");
23278         }
23279         const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
23280         return nativeResponseValue;
23281 }
23282         // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
23283 /* @internal */
23284 export function ClosingSigned_clone_ptr(arg: bigint): bigint {
23285         if(!isWasmInitialized) {
23286                 throw new Error("initializeWasm() must be awaited first!");
23287         }
23288         const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
23289         return nativeResponseValue;
23290 }
23291         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
23292 /* @internal */
23293 export function ClosingSigned_clone(orig: bigint): bigint {
23294         if(!isWasmInitialized) {
23295                 throw new Error("initializeWasm() must be awaited first!");
23296         }
23297         const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
23298         return nativeResponseValue;
23299 }
23300         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
23301 /* @internal */
23302 export function UpdateAddHTLC_free(this_obj: bigint): void {
23303         if(!isWasmInitialized) {
23304                 throw new Error("initializeWasm() must be awaited first!");
23305         }
23306         const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
23307         // debug statements here
23308 }
23309         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
23310 /* @internal */
23311 export function UpdateAddHTLC_get_channel_id(this_ptr: bigint): number {
23312         if(!isWasmInitialized) {
23313                 throw new Error("initializeWasm() must be awaited first!");
23314         }
23315         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
23316         return nativeResponseValue;
23317 }
23318         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23319 /* @internal */
23320 export function UpdateAddHTLC_set_channel_id(this_ptr: bigint, val: number): void {
23321         if(!isWasmInitialized) {
23322                 throw new Error("initializeWasm() must be awaited first!");
23323         }
23324         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
23325         // debug statements here
23326 }
23327         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
23328 /* @internal */
23329 export function UpdateAddHTLC_get_htlc_id(this_ptr: bigint): bigint {
23330         if(!isWasmInitialized) {
23331                 throw new Error("initializeWasm() must be awaited first!");
23332         }
23333         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
23334         return nativeResponseValue;
23335 }
23336         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
23337 /* @internal */
23338 export function UpdateAddHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
23339         if(!isWasmInitialized) {
23340                 throw new Error("initializeWasm() must be awaited first!");
23341         }
23342         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
23343         // debug statements here
23344 }
23345         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
23346 /* @internal */
23347 export function UpdateAddHTLC_get_amount_msat(this_ptr: bigint): bigint {
23348         if(!isWasmInitialized) {
23349                 throw new Error("initializeWasm() must be awaited first!");
23350         }
23351         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
23352         return nativeResponseValue;
23353 }
23354         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
23355 /* @internal */
23356 export function UpdateAddHTLC_set_amount_msat(this_ptr: bigint, val: bigint): void {
23357         if(!isWasmInitialized) {
23358                 throw new Error("initializeWasm() must be awaited first!");
23359         }
23360         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
23361         // debug statements here
23362 }
23363         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
23364 /* @internal */
23365 export function UpdateAddHTLC_get_payment_hash(this_ptr: bigint): number {
23366         if(!isWasmInitialized) {
23367                 throw new Error("initializeWasm() must be awaited first!");
23368         }
23369         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
23370         return nativeResponseValue;
23371 }
23372         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23373 /* @internal */
23374 export function UpdateAddHTLC_set_payment_hash(this_ptr: bigint, val: number): void {
23375         if(!isWasmInitialized) {
23376                 throw new Error("initializeWasm() must be awaited first!");
23377         }
23378         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
23379         // debug statements here
23380 }
23381         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
23382 /* @internal */
23383 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: bigint): number {
23384         if(!isWasmInitialized) {
23385                 throw new Error("initializeWasm() must be awaited first!");
23386         }
23387         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
23388         return nativeResponseValue;
23389 }
23390         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
23391 /* @internal */
23392 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: bigint, val: number): void {
23393         if(!isWasmInitialized) {
23394                 throw new Error("initializeWasm() must be awaited first!");
23395         }
23396         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
23397         // debug statements here
23398 }
23399         // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
23400 /* @internal */
23401 export function UpdateAddHTLC_clone_ptr(arg: bigint): bigint {
23402         if(!isWasmInitialized) {
23403                 throw new Error("initializeWasm() must be awaited first!");
23404         }
23405         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
23406         return nativeResponseValue;
23407 }
23408         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
23409 /* @internal */
23410 export function UpdateAddHTLC_clone(orig: bigint): bigint {
23411         if(!isWasmInitialized) {
23412                 throw new Error("initializeWasm() must be awaited first!");
23413         }
23414         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
23415         return nativeResponseValue;
23416 }
23417         // void OnionMessage_free(struct LDKOnionMessage this_obj);
23418 /* @internal */
23419 export function OnionMessage_free(this_obj: bigint): void {
23420         if(!isWasmInitialized) {
23421                 throw new Error("initializeWasm() must be awaited first!");
23422         }
23423         const nativeResponseValue = wasm.TS_OnionMessage_free(this_obj);
23424         // debug statements here
23425 }
23426         // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
23427 /* @internal */
23428 export function OnionMessage_get_blinding_point(this_ptr: bigint): number {
23429         if(!isWasmInitialized) {
23430                 throw new Error("initializeWasm() must be awaited first!");
23431         }
23432         const nativeResponseValue = wasm.TS_OnionMessage_get_blinding_point(this_ptr);
23433         return nativeResponseValue;
23434 }
23435         // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23436 /* @internal */
23437 export function OnionMessage_set_blinding_point(this_ptr: bigint, val: number): void {
23438         if(!isWasmInitialized) {
23439                 throw new Error("initializeWasm() must be awaited first!");
23440         }
23441         const nativeResponseValue = wasm.TS_OnionMessage_set_blinding_point(this_ptr, val);
23442         // debug statements here
23443 }
23444         // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
23445 /* @internal */
23446 export function OnionMessage_clone_ptr(arg: bigint): bigint {
23447         if(!isWasmInitialized) {
23448                 throw new Error("initializeWasm() must be awaited first!");
23449         }
23450         const nativeResponseValue = wasm.TS_OnionMessage_clone_ptr(arg);
23451         return nativeResponseValue;
23452 }
23453         // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
23454 /* @internal */
23455 export function OnionMessage_clone(orig: bigint): bigint {
23456         if(!isWasmInitialized) {
23457                 throw new Error("initializeWasm() must be awaited first!");
23458         }
23459         const nativeResponseValue = wasm.TS_OnionMessage_clone(orig);
23460         return nativeResponseValue;
23461 }
23462         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
23463 /* @internal */
23464 export function UpdateFulfillHTLC_free(this_obj: bigint): void {
23465         if(!isWasmInitialized) {
23466                 throw new Error("initializeWasm() must be awaited first!");
23467         }
23468         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
23469         // debug statements here
23470 }
23471         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
23472 /* @internal */
23473 export function UpdateFulfillHTLC_get_channel_id(this_ptr: bigint): number {
23474         if(!isWasmInitialized) {
23475                 throw new Error("initializeWasm() must be awaited first!");
23476         }
23477         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
23478         return nativeResponseValue;
23479 }
23480         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23481 /* @internal */
23482 export function UpdateFulfillHTLC_set_channel_id(this_ptr: bigint, val: number): void {
23483         if(!isWasmInitialized) {
23484                 throw new Error("initializeWasm() must be awaited first!");
23485         }
23486         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
23487         // debug statements here
23488 }
23489         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
23490 /* @internal */
23491 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: bigint): bigint {
23492         if(!isWasmInitialized) {
23493                 throw new Error("initializeWasm() must be awaited first!");
23494         }
23495         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
23496         return nativeResponseValue;
23497 }
23498         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
23499 /* @internal */
23500 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
23501         if(!isWasmInitialized) {
23502                 throw new Error("initializeWasm() must be awaited first!");
23503         }
23504         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
23505         // debug statements here
23506 }
23507         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
23508 /* @internal */
23509 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: bigint): number {
23510         if(!isWasmInitialized) {
23511                 throw new Error("initializeWasm() must be awaited first!");
23512         }
23513         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
23514         return nativeResponseValue;
23515 }
23516         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23517 /* @internal */
23518 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: bigint, val: number): void {
23519         if(!isWasmInitialized) {
23520                 throw new Error("initializeWasm() must be awaited first!");
23521         }
23522         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
23523         // debug statements here
23524 }
23525         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
23526 /* @internal */
23527 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): bigint {
23528         if(!isWasmInitialized) {
23529                 throw new Error("initializeWasm() must be awaited first!");
23530         }
23531         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
23532         return nativeResponseValue;
23533 }
23534         // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
23535 /* @internal */
23536 export function UpdateFulfillHTLC_clone_ptr(arg: bigint): bigint {
23537         if(!isWasmInitialized) {
23538                 throw new Error("initializeWasm() must be awaited first!");
23539         }
23540         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
23541         return nativeResponseValue;
23542 }
23543         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
23544 /* @internal */
23545 export function UpdateFulfillHTLC_clone(orig: bigint): bigint {
23546         if(!isWasmInitialized) {
23547                 throw new Error("initializeWasm() must be awaited first!");
23548         }
23549         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
23550         return nativeResponseValue;
23551 }
23552         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
23553 /* @internal */
23554 export function UpdateFailHTLC_free(this_obj: bigint): void {
23555         if(!isWasmInitialized) {
23556                 throw new Error("initializeWasm() must be awaited first!");
23557         }
23558         const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
23559         // debug statements here
23560 }
23561         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
23562 /* @internal */
23563 export function UpdateFailHTLC_get_channel_id(this_ptr: bigint): number {
23564         if(!isWasmInitialized) {
23565                 throw new Error("initializeWasm() must be awaited first!");
23566         }
23567         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
23568         return nativeResponseValue;
23569 }
23570         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23571 /* @internal */
23572 export function UpdateFailHTLC_set_channel_id(this_ptr: bigint, val: number): void {
23573         if(!isWasmInitialized) {
23574                 throw new Error("initializeWasm() must be awaited first!");
23575         }
23576         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
23577         // debug statements here
23578 }
23579         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
23580 /* @internal */
23581 export function UpdateFailHTLC_get_htlc_id(this_ptr: bigint): bigint {
23582         if(!isWasmInitialized) {
23583                 throw new Error("initializeWasm() must be awaited first!");
23584         }
23585         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
23586         return nativeResponseValue;
23587 }
23588         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
23589 /* @internal */
23590 export function UpdateFailHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
23591         if(!isWasmInitialized) {
23592                 throw new Error("initializeWasm() must be awaited first!");
23593         }
23594         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
23595         // debug statements here
23596 }
23597         // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
23598 /* @internal */
23599 export function UpdateFailHTLC_clone_ptr(arg: bigint): bigint {
23600         if(!isWasmInitialized) {
23601                 throw new Error("initializeWasm() must be awaited first!");
23602         }
23603         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
23604         return nativeResponseValue;
23605 }
23606         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
23607 /* @internal */
23608 export function UpdateFailHTLC_clone(orig: bigint): bigint {
23609         if(!isWasmInitialized) {
23610                 throw new Error("initializeWasm() must be awaited first!");
23611         }
23612         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
23613         return nativeResponseValue;
23614 }
23615         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
23616 /* @internal */
23617 export function UpdateFailMalformedHTLC_free(this_obj: bigint): void {
23618         if(!isWasmInitialized) {
23619                 throw new Error("initializeWasm() must be awaited first!");
23620         }
23621         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
23622         // debug statements here
23623 }
23624         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
23625 /* @internal */
23626 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: bigint): number {
23627         if(!isWasmInitialized) {
23628                 throw new Error("initializeWasm() must be awaited first!");
23629         }
23630         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
23631         return nativeResponseValue;
23632 }
23633         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23634 /* @internal */
23635 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: bigint, val: number): void {
23636         if(!isWasmInitialized) {
23637                 throw new Error("initializeWasm() must be awaited first!");
23638         }
23639         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
23640         // debug statements here
23641 }
23642         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
23643 /* @internal */
23644 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: bigint): bigint {
23645         if(!isWasmInitialized) {
23646                 throw new Error("initializeWasm() must be awaited first!");
23647         }
23648         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
23649         return nativeResponseValue;
23650 }
23651         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
23652 /* @internal */
23653 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
23654         if(!isWasmInitialized) {
23655                 throw new Error("initializeWasm() must be awaited first!");
23656         }
23657         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
23658         // debug statements here
23659 }
23660         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
23661 /* @internal */
23662 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: bigint): number {
23663         if(!isWasmInitialized) {
23664                 throw new Error("initializeWasm() must be awaited first!");
23665         }
23666         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
23667         return nativeResponseValue;
23668 }
23669         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
23670 /* @internal */
23671 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: bigint, val: number): void {
23672         if(!isWasmInitialized) {
23673                 throw new Error("initializeWasm() must be awaited first!");
23674         }
23675         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
23676         // debug statements here
23677 }
23678         // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
23679 /* @internal */
23680 export function UpdateFailMalformedHTLC_clone_ptr(arg: bigint): bigint {
23681         if(!isWasmInitialized) {
23682                 throw new Error("initializeWasm() must be awaited first!");
23683         }
23684         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
23685         return nativeResponseValue;
23686 }
23687         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
23688 /* @internal */
23689 export function UpdateFailMalformedHTLC_clone(orig: bigint): bigint {
23690         if(!isWasmInitialized) {
23691                 throw new Error("initializeWasm() must be awaited first!");
23692         }
23693         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
23694         return nativeResponseValue;
23695 }
23696         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
23697 /* @internal */
23698 export function CommitmentSigned_free(this_obj: bigint): void {
23699         if(!isWasmInitialized) {
23700                 throw new Error("initializeWasm() must be awaited first!");
23701         }
23702         const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
23703         // debug statements here
23704 }
23705         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
23706 /* @internal */
23707 export function CommitmentSigned_get_channel_id(this_ptr: bigint): number {
23708         if(!isWasmInitialized) {
23709                 throw new Error("initializeWasm() must be awaited first!");
23710         }
23711         const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
23712         return nativeResponseValue;
23713 }
23714         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23715 /* @internal */
23716 export function CommitmentSigned_set_channel_id(this_ptr: bigint, val: number): void {
23717         if(!isWasmInitialized) {
23718                 throw new Error("initializeWasm() must be awaited first!");
23719         }
23720         const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
23721         // debug statements here
23722 }
23723         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
23724 /* @internal */
23725 export function CommitmentSigned_get_signature(this_ptr: bigint): number {
23726         if(!isWasmInitialized) {
23727                 throw new Error("initializeWasm() must be awaited first!");
23728         }
23729         const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
23730         return nativeResponseValue;
23731 }
23732         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
23733 /* @internal */
23734 export function CommitmentSigned_set_signature(this_ptr: bigint, val: number): void {
23735         if(!isWasmInitialized) {
23736                 throw new Error("initializeWasm() must be awaited first!");
23737         }
23738         const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
23739         // debug statements here
23740 }
23741         // struct LDKCVec_SignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
23742 /* @internal */
23743 export function CommitmentSigned_get_htlc_signatures(this_ptr: bigint): number {
23744         if(!isWasmInitialized) {
23745                 throw new Error("initializeWasm() must be awaited first!");
23746         }
23747         const nativeResponseValue = wasm.TS_CommitmentSigned_get_htlc_signatures(this_ptr);
23748         return nativeResponseValue;
23749 }
23750         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
23751 /* @internal */
23752 export function CommitmentSigned_set_htlc_signatures(this_ptr: bigint, val: number): void {
23753         if(!isWasmInitialized) {
23754                 throw new Error("initializeWasm() must be awaited first!");
23755         }
23756         const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
23757         // debug statements here
23758 }
23759         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
23760 /* @internal */
23761 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): bigint {
23762         if(!isWasmInitialized) {
23763                 throw new Error("initializeWasm() must be awaited first!");
23764         }
23765         const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
23766         return nativeResponseValue;
23767 }
23768         // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
23769 /* @internal */
23770 export function CommitmentSigned_clone_ptr(arg: bigint): bigint {
23771         if(!isWasmInitialized) {
23772                 throw new Error("initializeWasm() must be awaited first!");
23773         }
23774         const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
23775         return nativeResponseValue;
23776 }
23777         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
23778 /* @internal */
23779 export function CommitmentSigned_clone(orig: bigint): bigint {
23780         if(!isWasmInitialized) {
23781                 throw new Error("initializeWasm() must be awaited first!");
23782         }
23783         const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
23784         return nativeResponseValue;
23785 }
23786         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
23787 /* @internal */
23788 export function RevokeAndACK_free(this_obj: bigint): void {
23789         if(!isWasmInitialized) {
23790                 throw new Error("initializeWasm() must be awaited first!");
23791         }
23792         const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
23793         // debug statements here
23794 }
23795         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
23796 /* @internal */
23797 export function RevokeAndACK_get_channel_id(this_ptr: bigint): number {
23798         if(!isWasmInitialized) {
23799                 throw new Error("initializeWasm() must be awaited first!");
23800         }
23801         const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
23802         return nativeResponseValue;
23803 }
23804         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23805 /* @internal */
23806 export function RevokeAndACK_set_channel_id(this_ptr: bigint, val: number): void {
23807         if(!isWasmInitialized) {
23808                 throw new Error("initializeWasm() must be awaited first!");
23809         }
23810         const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
23811         // debug statements here
23812 }
23813         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
23814 /* @internal */
23815 export function RevokeAndACK_get_per_commitment_secret(this_ptr: bigint): number {
23816         if(!isWasmInitialized) {
23817                 throw new Error("initializeWasm() must be awaited first!");
23818         }
23819         const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
23820         return nativeResponseValue;
23821 }
23822         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23823 /* @internal */
23824 export function RevokeAndACK_set_per_commitment_secret(this_ptr: bigint, val: number): void {
23825         if(!isWasmInitialized) {
23826                 throw new Error("initializeWasm() must be awaited first!");
23827         }
23828         const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
23829         // debug statements here
23830 }
23831         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
23832 /* @internal */
23833 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: bigint): number {
23834         if(!isWasmInitialized) {
23835                 throw new Error("initializeWasm() must be awaited first!");
23836         }
23837         const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
23838         return nativeResponseValue;
23839 }
23840         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23841 /* @internal */
23842 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: bigint, val: number): void {
23843         if(!isWasmInitialized) {
23844                 throw new Error("initializeWasm() must be awaited first!");
23845         }
23846         const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
23847         // debug statements here
23848 }
23849         // 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);
23850 /* @internal */
23851 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): bigint {
23852         if(!isWasmInitialized) {
23853                 throw new Error("initializeWasm() must be awaited first!");
23854         }
23855         const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
23856         return nativeResponseValue;
23857 }
23858         // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
23859 /* @internal */
23860 export function RevokeAndACK_clone_ptr(arg: bigint): bigint {
23861         if(!isWasmInitialized) {
23862                 throw new Error("initializeWasm() must be awaited first!");
23863         }
23864         const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
23865         return nativeResponseValue;
23866 }
23867         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
23868 /* @internal */
23869 export function RevokeAndACK_clone(orig: bigint): bigint {
23870         if(!isWasmInitialized) {
23871                 throw new Error("initializeWasm() must be awaited first!");
23872         }
23873         const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
23874         return nativeResponseValue;
23875 }
23876         // void UpdateFee_free(struct LDKUpdateFee this_obj);
23877 /* @internal */
23878 export function UpdateFee_free(this_obj: bigint): void {
23879         if(!isWasmInitialized) {
23880                 throw new Error("initializeWasm() must be awaited first!");
23881         }
23882         const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
23883         // debug statements here
23884 }
23885         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
23886 /* @internal */
23887 export function UpdateFee_get_channel_id(this_ptr: bigint): number {
23888         if(!isWasmInitialized) {
23889                 throw new Error("initializeWasm() must be awaited first!");
23890         }
23891         const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
23892         return nativeResponseValue;
23893 }
23894         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23895 /* @internal */
23896 export function UpdateFee_set_channel_id(this_ptr: bigint, val: number): void {
23897         if(!isWasmInitialized) {
23898                 throw new Error("initializeWasm() must be awaited first!");
23899         }
23900         const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
23901         // debug statements here
23902 }
23903         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
23904 /* @internal */
23905 export function UpdateFee_get_feerate_per_kw(this_ptr: bigint): number {
23906         if(!isWasmInitialized) {
23907                 throw new Error("initializeWasm() must be awaited first!");
23908         }
23909         const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
23910         return nativeResponseValue;
23911 }
23912         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
23913 /* @internal */
23914 export function UpdateFee_set_feerate_per_kw(this_ptr: bigint, val: number): void {
23915         if(!isWasmInitialized) {
23916                 throw new Error("initializeWasm() must be awaited first!");
23917         }
23918         const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
23919         // debug statements here
23920 }
23921         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
23922 /* @internal */
23923 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): bigint {
23924         if(!isWasmInitialized) {
23925                 throw new Error("initializeWasm() must be awaited first!");
23926         }
23927         const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
23928         return nativeResponseValue;
23929 }
23930         // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
23931 /* @internal */
23932 export function UpdateFee_clone_ptr(arg: bigint): bigint {
23933         if(!isWasmInitialized) {
23934                 throw new Error("initializeWasm() must be awaited first!");
23935         }
23936         const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
23937         return nativeResponseValue;
23938 }
23939         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
23940 /* @internal */
23941 export function UpdateFee_clone(orig: bigint): bigint {
23942         if(!isWasmInitialized) {
23943                 throw new Error("initializeWasm() must be awaited first!");
23944         }
23945         const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
23946         return nativeResponseValue;
23947 }
23948         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
23949 /* @internal */
23950 export function DataLossProtect_free(this_obj: bigint): void {
23951         if(!isWasmInitialized) {
23952                 throw new Error("initializeWasm() must be awaited first!");
23953         }
23954         const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
23955         // debug statements here
23956 }
23957         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
23958 /* @internal */
23959 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: bigint): number {
23960         if(!isWasmInitialized) {
23961                 throw new Error("initializeWasm() must be awaited first!");
23962         }
23963         const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
23964         return nativeResponseValue;
23965 }
23966         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23967 /* @internal */
23968 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: bigint, val: number): void {
23969         if(!isWasmInitialized) {
23970                 throw new Error("initializeWasm() must be awaited first!");
23971         }
23972         const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
23973         // debug statements here
23974 }
23975         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
23976 /* @internal */
23977 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: bigint): number {
23978         if(!isWasmInitialized) {
23979                 throw new Error("initializeWasm() must be awaited first!");
23980         }
23981         const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
23982         return nativeResponseValue;
23983 }
23984         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23985 /* @internal */
23986 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: bigint, val: number): void {
23987         if(!isWasmInitialized) {
23988                 throw new Error("initializeWasm() must be awaited first!");
23989         }
23990         const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
23991         // debug statements here
23992 }
23993         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
23994 /* @internal */
23995 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): bigint {
23996         if(!isWasmInitialized) {
23997                 throw new Error("initializeWasm() must be awaited first!");
23998         }
23999         const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
24000         return nativeResponseValue;
24001 }
24002         // uint64_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
24003 /* @internal */
24004 export function DataLossProtect_clone_ptr(arg: bigint): bigint {
24005         if(!isWasmInitialized) {
24006                 throw new Error("initializeWasm() must be awaited first!");
24007         }
24008         const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
24009         return nativeResponseValue;
24010 }
24011         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
24012 /* @internal */
24013 export function DataLossProtect_clone(orig: bigint): bigint {
24014         if(!isWasmInitialized) {
24015                 throw new Error("initializeWasm() must be awaited first!");
24016         }
24017         const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
24018         return nativeResponseValue;
24019 }
24020         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
24021 /* @internal */
24022 export function ChannelReestablish_free(this_obj: bigint): void {
24023         if(!isWasmInitialized) {
24024                 throw new Error("initializeWasm() must be awaited first!");
24025         }
24026         const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
24027         // debug statements here
24028 }
24029         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
24030 /* @internal */
24031 export function ChannelReestablish_get_channel_id(this_ptr: bigint): number {
24032         if(!isWasmInitialized) {
24033                 throw new Error("initializeWasm() must be awaited first!");
24034         }
24035         const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
24036         return nativeResponseValue;
24037 }
24038         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24039 /* @internal */
24040 export function ChannelReestablish_set_channel_id(this_ptr: bigint, val: number): void {
24041         if(!isWasmInitialized) {
24042                 throw new Error("initializeWasm() must be awaited first!");
24043         }
24044         const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
24045         // debug statements here
24046 }
24047         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
24048 /* @internal */
24049 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: bigint): bigint {
24050         if(!isWasmInitialized) {
24051                 throw new Error("initializeWasm() must be awaited first!");
24052         }
24053         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
24054         return nativeResponseValue;
24055 }
24056         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
24057 /* @internal */
24058 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: bigint, val: bigint): void {
24059         if(!isWasmInitialized) {
24060                 throw new Error("initializeWasm() must be awaited first!");
24061         }
24062         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
24063         // debug statements here
24064 }
24065         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
24066 /* @internal */
24067 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: bigint): bigint {
24068         if(!isWasmInitialized) {
24069                 throw new Error("initializeWasm() must be awaited first!");
24070         }
24071         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
24072         return nativeResponseValue;
24073 }
24074         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
24075 /* @internal */
24076 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: bigint, val: bigint): void {
24077         if(!isWasmInitialized) {
24078                 throw new Error("initializeWasm() must be awaited first!");
24079         }
24080         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
24081         // debug statements here
24082 }
24083         // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
24084 /* @internal */
24085 export function ChannelReestablish_clone_ptr(arg: bigint): bigint {
24086         if(!isWasmInitialized) {
24087                 throw new Error("initializeWasm() must be awaited first!");
24088         }
24089         const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
24090         return nativeResponseValue;
24091 }
24092         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
24093 /* @internal */
24094 export function ChannelReestablish_clone(orig: bigint): bigint {
24095         if(!isWasmInitialized) {
24096                 throw new Error("initializeWasm() must be awaited first!");
24097         }
24098         const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
24099         return nativeResponseValue;
24100 }
24101         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
24102 /* @internal */
24103 export function AnnouncementSignatures_free(this_obj: bigint): void {
24104         if(!isWasmInitialized) {
24105                 throw new Error("initializeWasm() must be awaited first!");
24106         }
24107         const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
24108         // debug statements here
24109 }
24110         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
24111 /* @internal */
24112 export function AnnouncementSignatures_get_channel_id(this_ptr: bigint): number {
24113         if(!isWasmInitialized) {
24114                 throw new Error("initializeWasm() must be awaited first!");
24115         }
24116         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
24117         return nativeResponseValue;
24118 }
24119         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24120 /* @internal */
24121 export function AnnouncementSignatures_set_channel_id(this_ptr: bigint, val: number): void {
24122         if(!isWasmInitialized) {
24123                 throw new Error("initializeWasm() must be awaited first!");
24124         }
24125         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
24126         // debug statements here
24127 }
24128         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
24129 /* @internal */
24130 export function AnnouncementSignatures_get_short_channel_id(this_ptr: bigint): bigint {
24131         if(!isWasmInitialized) {
24132                 throw new Error("initializeWasm() must be awaited first!");
24133         }
24134         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
24135         return nativeResponseValue;
24136 }
24137         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
24138 /* @internal */
24139 export function AnnouncementSignatures_set_short_channel_id(this_ptr: bigint, val: bigint): void {
24140         if(!isWasmInitialized) {
24141                 throw new Error("initializeWasm() must be awaited first!");
24142         }
24143         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
24144         // debug statements here
24145 }
24146         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
24147 /* @internal */
24148 export function AnnouncementSignatures_get_node_signature(this_ptr: bigint): number {
24149         if(!isWasmInitialized) {
24150                 throw new Error("initializeWasm() must be awaited first!");
24151         }
24152         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
24153         return nativeResponseValue;
24154 }
24155         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
24156 /* @internal */
24157 export function AnnouncementSignatures_set_node_signature(this_ptr: bigint, val: number): void {
24158         if(!isWasmInitialized) {
24159                 throw new Error("initializeWasm() must be awaited first!");
24160         }
24161         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
24162         // debug statements here
24163 }
24164         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
24165 /* @internal */
24166 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: bigint): number {
24167         if(!isWasmInitialized) {
24168                 throw new Error("initializeWasm() must be awaited first!");
24169         }
24170         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
24171         return nativeResponseValue;
24172 }
24173         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
24174 /* @internal */
24175 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: bigint, val: number): void {
24176         if(!isWasmInitialized) {
24177                 throw new Error("initializeWasm() must be awaited first!");
24178         }
24179         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
24180         // debug statements here
24181 }
24182         // 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);
24183 /* @internal */
24184 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): bigint {
24185         if(!isWasmInitialized) {
24186                 throw new Error("initializeWasm() must be awaited first!");
24187         }
24188         const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
24189         return nativeResponseValue;
24190 }
24191         // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
24192 /* @internal */
24193 export function AnnouncementSignatures_clone_ptr(arg: bigint): bigint {
24194         if(!isWasmInitialized) {
24195                 throw new Error("initializeWasm() must be awaited first!");
24196         }
24197         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
24198         return nativeResponseValue;
24199 }
24200         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
24201 /* @internal */
24202 export function AnnouncementSignatures_clone(orig: bigint): bigint {
24203         if(!isWasmInitialized) {
24204                 throw new Error("initializeWasm() must be awaited first!");
24205         }
24206         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
24207         return nativeResponseValue;
24208 }
24209         // void NetAddress_free(struct LDKNetAddress this_ptr);
24210 /* @internal */
24211 export function NetAddress_free(this_ptr: bigint): void {
24212         if(!isWasmInitialized) {
24213                 throw new Error("initializeWasm() must be awaited first!");
24214         }
24215         const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
24216         // debug statements here
24217 }
24218         // uint64_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
24219 /* @internal */
24220 export function NetAddress_clone_ptr(arg: bigint): bigint {
24221         if(!isWasmInitialized) {
24222                 throw new Error("initializeWasm() must be awaited first!");
24223         }
24224         const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
24225         return nativeResponseValue;
24226 }
24227         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
24228 /* @internal */
24229 export function NetAddress_clone(orig: bigint): bigint {
24230         if(!isWasmInitialized) {
24231                 throw new Error("initializeWasm() must be awaited first!");
24232         }
24233         const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
24234         return nativeResponseValue;
24235 }
24236         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
24237 /* @internal */
24238 export function NetAddress_ipv4(addr: number, port: number): bigint {
24239         if(!isWasmInitialized) {
24240                 throw new Error("initializeWasm() must be awaited first!");
24241         }
24242         const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
24243         return nativeResponseValue;
24244 }
24245         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
24246 /* @internal */
24247 export function NetAddress_ipv6(addr: number, port: number): bigint {
24248         if(!isWasmInitialized) {
24249                 throw new Error("initializeWasm() must be awaited first!");
24250         }
24251         const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
24252         return nativeResponseValue;
24253 }
24254         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
24255 /* @internal */
24256 export function NetAddress_onion_v2(a: number): bigint {
24257         if(!isWasmInitialized) {
24258                 throw new Error("initializeWasm() must be awaited first!");
24259         }
24260         const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
24261         return nativeResponseValue;
24262 }
24263         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
24264 /* @internal */
24265 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): bigint {
24266         if(!isWasmInitialized) {
24267                 throw new Error("initializeWasm() must be awaited first!");
24268         }
24269         const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
24270         return nativeResponseValue;
24271 }
24272         // struct LDKNetAddress NetAddress_hostname(struct LDKHostname hostname, uint16_t port);
24273 /* @internal */
24274 export function NetAddress_hostname(hostname: bigint, port: number): bigint {
24275         if(!isWasmInitialized) {
24276                 throw new Error("initializeWasm() must be awaited first!");
24277         }
24278         const nativeResponseValue = wasm.TS_NetAddress_hostname(hostname, port);
24279         return nativeResponseValue;
24280 }
24281         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
24282 /* @internal */
24283 export function NetAddress_write(obj: bigint): number {
24284         if(!isWasmInitialized) {
24285                 throw new Error("initializeWasm() must be awaited first!");
24286         }
24287         const nativeResponseValue = wasm.TS_NetAddress_write(obj);
24288         return nativeResponseValue;
24289 }
24290         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
24291 /* @internal */
24292 export function NetAddress_read(ser: number): bigint {
24293         if(!isWasmInitialized) {
24294                 throw new Error("initializeWasm() must be awaited first!");
24295         }
24296         const nativeResponseValue = wasm.TS_NetAddress_read(ser);
24297         return nativeResponseValue;
24298 }
24299         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
24300 /* @internal */
24301 export function UnsignedNodeAnnouncement_free(this_obj: bigint): void {
24302         if(!isWasmInitialized) {
24303                 throw new Error("initializeWasm() must be awaited first!");
24304         }
24305         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
24306         // debug statements here
24307 }
24308         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
24309 /* @internal */
24310 export function UnsignedNodeAnnouncement_get_features(this_ptr: bigint): bigint {
24311         if(!isWasmInitialized) {
24312                 throw new Error("initializeWasm() must be awaited first!");
24313         }
24314         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
24315         return nativeResponseValue;
24316 }
24317         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
24318 /* @internal */
24319 export function UnsignedNodeAnnouncement_set_features(this_ptr: bigint, val: bigint): void {
24320         if(!isWasmInitialized) {
24321                 throw new Error("initializeWasm() must be awaited first!");
24322         }
24323         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
24324         // debug statements here
24325 }
24326         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
24327 /* @internal */
24328 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: bigint): number {
24329         if(!isWasmInitialized) {
24330                 throw new Error("initializeWasm() must be awaited first!");
24331         }
24332         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
24333         return nativeResponseValue;
24334 }
24335         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
24336 /* @internal */
24337 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: bigint, val: number): void {
24338         if(!isWasmInitialized) {
24339                 throw new Error("initializeWasm() must be awaited first!");
24340         }
24341         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
24342         // debug statements here
24343 }
24344         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
24345 /* @internal */
24346 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: bigint): number {
24347         if(!isWasmInitialized) {
24348                 throw new Error("initializeWasm() must be awaited first!");
24349         }
24350         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
24351         return nativeResponseValue;
24352 }
24353         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24354 /* @internal */
24355 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: bigint, val: number): void {
24356         if(!isWasmInitialized) {
24357                 throw new Error("initializeWasm() must be awaited first!");
24358         }
24359         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
24360         // debug statements here
24361 }
24362         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
24363 /* @internal */
24364 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: bigint): number {
24365         if(!isWasmInitialized) {
24366                 throw new Error("initializeWasm() must be awaited first!");
24367         }
24368         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
24369         return nativeResponseValue;
24370 }
24371         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
24372 /* @internal */
24373 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: bigint, val: number): void {
24374         if(!isWasmInitialized) {
24375                 throw new Error("initializeWasm() must be awaited first!");
24376         }
24377         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
24378         // debug statements here
24379 }
24380         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
24381 /* @internal */
24382 export function UnsignedNodeAnnouncement_get_alias(this_ptr: bigint): number {
24383         if(!isWasmInitialized) {
24384                 throw new Error("initializeWasm() must be awaited first!");
24385         }
24386         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
24387         return nativeResponseValue;
24388 }
24389         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24390 /* @internal */
24391 export function UnsignedNodeAnnouncement_set_alias(this_ptr: bigint, val: number): void {
24392         if(!isWasmInitialized) {
24393                 throw new Error("initializeWasm() must be awaited first!");
24394         }
24395         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
24396         // debug statements here
24397 }
24398         // struct LDKCVec_NetAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
24399 /* @internal */
24400 export function UnsignedNodeAnnouncement_get_addresses(this_ptr: bigint): number {
24401         if(!isWasmInitialized) {
24402                 throw new Error("initializeWasm() must be awaited first!");
24403         }
24404         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_addresses(this_ptr);
24405         return nativeResponseValue;
24406 }
24407         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
24408 /* @internal */
24409 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: bigint, val: number): void {
24410         if(!isWasmInitialized) {
24411                 throw new Error("initializeWasm() must be awaited first!");
24412         }
24413         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
24414         // debug statements here
24415 }
24416         // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
24417 /* @internal */
24418 export function UnsignedNodeAnnouncement_clone_ptr(arg: bigint): bigint {
24419         if(!isWasmInitialized) {
24420                 throw new Error("initializeWasm() must be awaited first!");
24421         }
24422         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
24423         return nativeResponseValue;
24424 }
24425         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
24426 /* @internal */
24427 export function UnsignedNodeAnnouncement_clone(orig: bigint): bigint {
24428         if(!isWasmInitialized) {
24429                 throw new Error("initializeWasm() must be awaited first!");
24430         }
24431         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
24432         return nativeResponseValue;
24433 }
24434         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
24435 /* @internal */
24436 export function NodeAnnouncement_free(this_obj: bigint): void {
24437         if(!isWasmInitialized) {
24438                 throw new Error("initializeWasm() must be awaited first!");
24439         }
24440         const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
24441         // debug statements here
24442 }
24443         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
24444 /* @internal */
24445 export function NodeAnnouncement_get_signature(this_ptr: bigint): number {
24446         if(!isWasmInitialized) {
24447                 throw new Error("initializeWasm() must be awaited first!");
24448         }
24449         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
24450         return nativeResponseValue;
24451 }
24452         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
24453 /* @internal */
24454 export function NodeAnnouncement_set_signature(this_ptr: bigint, val: number): void {
24455         if(!isWasmInitialized) {
24456                 throw new Error("initializeWasm() must be awaited first!");
24457         }
24458         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
24459         // debug statements here
24460 }
24461         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
24462 /* @internal */
24463 export function NodeAnnouncement_get_contents(this_ptr: bigint): bigint {
24464         if(!isWasmInitialized) {
24465                 throw new Error("initializeWasm() must be awaited first!");
24466         }
24467         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
24468         return nativeResponseValue;
24469 }
24470         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
24471 /* @internal */
24472 export function NodeAnnouncement_set_contents(this_ptr: bigint, val: bigint): void {
24473         if(!isWasmInitialized) {
24474                 throw new Error("initializeWasm() must be awaited first!");
24475         }
24476         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
24477         // debug statements here
24478 }
24479         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
24480 /* @internal */
24481 export function NodeAnnouncement_new(signature_arg: number, contents_arg: bigint): bigint {
24482         if(!isWasmInitialized) {
24483                 throw new Error("initializeWasm() must be awaited first!");
24484         }
24485         const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
24486         return nativeResponseValue;
24487 }
24488         // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
24489 /* @internal */
24490 export function NodeAnnouncement_clone_ptr(arg: bigint): bigint {
24491         if(!isWasmInitialized) {
24492                 throw new Error("initializeWasm() must be awaited first!");
24493         }
24494         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
24495         return nativeResponseValue;
24496 }
24497         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
24498 /* @internal */
24499 export function NodeAnnouncement_clone(orig: bigint): bigint {
24500         if(!isWasmInitialized) {
24501                 throw new Error("initializeWasm() must be awaited first!");
24502         }
24503         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
24504         return nativeResponseValue;
24505 }
24506         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
24507 /* @internal */
24508 export function UnsignedChannelAnnouncement_free(this_obj: bigint): void {
24509         if(!isWasmInitialized) {
24510                 throw new Error("initializeWasm() must be awaited first!");
24511         }
24512         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
24513         // debug statements here
24514 }
24515         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
24516 /* @internal */
24517 export function UnsignedChannelAnnouncement_get_features(this_ptr: bigint): bigint {
24518         if(!isWasmInitialized) {
24519                 throw new Error("initializeWasm() must be awaited first!");
24520         }
24521         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
24522         return nativeResponseValue;
24523 }
24524         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
24525 /* @internal */
24526 export function UnsignedChannelAnnouncement_set_features(this_ptr: bigint, val: bigint): void {
24527         if(!isWasmInitialized) {
24528                 throw new Error("initializeWasm() must be awaited first!");
24529         }
24530         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
24531         // debug statements here
24532 }
24533         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
24534 /* @internal */
24535 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: bigint): number {
24536         if(!isWasmInitialized) {
24537                 throw new Error("initializeWasm() must be awaited first!");
24538         }
24539         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
24540         return nativeResponseValue;
24541 }
24542         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24543 /* @internal */
24544 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: bigint, val: number): void {
24545         if(!isWasmInitialized) {
24546                 throw new Error("initializeWasm() must be awaited first!");
24547         }
24548         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
24549         // debug statements here
24550 }
24551         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
24552 /* @internal */
24553 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: bigint): bigint {
24554         if(!isWasmInitialized) {
24555                 throw new Error("initializeWasm() must be awaited first!");
24556         }
24557         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
24558         return nativeResponseValue;
24559 }
24560         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
24561 /* @internal */
24562 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: bigint, val: bigint): void {
24563         if(!isWasmInitialized) {
24564                 throw new Error("initializeWasm() must be awaited first!");
24565         }
24566         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
24567         // debug statements here
24568 }
24569         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
24570 /* @internal */
24571 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: bigint): number {
24572         if(!isWasmInitialized) {
24573                 throw new Error("initializeWasm() must be awaited first!");
24574         }
24575         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
24576         return nativeResponseValue;
24577 }
24578         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24579 /* @internal */
24580 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: bigint, val: number): void {
24581         if(!isWasmInitialized) {
24582                 throw new Error("initializeWasm() must be awaited first!");
24583         }
24584         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
24585         // debug statements here
24586 }
24587         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
24588 /* @internal */
24589 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: bigint): number {
24590         if(!isWasmInitialized) {
24591                 throw new Error("initializeWasm() must be awaited first!");
24592         }
24593         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
24594         return nativeResponseValue;
24595 }
24596         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24597 /* @internal */
24598 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: bigint, val: number): void {
24599         if(!isWasmInitialized) {
24600                 throw new Error("initializeWasm() must be awaited first!");
24601         }
24602         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
24603         // debug statements here
24604 }
24605         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
24606 /* @internal */
24607 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: bigint): number {
24608         if(!isWasmInitialized) {
24609                 throw new Error("initializeWasm() must be awaited first!");
24610         }
24611         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
24612         return nativeResponseValue;
24613 }
24614         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24615 /* @internal */
24616 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: bigint, val: number): void {
24617         if(!isWasmInitialized) {
24618                 throw new Error("initializeWasm() must be awaited first!");
24619         }
24620         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
24621         // debug statements here
24622 }
24623         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
24624 /* @internal */
24625 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: bigint): number {
24626         if(!isWasmInitialized) {
24627                 throw new Error("initializeWasm() must be awaited first!");
24628         }
24629         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
24630         return nativeResponseValue;
24631 }
24632         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24633 /* @internal */
24634 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: bigint, val: number): void {
24635         if(!isWasmInitialized) {
24636                 throw new Error("initializeWasm() must be awaited first!");
24637         }
24638         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
24639         // debug statements here
24640 }
24641         // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
24642 /* @internal */
24643 export function UnsignedChannelAnnouncement_clone_ptr(arg: bigint): bigint {
24644         if(!isWasmInitialized) {
24645                 throw new Error("initializeWasm() must be awaited first!");
24646         }
24647         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
24648         return nativeResponseValue;
24649 }
24650         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
24651 /* @internal */
24652 export function UnsignedChannelAnnouncement_clone(orig: bigint): bigint {
24653         if(!isWasmInitialized) {
24654                 throw new Error("initializeWasm() must be awaited first!");
24655         }
24656         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
24657         return nativeResponseValue;
24658 }
24659         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
24660 /* @internal */
24661 export function ChannelAnnouncement_free(this_obj: bigint): void {
24662         if(!isWasmInitialized) {
24663                 throw new Error("initializeWasm() must be awaited first!");
24664         }
24665         const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
24666         // debug statements here
24667 }
24668         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
24669 /* @internal */
24670 export function ChannelAnnouncement_get_node_signature_1(this_ptr: bigint): number {
24671         if(!isWasmInitialized) {
24672                 throw new Error("initializeWasm() must be awaited first!");
24673         }
24674         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
24675         return nativeResponseValue;
24676 }
24677         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
24678 /* @internal */
24679 export function ChannelAnnouncement_set_node_signature_1(this_ptr: bigint, val: number): void {
24680         if(!isWasmInitialized) {
24681                 throw new Error("initializeWasm() must be awaited first!");
24682         }
24683         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
24684         // debug statements here
24685 }
24686         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
24687 /* @internal */
24688 export function ChannelAnnouncement_get_node_signature_2(this_ptr: bigint): number {
24689         if(!isWasmInitialized) {
24690                 throw new Error("initializeWasm() must be awaited first!");
24691         }
24692         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
24693         return nativeResponseValue;
24694 }
24695         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
24696 /* @internal */
24697 export function ChannelAnnouncement_set_node_signature_2(this_ptr: bigint, val: number): void {
24698         if(!isWasmInitialized) {
24699                 throw new Error("initializeWasm() must be awaited first!");
24700         }
24701         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
24702         // debug statements here
24703 }
24704         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
24705 /* @internal */
24706 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: bigint): number {
24707         if(!isWasmInitialized) {
24708                 throw new Error("initializeWasm() must be awaited first!");
24709         }
24710         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
24711         return nativeResponseValue;
24712 }
24713         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
24714 /* @internal */
24715 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: bigint, val: number): void {
24716         if(!isWasmInitialized) {
24717                 throw new Error("initializeWasm() must be awaited first!");
24718         }
24719         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
24720         // debug statements here
24721 }
24722         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
24723 /* @internal */
24724 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: bigint): number {
24725         if(!isWasmInitialized) {
24726                 throw new Error("initializeWasm() must be awaited first!");
24727         }
24728         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
24729         return nativeResponseValue;
24730 }
24731         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
24732 /* @internal */
24733 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: bigint, val: number): void {
24734         if(!isWasmInitialized) {
24735                 throw new Error("initializeWasm() must be awaited first!");
24736         }
24737         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
24738         // debug statements here
24739 }
24740         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
24741 /* @internal */
24742 export function ChannelAnnouncement_get_contents(this_ptr: bigint): bigint {
24743         if(!isWasmInitialized) {
24744                 throw new Error("initializeWasm() must be awaited first!");
24745         }
24746         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
24747         return nativeResponseValue;
24748 }
24749         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
24750 /* @internal */
24751 export function ChannelAnnouncement_set_contents(this_ptr: bigint, val: bigint): void {
24752         if(!isWasmInitialized) {
24753                 throw new Error("initializeWasm() must be awaited first!");
24754         }
24755         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
24756         // debug statements here
24757 }
24758         // 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);
24759 /* @internal */
24760 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: bigint): bigint {
24761         if(!isWasmInitialized) {
24762                 throw new Error("initializeWasm() must be awaited first!");
24763         }
24764         const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
24765         return nativeResponseValue;
24766 }
24767         // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
24768 /* @internal */
24769 export function ChannelAnnouncement_clone_ptr(arg: bigint): bigint {
24770         if(!isWasmInitialized) {
24771                 throw new Error("initializeWasm() must be awaited first!");
24772         }
24773         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
24774         return nativeResponseValue;
24775 }
24776         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
24777 /* @internal */
24778 export function ChannelAnnouncement_clone(orig: bigint): bigint {
24779         if(!isWasmInitialized) {
24780                 throw new Error("initializeWasm() must be awaited first!");
24781         }
24782         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
24783         return nativeResponseValue;
24784 }
24785         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
24786 /* @internal */
24787 export function UnsignedChannelUpdate_free(this_obj: bigint): void {
24788         if(!isWasmInitialized) {
24789                 throw new Error("initializeWasm() must be awaited first!");
24790         }
24791         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
24792         // debug statements here
24793 }
24794         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
24795 /* @internal */
24796 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: bigint): number {
24797         if(!isWasmInitialized) {
24798                 throw new Error("initializeWasm() must be awaited first!");
24799         }
24800         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
24801         return nativeResponseValue;
24802 }
24803         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24804 /* @internal */
24805 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: bigint, val: number): void {
24806         if(!isWasmInitialized) {
24807                 throw new Error("initializeWasm() must be awaited first!");
24808         }
24809         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
24810         // debug statements here
24811 }
24812         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24813 /* @internal */
24814 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: bigint): bigint {
24815         if(!isWasmInitialized) {
24816                 throw new Error("initializeWasm() must be awaited first!");
24817         }
24818         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
24819         return nativeResponseValue;
24820 }
24821         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
24822 /* @internal */
24823 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: bigint, val: bigint): void {
24824         if(!isWasmInitialized) {
24825                 throw new Error("initializeWasm() must be awaited first!");
24826         }
24827         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
24828         // debug statements here
24829 }
24830         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24831 /* @internal */
24832 export function UnsignedChannelUpdate_get_timestamp(this_ptr: bigint): number {
24833         if(!isWasmInitialized) {
24834                 throw new Error("initializeWasm() must be awaited first!");
24835         }
24836         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
24837         return nativeResponseValue;
24838 }
24839         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
24840 /* @internal */
24841 export function UnsignedChannelUpdate_set_timestamp(this_ptr: bigint, val: number): void {
24842         if(!isWasmInitialized) {
24843                 throw new Error("initializeWasm() must be awaited first!");
24844         }
24845         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
24846         // debug statements here
24847 }
24848         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24849 /* @internal */
24850 export function UnsignedChannelUpdate_get_flags(this_ptr: bigint): number {
24851         if(!isWasmInitialized) {
24852                 throw new Error("initializeWasm() must be awaited first!");
24853         }
24854         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
24855         return nativeResponseValue;
24856 }
24857         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
24858 /* @internal */
24859 export function UnsignedChannelUpdate_set_flags(this_ptr: bigint, val: number): void {
24860         if(!isWasmInitialized) {
24861                 throw new Error("initializeWasm() must be awaited first!");
24862         }
24863         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
24864         // debug statements here
24865 }
24866         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24867 /* @internal */
24868 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: bigint): number {
24869         if(!isWasmInitialized) {
24870                 throw new Error("initializeWasm() must be awaited first!");
24871         }
24872         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
24873         return nativeResponseValue;
24874 }
24875         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
24876 /* @internal */
24877 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
24878         if(!isWasmInitialized) {
24879                 throw new Error("initializeWasm() must be awaited first!");
24880         }
24881         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
24882         // debug statements here
24883 }
24884         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24885 /* @internal */
24886 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: bigint): bigint {
24887         if(!isWasmInitialized) {
24888                 throw new Error("initializeWasm() must be awaited first!");
24889         }
24890         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
24891         return nativeResponseValue;
24892 }
24893         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
24894 /* @internal */
24895 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
24896         if(!isWasmInitialized) {
24897                 throw new Error("initializeWasm() must be awaited first!");
24898         }
24899         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
24900         // debug statements here
24901 }
24902         // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24903 /* @internal */
24904 export function UnsignedChannelUpdate_get_htlc_maximum_msat(this_ptr: bigint): bigint {
24905         if(!isWasmInitialized) {
24906                 throw new Error("initializeWasm() must be awaited first!");
24907         }
24908         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_maximum_msat(this_ptr);
24909         return nativeResponseValue;
24910 }
24911         // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
24912 /* @internal */
24913 export function UnsignedChannelUpdate_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
24914         if(!isWasmInitialized) {
24915                 throw new Error("initializeWasm() must be awaited first!");
24916         }
24917         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_maximum_msat(this_ptr, val);
24918         // debug statements here
24919 }
24920         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24921 /* @internal */
24922 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: bigint): number {
24923         if(!isWasmInitialized) {
24924                 throw new Error("initializeWasm() must be awaited first!");
24925         }
24926         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
24927         return nativeResponseValue;
24928 }
24929         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
24930 /* @internal */
24931 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: bigint, val: number): void {
24932         if(!isWasmInitialized) {
24933                 throw new Error("initializeWasm() must be awaited first!");
24934         }
24935         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
24936         // debug statements here
24937 }
24938         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24939 /* @internal */
24940 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: bigint): number {
24941         if(!isWasmInitialized) {
24942                 throw new Error("initializeWasm() must be awaited first!");
24943         }
24944         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
24945         return nativeResponseValue;
24946 }
24947         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
24948 /* @internal */
24949 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: bigint, val: number): void {
24950         if(!isWasmInitialized) {
24951                 throw new Error("initializeWasm() must be awaited first!");
24952         }
24953         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
24954         // debug statements here
24955 }
24956         // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
24957 /* @internal */
24958 export function UnsignedChannelUpdate_get_excess_data(this_ptr: bigint): number {
24959         if(!isWasmInitialized) {
24960                 throw new Error("initializeWasm() must be awaited first!");
24961         }
24962         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_excess_data(this_ptr);
24963         return nativeResponseValue;
24964 }
24965         // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
24966 /* @internal */
24967 export function UnsignedChannelUpdate_set_excess_data(this_ptr: bigint, val: number): void {
24968         if(!isWasmInitialized) {
24969                 throw new Error("initializeWasm() must be awaited first!");
24970         }
24971         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_excess_data(this_ptr, val);
24972         // debug statements here
24973 }
24974         // MUST_USE_RES struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_new(struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, uint32_t timestamp_arg, uint8_t flags_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, struct LDKCVec_u8Z excess_data_arg);
24975 /* @internal */
24976 export function UnsignedChannelUpdate_new(chain_hash_arg: number, short_channel_id_arg: bigint, timestamp_arg: number, flags_arg: number, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: bigint, fee_base_msat_arg: number, fee_proportional_millionths_arg: number, excess_data_arg: number): bigint {
24977         if(!isWasmInitialized) {
24978                 throw new Error("initializeWasm() must be awaited first!");
24979         }
24980         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_new(chain_hash_arg, short_channel_id_arg, timestamp_arg, flags_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fee_base_msat_arg, fee_proportional_millionths_arg, excess_data_arg);
24981         return nativeResponseValue;
24982 }
24983         // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
24984 /* @internal */
24985 export function UnsignedChannelUpdate_clone_ptr(arg: bigint): bigint {
24986         if(!isWasmInitialized) {
24987                 throw new Error("initializeWasm() must be awaited first!");
24988         }
24989         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
24990         return nativeResponseValue;
24991 }
24992         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
24993 /* @internal */
24994 export function UnsignedChannelUpdate_clone(orig: bigint): bigint {
24995         if(!isWasmInitialized) {
24996                 throw new Error("initializeWasm() must be awaited first!");
24997         }
24998         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
24999         return nativeResponseValue;
25000 }
25001         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
25002 /* @internal */
25003 export function ChannelUpdate_free(this_obj: bigint): void {
25004         if(!isWasmInitialized) {
25005                 throw new Error("initializeWasm() must be awaited first!");
25006         }
25007         const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
25008         // debug statements here
25009 }
25010         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
25011 /* @internal */
25012 export function ChannelUpdate_get_signature(this_ptr: bigint): number {
25013         if(!isWasmInitialized) {
25014                 throw new Error("initializeWasm() must be awaited first!");
25015         }
25016         const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
25017         return nativeResponseValue;
25018 }
25019         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
25020 /* @internal */
25021 export function ChannelUpdate_set_signature(this_ptr: bigint, val: number): void {
25022         if(!isWasmInitialized) {
25023                 throw new Error("initializeWasm() must be awaited first!");
25024         }
25025         const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
25026         // debug statements here
25027 }
25028         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
25029 /* @internal */
25030 export function ChannelUpdate_get_contents(this_ptr: bigint): bigint {
25031         if(!isWasmInitialized) {
25032                 throw new Error("initializeWasm() must be awaited first!");
25033         }
25034         const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
25035         return nativeResponseValue;
25036 }
25037         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
25038 /* @internal */
25039 export function ChannelUpdate_set_contents(this_ptr: bigint, val: bigint): void {
25040         if(!isWasmInitialized) {
25041                 throw new Error("initializeWasm() must be awaited first!");
25042         }
25043         const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
25044         // debug statements here
25045 }
25046         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
25047 /* @internal */
25048 export function ChannelUpdate_new(signature_arg: number, contents_arg: bigint): bigint {
25049         if(!isWasmInitialized) {
25050                 throw new Error("initializeWasm() must be awaited first!");
25051         }
25052         const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
25053         return nativeResponseValue;
25054 }
25055         // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
25056 /* @internal */
25057 export function ChannelUpdate_clone_ptr(arg: bigint): bigint {
25058         if(!isWasmInitialized) {
25059                 throw new Error("initializeWasm() must be awaited first!");
25060         }
25061         const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
25062         return nativeResponseValue;
25063 }
25064         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
25065 /* @internal */
25066 export function ChannelUpdate_clone(orig: bigint): bigint {
25067         if(!isWasmInitialized) {
25068                 throw new Error("initializeWasm() must be awaited first!");
25069         }
25070         const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
25071         return nativeResponseValue;
25072 }
25073         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
25074 /* @internal */
25075 export function QueryChannelRange_free(this_obj: bigint): void {
25076         if(!isWasmInitialized) {
25077                 throw new Error("initializeWasm() must be awaited first!");
25078         }
25079         const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
25080         // debug statements here
25081 }
25082         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
25083 /* @internal */
25084 export function QueryChannelRange_get_chain_hash(this_ptr: bigint): number {
25085         if(!isWasmInitialized) {
25086                 throw new Error("initializeWasm() must be awaited first!");
25087         }
25088         const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
25089         return nativeResponseValue;
25090 }
25091         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25092 /* @internal */
25093 export function QueryChannelRange_set_chain_hash(this_ptr: bigint, val: number): void {
25094         if(!isWasmInitialized) {
25095                 throw new Error("initializeWasm() must be awaited first!");
25096         }
25097         const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
25098         // debug statements here
25099 }
25100         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
25101 /* @internal */
25102 export function QueryChannelRange_get_first_blocknum(this_ptr: bigint): number {
25103         if(!isWasmInitialized) {
25104                 throw new Error("initializeWasm() must be awaited first!");
25105         }
25106         const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
25107         return nativeResponseValue;
25108 }
25109         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
25110 /* @internal */
25111 export function QueryChannelRange_set_first_blocknum(this_ptr: bigint, val: number): void {
25112         if(!isWasmInitialized) {
25113                 throw new Error("initializeWasm() must be awaited first!");
25114         }
25115         const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
25116         // debug statements here
25117 }
25118         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
25119 /* @internal */
25120 export function QueryChannelRange_get_number_of_blocks(this_ptr: bigint): number {
25121         if(!isWasmInitialized) {
25122                 throw new Error("initializeWasm() must be awaited first!");
25123         }
25124         const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
25125         return nativeResponseValue;
25126 }
25127         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
25128 /* @internal */
25129 export function QueryChannelRange_set_number_of_blocks(this_ptr: bigint, val: number): void {
25130         if(!isWasmInitialized) {
25131                 throw new Error("initializeWasm() must be awaited first!");
25132         }
25133         const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
25134         // debug statements here
25135 }
25136         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
25137 /* @internal */
25138 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): bigint {
25139         if(!isWasmInitialized) {
25140                 throw new Error("initializeWasm() must be awaited first!");
25141         }
25142         const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
25143         return nativeResponseValue;
25144 }
25145         // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
25146 /* @internal */
25147 export function QueryChannelRange_clone_ptr(arg: bigint): bigint {
25148         if(!isWasmInitialized) {
25149                 throw new Error("initializeWasm() must be awaited first!");
25150         }
25151         const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
25152         return nativeResponseValue;
25153 }
25154         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
25155 /* @internal */
25156 export function QueryChannelRange_clone(orig: bigint): bigint {
25157         if(!isWasmInitialized) {
25158                 throw new Error("initializeWasm() must be awaited first!");
25159         }
25160         const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
25161         return nativeResponseValue;
25162 }
25163         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
25164 /* @internal */
25165 export function ReplyChannelRange_free(this_obj: bigint): void {
25166         if(!isWasmInitialized) {
25167                 throw new Error("initializeWasm() must be awaited first!");
25168         }
25169         const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
25170         // debug statements here
25171 }
25172         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
25173 /* @internal */
25174 export function ReplyChannelRange_get_chain_hash(this_ptr: bigint): number {
25175         if(!isWasmInitialized) {
25176                 throw new Error("initializeWasm() must be awaited first!");
25177         }
25178         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
25179         return nativeResponseValue;
25180 }
25181         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25182 /* @internal */
25183 export function ReplyChannelRange_set_chain_hash(this_ptr: bigint, val: number): void {
25184         if(!isWasmInitialized) {
25185                 throw new Error("initializeWasm() must be awaited first!");
25186         }
25187         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
25188         // debug statements here
25189 }
25190         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
25191 /* @internal */
25192 export function ReplyChannelRange_get_first_blocknum(this_ptr: bigint): number {
25193         if(!isWasmInitialized) {
25194                 throw new Error("initializeWasm() must be awaited first!");
25195         }
25196         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
25197         return nativeResponseValue;
25198 }
25199         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
25200 /* @internal */
25201 export function ReplyChannelRange_set_first_blocknum(this_ptr: bigint, val: number): void {
25202         if(!isWasmInitialized) {
25203                 throw new Error("initializeWasm() must be awaited first!");
25204         }
25205         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
25206         // debug statements here
25207 }
25208         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
25209 /* @internal */
25210 export function ReplyChannelRange_get_number_of_blocks(this_ptr: bigint): number {
25211         if(!isWasmInitialized) {
25212                 throw new Error("initializeWasm() must be awaited first!");
25213         }
25214         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
25215         return nativeResponseValue;
25216 }
25217         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
25218 /* @internal */
25219 export function ReplyChannelRange_set_number_of_blocks(this_ptr: bigint, val: number): void {
25220         if(!isWasmInitialized) {
25221                 throw new Error("initializeWasm() must be awaited first!");
25222         }
25223         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
25224         // debug statements here
25225 }
25226         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
25227 /* @internal */
25228 export function ReplyChannelRange_get_sync_complete(this_ptr: bigint): boolean {
25229         if(!isWasmInitialized) {
25230                 throw new Error("initializeWasm() must be awaited first!");
25231         }
25232         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
25233         return nativeResponseValue;
25234 }
25235         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
25236 /* @internal */
25237 export function ReplyChannelRange_set_sync_complete(this_ptr: bigint, val: boolean): void {
25238         if(!isWasmInitialized) {
25239                 throw new Error("initializeWasm() must be awaited first!");
25240         }
25241         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
25242         // debug statements here
25243 }
25244         // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
25245 /* @internal */
25246 export function ReplyChannelRange_get_short_channel_ids(this_ptr: bigint): number {
25247         if(!isWasmInitialized) {
25248                 throw new Error("initializeWasm() must be awaited first!");
25249         }
25250         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_short_channel_ids(this_ptr);
25251         return nativeResponseValue;
25252 }
25253         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
25254 /* @internal */
25255 export function ReplyChannelRange_set_short_channel_ids(this_ptr: bigint, val: number): void {
25256         if(!isWasmInitialized) {
25257                 throw new Error("initializeWasm() must be awaited first!");
25258         }
25259         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
25260         // debug statements here
25261 }
25262         // 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);
25263 /* @internal */
25264 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): bigint {
25265         if(!isWasmInitialized) {
25266                 throw new Error("initializeWasm() must be awaited first!");
25267         }
25268         const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
25269         return nativeResponseValue;
25270 }
25271         // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
25272 /* @internal */
25273 export function ReplyChannelRange_clone_ptr(arg: bigint): bigint {
25274         if(!isWasmInitialized) {
25275                 throw new Error("initializeWasm() must be awaited first!");
25276         }
25277         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
25278         return nativeResponseValue;
25279 }
25280         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
25281 /* @internal */
25282 export function ReplyChannelRange_clone(orig: bigint): bigint {
25283         if(!isWasmInitialized) {
25284                 throw new Error("initializeWasm() must be awaited first!");
25285         }
25286         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
25287         return nativeResponseValue;
25288 }
25289         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
25290 /* @internal */
25291 export function QueryShortChannelIds_free(this_obj: bigint): void {
25292         if(!isWasmInitialized) {
25293                 throw new Error("initializeWasm() must be awaited first!");
25294         }
25295         const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
25296         // debug statements here
25297 }
25298         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
25299 /* @internal */
25300 export function QueryShortChannelIds_get_chain_hash(this_ptr: bigint): number {
25301         if(!isWasmInitialized) {
25302                 throw new Error("initializeWasm() must be awaited first!");
25303         }
25304         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
25305         return nativeResponseValue;
25306 }
25307         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25308 /* @internal */
25309 export function QueryShortChannelIds_set_chain_hash(this_ptr: bigint, val: number): void {
25310         if(!isWasmInitialized) {
25311                 throw new Error("initializeWasm() must be awaited first!");
25312         }
25313         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
25314         // debug statements here
25315 }
25316         // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
25317 /* @internal */
25318 export function QueryShortChannelIds_get_short_channel_ids(this_ptr: bigint): number {
25319         if(!isWasmInitialized) {
25320                 throw new Error("initializeWasm() must be awaited first!");
25321         }
25322         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_short_channel_ids(this_ptr);
25323         return nativeResponseValue;
25324 }
25325         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
25326 /* @internal */
25327 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: bigint, val: number): void {
25328         if(!isWasmInitialized) {
25329                 throw new Error("initializeWasm() must be awaited first!");
25330         }
25331         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
25332         // debug statements here
25333 }
25334         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
25335 /* @internal */
25336 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): bigint {
25337         if(!isWasmInitialized) {
25338                 throw new Error("initializeWasm() must be awaited first!");
25339         }
25340         const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
25341         return nativeResponseValue;
25342 }
25343         // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
25344 /* @internal */
25345 export function QueryShortChannelIds_clone_ptr(arg: bigint): bigint {
25346         if(!isWasmInitialized) {
25347                 throw new Error("initializeWasm() must be awaited first!");
25348         }
25349         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
25350         return nativeResponseValue;
25351 }
25352         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
25353 /* @internal */
25354 export function QueryShortChannelIds_clone(orig: bigint): bigint {
25355         if(!isWasmInitialized) {
25356                 throw new Error("initializeWasm() must be awaited first!");
25357         }
25358         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
25359         return nativeResponseValue;
25360 }
25361         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
25362 /* @internal */
25363 export function ReplyShortChannelIdsEnd_free(this_obj: bigint): void {
25364         if(!isWasmInitialized) {
25365                 throw new Error("initializeWasm() must be awaited first!");
25366         }
25367         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
25368         // debug statements here
25369 }
25370         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
25371 /* @internal */
25372 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: bigint): number {
25373         if(!isWasmInitialized) {
25374                 throw new Error("initializeWasm() must be awaited first!");
25375         }
25376         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
25377         return nativeResponseValue;
25378 }
25379         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25380 /* @internal */
25381 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: bigint, val: number): void {
25382         if(!isWasmInitialized) {
25383                 throw new Error("initializeWasm() must be awaited first!");
25384         }
25385         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
25386         // debug statements here
25387 }
25388         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
25389 /* @internal */
25390 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: bigint): boolean {
25391         if(!isWasmInitialized) {
25392                 throw new Error("initializeWasm() must be awaited first!");
25393         }
25394         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
25395         return nativeResponseValue;
25396 }
25397         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
25398 /* @internal */
25399 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: bigint, val: boolean): void {
25400         if(!isWasmInitialized) {
25401                 throw new Error("initializeWasm() must be awaited first!");
25402         }
25403         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
25404         // debug statements here
25405 }
25406         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
25407 /* @internal */
25408 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): bigint {
25409         if(!isWasmInitialized) {
25410                 throw new Error("initializeWasm() must be awaited first!");
25411         }
25412         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
25413         return nativeResponseValue;
25414 }
25415         // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
25416 /* @internal */
25417 export function ReplyShortChannelIdsEnd_clone_ptr(arg: bigint): bigint {
25418         if(!isWasmInitialized) {
25419                 throw new Error("initializeWasm() must be awaited first!");
25420         }
25421         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
25422         return nativeResponseValue;
25423 }
25424         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
25425 /* @internal */
25426 export function ReplyShortChannelIdsEnd_clone(orig: bigint): bigint {
25427         if(!isWasmInitialized) {
25428                 throw new Error("initializeWasm() must be awaited first!");
25429         }
25430         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
25431         return nativeResponseValue;
25432 }
25433         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
25434 /* @internal */
25435 export function GossipTimestampFilter_free(this_obj: bigint): void {
25436         if(!isWasmInitialized) {
25437                 throw new Error("initializeWasm() must be awaited first!");
25438         }
25439         const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
25440         // debug statements here
25441 }
25442         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
25443 /* @internal */
25444 export function GossipTimestampFilter_get_chain_hash(this_ptr: bigint): number {
25445         if(!isWasmInitialized) {
25446                 throw new Error("initializeWasm() must be awaited first!");
25447         }
25448         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
25449         return nativeResponseValue;
25450 }
25451         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25452 /* @internal */
25453 export function GossipTimestampFilter_set_chain_hash(this_ptr: bigint, val: number): void {
25454         if(!isWasmInitialized) {
25455                 throw new Error("initializeWasm() must be awaited first!");
25456         }
25457         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
25458         // debug statements here
25459 }
25460         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
25461 /* @internal */
25462 export function GossipTimestampFilter_get_first_timestamp(this_ptr: bigint): number {
25463         if(!isWasmInitialized) {
25464                 throw new Error("initializeWasm() must be awaited first!");
25465         }
25466         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
25467         return nativeResponseValue;
25468 }
25469         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
25470 /* @internal */
25471 export function GossipTimestampFilter_set_first_timestamp(this_ptr: bigint, val: number): void {
25472         if(!isWasmInitialized) {
25473                 throw new Error("initializeWasm() must be awaited first!");
25474         }
25475         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
25476         // debug statements here
25477 }
25478         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
25479 /* @internal */
25480 export function GossipTimestampFilter_get_timestamp_range(this_ptr: bigint): number {
25481         if(!isWasmInitialized) {
25482                 throw new Error("initializeWasm() must be awaited first!");
25483         }
25484         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
25485         return nativeResponseValue;
25486 }
25487         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
25488 /* @internal */
25489 export function GossipTimestampFilter_set_timestamp_range(this_ptr: bigint, val: number): void {
25490         if(!isWasmInitialized) {
25491                 throw new Error("initializeWasm() must be awaited first!");
25492         }
25493         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
25494         // debug statements here
25495 }
25496         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
25497 /* @internal */
25498 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): bigint {
25499         if(!isWasmInitialized) {
25500                 throw new Error("initializeWasm() must be awaited first!");
25501         }
25502         const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
25503         return nativeResponseValue;
25504 }
25505         // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
25506 /* @internal */
25507 export function GossipTimestampFilter_clone_ptr(arg: bigint): bigint {
25508         if(!isWasmInitialized) {
25509                 throw new Error("initializeWasm() must be awaited first!");
25510         }
25511         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
25512         return nativeResponseValue;
25513 }
25514         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
25515 /* @internal */
25516 export function GossipTimestampFilter_clone(orig: bigint): bigint {
25517         if(!isWasmInitialized) {
25518                 throw new Error("initializeWasm() must be awaited first!");
25519         }
25520         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
25521         return nativeResponseValue;
25522 }
25523         // void ErrorAction_free(struct LDKErrorAction this_ptr);
25524 /* @internal */
25525 export function ErrorAction_free(this_ptr: bigint): void {
25526         if(!isWasmInitialized) {
25527                 throw new Error("initializeWasm() must be awaited first!");
25528         }
25529         const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
25530         // debug statements here
25531 }
25532         // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
25533 /* @internal */
25534 export function ErrorAction_clone_ptr(arg: bigint): bigint {
25535         if(!isWasmInitialized) {
25536                 throw new Error("initializeWasm() must be awaited first!");
25537         }
25538         const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
25539         return nativeResponseValue;
25540 }
25541         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
25542 /* @internal */
25543 export function ErrorAction_clone(orig: bigint): bigint {
25544         if(!isWasmInitialized) {
25545                 throw new Error("initializeWasm() must be awaited first!");
25546         }
25547         const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
25548         return nativeResponseValue;
25549 }
25550         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
25551 /* @internal */
25552 export function ErrorAction_disconnect_peer(msg: bigint): bigint {
25553         if(!isWasmInitialized) {
25554                 throw new Error("initializeWasm() must be awaited first!");
25555         }
25556         const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
25557         return nativeResponseValue;
25558 }
25559         // struct LDKErrorAction ErrorAction_ignore_error(void);
25560 /* @internal */
25561 export function ErrorAction_ignore_error(): bigint {
25562         if(!isWasmInitialized) {
25563                 throw new Error("initializeWasm() must be awaited first!");
25564         }
25565         const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
25566         return nativeResponseValue;
25567 }
25568         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
25569 /* @internal */
25570 export function ErrorAction_ignore_and_log(a: Level): bigint {
25571         if(!isWasmInitialized) {
25572                 throw new Error("initializeWasm() must be awaited first!");
25573         }
25574         const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
25575         return nativeResponseValue;
25576 }
25577         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
25578 /* @internal */
25579 export function ErrorAction_ignore_duplicate_gossip(): bigint {
25580         if(!isWasmInitialized) {
25581                 throw new Error("initializeWasm() must be awaited first!");
25582         }
25583         const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
25584         return nativeResponseValue;
25585 }
25586         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
25587 /* @internal */
25588 export function ErrorAction_send_error_message(msg: bigint): bigint {
25589         if(!isWasmInitialized) {
25590                 throw new Error("initializeWasm() must be awaited first!");
25591         }
25592         const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
25593         return nativeResponseValue;
25594 }
25595         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
25596 /* @internal */
25597 export function ErrorAction_send_warning_message(msg: bigint, log_level: Level): bigint {
25598         if(!isWasmInitialized) {
25599                 throw new Error("initializeWasm() must be awaited first!");
25600         }
25601         const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
25602         return nativeResponseValue;
25603 }
25604         // void LightningError_free(struct LDKLightningError this_obj);
25605 /* @internal */
25606 export function LightningError_free(this_obj: bigint): void {
25607         if(!isWasmInitialized) {
25608                 throw new Error("initializeWasm() must be awaited first!");
25609         }
25610         const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
25611         // debug statements here
25612 }
25613         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
25614 /* @internal */
25615 export function LightningError_get_err(this_ptr: bigint): number {
25616         if(!isWasmInitialized) {
25617                 throw new Error("initializeWasm() must be awaited first!");
25618         }
25619         const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
25620         return nativeResponseValue;
25621 }
25622         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
25623 /* @internal */
25624 export function LightningError_set_err(this_ptr: bigint, val: number): void {
25625         if(!isWasmInitialized) {
25626                 throw new Error("initializeWasm() must be awaited first!");
25627         }
25628         const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
25629         // debug statements here
25630 }
25631         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
25632 /* @internal */
25633 export function LightningError_get_action(this_ptr: bigint): bigint {
25634         if(!isWasmInitialized) {
25635                 throw new Error("initializeWasm() must be awaited first!");
25636         }
25637         const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
25638         return nativeResponseValue;
25639 }
25640         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
25641 /* @internal */
25642 export function LightningError_set_action(this_ptr: bigint, val: bigint): void {
25643         if(!isWasmInitialized) {
25644                 throw new Error("initializeWasm() must be awaited first!");
25645         }
25646         const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
25647         // debug statements here
25648 }
25649         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
25650 /* @internal */
25651 export function LightningError_new(err_arg: number, action_arg: bigint): bigint {
25652         if(!isWasmInitialized) {
25653                 throw new Error("initializeWasm() must be awaited first!");
25654         }
25655         const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
25656         return nativeResponseValue;
25657 }
25658         // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
25659 /* @internal */
25660 export function LightningError_clone_ptr(arg: bigint): bigint {
25661         if(!isWasmInitialized) {
25662                 throw new Error("initializeWasm() must be awaited first!");
25663         }
25664         const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
25665         return nativeResponseValue;
25666 }
25667         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
25668 /* @internal */
25669 export function LightningError_clone(orig: bigint): bigint {
25670         if(!isWasmInitialized) {
25671                 throw new Error("initializeWasm() must be awaited first!");
25672         }
25673         const nativeResponseValue = wasm.TS_LightningError_clone(orig);
25674         return nativeResponseValue;
25675 }
25676         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
25677 /* @internal */
25678 export function CommitmentUpdate_free(this_obj: bigint): void {
25679         if(!isWasmInitialized) {
25680                 throw new Error("initializeWasm() must be awaited first!");
25681         }
25682         const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
25683         // debug statements here
25684 }
25685         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
25686 /* @internal */
25687 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: bigint): number {
25688         if(!isWasmInitialized) {
25689                 throw new Error("initializeWasm() must be awaited first!");
25690         }
25691         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
25692         return nativeResponseValue;
25693 }
25694         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
25695 /* @internal */
25696 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: bigint, val: number): void {
25697         if(!isWasmInitialized) {
25698                 throw new Error("initializeWasm() must be awaited first!");
25699         }
25700         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
25701         // debug statements here
25702 }
25703         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
25704 /* @internal */
25705 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: bigint): number {
25706         if(!isWasmInitialized) {
25707                 throw new Error("initializeWasm() must be awaited first!");
25708         }
25709         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
25710         return nativeResponseValue;
25711 }
25712         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
25713 /* @internal */
25714 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: bigint, val: number): void {
25715         if(!isWasmInitialized) {
25716                 throw new Error("initializeWasm() must be awaited first!");
25717         }
25718         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
25719         // debug statements here
25720 }
25721         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
25722 /* @internal */
25723 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: bigint): number {
25724         if(!isWasmInitialized) {
25725                 throw new Error("initializeWasm() must be awaited first!");
25726         }
25727         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
25728         return nativeResponseValue;
25729 }
25730         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
25731 /* @internal */
25732 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: bigint, val: number): void {
25733         if(!isWasmInitialized) {
25734                 throw new Error("initializeWasm() must be awaited first!");
25735         }
25736         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
25737         // debug statements here
25738 }
25739         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
25740 /* @internal */
25741 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: bigint): number {
25742         if(!isWasmInitialized) {
25743                 throw new Error("initializeWasm() must be awaited first!");
25744         }
25745         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
25746         return nativeResponseValue;
25747 }
25748         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
25749 /* @internal */
25750 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: bigint, val: number): void {
25751         if(!isWasmInitialized) {
25752                 throw new Error("initializeWasm() must be awaited first!");
25753         }
25754         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
25755         // debug statements here
25756 }
25757         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
25758 /* @internal */
25759 export function CommitmentUpdate_get_update_fee(this_ptr: bigint): bigint {
25760         if(!isWasmInitialized) {
25761                 throw new Error("initializeWasm() must be awaited first!");
25762         }
25763         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
25764         return nativeResponseValue;
25765 }
25766         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
25767 /* @internal */
25768 export function CommitmentUpdate_set_update_fee(this_ptr: bigint, val: bigint): void {
25769         if(!isWasmInitialized) {
25770                 throw new Error("initializeWasm() must be awaited first!");
25771         }
25772         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
25773         // debug statements here
25774 }
25775         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
25776 /* @internal */
25777 export function CommitmentUpdate_get_commitment_signed(this_ptr: bigint): bigint {
25778         if(!isWasmInitialized) {
25779                 throw new Error("initializeWasm() must be awaited first!");
25780         }
25781         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
25782         return nativeResponseValue;
25783 }
25784         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
25785 /* @internal */
25786 export function CommitmentUpdate_set_commitment_signed(this_ptr: bigint, val: bigint): void {
25787         if(!isWasmInitialized) {
25788                 throw new Error("initializeWasm() must be awaited first!");
25789         }
25790         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
25791         // debug statements here
25792 }
25793         // 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);
25794 /* @internal */
25795 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: bigint, commitment_signed_arg: bigint): bigint {
25796         if(!isWasmInitialized) {
25797                 throw new Error("initializeWasm() must be awaited first!");
25798         }
25799         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);
25800         return nativeResponseValue;
25801 }
25802         // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
25803 /* @internal */
25804 export function CommitmentUpdate_clone_ptr(arg: bigint): bigint {
25805         if(!isWasmInitialized) {
25806                 throw new Error("initializeWasm() must be awaited first!");
25807         }
25808         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
25809         return nativeResponseValue;
25810 }
25811         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
25812 /* @internal */
25813 export function CommitmentUpdate_clone(orig: bigint): bigint {
25814         if(!isWasmInitialized) {
25815                 throw new Error("initializeWasm() must be awaited first!");
25816         }
25817         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
25818         return nativeResponseValue;
25819 }
25820         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
25821 /* @internal */
25822 export function ChannelMessageHandler_free(this_ptr: bigint): void {
25823         if(!isWasmInitialized) {
25824                 throw new Error("initializeWasm() must be awaited first!");
25825         }
25826         const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
25827         // debug statements here
25828 }
25829         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
25830 /* @internal */
25831 export function RoutingMessageHandler_free(this_ptr: bigint): void {
25832         if(!isWasmInitialized) {
25833                 throw new Error("initializeWasm() must be awaited first!");
25834         }
25835         const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
25836         // debug statements here
25837 }
25838         // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
25839 /* @internal */
25840 export function OnionMessageHandler_free(this_ptr: bigint): void {
25841         if(!isWasmInitialized) {
25842                 throw new Error("initializeWasm() must be awaited first!");
25843         }
25844         const nativeResponseValue = wasm.TS_OnionMessageHandler_free(this_ptr);
25845         // debug statements here
25846 }
25847         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
25848 /* @internal */
25849 export function AcceptChannel_write(obj: bigint): number {
25850         if(!isWasmInitialized) {
25851                 throw new Error("initializeWasm() must be awaited first!");
25852         }
25853         const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
25854         return nativeResponseValue;
25855 }
25856         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
25857 /* @internal */
25858 export function AcceptChannel_read(ser: number): bigint {
25859         if(!isWasmInitialized) {
25860                 throw new Error("initializeWasm() must be awaited first!");
25861         }
25862         const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
25863         return nativeResponseValue;
25864 }
25865         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
25866 /* @internal */
25867 export function AnnouncementSignatures_write(obj: bigint): number {
25868         if(!isWasmInitialized) {
25869                 throw new Error("initializeWasm() must be awaited first!");
25870         }
25871         const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
25872         return nativeResponseValue;
25873 }
25874         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
25875 /* @internal */
25876 export function AnnouncementSignatures_read(ser: number): bigint {
25877         if(!isWasmInitialized) {
25878                 throw new Error("initializeWasm() must be awaited first!");
25879         }
25880         const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
25881         return nativeResponseValue;
25882 }
25883         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
25884 /* @internal */
25885 export function ChannelReestablish_write(obj: bigint): number {
25886         if(!isWasmInitialized) {
25887                 throw new Error("initializeWasm() must be awaited first!");
25888         }
25889         const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
25890         return nativeResponseValue;
25891 }
25892         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
25893 /* @internal */
25894 export function ChannelReestablish_read(ser: number): bigint {
25895         if(!isWasmInitialized) {
25896                 throw new Error("initializeWasm() must be awaited first!");
25897         }
25898         const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
25899         return nativeResponseValue;
25900 }
25901         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
25902 /* @internal */
25903 export function ClosingSigned_write(obj: bigint): number {
25904         if(!isWasmInitialized) {
25905                 throw new Error("initializeWasm() must be awaited first!");
25906         }
25907         const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
25908         return nativeResponseValue;
25909 }
25910         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
25911 /* @internal */
25912 export function ClosingSigned_read(ser: number): bigint {
25913         if(!isWasmInitialized) {
25914                 throw new Error("initializeWasm() must be awaited first!");
25915         }
25916         const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
25917         return nativeResponseValue;
25918 }
25919         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
25920 /* @internal */
25921 export function ClosingSignedFeeRange_write(obj: bigint): number {
25922         if(!isWasmInitialized) {
25923                 throw new Error("initializeWasm() must be awaited first!");
25924         }
25925         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
25926         return nativeResponseValue;
25927 }
25928         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
25929 /* @internal */
25930 export function ClosingSignedFeeRange_read(ser: number): bigint {
25931         if(!isWasmInitialized) {
25932                 throw new Error("initializeWasm() must be awaited first!");
25933         }
25934         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
25935         return nativeResponseValue;
25936 }
25937         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
25938 /* @internal */
25939 export function CommitmentSigned_write(obj: bigint): number {
25940         if(!isWasmInitialized) {
25941                 throw new Error("initializeWasm() must be awaited first!");
25942         }
25943         const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
25944         return nativeResponseValue;
25945 }
25946         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
25947 /* @internal */
25948 export function CommitmentSigned_read(ser: number): bigint {
25949         if(!isWasmInitialized) {
25950                 throw new Error("initializeWasm() must be awaited first!");
25951         }
25952         const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
25953         return nativeResponseValue;
25954 }
25955         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
25956 /* @internal */
25957 export function FundingCreated_write(obj: bigint): number {
25958         if(!isWasmInitialized) {
25959                 throw new Error("initializeWasm() must be awaited first!");
25960         }
25961         const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
25962         return nativeResponseValue;
25963 }
25964         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
25965 /* @internal */
25966 export function FundingCreated_read(ser: number): bigint {
25967         if(!isWasmInitialized) {
25968                 throw new Error("initializeWasm() must be awaited first!");
25969         }
25970         const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
25971         return nativeResponseValue;
25972 }
25973         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
25974 /* @internal */
25975 export function FundingSigned_write(obj: bigint): number {
25976         if(!isWasmInitialized) {
25977                 throw new Error("initializeWasm() must be awaited first!");
25978         }
25979         const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
25980         return nativeResponseValue;
25981 }
25982         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
25983 /* @internal */
25984 export function FundingSigned_read(ser: number): bigint {
25985         if(!isWasmInitialized) {
25986                 throw new Error("initializeWasm() must be awaited first!");
25987         }
25988         const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
25989         return nativeResponseValue;
25990 }
25991         // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
25992 /* @internal */
25993 export function ChannelReady_write(obj: bigint): number {
25994         if(!isWasmInitialized) {
25995                 throw new Error("initializeWasm() must be awaited first!");
25996         }
25997         const nativeResponseValue = wasm.TS_ChannelReady_write(obj);
25998         return nativeResponseValue;
25999 }
26000         // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
26001 /* @internal */
26002 export function ChannelReady_read(ser: number): bigint {
26003         if(!isWasmInitialized) {
26004                 throw new Error("initializeWasm() must be awaited first!");
26005         }
26006         const nativeResponseValue = wasm.TS_ChannelReady_read(ser);
26007         return nativeResponseValue;
26008 }
26009         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
26010 /* @internal */
26011 export function Init_write(obj: bigint): number {
26012         if(!isWasmInitialized) {
26013                 throw new Error("initializeWasm() must be awaited first!");
26014         }
26015         const nativeResponseValue = wasm.TS_Init_write(obj);
26016         return nativeResponseValue;
26017 }
26018         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
26019 /* @internal */
26020 export function Init_read(ser: number): bigint {
26021         if(!isWasmInitialized) {
26022                 throw new Error("initializeWasm() must be awaited first!");
26023         }
26024         const nativeResponseValue = wasm.TS_Init_read(ser);
26025         return nativeResponseValue;
26026 }
26027         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
26028 /* @internal */
26029 export function OpenChannel_write(obj: bigint): number {
26030         if(!isWasmInitialized) {
26031                 throw new Error("initializeWasm() must be awaited first!");
26032         }
26033         const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
26034         return nativeResponseValue;
26035 }
26036         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
26037 /* @internal */
26038 export function OpenChannel_read(ser: number): bigint {
26039         if(!isWasmInitialized) {
26040                 throw new Error("initializeWasm() must be awaited first!");
26041         }
26042         const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
26043         return nativeResponseValue;
26044 }
26045         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
26046 /* @internal */
26047 export function RevokeAndACK_write(obj: bigint): number {
26048         if(!isWasmInitialized) {
26049                 throw new Error("initializeWasm() must be awaited first!");
26050         }
26051         const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
26052         return nativeResponseValue;
26053 }
26054         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
26055 /* @internal */
26056 export function RevokeAndACK_read(ser: number): bigint {
26057         if(!isWasmInitialized) {
26058                 throw new Error("initializeWasm() must be awaited first!");
26059         }
26060         const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
26061         return nativeResponseValue;
26062 }
26063         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
26064 /* @internal */
26065 export function Shutdown_write(obj: bigint): number {
26066         if(!isWasmInitialized) {
26067                 throw new Error("initializeWasm() must be awaited first!");
26068         }
26069         const nativeResponseValue = wasm.TS_Shutdown_write(obj);
26070         return nativeResponseValue;
26071 }
26072         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
26073 /* @internal */
26074 export function Shutdown_read(ser: number): bigint {
26075         if(!isWasmInitialized) {
26076                 throw new Error("initializeWasm() must be awaited first!");
26077         }
26078         const nativeResponseValue = wasm.TS_Shutdown_read(ser);
26079         return nativeResponseValue;
26080 }
26081         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
26082 /* @internal */
26083 export function UpdateFailHTLC_write(obj: bigint): number {
26084         if(!isWasmInitialized) {
26085                 throw new Error("initializeWasm() must be awaited first!");
26086         }
26087         const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
26088         return nativeResponseValue;
26089 }
26090         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
26091 /* @internal */
26092 export function UpdateFailHTLC_read(ser: number): bigint {
26093         if(!isWasmInitialized) {
26094                 throw new Error("initializeWasm() must be awaited first!");
26095         }
26096         const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
26097         return nativeResponseValue;
26098 }
26099         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
26100 /* @internal */
26101 export function UpdateFailMalformedHTLC_write(obj: bigint): number {
26102         if(!isWasmInitialized) {
26103                 throw new Error("initializeWasm() must be awaited first!");
26104         }
26105         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
26106         return nativeResponseValue;
26107 }
26108         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
26109 /* @internal */
26110 export function UpdateFailMalformedHTLC_read(ser: number): bigint {
26111         if(!isWasmInitialized) {
26112                 throw new Error("initializeWasm() must be awaited first!");
26113         }
26114         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
26115         return nativeResponseValue;
26116 }
26117         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
26118 /* @internal */
26119 export function UpdateFee_write(obj: bigint): number {
26120         if(!isWasmInitialized) {
26121                 throw new Error("initializeWasm() must be awaited first!");
26122         }
26123         const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
26124         return nativeResponseValue;
26125 }
26126         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
26127 /* @internal */
26128 export function UpdateFee_read(ser: number): bigint {
26129         if(!isWasmInitialized) {
26130                 throw new Error("initializeWasm() must be awaited first!");
26131         }
26132         const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
26133         return nativeResponseValue;
26134 }
26135         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
26136 /* @internal */
26137 export function UpdateFulfillHTLC_write(obj: bigint): number {
26138         if(!isWasmInitialized) {
26139                 throw new Error("initializeWasm() must be awaited first!");
26140         }
26141         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
26142         return nativeResponseValue;
26143 }
26144         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
26145 /* @internal */
26146 export function UpdateFulfillHTLC_read(ser: number): bigint {
26147         if(!isWasmInitialized) {
26148                 throw new Error("initializeWasm() must be awaited first!");
26149         }
26150         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
26151         return nativeResponseValue;
26152 }
26153         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
26154 /* @internal */
26155 export function UpdateAddHTLC_write(obj: bigint): number {
26156         if(!isWasmInitialized) {
26157                 throw new Error("initializeWasm() must be awaited first!");
26158         }
26159         const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
26160         return nativeResponseValue;
26161 }
26162         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
26163 /* @internal */
26164 export function UpdateAddHTLC_read(ser: number): bigint {
26165         if(!isWasmInitialized) {
26166                 throw new Error("initializeWasm() must be awaited first!");
26167         }
26168         const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
26169         return nativeResponseValue;
26170 }
26171         // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
26172 /* @internal */
26173 export function OnionMessage_read(ser: number): bigint {
26174         if(!isWasmInitialized) {
26175                 throw new Error("initializeWasm() must be awaited first!");
26176         }
26177         const nativeResponseValue = wasm.TS_OnionMessage_read(ser);
26178         return nativeResponseValue;
26179 }
26180         // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
26181 /* @internal */
26182 export function OnionMessage_write(obj: bigint): number {
26183         if(!isWasmInitialized) {
26184                 throw new Error("initializeWasm() must be awaited first!");
26185         }
26186         const nativeResponseValue = wasm.TS_OnionMessage_write(obj);
26187         return nativeResponseValue;
26188 }
26189         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
26190 /* @internal */
26191 export function Ping_write(obj: bigint): number {
26192         if(!isWasmInitialized) {
26193                 throw new Error("initializeWasm() must be awaited first!");
26194         }
26195         const nativeResponseValue = wasm.TS_Ping_write(obj);
26196         return nativeResponseValue;
26197 }
26198         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
26199 /* @internal */
26200 export function Ping_read(ser: number): bigint {
26201         if(!isWasmInitialized) {
26202                 throw new Error("initializeWasm() must be awaited first!");
26203         }
26204         const nativeResponseValue = wasm.TS_Ping_read(ser);
26205         return nativeResponseValue;
26206 }
26207         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
26208 /* @internal */
26209 export function Pong_write(obj: bigint): number {
26210         if(!isWasmInitialized) {
26211                 throw new Error("initializeWasm() must be awaited first!");
26212         }
26213         const nativeResponseValue = wasm.TS_Pong_write(obj);
26214         return nativeResponseValue;
26215 }
26216         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
26217 /* @internal */
26218 export function Pong_read(ser: number): bigint {
26219         if(!isWasmInitialized) {
26220                 throw new Error("initializeWasm() must be awaited first!");
26221         }
26222         const nativeResponseValue = wasm.TS_Pong_read(ser);
26223         return nativeResponseValue;
26224 }
26225         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
26226 /* @internal */
26227 export function UnsignedChannelAnnouncement_write(obj: bigint): number {
26228         if(!isWasmInitialized) {
26229                 throw new Error("initializeWasm() must be awaited first!");
26230         }
26231         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
26232         return nativeResponseValue;
26233 }
26234         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
26235 /* @internal */
26236 export function UnsignedChannelAnnouncement_read(ser: number): bigint {
26237         if(!isWasmInitialized) {
26238                 throw new Error("initializeWasm() must be awaited first!");
26239         }
26240         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
26241         return nativeResponseValue;
26242 }
26243         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
26244 /* @internal */
26245 export function ChannelAnnouncement_write(obj: bigint): number {
26246         if(!isWasmInitialized) {
26247                 throw new Error("initializeWasm() must be awaited first!");
26248         }
26249         const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
26250         return nativeResponseValue;
26251 }
26252         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
26253 /* @internal */
26254 export function ChannelAnnouncement_read(ser: number): bigint {
26255         if(!isWasmInitialized) {
26256                 throw new Error("initializeWasm() must be awaited first!");
26257         }
26258         const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
26259         return nativeResponseValue;
26260 }
26261         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
26262 /* @internal */
26263 export function UnsignedChannelUpdate_write(obj: bigint): number {
26264         if(!isWasmInitialized) {
26265                 throw new Error("initializeWasm() must be awaited first!");
26266         }
26267         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
26268         return nativeResponseValue;
26269 }
26270         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
26271 /* @internal */
26272 export function UnsignedChannelUpdate_read(ser: number): bigint {
26273         if(!isWasmInitialized) {
26274                 throw new Error("initializeWasm() must be awaited first!");
26275         }
26276         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
26277         return nativeResponseValue;
26278 }
26279         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
26280 /* @internal */
26281 export function ChannelUpdate_write(obj: bigint): number {
26282         if(!isWasmInitialized) {
26283                 throw new Error("initializeWasm() must be awaited first!");
26284         }
26285         const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
26286         return nativeResponseValue;
26287 }
26288         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
26289 /* @internal */
26290 export function ChannelUpdate_read(ser: number): bigint {
26291         if(!isWasmInitialized) {
26292                 throw new Error("initializeWasm() must be awaited first!");
26293         }
26294         const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
26295         return nativeResponseValue;
26296 }
26297         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
26298 /* @internal */
26299 export function ErrorMessage_write(obj: bigint): number {
26300         if(!isWasmInitialized) {
26301                 throw new Error("initializeWasm() must be awaited first!");
26302         }
26303         const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
26304         return nativeResponseValue;
26305 }
26306         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
26307 /* @internal */
26308 export function ErrorMessage_read(ser: number): bigint {
26309         if(!isWasmInitialized) {
26310                 throw new Error("initializeWasm() must be awaited first!");
26311         }
26312         const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
26313         return nativeResponseValue;
26314 }
26315         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
26316 /* @internal */
26317 export function WarningMessage_write(obj: bigint): number {
26318         if(!isWasmInitialized) {
26319                 throw new Error("initializeWasm() must be awaited first!");
26320         }
26321         const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
26322         return nativeResponseValue;
26323 }
26324         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
26325 /* @internal */
26326 export function WarningMessage_read(ser: number): bigint {
26327         if(!isWasmInitialized) {
26328                 throw new Error("initializeWasm() must be awaited first!");
26329         }
26330         const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
26331         return nativeResponseValue;
26332 }
26333         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
26334 /* @internal */
26335 export function UnsignedNodeAnnouncement_write(obj: bigint): number {
26336         if(!isWasmInitialized) {
26337                 throw new Error("initializeWasm() must be awaited first!");
26338         }
26339         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
26340         return nativeResponseValue;
26341 }
26342         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
26343 /* @internal */
26344 export function UnsignedNodeAnnouncement_read(ser: number): bigint {
26345         if(!isWasmInitialized) {
26346                 throw new Error("initializeWasm() must be awaited first!");
26347         }
26348         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
26349         return nativeResponseValue;
26350 }
26351         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
26352 /* @internal */
26353 export function NodeAnnouncement_write(obj: bigint): number {
26354         if(!isWasmInitialized) {
26355                 throw new Error("initializeWasm() must be awaited first!");
26356         }
26357         const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
26358         return nativeResponseValue;
26359 }
26360         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
26361 /* @internal */
26362 export function NodeAnnouncement_read(ser: number): bigint {
26363         if(!isWasmInitialized) {
26364                 throw new Error("initializeWasm() must be awaited first!");
26365         }
26366         const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
26367         return nativeResponseValue;
26368 }
26369         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
26370 /* @internal */
26371 export function QueryShortChannelIds_read(ser: number): bigint {
26372         if(!isWasmInitialized) {
26373                 throw new Error("initializeWasm() must be awaited first!");
26374         }
26375         const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
26376         return nativeResponseValue;
26377 }
26378         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
26379 /* @internal */
26380 export function QueryShortChannelIds_write(obj: bigint): number {
26381         if(!isWasmInitialized) {
26382                 throw new Error("initializeWasm() must be awaited first!");
26383         }
26384         const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
26385         return nativeResponseValue;
26386 }
26387         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
26388 /* @internal */
26389 export function ReplyShortChannelIdsEnd_write(obj: bigint): number {
26390         if(!isWasmInitialized) {
26391                 throw new Error("initializeWasm() must be awaited first!");
26392         }
26393         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
26394         return nativeResponseValue;
26395 }
26396         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
26397 /* @internal */
26398 export function ReplyShortChannelIdsEnd_read(ser: number): bigint {
26399         if(!isWasmInitialized) {
26400                 throw new Error("initializeWasm() must be awaited first!");
26401         }
26402         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
26403         return nativeResponseValue;
26404 }
26405         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
26406 /* @internal */
26407 export function QueryChannelRange_end_blocknum(this_arg: bigint): number {
26408         if(!isWasmInitialized) {
26409                 throw new Error("initializeWasm() must be awaited first!");
26410         }
26411         const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
26412         return nativeResponseValue;
26413 }
26414         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
26415 /* @internal */
26416 export function QueryChannelRange_write(obj: bigint): number {
26417         if(!isWasmInitialized) {
26418                 throw new Error("initializeWasm() must be awaited first!");
26419         }
26420         const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
26421         return nativeResponseValue;
26422 }
26423         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
26424 /* @internal */
26425 export function QueryChannelRange_read(ser: number): bigint {
26426         if(!isWasmInitialized) {
26427                 throw new Error("initializeWasm() must be awaited first!");
26428         }
26429         const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
26430         return nativeResponseValue;
26431 }
26432         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
26433 /* @internal */
26434 export function ReplyChannelRange_read(ser: number): bigint {
26435         if(!isWasmInitialized) {
26436                 throw new Error("initializeWasm() must be awaited first!");
26437         }
26438         const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
26439         return nativeResponseValue;
26440 }
26441         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
26442 /* @internal */
26443 export function ReplyChannelRange_write(obj: bigint): number {
26444         if(!isWasmInitialized) {
26445                 throw new Error("initializeWasm() must be awaited first!");
26446         }
26447         const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
26448         return nativeResponseValue;
26449 }
26450         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
26451 /* @internal */
26452 export function GossipTimestampFilter_write(obj: bigint): number {
26453         if(!isWasmInitialized) {
26454                 throw new Error("initializeWasm() must be awaited first!");
26455         }
26456         const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
26457         return nativeResponseValue;
26458 }
26459         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
26460 /* @internal */
26461 export function GossipTimestampFilter_read(ser: number): bigint {
26462         if(!isWasmInitialized) {
26463                 throw new Error("initializeWasm() must be awaited first!");
26464         }
26465         const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
26466         return nativeResponseValue;
26467 }
26468         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
26469 /* @internal */
26470 export function CustomMessageHandler_free(this_ptr: bigint): void {
26471         if(!isWasmInitialized) {
26472                 throw new Error("initializeWasm() must be awaited first!");
26473         }
26474         const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
26475         // debug statements here
26476 }
26477         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
26478 /* @internal */
26479 export function IgnoringMessageHandler_free(this_obj: bigint): void {
26480         if(!isWasmInitialized) {
26481                 throw new Error("initializeWasm() must be awaited first!");
26482         }
26483         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
26484         // debug statements here
26485 }
26486         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
26487 /* @internal */
26488 export function IgnoringMessageHandler_new(): bigint {
26489         if(!isWasmInitialized) {
26490                 throw new Error("initializeWasm() must be awaited first!");
26491         }
26492         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
26493         return nativeResponseValue;
26494 }
26495         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
26496 /* @internal */
26497 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: bigint): bigint {
26498         if(!isWasmInitialized) {
26499                 throw new Error("initializeWasm() must be awaited first!");
26500         }
26501         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
26502         return nativeResponseValue;
26503 }
26504         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
26505 /* @internal */
26506 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: bigint): bigint {
26507         if(!isWasmInitialized) {
26508                 throw new Error("initializeWasm() must be awaited first!");
26509         }
26510         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
26511         return nativeResponseValue;
26512 }
26513         // struct LDKOnionMessageProvider IgnoringMessageHandler_as_OnionMessageProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
26514 /* @internal */
26515 export function IgnoringMessageHandler_as_OnionMessageProvider(this_arg: bigint): bigint {
26516         if(!isWasmInitialized) {
26517                 throw new Error("initializeWasm() must be awaited first!");
26518         }
26519         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_OnionMessageProvider(this_arg);
26520         return nativeResponseValue;
26521 }
26522         // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
26523 /* @internal */
26524 export function IgnoringMessageHandler_as_OnionMessageHandler(this_arg: bigint): bigint {
26525         if(!isWasmInitialized) {
26526                 throw new Error("initializeWasm() must be awaited first!");
26527         }
26528         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_OnionMessageHandler(this_arg);
26529         return nativeResponseValue;
26530 }
26531         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
26532 /* @internal */
26533 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: bigint): bigint {
26534         if(!isWasmInitialized) {
26535                 throw new Error("initializeWasm() must be awaited first!");
26536         }
26537         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
26538         return nativeResponseValue;
26539 }
26540         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
26541 /* @internal */
26542 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: bigint): bigint {
26543         if(!isWasmInitialized) {
26544                 throw new Error("initializeWasm() must be awaited first!");
26545         }
26546         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
26547         return nativeResponseValue;
26548 }
26549         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
26550 /* @internal */
26551 export function ErroringMessageHandler_free(this_obj: bigint): void {
26552         if(!isWasmInitialized) {
26553                 throw new Error("initializeWasm() must be awaited first!");
26554         }
26555         const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
26556         // debug statements here
26557 }
26558         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
26559 /* @internal */
26560 export function ErroringMessageHandler_new(): bigint {
26561         if(!isWasmInitialized) {
26562                 throw new Error("initializeWasm() must be awaited first!");
26563         }
26564         const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
26565         return nativeResponseValue;
26566 }
26567         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
26568 /* @internal */
26569 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: bigint): bigint {
26570         if(!isWasmInitialized) {
26571                 throw new Error("initializeWasm() must be awaited first!");
26572         }
26573         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
26574         return nativeResponseValue;
26575 }
26576         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
26577 /* @internal */
26578 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: bigint): bigint {
26579         if(!isWasmInitialized) {
26580                 throw new Error("initializeWasm() must be awaited first!");
26581         }
26582         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
26583         return nativeResponseValue;
26584 }
26585         // void MessageHandler_free(struct LDKMessageHandler this_obj);
26586 /* @internal */
26587 export function MessageHandler_free(this_obj: bigint): void {
26588         if(!isWasmInitialized) {
26589                 throw new Error("initializeWasm() must be awaited first!");
26590         }
26591         const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
26592         // debug statements here
26593 }
26594         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
26595 /* @internal */
26596 export function MessageHandler_get_chan_handler(this_ptr: bigint): bigint {
26597         if(!isWasmInitialized) {
26598                 throw new Error("initializeWasm() must be awaited first!");
26599         }
26600         const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
26601         return nativeResponseValue;
26602 }
26603         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
26604 /* @internal */
26605 export function MessageHandler_set_chan_handler(this_ptr: bigint, val: bigint): void {
26606         if(!isWasmInitialized) {
26607                 throw new Error("initializeWasm() must be awaited first!");
26608         }
26609         const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
26610         // debug statements here
26611 }
26612         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
26613 /* @internal */
26614 export function MessageHandler_get_route_handler(this_ptr: bigint): bigint {
26615         if(!isWasmInitialized) {
26616                 throw new Error("initializeWasm() must be awaited first!");
26617         }
26618         const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
26619         return nativeResponseValue;
26620 }
26621         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
26622 /* @internal */
26623 export function MessageHandler_set_route_handler(this_ptr: bigint, val: bigint): void {
26624         if(!isWasmInitialized) {
26625                 throw new Error("initializeWasm() must be awaited first!");
26626         }
26627         const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
26628         // debug statements here
26629 }
26630         // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
26631 /* @internal */
26632 export function MessageHandler_get_onion_message_handler(this_ptr: bigint): bigint {
26633         if(!isWasmInitialized) {
26634                 throw new Error("initializeWasm() must be awaited first!");
26635         }
26636         const nativeResponseValue = wasm.TS_MessageHandler_get_onion_message_handler(this_ptr);
26637         return nativeResponseValue;
26638 }
26639         // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
26640 /* @internal */
26641 export function MessageHandler_set_onion_message_handler(this_ptr: bigint, val: bigint): void {
26642         if(!isWasmInitialized) {
26643                 throw new Error("initializeWasm() must be awaited first!");
26644         }
26645         const nativeResponseValue = wasm.TS_MessageHandler_set_onion_message_handler(this_ptr, val);
26646         // debug statements here
26647 }
26648         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg, struct LDKOnionMessageHandler onion_message_handler_arg);
26649 /* @internal */
26650 export function MessageHandler_new(chan_handler_arg: bigint, route_handler_arg: bigint, onion_message_handler_arg: bigint): bigint {
26651         if(!isWasmInitialized) {
26652                 throw new Error("initializeWasm() must be awaited first!");
26653         }
26654         const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg, onion_message_handler_arg);
26655         return nativeResponseValue;
26656 }
26657         // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
26658 /* @internal */
26659 export function SocketDescriptor_clone_ptr(arg: bigint): bigint {
26660         if(!isWasmInitialized) {
26661                 throw new Error("initializeWasm() must be awaited first!");
26662         }
26663         const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
26664         return nativeResponseValue;
26665 }
26666         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
26667 /* @internal */
26668 export function SocketDescriptor_clone(orig: bigint): bigint {
26669         if(!isWasmInitialized) {
26670                 throw new Error("initializeWasm() must be awaited first!");
26671         }
26672         const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
26673         return nativeResponseValue;
26674 }
26675         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
26676 /* @internal */
26677 export function SocketDescriptor_free(this_ptr: bigint): void {
26678         if(!isWasmInitialized) {
26679                 throw new Error("initializeWasm() must be awaited first!");
26680         }
26681         const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
26682         // debug statements here
26683 }
26684         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
26685 /* @internal */
26686 export function PeerHandleError_free(this_obj: bigint): void {
26687         if(!isWasmInitialized) {
26688                 throw new Error("initializeWasm() must be awaited first!");
26689         }
26690         const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
26691         // debug statements here
26692 }
26693         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
26694 /* @internal */
26695 export function PeerHandleError_get_no_connection_possible(this_ptr: bigint): boolean {
26696         if(!isWasmInitialized) {
26697                 throw new Error("initializeWasm() must be awaited first!");
26698         }
26699         const nativeResponseValue = wasm.TS_PeerHandleError_get_no_connection_possible(this_ptr);
26700         return nativeResponseValue;
26701 }
26702         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
26703 /* @internal */
26704 export function PeerHandleError_set_no_connection_possible(this_ptr: bigint, val: boolean): void {
26705         if(!isWasmInitialized) {
26706                 throw new Error("initializeWasm() must be awaited first!");
26707         }
26708         const nativeResponseValue = wasm.TS_PeerHandleError_set_no_connection_possible(this_ptr, val);
26709         // debug statements here
26710 }
26711         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
26712 /* @internal */
26713 export function PeerHandleError_new(no_connection_possible_arg: boolean): bigint {
26714         if(!isWasmInitialized) {
26715                 throw new Error("initializeWasm() must be awaited first!");
26716         }
26717         const nativeResponseValue = wasm.TS_PeerHandleError_new(no_connection_possible_arg);
26718         return nativeResponseValue;
26719 }
26720         // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
26721 /* @internal */
26722 export function PeerHandleError_clone_ptr(arg: bigint): bigint {
26723         if(!isWasmInitialized) {
26724                 throw new Error("initializeWasm() must be awaited first!");
26725         }
26726         const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
26727         return nativeResponseValue;
26728 }
26729         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
26730 /* @internal */
26731 export function PeerHandleError_clone(orig: bigint): bigint {
26732         if(!isWasmInitialized) {
26733                 throw new Error("initializeWasm() must be awaited first!");
26734         }
26735         const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
26736         return nativeResponseValue;
26737 }
26738         // void PeerManager_free(struct LDKPeerManager this_obj);
26739 /* @internal */
26740 export function PeerManager_free(this_obj: bigint): void {
26741         if(!isWasmInitialized) {
26742                 throw new Error("initializeWasm() must be awaited first!");
26743         }
26744         const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
26745         // debug statements here
26746 }
26747         // MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler message_handler, struct LDKSecretKey our_node_secret, uint64_t current_time, const uint8_t (*ephemeral_random_data)[32], struct LDKLogger logger, struct LDKCustomMessageHandler custom_message_handler);
26748 /* @internal */
26749 export function PeerManager_new(message_handler: bigint, our_node_secret: number, current_time: bigint, ephemeral_random_data: number, logger: bigint, custom_message_handler: bigint): bigint {
26750         if(!isWasmInitialized) {
26751                 throw new Error("initializeWasm() must be awaited first!");
26752         }
26753         const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, our_node_secret, current_time, ephemeral_random_data, logger, custom_message_handler);
26754         return nativeResponseValue;
26755 }
26756         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
26757 /* @internal */
26758 export function PeerManager_get_peer_node_ids(this_arg: bigint): number {
26759         if(!isWasmInitialized) {
26760                 throw new Error("initializeWasm() must be awaited first!");
26761         }
26762         const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
26763         return nativeResponseValue;
26764 }
26765         // 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);
26766 /* @internal */
26767 export function PeerManager_new_outbound_connection(this_arg: bigint, their_node_id: number, descriptor: bigint, remote_network_address: bigint): bigint {
26768         if(!isWasmInitialized) {
26769                 throw new Error("initializeWasm() must be awaited first!");
26770         }
26771         const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor, remote_network_address);
26772         return nativeResponseValue;
26773 }
26774         // 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);
26775 /* @internal */
26776 export function PeerManager_new_inbound_connection(this_arg: bigint, descriptor: bigint, remote_network_address: bigint): bigint {
26777         if(!isWasmInitialized) {
26778                 throw new Error("initializeWasm() must be awaited first!");
26779         }
26780         const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor, remote_network_address);
26781         return nativeResponseValue;
26782 }
26783         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
26784 /* @internal */
26785 export function PeerManager_write_buffer_space_avail(this_arg: bigint, descriptor: bigint): bigint {
26786         if(!isWasmInitialized) {
26787                 throw new Error("initializeWasm() must be awaited first!");
26788         }
26789         const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
26790         return nativeResponseValue;
26791 }
26792         // 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);
26793 /* @internal */
26794 export function PeerManager_read_event(this_arg: bigint, peer_descriptor: bigint, data: number): bigint {
26795         if(!isWasmInitialized) {
26796                 throw new Error("initializeWasm() must be awaited first!");
26797         }
26798         const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
26799         return nativeResponseValue;
26800 }
26801         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
26802 /* @internal */
26803 export function PeerManager_process_events(this_arg: bigint): void {
26804         if(!isWasmInitialized) {
26805                 throw new Error("initializeWasm() must be awaited first!");
26806         }
26807         const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
26808         // debug statements here
26809 }
26810         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
26811 /* @internal */
26812 export function PeerManager_socket_disconnected(this_arg: bigint, descriptor: bigint): void {
26813         if(!isWasmInitialized) {
26814                 throw new Error("initializeWasm() must be awaited first!");
26815         }
26816         const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
26817         // debug statements here
26818 }
26819         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
26820 /* @internal */
26821 export function PeerManager_disconnect_by_node_id(this_arg: bigint, node_id: number, no_connection_possible: boolean): void {
26822         if(!isWasmInitialized) {
26823                 throw new Error("initializeWasm() must be awaited first!");
26824         }
26825         const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id, no_connection_possible);
26826         // debug statements here
26827 }
26828         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
26829 /* @internal */
26830 export function PeerManager_disconnect_all_peers(this_arg: bigint): void {
26831         if(!isWasmInitialized) {
26832                 throw new Error("initializeWasm() must be awaited first!");
26833         }
26834         const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
26835         // debug statements here
26836 }
26837         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
26838 /* @internal */
26839 export function PeerManager_timer_tick_occurred(this_arg: bigint): void {
26840         if(!isWasmInitialized) {
26841                 throw new Error("initializeWasm() must be awaited first!");
26842         }
26843         const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
26844         // debug statements here
26845 }
26846         // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
26847 /* @internal */
26848 export function PeerManager_broadcast_node_announcement(this_arg: bigint, rgb: number, alias: number, addresses: number): void {
26849         if(!isWasmInitialized) {
26850                 throw new Error("initializeWasm() must be awaited first!");
26851         }
26852         const nativeResponseValue = wasm.TS_PeerManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
26853         // debug statements here
26854 }
26855         // uint64_t htlc_success_tx_weight(bool opt_anchors);
26856 /* @internal */
26857 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
26858         if(!isWasmInitialized) {
26859                 throw new Error("initializeWasm() must be awaited first!");
26860         }
26861         const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
26862         return nativeResponseValue;
26863 }
26864         // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
26865 /* @internal */
26866 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
26867         if(!isWasmInitialized) {
26868                 throw new Error("initializeWasm() must be awaited first!");
26869         }
26870         const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
26871         return nativeResponseValue;
26872 }
26873         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
26874 /* @internal */
26875 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
26876         if(!isWasmInitialized) {
26877                 throw new Error("initializeWasm() must be awaited first!");
26878         }
26879         const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
26880         return nativeResponseValue;
26881 }
26882         // 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);
26883 /* @internal */
26884 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: bigint): number {
26885         if(!isWasmInitialized) {
26886                 throw new Error("initializeWasm() must be awaited first!");
26887         }
26888         const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
26889         return nativeResponseValue;
26890 }
26891         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
26892 /* @internal */
26893 export function CounterpartyCommitmentSecrets_free(this_obj: bigint): void {
26894         if(!isWasmInitialized) {
26895                 throw new Error("initializeWasm() must be awaited first!");
26896         }
26897         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
26898         // debug statements here
26899 }
26900         // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
26901 /* @internal */
26902 export function CounterpartyCommitmentSecrets_clone_ptr(arg: bigint): bigint {
26903         if(!isWasmInitialized) {
26904                 throw new Error("initializeWasm() must be awaited first!");
26905         }
26906         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
26907         return nativeResponseValue;
26908 }
26909         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
26910 /* @internal */
26911 export function CounterpartyCommitmentSecrets_clone(orig: bigint): bigint {
26912         if(!isWasmInitialized) {
26913                 throw new Error("initializeWasm() must be awaited first!");
26914         }
26915         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
26916         return nativeResponseValue;
26917 }
26918         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
26919 /* @internal */
26920 export function CounterpartyCommitmentSecrets_new(): bigint {
26921         if(!isWasmInitialized) {
26922                 throw new Error("initializeWasm() must be awaited first!");
26923         }
26924         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
26925         return nativeResponseValue;
26926 }
26927         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
26928 /* @internal */
26929 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: bigint): bigint {
26930         if(!isWasmInitialized) {
26931                 throw new Error("initializeWasm() must be awaited first!");
26932         }
26933         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
26934         return nativeResponseValue;
26935 }
26936         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
26937 /* @internal */
26938 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: bigint, idx: bigint, secret: number): bigint {
26939         if(!isWasmInitialized) {
26940                 throw new Error("initializeWasm() must be awaited first!");
26941         }
26942         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
26943         return nativeResponseValue;
26944 }
26945         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
26946 /* @internal */
26947 export function CounterpartyCommitmentSecrets_get_secret(this_arg: bigint, idx: bigint): number {
26948         if(!isWasmInitialized) {
26949                 throw new Error("initializeWasm() must be awaited first!");
26950         }
26951         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
26952         return nativeResponseValue;
26953 }
26954         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
26955 /* @internal */
26956 export function CounterpartyCommitmentSecrets_write(obj: bigint): number {
26957         if(!isWasmInitialized) {
26958                 throw new Error("initializeWasm() must be awaited first!");
26959         }
26960         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
26961         return nativeResponseValue;
26962 }
26963         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
26964 /* @internal */
26965 export function CounterpartyCommitmentSecrets_read(ser: number): bigint {
26966         if(!isWasmInitialized) {
26967                 throw new Error("initializeWasm() must be awaited first!");
26968         }
26969         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
26970         return nativeResponseValue;
26971 }
26972         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
26973 /* @internal */
26974 export function derive_private_key(per_commitment_point: number, base_secret: number): bigint {
26975         if(!isWasmInitialized) {
26976                 throw new Error("initializeWasm() must be awaited first!");
26977         }
26978         const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
26979         return nativeResponseValue;
26980 }
26981         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
26982 /* @internal */
26983 export function derive_public_key(per_commitment_point: number, base_point: number): bigint {
26984         if(!isWasmInitialized) {
26985                 throw new Error("initializeWasm() must be awaited first!");
26986         }
26987         const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
26988         return nativeResponseValue;
26989 }
26990         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
26991 /* @internal */
26992 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): bigint {
26993         if(!isWasmInitialized) {
26994                 throw new Error("initializeWasm() must be awaited first!");
26995         }
26996         const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
26997         return nativeResponseValue;
26998 }
26999         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
27000 /* @internal */
27001 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): bigint {
27002         if(!isWasmInitialized) {
27003                 throw new Error("initializeWasm() must be awaited first!");
27004         }
27005         const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
27006         return nativeResponseValue;
27007 }
27008         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
27009 /* @internal */
27010 export function TxCreationKeys_free(this_obj: bigint): void {
27011         if(!isWasmInitialized) {
27012                 throw new Error("initializeWasm() must be awaited first!");
27013         }
27014         const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
27015         // debug statements here
27016 }
27017         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
27018 /* @internal */
27019 export function TxCreationKeys_get_per_commitment_point(this_ptr: bigint): number {
27020         if(!isWasmInitialized) {
27021                 throw new Error("initializeWasm() must be awaited first!");
27022         }
27023         const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
27024         return nativeResponseValue;
27025 }
27026         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27027 /* @internal */
27028 export function TxCreationKeys_set_per_commitment_point(this_ptr: bigint, val: number): void {
27029         if(!isWasmInitialized) {
27030                 throw new Error("initializeWasm() must be awaited first!");
27031         }
27032         const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
27033         // debug statements here
27034 }
27035         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
27036 /* @internal */
27037 export function TxCreationKeys_get_revocation_key(this_ptr: bigint): number {
27038         if(!isWasmInitialized) {
27039                 throw new Error("initializeWasm() must be awaited first!");
27040         }
27041         const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
27042         return nativeResponseValue;
27043 }
27044         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27045 /* @internal */
27046 export function TxCreationKeys_set_revocation_key(this_ptr: bigint, val: number): void {
27047         if(!isWasmInitialized) {
27048                 throw new Error("initializeWasm() must be awaited first!");
27049         }
27050         const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
27051         // debug statements here
27052 }
27053         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
27054 /* @internal */
27055 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: bigint): number {
27056         if(!isWasmInitialized) {
27057                 throw new Error("initializeWasm() must be awaited first!");
27058         }
27059         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
27060         return nativeResponseValue;
27061 }
27062         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27063 /* @internal */
27064 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: bigint, val: number): void {
27065         if(!isWasmInitialized) {
27066                 throw new Error("initializeWasm() must be awaited first!");
27067         }
27068         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
27069         // debug statements here
27070 }
27071         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
27072 /* @internal */
27073 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: bigint): number {
27074         if(!isWasmInitialized) {
27075                 throw new Error("initializeWasm() must be awaited first!");
27076         }
27077         const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
27078         return nativeResponseValue;
27079 }
27080         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27081 /* @internal */
27082 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: bigint, val: number): void {
27083         if(!isWasmInitialized) {
27084                 throw new Error("initializeWasm() must be awaited first!");
27085         }
27086         const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
27087         // debug statements here
27088 }
27089         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
27090 /* @internal */
27091 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: bigint): number {
27092         if(!isWasmInitialized) {
27093                 throw new Error("initializeWasm() must be awaited first!");
27094         }
27095         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
27096         return nativeResponseValue;
27097 }
27098         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27099 /* @internal */
27100 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: bigint, val: number): void {
27101         if(!isWasmInitialized) {
27102                 throw new Error("initializeWasm() must be awaited first!");
27103         }
27104         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
27105         // debug statements here
27106 }
27107         // 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);
27108 /* @internal */
27109 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): bigint {
27110         if(!isWasmInitialized) {
27111                 throw new Error("initializeWasm() must be awaited first!");
27112         }
27113         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);
27114         return nativeResponseValue;
27115 }
27116         // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
27117 /* @internal */
27118 export function TxCreationKeys_clone_ptr(arg: bigint): bigint {
27119         if(!isWasmInitialized) {
27120                 throw new Error("initializeWasm() must be awaited first!");
27121         }
27122         const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
27123         return nativeResponseValue;
27124 }
27125         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
27126 /* @internal */
27127 export function TxCreationKeys_clone(orig: bigint): bigint {
27128         if(!isWasmInitialized) {
27129                 throw new Error("initializeWasm() must be awaited first!");
27130         }
27131         const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
27132         return nativeResponseValue;
27133 }
27134         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
27135 /* @internal */
27136 export function TxCreationKeys_write(obj: bigint): number {
27137         if(!isWasmInitialized) {
27138                 throw new Error("initializeWasm() must be awaited first!");
27139         }
27140         const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
27141         return nativeResponseValue;
27142 }
27143         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
27144 /* @internal */
27145 export function TxCreationKeys_read(ser: number): bigint {
27146         if(!isWasmInitialized) {
27147                 throw new Error("initializeWasm() must be awaited first!");
27148         }
27149         const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
27150         return nativeResponseValue;
27151 }
27152         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
27153 /* @internal */
27154 export function ChannelPublicKeys_free(this_obj: bigint): void {
27155         if(!isWasmInitialized) {
27156                 throw new Error("initializeWasm() must be awaited first!");
27157         }
27158         const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
27159         // debug statements here
27160 }
27161         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
27162 /* @internal */
27163 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: bigint): number {
27164         if(!isWasmInitialized) {
27165                 throw new Error("initializeWasm() must be awaited first!");
27166         }
27167         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
27168         return nativeResponseValue;
27169 }
27170         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27171 /* @internal */
27172 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: bigint, val: number): void {
27173         if(!isWasmInitialized) {
27174                 throw new Error("initializeWasm() must be awaited first!");
27175         }
27176         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
27177         // debug statements here
27178 }
27179         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
27180 /* @internal */
27181 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: bigint): number {
27182         if(!isWasmInitialized) {
27183                 throw new Error("initializeWasm() must be awaited first!");
27184         }
27185         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
27186         return nativeResponseValue;
27187 }
27188         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27189 /* @internal */
27190 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: bigint, val: number): void {
27191         if(!isWasmInitialized) {
27192                 throw new Error("initializeWasm() must be awaited first!");
27193         }
27194         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
27195         // debug statements here
27196 }
27197         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
27198 /* @internal */
27199 export function ChannelPublicKeys_get_payment_point(this_ptr: bigint): number {
27200         if(!isWasmInitialized) {
27201                 throw new Error("initializeWasm() must be awaited first!");
27202         }
27203         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
27204         return nativeResponseValue;
27205 }
27206         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27207 /* @internal */
27208 export function ChannelPublicKeys_set_payment_point(this_ptr: bigint, val: number): void {
27209         if(!isWasmInitialized) {
27210                 throw new Error("initializeWasm() must be awaited first!");
27211         }
27212         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
27213         // debug statements here
27214 }
27215         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
27216 /* @internal */
27217 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: bigint): number {
27218         if(!isWasmInitialized) {
27219                 throw new Error("initializeWasm() must be awaited first!");
27220         }
27221         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
27222         return nativeResponseValue;
27223 }
27224         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27225 /* @internal */
27226 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void {
27227         if(!isWasmInitialized) {
27228                 throw new Error("initializeWasm() must be awaited first!");
27229         }
27230         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
27231         // debug statements here
27232 }
27233         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
27234 /* @internal */
27235 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: bigint): number {
27236         if(!isWasmInitialized) {
27237                 throw new Error("initializeWasm() must be awaited first!");
27238         }
27239         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
27240         return nativeResponseValue;
27241 }
27242         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27243 /* @internal */
27244 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: bigint, val: number): void {
27245         if(!isWasmInitialized) {
27246                 throw new Error("initializeWasm() must be awaited first!");
27247         }
27248         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
27249         // debug statements here
27250 }
27251         // 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);
27252 /* @internal */
27253 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): bigint {
27254         if(!isWasmInitialized) {
27255                 throw new Error("initializeWasm() must be awaited first!");
27256         }
27257         const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
27258         return nativeResponseValue;
27259 }
27260         // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
27261 /* @internal */
27262 export function ChannelPublicKeys_clone_ptr(arg: bigint): bigint {
27263         if(!isWasmInitialized) {
27264                 throw new Error("initializeWasm() must be awaited first!");
27265         }
27266         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
27267         return nativeResponseValue;
27268 }
27269         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
27270 /* @internal */
27271 export function ChannelPublicKeys_clone(orig: bigint): bigint {
27272         if(!isWasmInitialized) {
27273                 throw new Error("initializeWasm() must be awaited first!");
27274         }
27275         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
27276         return nativeResponseValue;
27277 }
27278         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
27279 /* @internal */
27280 export function ChannelPublicKeys_write(obj: bigint): number {
27281         if(!isWasmInitialized) {
27282                 throw new Error("initializeWasm() must be awaited first!");
27283         }
27284         const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
27285         return nativeResponseValue;
27286 }
27287         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
27288 /* @internal */
27289 export function ChannelPublicKeys_read(ser: number): bigint {
27290         if(!isWasmInitialized) {
27291                 throw new Error("initializeWasm() must be awaited first!");
27292         }
27293         const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
27294         return nativeResponseValue;
27295 }
27296         // 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);
27297 /* @internal */
27298 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): bigint {
27299         if(!isWasmInitialized) {
27300                 throw new Error("initializeWasm() must be awaited first!");
27301         }
27302         const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
27303         return nativeResponseValue;
27304 }
27305         // 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);
27306 /* @internal */
27307 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: bigint, countersignatory_keys: bigint): bigint {
27308         if(!isWasmInitialized) {
27309                 throw new Error("initializeWasm() must be awaited first!");
27310         }
27311         const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
27312         return nativeResponseValue;
27313 }
27314         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
27315 /* @internal */
27316 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
27317         if(!isWasmInitialized) {
27318                 throw new Error("initializeWasm() must be awaited first!");
27319         }
27320         const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
27321         return nativeResponseValue;
27322 }
27323         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
27324 /* @internal */
27325 export function HTLCOutputInCommitment_free(this_obj: bigint): void {
27326         if(!isWasmInitialized) {
27327                 throw new Error("initializeWasm() must be awaited first!");
27328         }
27329         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
27330         // debug statements here
27331 }
27332         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
27333 /* @internal */
27334 export function HTLCOutputInCommitment_get_offered(this_ptr: bigint): boolean {
27335         if(!isWasmInitialized) {
27336                 throw new Error("initializeWasm() must be awaited first!");
27337         }
27338         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
27339         return nativeResponseValue;
27340 }
27341         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
27342 /* @internal */
27343 export function HTLCOutputInCommitment_set_offered(this_ptr: bigint, val: boolean): void {
27344         if(!isWasmInitialized) {
27345                 throw new Error("initializeWasm() must be awaited first!");
27346         }
27347         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
27348         // debug statements here
27349 }
27350         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
27351 /* @internal */
27352 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: bigint): bigint {
27353         if(!isWasmInitialized) {
27354                 throw new Error("initializeWasm() must be awaited first!");
27355         }
27356         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
27357         return nativeResponseValue;
27358 }
27359         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
27360 /* @internal */
27361 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: bigint, val: bigint): void {
27362         if(!isWasmInitialized) {
27363                 throw new Error("initializeWasm() must be awaited first!");
27364         }
27365         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
27366         // debug statements here
27367 }
27368         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
27369 /* @internal */
27370 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: bigint): number {
27371         if(!isWasmInitialized) {
27372                 throw new Error("initializeWasm() must be awaited first!");
27373         }
27374         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
27375         return nativeResponseValue;
27376 }
27377         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
27378 /* @internal */
27379 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: bigint, val: number): void {
27380         if(!isWasmInitialized) {
27381                 throw new Error("initializeWasm() must be awaited first!");
27382         }
27383         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
27384         // debug statements here
27385 }
27386         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
27387 /* @internal */
27388 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: bigint): number {
27389         if(!isWasmInitialized) {
27390                 throw new Error("initializeWasm() must be awaited first!");
27391         }
27392         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
27393         return nativeResponseValue;
27394 }
27395         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27396 /* @internal */
27397 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: bigint, val: number): void {
27398         if(!isWasmInitialized) {
27399                 throw new Error("initializeWasm() must be awaited first!");
27400         }
27401         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
27402         // debug statements here
27403 }
27404         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
27405 /* @internal */
27406 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: bigint): bigint {
27407         if(!isWasmInitialized) {
27408                 throw new Error("initializeWasm() must be awaited first!");
27409         }
27410         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
27411         return nativeResponseValue;
27412 }
27413         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
27414 /* @internal */
27415 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: bigint, val: bigint): void {
27416         if(!isWasmInitialized) {
27417                 throw new Error("initializeWasm() must be awaited first!");
27418         }
27419         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
27420         // debug statements here
27421 }
27422         // 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);
27423 /* @internal */
27424 export function HTLCOutputInCommitment_new(offered_arg: boolean, amount_msat_arg: bigint, cltv_expiry_arg: number, payment_hash_arg: number, transaction_output_index_arg: bigint): bigint {
27425         if(!isWasmInitialized) {
27426                 throw new Error("initializeWasm() must be awaited first!");
27427         }
27428         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
27429         return nativeResponseValue;
27430 }
27431         // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
27432 /* @internal */
27433 export function HTLCOutputInCommitment_clone_ptr(arg: bigint): bigint {
27434         if(!isWasmInitialized) {
27435                 throw new Error("initializeWasm() must be awaited first!");
27436         }
27437         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
27438         return nativeResponseValue;
27439 }
27440         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
27441 /* @internal */
27442 export function HTLCOutputInCommitment_clone(orig: bigint): bigint {
27443         if(!isWasmInitialized) {
27444                 throw new Error("initializeWasm() must be awaited first!");
27445         }
27446         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
27447         return nativeResponseValue;
27448 }
27449         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
27450 /* @internal */
27451 export function HTLCOutputInCommitment_write(obj: bigint): number {
27452         if(!isWasmInitialized) {
27453                 throw new Error("initializeWasm() must be awaited first!");
27454         }
27455         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
27456         return nativeResponseValue;
27457 }
27458         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
27459 /* @internal */
27460 export function HTLCOutputInCommitment_read(ser: number): bigint {
27461         if(!isWasmInitialized) {
27462                 throw new Error("initializeWasm() must be awaited first!");
27463         }
27464         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
27465         return nativeResponseValue;
27466 }
27467         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
27468 /* @internal */
27469 export function get_htlc_redeemscript(htlc: bigint, opt_anchors: boolean, keys: bigint): number {
27470         if(!isWasmInitialized) {
27471                 throw new Error("initializeWasm() must be awaited first!");
27472         }
27473         const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
27474         return nativeResponseValue;
27475 }
27476         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
27477 /* @internal */
27478 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
27479         if(!isWasmInitialized) {
27480                 throw new Error("initializeWasm() must be awaited first!");
27481         }
27482         const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
27483         return nativeResponseValue;
27484 }
27485         // 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);
27486 /* @internal */
27487 export function build_htlc_transaction(commitment_txid: number, feerate_per_kw: number, contest_delay: number, htlc: bigint, opt_anchors: boolean, broadcaster_delayed_payment_key: number, revocation_key: number): number {
27488         if(!isWasmInitialized) {
27489                 throw new Error("initializeWasm() must be awaited first!");
27490         }
27491         const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, broadcaster_delayed_payment_key, revocation_key);
27492         return nativeResponseValue;
27493 }
27494         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
27495 /* @internal */
27496 export function get_anchor_redeemscript(funding_pubkey: number): number {
27497         if(!isWasmInitialized) {
27498                 throw new Error("initializeWasm() must be awaited first!");
27499         }
27500         const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
27501         return nativeResponseValue;
27502 }
27503         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
27504 /* @internal */
27505 export function ChannelTransactionParameters_free(this_obj: bigint): void {
27506         if(!isWasmInitialized) {
27507                 throw new Error("initializeWasm() must be awaited first!");
27508         }
27509         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
27510         // debug statements here
27511 }
27512         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
27513 /* @internal */
27514 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: bigint): bigint {
27515         if(!isWasmInitialized) {
27516                 throw new Error("initializeWasm() must be awaited first!");
27517         }
27518         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
27519         return nativeResponseValue;
27520 }
27521         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
27522 /* @internal */
27523 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: bigint, val: bigint): void {
27524         if(!isWasmInitialized) {
27525                 throw new Error("initializeWasm() must be awaited first!");
27526         }
27527         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
27528         // debug statements here
27529 }
27530         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
27531 /* @internal */
27532 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: bigint): number {
27533         if(!isWasmInitialized) {
27534                 throw new Error("initializeWasm() must be awaited first!");
27535         }
27536         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
27537         return nativeResponseValue;
27538 }
27539         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
27540 /* @internal */
27541 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: bigint, val: number): void {
27542         if(!isWasmInitialized) {
27543                 throw new Error("initializeWasm() must be awaited first!");
27544         }
27545         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
27546         // debug statements here
27547 }
27548         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
27549 /* @internal */
27550 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: bigint): boolean {
27551         if(!isWasmInitialized) {
27552                 throw new Error("initializeWasm() must be awaited first!");
27553         }
27554         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
27555         return nativeResponseValue;
27556 }
27557         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
27558 /* @internal */
27559 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: bigint, val: boolean): void {
27560         if(!isWasmInitialized) {
27561                 throw new Error("initializeWasm() must be awaited first!");
27562         }
27563         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
27564         // debug statements here
27565 }
27566         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
27567 /* @internal */
27568 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: bigint): bigint {
27569         if(!isWasmInitialized) {
27570                 throw new Error("initializeWasm() must be awaited first!");
27571         }
27572         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
27573         return nativeResponseValue;
27574 }
27575         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
27576 /* @internal */
27577 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: bigint, val: bigint): void {
27578         if(!isWasmInitialized) {
27579                 throw new Error("initializeWasm() must be awaited first!");
27580         }
27581         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
27582         // debug statements here
27583 }
27584         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
27585 /* @internal */
27586 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: bigint): bigint {
27587         if(!isWasmInitialized) {
27588                 throw new Error("initializeWasm() must be awaited first!");
27589         }
27590         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
27591         return nativeResponseValue;
27592 }
27593         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
27594 /* @internal */
27595 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: bigint, val: bigint): void {
27596         if(!isWasmInitialized) {
27597                 throw new Error("initializeWasm() must be awaited first!");
27598         }
27599         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
27600         // debug statements here
27601 }
27602         // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
27603 /* @internal */
27604 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: bigint): COption_NoneZ {
27605         if(!isWasmInitialized) {
27606                 throw new Error("initializeWasm() must be awaited first!");
27607         }
27608         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
27609         return nativeResponseValue;
27610 }
27611         // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
27612 /* @internal */
27613 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: bigint, val: COption_NoneZ): void {
27614         if(!isWasmInitialized) {
27615                 throw new Error("initializeWasm() must be awaited first!");
27616         }
27617         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
27618         // debug statements here
27619 }
27620         // 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);
27621 /* @internal */
27622 export function ChannelTransactionParameters_new(holder_pubkeys_arg: bigint, holder_selected_contest_delay_arg: number, is_outbound_from_holder_arg: boolean, counterparty_parameters_arg: bigint, funding_outpoint_arg: bigint, opt_anchors_arg: COption_NoneZ): bigint {
27623         if(!isWasmInitialized) {
27624                 throw new Error("initializeWasm() must be awaited first!");
27625         }
27626         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);
27627         return nativeResponseValue;
27628 }
27629         // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
27630 /* @internal */
27631 export function ChannelTransactionParameters_clone_ptr(arg: bigint): bigint {
27632         if(!isWasmInitialized) {
27633                 throw new Error("initializeWasm() must be awaited first!");
27634         }
27635         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
27636         return nativeResponseValue;
27637 }
27638         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
27639 /* @internal */
27640 export function ChannelTransactionParameters_clone(orig: bigint): bigint {
27641         if(!isWasmInitialized) {
27642                 throw new Error("initializeWasm() must be awaited first!");
27643         }
27644         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
27645         return nativeResponseValue;
27646 }
27647         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
27648 /* @internal */
27649 export function CounterpartyChannelTransactionParameters_free(this_obj: bigint): void {
27650         if(!isWasmInitialized) {
27651                 throw new Error("initializeWasm() must be awaited first!");
27652         }
27653         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
27654         // debug statements here
27655 }
27656         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
27657 /* @internal */
27658 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: bigint): bigint {
27659         if(!isWasmInitialized) {
27660                 throw new Error("initializeWasm() must be awaited first!");
27661         }
27662         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
27663         return nativeResponseValue;
27664 }
27665         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
27666 /* @internal */
27667 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: bigint, val: bigint): void {
27668         if(!isWasmInitialized) {
27669                 throw new Error("initializeWasm() must be awaited first!");
27670         }
27671         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
27672         // debug statements here
27673 }
27674         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
27675 /* @internal */
27676 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: bigint): number {
27677         if(!isWasmInitialized) {
27678                 throw new Error("initializeWasm() must be awaited first!");
27679         }
27680         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
27681         return nativeResponseValue;
27682 }
27683         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
27684 /* @internal */
27685 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: bigint, val: number): void {
27686         if(!isWasmInitialized) {
27687                 throw new Error("initializeWasm() must be awaited first!");
27688         }
27689         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
27690         // debug statements here
27691 }
27692         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
27693 /* @internal */
27694 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: bigint, selected_contest_delay_arg: number): bigint {
27695         if(!isWasmInitialized) {
27696                 throw new Error("initializeWasm() must be awaited first!");
27697         }
27698         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
27699         return nativeResponseValue;
27700 }
27701         // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
27702 /* @internal */
27703 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: bigint): bigint {
27704         if(!isWasmInitialized) {
27705                 throw new Error("initializeWasm() must be awaited first!");
27706         }
27707         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
27708         return nativeResponseValue;
27709 }
27710         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
27711 /* @internal */
27712 export function CounterpartyChannelTransactionParameters_clone(orig: bigint): bigint {
27713         if(!isWasmInitialized) {
27714                 throw new Error("initializeWasm() must be awaited first!");
27715         }
27716         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
27717         return nativeResponseValue;
27718 }
27719         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
27720 /* @internal */
27721 export function ChannelTransactionParameters_is_populated(this_arg: bigint): boolean {
27722         if(!isWasmInitialized) {
27723                 throw new Error("initializeWasm() must be awaited first!");
27724         }
27725         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
27726         return nativeResponseValue;
27727 }
27728         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
27729 /* @internal */
27730 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: bigint): bigint {
27731         if(!isWasmInitialized) {
27732                 throw new Error("initializeWasm() must be awaited first!");
27733         }
27734         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
27735         return nativeResponseValue;
27736 }
27737         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
27738 /* @internal */
27739 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: bigint): bigint {
27740         if(!isWasmInitialized) {
27741                 throw new Error("initializeWasm() must be awaited first!");
27742         }
27743         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
27744         return nativeResponseValue;
27745 }
27746         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
27747 /* @internal */
27748 export function CounterpartyChannelTransactionParameters_write(obj: bigint): number {
27749         if(!isWasmInitialized) {
27750                 throw new Error("initializeWasm() must be awaited first!");
27751         }
27752         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
27753         return nativeResponseValue;
27754 }
27755         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
27756 /* @internal */
27757 export function CounterpartyChannelTransactionParameters_read(ser: number): bigint {
27758         if(!isWasmInitialized) {
27759                 throw new Error("initializeWasm() must be awaited first!");
27760         }
27761         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
27762         return nativeResponseValue;
27763 }
27764         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
27765 /* @internal */
27766 export function ChannelTransactionParameters_write(obj: bigint): number {
27767         if(!isWasmInitialized) {
27768                 throw new Error("initializeWasm() must be awaited first!");
27769         }
27770         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
27771         return nativeResponseValue;
27772 }
27773         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
27774 /* @internal */
27775 export function ChannelTransactionParameters_read(ser: number): bigint {
27776         if(!isWasmInitialized) {
27777                 throw new Error("initializeWasm() must be awaited first!");
27778         }
27779         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
27780         return nativeResponseValue;
27781 }
27782         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
27783 /* @internal */
27784 export function DirectedChannelTransactionParameters_free(this_obj: bigint): void {
27785         if(!isWasmInitialized) {
27786                 throw new Error("initializeWasm() must be awaited first!");
27787         }
27788         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
27789         // debug statements here
27790 }
27791         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
27792 /* @internal */
27793 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: bigint): bigint {
27794         if(!isWasmInitialized) {
27795                 throw new Error("initializeWasm() must be awaited first!");
27796         }
27797         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
27798         return nativeResponseValue;
27799 }
27800         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
27801 /* @internal */
27802 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: bigint): bigint {
27803         if(!isWasmInitialized) {
27804                 throw new Error("initializeWasm() must be awaited first!");
27805         }
27806         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
27807         return nativeResponseValue;
27808 }
27809         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
27810 /* @internal */
27811 export function DirectedChannelTransactionParameters_contest_delay(this_arg: bigint): number {
27812         if(!isWasmInitialized) {
27813                 throw new Error("initializeWasm() must be awaited first!");
27814         }
27815         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
27816         return nativeResponseValue;
27817 }
27818         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
27819 /* @internal */
27820 export function DirectedChannelTransactionParameters_is_outbound(this_arg: bigint): boolean {
27821         if(!isWasmInitialized) {
27822                 throw new Error("initializeWasm() must be awaited first!");
27823         }
27824         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
27825         return nativeResponseValue;
27826 }
27827         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
27828 /* @internal */
27829 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: bigint): bigint {
27830         if(!isWasmInitialized) {
27831                 throw new Error("initializeWasm() must be awaited first!");
27832         }
27833         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
27834         return nativeResponseValue;
27835 }
27836         // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
27837 /* @internal */
27838 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: bigint): boolean {
27839         if(!isWasmInitialized) {
27840                 throw new Error("initializeWasm() must be awaited first!");
27841         }
27842         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
27843         return nativeResponseValue;
27844 }
27845         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
27846 /* @internal */
27847 export function HolderCommitmentTransaction_free(this_obj: bigint): void {
27848         if(!isWasmInitialized) {
27849                 throw new Error("initializeWasm() must be awaited first!");
27850         }
27851         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
27852         // debug statements here
27853 }
27854         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
27855 /* @internal */
27856 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: bigint): number {
27857         if(!isWasmInitialized) {
27858                 throw new Error("initializeWasm() must be awaited first!");
27859         }
27860         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
27861         return nativeResponseValue;
27862 }
27863         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
27864 /* @internal */
27865 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: bigint, val: number): void {
27866         if(!isWasmInitialized) {
27867                 throw new Error("initializeWasm() must be awaited first!");
27868         }
27869         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
27870         // debug statements here
27871 }
27872         // struct LDKCVec_SignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
27873 /* @internal */
27874 export function HolderCommitmentTransaction_get_counterparty_htlc_sigs(this_ptr: bigint): number {
27875         if(!isWasmInitialized) {
27876                 throw new Error("initializeWasm() must be awaited first!");
27877         }
27878         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_htlc_sigs(this_ptr);
27879         return nativeResponseValue;
27880 }
27881         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
27882 /* @internal */
27883 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: bigint, val: number): void {
27884         if(!isWasmInitialized) {
27885                 throw new Error("initializeWasm() must be awaited first!");
27886         }
27887         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
27888         // debug statements here
27889 }
27890         // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
27891 /* @internal */
27892 export function HolderCommitmentTransaction_clone_ptr(arg: bigint): bigint {
27893         if(!isWasmInitialized) {
27894                 throw new Error("initializeWasm() must be awaited first!");
27895         }
27896         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
27897         return nativeResponseValue;
27898 }
27899         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
27900 /* @internal */
27901 export function HolderCommitmentTransaction_clone(orig: bigint): bigint {
27902         if(!isWasmInitialized) {
27903                 throw new Error("initializeWasm() must be awaited first!");
27904         }
27905         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
27906         return nativeResponseValue;
27907 }
27908         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
27909 /* @internal */
27910 export function HolderCommitmentTransaction_write(obj: bigint): number {
27911         if(!isWasmInitialized) {
27912                 throw new Error("initializeWasm() must be awaited first!");
27913         }
27914         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
27915         return nativeResponseValue;
27916 }
27917         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
27918 /* @internal */
27919 export function HolderCommitmentTransaction_read(ser: number): bigint {
27920         if(!isWasmInitialized) {
27921                 throw new Error("initializeWasm() must be awaited first!");
27922         }
27923         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
27924         return nativeResponseValue;
27925 }
27926         // 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);
27927 /* @internal */
27928 export function HolderCommitmentTransaction_new(commitment_tx: bigint, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): bigint {
27929         if(!isWasmInitialized) {
27930                 throw new Error("initializeWasm() must be awaited first!");
27931         }
27932         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
27933         return nativeResponseValue;
27934 }
27935         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
27936 /* @internal */
27937 export function BuiltCommitmentTransaction_free(this_obj: bigint): void {
27938         if(!isWasmInitialized) {
27939                 throw new Error("initializeWasm() must be awaited first!");
27940         }
27941         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
27942         // debug statements here
27943 }
27944         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
27945 /* @internal */
27946 export function BuiltCommitmentTransaction_get_transaction(this_ptr: bigint): number {
27947         if(!isWasmInitialized) {
27948                 throw new Error("initializeWasm() must be awaited first!");
27949         }
27950         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
27951         return nativeResponseValue;
27952 }
27953         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
27954 /* @internal */
27955 export function BuiltCommitmentTransaction_set_transaction(this_ptr: bigint, val: number): void {
27956         if(!isWasmInitialized) {
27957                 throw new Error("initializeWasm() must be awaited first!");
27958         }
27959         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
27960         // debug statements here
27961 }
27962         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
27963 /* @internal */
27964 export function BuiltCommitmentTransaction_get_txid(this_ptr: bigint): number {
27965         if(!isWasmInitialized) {
27966                 throw new Error("initializeWasm() must be awaited first!");
27967         }
27968         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
27969         return nativeResponseValue;
27970 }
27971         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27972 /* @internal */
27973 export function BuiltCommitmentTransaction_set_txid(this_ptr: bigint, val: number): void {
27974         if(!isWasmInitialized) {
27975                 throw new Error("initializeWasm() must be awaited first!");
27976         }
27977         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
27978         // debug statements here
27979 }
27980         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
27981 /* @internal */
27982 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): bigint {
27983         if(!isWasmInitialized) {
27984                 throw new Error("initializeWasm() must be awaited first!");
27985         }
27986         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
27987         return nativeResponseValue;
27988 }
27989         // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
27990 /* @internal */
27991 export function BuiltCommitmentTransaction_clone_ptr(arg: bigint): bigint {
27992         if(!isWasmInitialized) {
27993                 throw new Error("initializeWasm() must be awaited first!");
27994         }
27995         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
27996         return nativeResponseValue;
27997 }
27998         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
27999 /* @internal */
28000 export function BuiltCommitmentTransaction_clone(orig: bigint): bigint {
28001         if(!isWasmInitialized) {
28002                 throw new Error("initializeWasm() must be awaited first!");
28003         }
28004         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
28005         return nativeResponseValue;
28006 }
28007         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
28008 /* @internal */
28009 export function BuiltCommitmentTransaction_write(obj: bigint): number {
28010         if(!isWasmInitialized) {
28011                 throw new Error("initializeWasm() must be awaited first!");
28012         }
28013         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
28014         return nativeResponseValue;
28015 }
28016         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
28017 /* @internal */
28018 export function BuiltCommitmentTransaction_read(ser: number): bigint {
28019         if(!isWasmInitialized) {
28020                 throw new Error("initializeWasm() must be awaited first!");
28021         }
28022         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
28023         return nativeResponseValue;
28024 }
28025         // 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);
28026 /* @internal */
28027 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: bigint, funding_redeemscript: number, channel_value_satoshis: bigint): number {
28028         if(!isWasmInitialized) {
28029                 throw new Error("initializeWasm() must be awaited first!");
28030         }
28031         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
28032         return nativeResponseValue;
28033 }
28034         // 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);
28035 /* @internal */
28036 export function BuiltCommitmentTransaction_sign(this_arg: bigint, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
28037         if(!isWasmInitialized) {
28038                 throw new Error("initializeWasm() must be awaited first!");
28039         }
28040         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
28041         return nativeResponseValue;
28042 }
28043         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
28044 /* @internal */
28045 export function ClosingTransaction_free(this_obj: bigint): void {
28046         if(!isWasmInitialized) {
28047                 throw new Error("initializeWasm() must be awaited first!");
28048         }
28049         const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
28050         // debug statements here
28051 }
28052         // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
28053 /* @internal */
28054 export function ClosingTransaction_clone_ptr(arg: bigint): bigint {
28055         if(!isWasmInitialized) {
28056                 throw new Error("initializeWasm() must be awaited first!");
28057         }
28058         const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
28059         return nativeResponseValue;
28060 }
28061         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
28062 /* @internal */
28063 export function ClosingTransaction_clone(orig: bigint): bigint {
28064         if(!isWasmInitialized) {
28065                 throw new Error("initializeWasm() must be awaited first!");
28066         }
28067         const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
28068         return nativeResponseValue;
28069 }
28070         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
28071 /* @internal */
28072 export function ClosingTransaction_hash(o: bigint): bigint {
28073         if(!isWasmInitialized) {
28074                 throw new Error("initializeWasm() must be awaited first!");
28075         }
28076         const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
28077         return nativeResponseValue;
28078 }
28079         // 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);
28080 /* @internal */
28081 export function ClosingTransaction_new(to_holder_value_sat: bigint, to_counterparty_value_sat: bigint, to_holder_script: number, to_counterparty_script: number, funding_outpoint: bigint): bigint {
28082         if(!isWasmInitialized) {
28083                 throw new Error("initializeWasm() must be awaited first!");
28084         }
28085         const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
28086         return nativeResponseValue;
28087 }
28088         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
28089 /* @internal */
28090 export function ClosingTransaction_trust(this_arg: bigint): bigint {
28091         if(!isWasmInitialized) {
28092                 throw new Error("initializeWasm() must be awaited first!");
28093         }
28094         const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
28095         return nativeResponseValue;
28096 }
28097         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
28098 /* @internal */
28099 export function ClosingTransaction_verify(this_arg: bigint, funding_outpoint: bigint): bigint {
28100         if(!isWasmInitialized) {
28101                 throw new Error("initializeWasm() must be awaited first!");
28102         }
28103         const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
28104         return nativeResponseValue;
28105 }
28106         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
28107 /* @internal */
28108 export function ClosingTransaction_to_holder_value_sat(this_arg: bigint): bigint {
28109         if(!isWasmInitialized) {
28110                 throw new Error("initializeWasm() must be awaited first!");
28111         }
28112         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
28113         return nativeResponseValue;
28114 }
28115         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
28116 /* @internal */
28117 export function ClosingTransaction_to_counterparty_value_sat(this_arg: bigint): bigint {
28118         if(!isWasmInitialized) {
28119                 throw new Error("initializeWasm() must be awaited first!");
28120         }
28121         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
28122         return nativeResponseValue;
28123 }
28124         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
28125 /* @internal */
28126 export function ClosingTransaction_to_holder_script(this_arg: bigint): number {
28127         if(!isWasmInitialized) {
28128                 throw new Error("initializeWasm() must be awaited first!");
28129         }
28130         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
28131         return nativeResponseValue;
28132 }
28133         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
28134 /* @internal */
28135 export function ClosingTransaction_to_counterparty_script(this_arg: bigint): number {
28136         if(!isWasmInitialized) {
28137                 throw new Error("initializeWasm() must be awaited first!");
28138         }
28139         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
28140         return nativeResponseValue;
28141 }
28142         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
28143 /* @internal */
28144 export function TrustedClosingTransaction_free(this_obj: bigint): void {
28145         if(!isWasmInitialized) {
28146                 throw new Error("initializeWasm() must be awaited first!");
28147         }
28148         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
28149         // debug statements here
28150 }
28151         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
28152 /* @internal */
28153 export function TrustedClosingTransaction_built_transaction(this_arg: bigint): number {
28154         if(!isWasmInitialized) {
28155                 throw new Error("initializeWasm() must be awaited first!");
28156         }
28157         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
28158         return nativeResponseValue;
28159 }
28160         // 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);
28161 /* @internal */
28162 export function TrustedClosingTransaction_get_sighash_all(this_arg: bigint, funding_redeemscript: number, channel_value_satoshis: bigint): number {
28163         if(!isWasmInitialized) {
28164                 throw new Error("initializeWasm() must be awaited first!");
28165         }
28166         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
28167         return nativeResponseValue;
28168 }
28169         // 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);
28170 /* @internal */
28171 export function TrustedClosingTransaction_sign(this_arg: bigint, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
28172         if(!isWasmInitialized) {
28173                 throw new Error("initializeWasm() must be awaited first!");
28174         }
28175         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
28176         return nativeResponseValue;
28177 }
28178         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
28179 /* @internal */
28180 export function CommitmentTransaction_free(this_obj: bigint): void {
28181         if(!isWasmInitialized) {
28182                 throw new Error("initializeWasm() must be awaited first!");
28183         }
28184         const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
28185         // debug statements here
28186 }
28187         // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
28188 /* @internal */
28189 export function CommitmentTransaction_clone_ptr(arg: bigint): bigint {
28190         if(!isWasmInitialized) {
28191                 throw new Error("initializeWasm() must be awaited first!");
28192         }
28193         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
28194         return nativeResponseValue;
28195 }
28196         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
28197 /* @internal */
28198 export function CommitmentTransaction_clone(orig: bigint): bigint {
28199         if(!isWasmInitialized) {
28200                 throw new Error("initializeWasm() must be awaited first!");
28201         }
28202         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
28203         return nativeResponseValue;
28204 }
28205         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
28206 /* @internal */
28207 export function CommitmentTransaction_write(obj: bigint): number {
28208         if(!isWasmInitialized) {
28209                 throw new Error("initializeWasm() must be awaited first!");
28210         }
28211         const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
28212         return nativeResponseValue;
28213 }
28214         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
28215 /* @internal */
28216 export function CommitmentTransaction_read(ser: number): bigint {
28217         if(!isWasmInitialized) {
28218                 throw new Error("initializeWasm() must be awaited first!");
28219         }
28220         const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
28221         return nativeResponseValue;
28222 }
28223         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
28224 /* @internal */
28225 export function CommitmentTransaction_commitment_number(this_arg: bigint): bigint {
28226         if(!isWasmInitialized) {
28227                 throw new Error("initializeWasm() must be awaited first!");
28228         }
28229         const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
28230         return nativeResponseValue;
28231 }
28232         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
28233 /* @internal */
28234 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: bigint): bigint {
28235         if(!isWasmInitialized) {
28236                 throw new Error("initializeWasm() must be awaited first!");
28237         }
28238         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
28239         return nativeResponseValue;
28240 }
28241         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
28242 /* @internal */
28243 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: bigint): bigint {
28244         if(!isWasmInitialized) {
28245                 throw new Error("initializeWasm() must be awaited first!");
28246         }
28247         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
28248         return nativeResponseValue;
28249 }
28250         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
28251 /* @internal */
28252 export function CommitmentTransaction_feerate_per_kw(this_arg: bigint): number {
28253         if(!isWasmInitialized) {
28254                 throw new Error("initializeWasm() must be awaited first!");
28255         }
28256         const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
28257         return nativeResponseValue;
28258 }
28259         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
28260 /* @internal */
28261 export function CommitmentTransaction_trust(this_arg: bigint): bigint {
28262         if(!isWasmInitialized) {
28263                 throw new Error("initializeWasm() must be awaited first!");
28264         }
28265         const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
28266         return nativeResponseValue;
28267 }
28268         // 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);
28269 /* @internal */
28270 export function CommitmentTransaction_verify(this_arg: bigint, channel_parameters: bigint, broadcaster_keys: bigint, countersignatory_keys: bigint): bigint {
28271         if(!isWasmInitialized) {
28272                 throw new Error("initializeWasm() must be awaited first!");
28273         }
28274         const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
28275         return nativeResponseValue;
28276 }
28277         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
28278 /* @internal */
28279 export function TrustedCommitmentTransaction_free(this_obj: bigint): void {
28280         if(!isWasmInitialized) {
28281                 throw new Error("initializeWasm() must be awaited first!");
28282         }
28283         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
28284         // debug statements here
28285 }
28286         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
28287 /* @internal */
28288 export function TrustedCommitmentTransaction_txid(this_arg: bigint): number {
28289         if(!isWasmInitialized) {
28290                 throw new Error("initializeWasm() must be awaited first!");
28291         }
28292         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
28293         return nativeResponseValue;
28294 }
28295         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
28296 /* @internal */
28297 export function TrustedCommitmentTransaction_built_transaction(this_arg: bigint): bigint {
28298         if(!isWasmInitialized) {
28299                 throw new Error("initializeWasm() must be awaited first!");
28300         }
28301         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
28302         return nativeResponseValue;
28303 }
28304         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
28305 /* @internal */
28306 export function TrustedCommitmentTransaction_keys(this_arg: bigint): bigint {
28307         if(!isWasmInitialized) {
28308                 throw new Error("initializeWasm() must be awaited first!");
28309         }
28310         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
28311         return nativeResponseValue;
28312 }
28313         // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
28314 /* @internal */
28315 export function TrustedCommitmentTransaction_opt_anchors(this_arg: bigint): boolean {
28316         if(!isWasmInitialized) {
28317                 throw new Error("initializeWasm() must be awaited first!");
28318         }
28319         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
28320         return nativeResponseValue;
28321 }
28322         // 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);
28323 /* @internal */
28324 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: bigint, htlc_base_key: number, channel_parameters: bigint): bigint {
28325         if(!isWasmInitialized) {
28326                 throw new Error("initializeWasm() must be awaited first!");
28327         }
28328         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters);
28329         return nativeResponseValue;
28330 }
28331         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
28332 /* @internal */
28333 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
28334         if(!isWasmInitialized) {
28335                 throw new Error("initializeWasm() must be awaited first!");
28336         }
28337         const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
28338         return nativeResponseValue;
28339 }
28340         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
28341 /* @internal */
28342 export function InitFeatures_eq(a: bigint, b: bigint): boolean {
28343         if(!isWasmInitialized) {
28344                 throw new Error("initializeWasm() must be awaited first!");
28345         }
28346         const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
28347         return nativeResponseValue;
28348 }
28349         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
28350 /* @internal */
28351 export function NodeFeatures_eq(a: bigint, b: bigint): boolean {
28352         if(!isWasmInitialized) {
28353                 throw new Error("initializeWasm() must be awaited first!");
28354         }
28355         const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
28356         return nativeResponseValue;
28357 }
28358         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
28359 /* @internal */
28360 export function ChannelFeatures_eq(a: bigint, b: bigint): boolean {
28361         if(!isWasmInitialized) {
28362                 throw new Error("initializeWasm() must be awaited first!");
28363         }
28364         const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
28365         return nativeResponseValue;
28366 }
28367         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
28368 /* @internal */
28369 export function InvoiceFeatures_eq(a: bigint, b: bigint): boolean {
28370         if(!isWasmInitialized) {
28371                 throw new Error("initializeWasm() must be awaited first!");
28372         }
28373         const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
28374         return nativeResponseValue;
28375 }
28376         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
28377 /* @internal */
28378 export function ChannelTypeFeatures_eq(a: bigint, b: bigint): boolean {
28379         if(!isWasmInitialized) {
28380                 throw new Error("initializeWasm() must be awaited first!");
28381         }
28382         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
28383         return nativeResponseValue;
28384 }
28385         // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
28386 /* @internal */
28387 export function InitFeatures_clone_ptr(arg: bigint): bigint {
28388         if(!isWasmInitialized) {
28389                 throw new Error("initializeWasm() must be awaited first!");
28390         }
28391         const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
28392         return nativeResponseValue;
28393 }
28394         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
28395 /* @internal */
28396 export function InitFeatures_clone(orig: bigint): bigint {
28397         if(!isWasmInitialized) {
28398                 throw new Error("initializeWasm() must be awaited first!");
28399         }
28400         const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
28401         return nativeResponseValue;
28402 }
28403         // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
28404 /* @internal */
28405 export function NodeFeatures_clone_ptr(arg: bigint): bigint {
28406         if(!isWasmInitialized) {
28407                 throw new Error("initializeWasm() must be awaited first!");
28408         }
28409         const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
28410         return nativeResponseValue;
28411 }
28412         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
28413 /* @internal */
28414 export function NodeFeatures_clone(orig: bigint): bigint {
28415         if(!isWasmInitialized) {
28416                 throw new Error("initializeWasm() must be awaited first!");
28417         }
28418         const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
28419         return nativeResponseValue;
28420 }
28421         // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
28422 /* @internal */
28423 export function ChannelFeatures_clone_ptr(arg: bigint): bigint {
28424         if(!isWasmInitialized) {
28425                 throw new Error("initializeWasm() must be awaited first!");
28426         }
28427         const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
28428         return nativeResponseValue;
28429 }
28430         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
28431 /* @internal */
28432 export function ChannelFeatures_clone(orig: bigint): bigint {
28433         if(!isWasmInitialized) {
28434                 throw new Error("initializeWasm() must be awaited first!");
28435         }
28436         const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
28437         return nativeResponseValue;
28438 }
28439         // uint64_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
28440 /* @internal */
28441 export function InvoiceFeatures_clone_ptr(arg: bigint): bigint {
28442         if(!isWasmInitialized) {
28443                 throw new Error("initializeWasm() must be awaited first!");
28444         }
28445         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
28446         return nativeResponseValue;
28447 }
28448         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
28449 /* @internal */
28450 export function InvoiceFeatures_clone(orig: bigint): bigint {
28451         if(!isWasmInitialized) {
28452                 throw new Error("initializeWasm() must be awaited first!");
28453         }
28454         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
28455         return nativeResponseValue;
28456 }
28457         // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
28458 /* @internal */
28459 export function ChannelTypeFeatures_clone_ptr(arg: bigint): bigint {
28460         if(!isWasmInitialized) {
28461                 throw new Error("initializeWasm() must be awaited first!");
28462         }
28463         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
28464         return nativeResponseValue;
28465 }
28466         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
28467 /* @internal */
28468 export function ChannelTypeFeatures_clone(orig: bigint): bigint {
28469         if(!isWasmInitialized) {
28470                 throw new Error("initializeWasm() must be awaited first!");
28471         }
28472         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
28473         return nativeResponseValue;
28474 }
28475         // void InitFeatures_free(struct LDKInitFeatures this_obj);
28476 /* @internal */
28477 export function InitFeatures_free(this_obj: bigint): void {
28478         if(!isWasmInitialized) {
28479                 throw new Error("initializeWasm() must be awaited first!");
28480         }
28481         const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
28482         // debug statements here
28483 }
28484         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
28485 /* @internal */
28486 export function NodeFeatures_free(this_obj: bigint): void {
28487         if(!isWasmInitialized) {
28488                 throw new Error("initializeWasm() must be awaited first!");
28489         }
28490         const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
28491         // debug statements here
28492 }
28493         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
28494 /* @internal */
28495 export function ChannelFeatures_free(this_obj: bigint): void {
28496         if(!isWasmInitialized) {
28497                 throw new Error("initializeWasm() must be awaited first!");
28498         }
28499         const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
28500         // debug statements here
28501 }
28502         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
28503 /* @internal */
28504 export function InvoiceFeatures_free(this_obj: bigint): void {
28505         if(!isWasmInitialized) {
28506                 throw new Error("initializeWasm() must be awaited first!");
28507         }
28508         const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
28509         // debug statements here
28510 }
28511         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
28512 /* @internal */
28513 export function ChannelTypeFeatures_free(this_obj: bigint): void {
28514         if(!isWasmInitialized) {
28515                 throw new Error("initializeWasm() must be awaited first!");
28516         }
28517         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
28518         // debug statements here
28519 }
28520         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known_channel_features(void);
28521 /* @internal */
28522 export function InitFeatures_known_channel_features(): bigint {
28523         if(!isWasmInitialized) {
28524                 throw new Error("initializeWasm() must be awaited first!");
28525         }
28526         const nativeResponseValue = wasm.TS_InitFeatures_known_channel_features();
28527         return nativeResponseValue;
28528 }
28529         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known_channel_features(void);
28530 /* @internal */
28531 export function NodeFeatures_known_channel_features(): bigint {
28532         if(!isWasmInitialized) {
28533                 throw new Error("initializeWasm() must be awaited first!");
28534         }
28535         const nativeResponseValue = wasm.TS_NodeFeatures_known_channel_features();
28536         return nativeResponseValue;
28537 }
28538         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
28539 /* @internal */
28540 export function InitFeatures_empty(): bigint {
28541         if(!isWasmInitialized) {
28542                 throw new Error("initializeWasm() must be awaited first!");
28543         }
28544         const nativeResponseValue = wasm.TS_InitFeatures_empty();
28545         return nativeResponseValue;
28546 }
28547         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
28548 /* @internal */
28549 export function InitFeatures_known(): bigint {
28550         if(!isWasmInitialized) {
28551                 throw new Error("initializeWasm() must be awaited first!");
28552         }
28553         const nativeResponseValue = wasm.TS_InitFeatures_known();
28554         return nativeResponseValue;
28555 }
28556         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28557 /* @internal */
28558 export function InitFeatures_requires_unknown_bits(this_arg: bigint): boolean {
28559         if(!isWasmInitialized) {
28560                 throw new Error("initializeWasm() must be awaited first!");
28561         }
28562         const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
28563         return nativeResponseValue;
28564 }
28565         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
28566 /* @internal */
28567 export function NodeFeatures_empty(): bigint {
28568         if(!isWasmInitialized) {
28569                 throw new Error("initializeWasm() must be awaited first!");
28570         }
28571         const nativeResponseValue = wasm.TS_NodeFeatures_empty();
28572         return nativeResponseValue;
28573 }
28574         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
28575 /* @internal */
28576 export function NodeFeatures_known(): bigint {
28577         if(!isWasmInitialized) {
28578                 throw new Error("initializeWasm() must be awaited first!");
28579         }
28580         const nativeResponseValue = wasm.TS_NodeFeatures_known();
28581         return nativeResponseValue;
28582 }
28583         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28584 /* @internal */
28585 export function NodeFeatures_requires_unknown_bits(this_arg: bigint): boolean {
28586         if(!isWasmInitialized) {
28587                 throw new Error("initializeWasm() must be awaited first!");
28588         }
28589         const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
28590         return nativeResponseValue;
28591 }
28592         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
28593 /* @internal */
28594 export function ChannelFeatures_empty(): bigint {
28595         if(!isWasmInitialized) {
28596                 throw new Error("initializeWasm() must be awaited first!");
28597         }
28598         const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
28599         return nativeResponseValue;
28600 }
28601         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
28602 /* @internal */
28603 export function ChannelFeatures_known(): bigint {
28604         if(!isWasmInitialized) {
28605                 throw new Error("initializeWasm() must be awaited first!");
28606         }
28607         const nativeResponseValue = wasm.TS_ChannelFeatures_known();
28608         return nativeResponseValue;
28609 }
28610         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
28611 /* @internal */
28612 export function ChannelFeatures_requires_unknown_bits(this_arg: bigint): boolean {
28613         if(!isWasmInitialized) {
28614                 throw new Error("initializeWasm() must be awaited first!");
28615         }
28616         const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
28617         return nativeResponseValue;
28618 }
28619         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
28620 /* @internal */
28621 export function InvoiceFeatures_empty(): bigint {
28622         if(!isWasmInitialized) {
28623                 throw new Error("initializeWasm() must be awaited first!");
28624         }
28625         const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
28626         return nativeResponseValue;
28627 }
28628         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
28629 /* @internal */
28630 export function InvoiceFeatures_known(): bigint {
28631         if(!isWasmInitialized) {
28632                 throw new Error("initializeWasm() must be awaited first!");
28633         }
28634         const nativeResponseValue = wasm.TS_InvoiceFeatures_known();
28635         return nativeResponseValue;
28636 }
28637         // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
28638 /* @internal */
28639 export function InvoiceFeatures_requires_unknown_bits(this_arg: bigint): boolean {
28640         if(!isWasmInitialized) {
28641                 throw new Error("initializeWasm() must be awaited first!");
28642         }
28643         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
28644         return nativeResponseValue;
28645 }
28646         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
28647 /* @internal */
28648 export function ChannelTypeFeatures_empty(): bigint {
28649         if(!isWasmInitialized) {
28650                 throw new Error("initializeWasm() must be awaited first!");
28651         }
28652         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
28653         return nativeResponseValue;
28654 }
28655         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
28656 /* @internal */
28657 export function ChannelTypeFeatures_known(): bigint {
28658         if(!isWasmInitialized) {
28659                 throw new Error("initializeWasm() must be awaited first!");
28660         }
28661         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_known();
28662         return nativeResponseValue;
28663 }
28664         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28665 /* @internal */
28666 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: bigint): boolean {
28667         if(!isWasmInitialized) {
28668                 throw new Error("initializeWasm() must be awaited first!");
28669         }
28670         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
28671         return nativeResponseValue;
28672 }
28673         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
28674 /* @internal */
28675 export function InitFeatures_write(obj: bigint): number {
28676         if(!isWasmInitialized) {
28677                 throw new Error("initializeWasm() must be awaited first!");
28678         }
28679         const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
28680         return nativeResponseValue;
28681 }
28682         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
28683 /* @internal */
28684 export function InitFeatures_read(ser: number): bigint {
28685         if(!isWasmInitialized) {
28686                 throw new Error("initializeWasm() must be awaited first!");
28687         }
28688         const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
28689         return nativeResponseValue;
28690 }
28691         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
28692 /* @internal */
28693 export function ChannelFeatures_write(obj: bigint): number {
28694         if(!isWasmInitialized) {
28695                 throw new Error("initializeWasm() must be awaited first!");
28696         }
28697         const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
28698         return nativeResponseValue;
28699 }
28700         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
28701 /* @internal */
28702 export function ChannelFeatures_read(ser: number): bigint {
28703         if(!isWasmInitialized) {
28704                 throw new Error("initializeWasm() must be awaited first!");
28705         }
28706         const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
28707         return nativeResponseValue;
28708 }
28709         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
28710 /* @internal */
28711 export function NodeFeatures_write(obj: bigint): number {
28712         if(!isWasmInitialized) {
28713                 throw new Error("initializeWasm() must be awaited first!");
28714         }
28715         const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
28716         return nativeResponseValue;
28717 }
28718         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
28719 /* @internal */
28720 export function NodeFeatures_read(ser: number): bigint {
28721         if(!isWasmInitialized) {
28722                 throw new Error("initializeWasm() must be awaited first!");
28723         }
28724         const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
28725         return nativeResponseValue;
28726 }
28727         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
28728 /* @internal */
28729 export function InvoiceFeatures_write(obj: bigint): number {
28730         if(!isWasmInitialized) {
28731                 throw new Error("initializeWasm() must be awaited first!");
28732         }
28733         const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
28734         return nativeResponseValue;
28735 }
28736         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
28737 /* @internal */
28738 export function InvoiceFeatures_read(ser: number): bigint {
28739         if(!isWasmInitialized) {
28740                 throw new Error("initializeWasm() must be awaited first!");
28741         }
28742         const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
28743         return nativeResponseValue;
28744 }
28745         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
28746 /* @internal */
28747 export function ChannelTypeFeatures_write(obj: bigint): number {
28748         if(!isWasmInitialized) {
28749                 throw new Error("initializeWasm() must be awaited first!");
28750         }
28751         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
28752         return nativeResponseValue;
28753 }
28754         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
28755 /* @internal */
28756 export function ChannelTypeFeatures_read(ser: number): bigint {
28757         if(!isWasmInitialized) {
28758                 throw new Error("initializeWasm() must be awaited first!");
28759         }
28760         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
28761         return nativeResponseValue;
28762 }
28763         // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
28764 /* @internal */
28765 export function InitFeatures_set_data_loss_protect_optional(this_arg: bigint): void {
28766         if(!isWasmInitialized) {
28767                 throw new Error("initializeWasm() must be awaited first!");
28768         }
28769         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_optional(this_arg);
28770         // debug statements here
28771 }
28772         // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
28773 /* @internal */
28774 export function InitFeatures_set_data_loss_protect_required(this_arg: bigint): void {
28775         if(!isWasmInitialized) {
28776                 throw new Error("initializeWasm() must be awaited first!");
28777         }
28778         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_required(this_arg);
28779         // debug statements here
28780 }
28781         // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28782 /* @internal */
28783 export function InitFeatures_supports_data_loss_protect(this_arg: bigint): boolean {
28784         if(!isWasmInitialized) {
28785                 throw new Error("initializeWasm() must be awaited first!");
28786         }
28787         const nativeResponseValue = wasm.TS_InitFeatures_supports_data_loss_protect(this_arg);
28788         return nativeResponseValue;
28789 }
28790         // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28791 /* @internal */
28792 export function NodeFeatures_set_data_loss_protect_optional(this_arg: bigint): void {
28793         if(!isWasmInitialized) {
28794                 throw new Error("initializeWasm() must be awaited first!");
28795         }
28796         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_optional(this_arg);
28797         // debug statements here
28798 }
28799         // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28800 /* @internal */
28801 export function NodeFeatures_set_data_loss_protect_required(this_arg: bigint): void {
28802         if(!isWasmInitialized) {
28803                 throw new Error("initializeWasm() must be awaited first!");
28804         }
28805         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_required(this_arg);
28806         // debug statements here
28807 }
28808         // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28809 /* @internal */
28810 export function NodeFeatures_supports_data_loss_protect(this_arg: bigint): boolean {
28811         if(!isWasmInitialized) {
28812                 throw new Error("initializeWasm() must be awaited first!");
28813         }
28814         const nativeResponseValue = wasm.TS_NodeFeatures_supports_data_loss_protect(this_arg);
28815         return nativeResponseValue;
28816 }
28817         // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28818 /* @internal */
28819 export function InitFeatures_requires_data_loss_protect(this_arg: bigint): boolean {
28820         if(!isWasmInitialized) {
28821                 throw new Error("initializeWasm() must be awaited first!");
28822         }
28823         const nativeResponseValue = wasm.TS_InitFeatures_requires_data_loss_protect(this_arg);
28824         return nativeResponseValue;
28825 }
28826         // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28827 /* @internal */
28828 export function NodeFeatures_requires_data_loss_protect(this_arg: bigint): boolean {
28829         if(!isWasmInitialized) {
28830                 throw new Error("initializeWasm() must be awaited first!");
28831         }
28832         const nativeResponseValue = wasm.TS_NodeFeatures_requires_data_loss_protect(this_arg);
28833         return nativeResponseValue;
28834 }
28835         // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
28836 /* @internal */
28837 export function InitFeatures_set_initial_routing_sync_optional(this_arg: bigint): void {
28838         if(!isWasmInitialized) {
28839                 throw new Error("initializeWasm() must be awaited first!");
28840         }
28841         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_optional(this_arg);
28842         // debug statements here
28843 }
28844         // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
28845 /* @internal */
28846 export function InitFeatures_set_initial_routing_sync_required(this_arg: bigint): void {
28847         if(!isWasmInitialized) {
28848                 throw new Error("initializeWasm() must be awaited first!");
28849         }
28850         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_required(this_arg);
28851         // debug statements here
28852 }
28853         // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28854 /* @internal */
28855 export function InitFeatures_initial_routing_sync(this_arg: bigint): boolean {
28856         if(!isWasmInitialized) {
28857                 throw new Error("initializeWasm() must be awaited first!");
28858         }
28859         const nativeResponseValue = wasm.TS_InitFeatures_initial_routing_sync(this_arg);
28860         return nativeResponseValue;
28861 }
28862         // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
28863 /* @internal */
28864 export function InitFeatures_set_upfront_shutdown_script_optional(this_arg: bigint): void {
28865         if(!isWasmInitialized) {
28866                 throw new Error("initializeWasm() must be awaited first!");
28867         }
28868         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_optional(this_arg);
28869         // debug statements here
28870 }
28871         // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
28872 /* @internal */
28873 export function InitFeatures_set_upfront_shutdown_script_required(this_arg: bigint): void {
28874         if(!isWasmInitialized) {
28875                 throw new Error("initializeWasm() must be awaited first!");
28876         }
28877         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_required(this_arg);
28878         // debug statements here
28879 }
28880         // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28881 /* @internal */
28882 export function InitFeatures_supports_upfront_shutdown_script(this_arg: bigint): boolean {
28883         if(!isWasmInitialized) {
28884                 throw new Error("initializeWasm() must be awaited first!");
28885         }
28886         const nativeResponseValue = wasm.TS_InitFeatures_supports_upfront_shutdown_script(this_arg);
28887         return nativeResponseValue;
28888 }
28889         // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28890 /* @internal */
28891 export function NodeFeatures_set_upfront_shutdown_script_optional(this_arg: bigint): void {
28892         if(!isWasmInitialized) {
28893                 throw new Error("initializeWasm() must be awaited first!");
28894         }
28895         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_optional(this_arg);
28896         // debug statements here
28897 }
28898         // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28899 /* @internal */
28900 export function NodeFeatures_set_upfront_shutdown_script_required(this_arg: bigint): void {
28901         if(!isWasmInitialized) {
28902                 throw new Error("initializeWasm() must be awaited first!");
28903         }
28904         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_required(this_arg);
28905         // debug statements here
28906 }
28907         // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28908 /* @internal */
28909 export function NodeFeatures_supports_upfront_shutdown_script(this_arg: bigint): boolean {
28910         if(!isWasmInitialized) {
28911                 throw new Error("initializeWasm() must be awaited first!");
28912         }
28913         const nativeResponseValue = wasm.TS_NodeFeatures_supports_upfront_shutdown_script(this_arg);
28914         return nativeResponseValue;
28915 }
28916         // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28917 /* @internal */
28918 export function InitFeatures_requires_upfront_shutdown_script(this_arg: bigint): boolean {
28919         if(!isWasmInitialized) {
28920                 throw new Error("initializeWasm() must be awaited first!");
28921         }
28922         const nativeResponseValue = wasm.TS_InitFeatures_requires_upfront_shutdown_script(this_arg);
28923         return nativeResponseValue;
28924 }
28925         // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28926 /* @internal */
28927 export function NodeFeatures_requires_upfront_shutdown_script(this_arg: bigint): boolean {
28928         if(!isWasmInitialized) {
28929                 throw new Error("initializeWasm() must be awaited first!");
28930         }
28931         const nativeResponseValue = wasm.TS_NodeFeatures_requires_upfront_shutdown_script(this_arg);
28932         return nativeResponseValue;
28933 }
28934         // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
28935 /* @internal */
28936 export function InitFeatures_set_gossip_queries_optional(this_arg: bigint): void {
28937         if(!isWasmInitialized) {
28938                 throw new Error("initializeWasm() must be awaited first!");
28939         }
28940         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_optional(this_arg);
28941         // debug statements here
28942 }
28943         // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
28944 /* @internal */
28945 export function InitFeatures_set_gossip_queries_required(this_arg: bigint): void {
28946         if(!isWasmInitialized) {
28947                 throw new Error("initializeWasm() must be awaited first!");
28948         }
28949         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_required(this_arg);
28950         // debug statements here
28951 }
28952         // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28953 /* @internal */
28954 export function InitFeatures_supports_gossip_queries(this_arg: bigint): boolean {
28955         if(!isWasmInitialized) {
28956                 throw new Error("initializeWasm() must be awaited first!");
28957         }
28958         const nativeResponseValue = wasm.TS_InitFeatures_supports_gossip_queries(this_arg);
28959         return nativeResponseValue;
28960 }
28961         // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28962 /* @internal */
28963 export function NodeFeatures_set_gossip_queries_optional(this_arg: bigint): void {
28964         if(!isWasmInitialized) {
28965                 throw new Error("initializeWasm() must be awaited first!");
28966         }
28967         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_optional(this_arg);
28968         // debug statements here
28969 }
28970         // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28971 /* @internal */
28972 export function NodeFeatures_set_gossip_queries_required(this_arg: bigint): void {
28973         if(!isWasmInitialized) {
28974                 throw new Error("initializeWasm() must be awaited first!");
28975         }
28976         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_required(this_arg);
28977         // debug statements here
28978 }
28979         // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28980 /* @internal */
28981 export function NodeFeatures_supports_gossip_queries(this_arg: bigint): boolean {
28982         if(!isWasmInitialized) {
28983                 throw new Error("initializeWasm() must be awaited first!");
28984         }
28985         const nativeResponseValue = wasm.TS_NodeFeatures_supports_gossip_queries(this_arg);
28986         return nativeResponseValue;
28987 }
28988         // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28989 /* @internal */
28990 export function InitFeatures_requires_gossip_queries(this_arg: bigint): boolean {
28991         if(!isWasmInitialized) {
28992                 throw new Error("initializeWasm() must be awaited first!");
28993         }
28994         const nativeResponseValue = wasm.TS_InitFeatures_requires_gossip_queries(this_arg);
28995         return nativeResponseValue;
28996 }
28997         // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28998 /* @internal */
28999 export function NodeFeatures_requires_gossip_queries(this_arg: bigint): boolean {
29000         if(!isWasmInitialized) {
29001                 throw new Error("initializeWasm() must be awaited first!");
29002         }
29003         const nativeResponseValue = wasm.TS_NodeFeatures_requires_gossip_queries(this_arg);
29004         return nativeResponseValue;
29005 }
29006         // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29007 /* @internal */
29008 export function InitFeatures_set_variable_length_onion_optional(this_arg: bigint): void {
29009         if(!isWasmInitialized) {
29010                 throw new Error("initializeWasm() must be awaited first!");
29011         }
29012         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_optional(this_arg);
29013         // debug statements here
29014 }
29015         // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29016 /* @internal */
29017 export function InitFeatures_set_variable_length_onion_required(this_arg: bigint): void {
29018         if(!isWasmInitialized) {
29019                 throw new Error("initializeWasm() must be awaited first!");
29020         }
29021         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_required(this_arg);
29022         // debug statements here
29023 }
29024         // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29025 /* @internal */
29026 export function InitFeatures_supports_variable_length_onion(this_arg: bigint): boolean {
29027         if(!isWasmInitialized) {
29028                 throw new Error("initializeWasm() must be awaited first!");
29029         }
29030         const nativeResponseValue = wasm.TS_InitFeatures_supports_variable_length_onion(this_arg);
29031         return nativeResponseValue;
29032 }
29033         // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29034 /* @internal */
29035 export function NodeFeatures_set_variable_length_onion_optional(this_arg: bigint): void {
29036         if(!isWasmInitialized) {
29037                 throw new Error("initializeWasm() must be awaited first!");
29038         }
29039         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_optional(this_arg);
29040         // debug statements here
29041 }
29042         // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29043 /* @internal */
29044 export function NodeFeatures_set_variable_length_onion_required(this_arg: bigint): void {
29045         if(!isWasmInitialized) {
29046                 throw new Error("initializeWasm() must be awaited first!");
29047         }
29048         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_required(this_arg);
29049         // debug statements here
29050 }
29051         // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29052 /* @internal */
29053 export function NodeFeatures_supports_variable_length_onion(this_arg: bigint): boolean {
29054         if(!isWasmInitialized) {
29055                 throw new Error("initializeWasm() must be awaited first!");
29056         }
29057         const nativeResponseValue = wasm.TS_NodeFeatures_supports_variable_length_onion(this_arg);
29058         return nativeResponseValue;
29059 }
29060         // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29061 /* @internal */
29062 export function InvoiceFeatures_set_variable_length_onion_optional(this_arg: bigint): void {
29063         if(!isWasmInitialized) {
29064                 throw new Error("initializeWasm() must be awaited first!");
29065         }
29066         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_optional(this_arg);
29067         // debug statements here
29068 }
29069         // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29070 /* @internal */
29071 export function InvoiceFeatures_set_variable_length_onion_required(this_arg: bigint): void {
29072         if(!isWasmInitialized) {
29073                 throw new Error("initializeWasm() must be awaited first!");
29074         }
29075         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_required(this_arg);
29076         // debug statements here
29077 }
29078         // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29079 /* @internal */
29080 export function InvoiceFeatures_supports_variable_length_onion(this_arg: bigint): boolean {
29081         if(!isWasmInitialized) {
29082                 throw new Error("initializeWasm() must be awaited first!");
29083         }
29084         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_variable_length_onion(this_arg);
29085         return nativeResponseValue;
29086 }
29087         // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29088 /* @internal */
29089 export function InitFeatures_requires_variable_length_onion(this_arg: bigint): boolean {
29090         if(!isWasmInitialized) {
29091                 throw new Error("initializeWasm() must be awaited first!");
29092         }
29093         const nativeResponseValue = wasm.TS_InitFeatures_requires_variable_length_onion(this_arg);
29094         return nativeResponseValue;
29095 }
29096         // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29097 /* @internal */
29098 export function NodeFeatures_requires_variable_length_onion(this_arg: bigint): boolean {
29099         if(!isWasmInitialized) {
29100                 throw new Error("initializeWasm() must be awaited first!");
29101         }
29102         const nativeResponseValue = wasm.TS_NodeFeatures_requires_variable_length_onion(this_arg);
29103         return nativeResponseValue;
29104 }
29105         // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29106 /* @internal */
29107 export function InvoiceFeatures_requires_variable_length_onion(this_arg: bigint): boolean {
29108         if(!isWasmInitialized) {
29109                 throw new Error("initializeWasm() must be awaited first!");
29110         }
29111         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_variable_length_onion(this_arg);
29112         return nativeResponseValue;
29113 }
29114         // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29115 /* @internal */
29116 export function InitFeatures_set_static_remote_key_optional(this_arg: bigint): void {
29117         if(!isWasmInitialized) {
29118                 throw new Error("initializeWasm() must be awaited first!");
29119         }
29120         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_optional(this_arg);
29121         // debug statements here
29122 }
29123         // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29124 /* @internal */
29125 export function InitFeatures_set_static_remote_key_required(this_arg: bigint): void {
29126         if(!isWasmInitialized) {
29127                 throw new Error("initializeWasm() must be awaited first!");
29128         }
29129         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_required(this_arg);
29130         // debug statements here
29131 }
29132         // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29133 /* @internal */
29134 export function InitFeatures_supports_static_remote_key(this_arg: bigint): boolean {
29135         if(!isWasmInitialized) {
29136                 throw new Error("initializeWasm() must be awaited first!");
29137         }
29138         const nativeResponseValue = wasm.TS_InitFeatures_supports_static_remote_key(this_arg);
29139         return nativeResponseValue;
29140 }
29141         // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29142 /* @internal */
29143 export function NodeFeatures_set_static_remote_key_optional(this_arg: bigint): void {
29144         if(!isWasmInitialized) {
29145                 throw new Error("initializeWasm() must be awaited first!");
29146         }
29147         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_optional(this_arg);
29148         // debug statements here
29149 }
29150         // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29151 /* @internal */
29152 export function NodeFeatures_set_static_remote_key_required(this_arg: bigint): void {
29153         if(!isWasmInitialized) {
29154                 throw new Error("initializeWasm() must be awaited first!");
29155         }
29156         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_required(this_arg);
29157         // debug statements here
29158 }
29159         // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29160 /* @internal */
29161 export function NodeFeatures_supports_static_remote_key(this_arg: bigint): boolean {
29162         if(!isWasmInitialized) {
29163                 throw new Error("initializeWasm() must be awaited first!");
29164         }
29165         const nativeResponseValue = wasm.TS_NodeFeatures_supports_static_remote_key(this_arg);
29166         return nativeResponseValue;
29167 }
29168         // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29169 /* @internal */
29170 export function ChannelTypeFeatures_set_static_remote_key_optional(this_arg: bigint): void {
29171         if(!isWasmInitialized) {
29172                 throw new Error("initializeWasm() must be awaited first!");
29173         }
29174         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_optional(this_arg);
29175         // debug statements here
29176 }
29177         // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29178 /* @internal */
29179 export function ChannelTypeFeatures_set_static_remote_key_required(this_arg: bigint): void {
29180         if(!isWasmInitialized) {
29181                 throw new Error("initializeWasm() must be awaited first!");
29182         }
29183         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_required(this_arg);
29184         // debug statements here
29185 }
29186         // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29187 /* @internal */
29188 export function ChannelTypeFeatures_supports_static_remote_key(this_arg: bigint): boolean {
29189         if(!isWasmInitialized) {
29190                 throw new Error("initializeWasm() must be awaited first!");
29191         }
29192         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_static_remote_key(this_arg);
29193         return nativeResponseValue;
29194 }
29195         // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29196 /* @internal */
29197 export function InitFeatures_requires_static_remote_key(this_arg: bigint): boolean {
29198         if(!isWasmInitialized) {
29199                 throw new Error("initializeWasm() must be awaited first!");
29200         }
29201         const nativeResponseValue = wasm.TS_InitFeatures_requires_static_remote_key(this_arg);
29202         return nativeResponseValue;
29203 }
29204         // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29205 /* @internal */
29206 export function NodeFeatures_requires_static_remote_key(this_arg: bigint): boolean {
29207         if(!isWasmInitialized) {
29208                 throw new Error("initializeWasm() must be awaited first!");
29209         }
29210         const nativeResponseValue = wasm.TS_NodeFeatures_requires_static_remote_key(this_arg);
29211         return nativeResponseValue;
29212 }
29213         // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29214 /* @internal */
29215 export function ChannelTypeFeatures_requires_static_remote_key(this_arg: bigint): boolean {
29216         if(!isWasmInitialized) {
29217                 throw new Error("initializeWasm() must be awaited first!");
29218         }
29219         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_static_remote_key(this_arg);
29220         return nativeResponseValue;
29221 }
29222         // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29223 /* @internal */
29224 export function InitFeatures_set_payment_secret_optional(this_arg: bigint): void {
29225         if(!isWasmInitialized) {
29226                 throw new Error("initializeWasm() must be awaited first!");
29227         }
29228         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_optional(this_arg);
29229         // debug statements here
29230 }
29231         // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29232 /* @internal */
29233 export function InitFeatures_set_payment_secret_required(this_arg: bigint): void {
29234         if(!isWasmInitialized) {
29235                 throw new Error("initializeWasm() must be awaited first!");
29236         }
29237         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_required(this_arg);
29238         // debug statements here
29239 }
29240         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29241 /* @internal */
29242 export function InitFeatures_supports_payment_secret(this_arg: bigint): boolean {
29243         if(!isWasmInitialized) {
29244                 throw new Error("initializeWasm() must be awaited first!");
29245         }
29246         const nativeResponseValue = wasm.TS_InitFeatures_supports_payment_secret(this_arg);
29247         return nativeResponseValue;
29248 }
29249         // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29250 /* @internal */
29251 export function NodeFeatures_set_payment_secret_optional(this_arg: bigint): void {
29252         if(!isWasmInitialized) {
29253                 throw new Error("initializeWasm() must be awaited first!");
29254         }
29255         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_optional(this_arg);
29256         // debug statements here
29257 }
29258         // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29259 /* @internal */
29260 export function NodeFeatures_set_payment_secret_required(this_arg: bigint): void {
29261         if(!isWasmInitialized) {
29262                 throw new Error("initializeWasm() must be awaited first!");
29263         }
29264         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_required(this_arg);
29265         // debug statements here
29266 }
29267         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29268 /* @internal */
29269 export function NodeFeatures_supports_payment_secret(this_arg: bigint): boolean {
29270         if(!isWasmInitialized) {
29271                 throw new Error("initializeWasm() must be awaited first!");
29272         }
29273         const nativeResponseValue = wasm.TS_NodeFeatures_supports_payment_secret(this_arg);
29274         return nativeResponseValue;
29275 }
29276         // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29277 /* @internal */
29278 export function InvoiceFeatures_set_payment_secret_optional(this_arg: bigint): void {
29279         if(!isWasmInitialized) {
29280                 throw new Error("initializeWasm() must be awaited first!");
29281         }
29282         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_optional(this_arg);
29283         // debug statements here
29284 }
29285         // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29286 /* @internal */
29287 export function InvoiceFeatures_set_payment_secret_required(this_arg: bigint): void {
29288         if(!isWasmInitialized) {
29289                 throw new Error("initializeWasm() must be awaited first!");
29290         }
29291         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_required(this_arg);
29292         // debug statements here
29293 }
29294         // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29295 /* @internal */
29296 export function InvoiceFeatures_supports_payment_secret(this_arg: bigint): boolean {
29297         if(!isWasmInitialized) {
29298                 throw new Error("initializeWasm() must be awaited first!");
29299         }
29300         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_payment_secret(this_arg);
29301         return nativeResponseValue;
29302 }
29303         // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29304 /* @internal */
29305 export function InitFeatures_requires_payment_secret(this_arg: bigint): boolean {
29306         if(!isWasmInitialized) {
29307                 throw new Error("initializeWasm() must be awaited first!");
29308         }
29309         const nativeResponseValue = wasm.TS_InitFeatures_requires_payment_secret(this_arg);
29310         return nativeResponseValue;
29311 }
29312         // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29313 /* @internal */
29314 export function NodeFeatures_requires_payment_secret(this_arg: bigint): boolean {
29315         if(!isWasmInitialized) {
29316                 throw new Error("initializeWasm() must be awaited first!");
29317         }
29318         const nativeResponseValue = wasm.TS_NodeFeatures_requires_payment_secret(this_arg);
29319         return nativeResponseValue;
29320 }
29321         // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29322 /* @internal */
29323 export function InvoiceFeatures_requires_payment_secret(this_arg: bigint): boolean {
29324         if(!isWasmInitialized) {
29325                 throw new Error("initializeWasm() must be awaited first!");
29326         }
29327         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_payment_secret(this_arg);
29328         return nativeResponseValue;
29329 }
29330         // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29331 /* @internal */
29332 export function InitFeatures_set_basic_mpp_optional(this_arg: bigint): void {
29333         if(!isWasmInitialized) {
29334                 throw new Error("initializeWasm() must be awaited first!");
29335         }
29336         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_optional(this_arg);
29337         // debug statements here
29338 }
29339         // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29340 /* @internal */
29341 export function InitFeatures_set_basic_mpp_required(this_arg: bigint): void {
29342         if(!isWasmInitialized) {
29343                 throw new Error("initializeWasm() must be awaited first!");
29344         }
29345         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_required(this_arg);
29346         // debug statements here
29347 }
29348         // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29349 /* @internal */
29350 export function InitFeatures_supports_basic_mpp(this_arg: bigint): boolean {
29351         if(!isWasmInitialized) {
29352                 throw new Error("initializeWasm() must be awaited first!");
29353         }
29354         const nativeResponseValue = wasm.TS_InitFeatures_supports_basic_mpp(this_arg);
29355         return nativeResponseValue;
29356 }
29357         // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29358 /* @internal */
29359 export function NodeFeatures_set_basic_mpp_optional(this_arg: bigint): void {
29360         if(!isWasmInitialized) {
29361                 throw new Error("initializeWasm() must be awaited first!");
29362         }
29363         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_optional(this_arg);
29364         // debug statements here
29365 }
29366         // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29367 /* @internal */
29368 export function NodeFeatures_set_basic_mpp_required(this_arg: bigint): void {
29369         if(!isWasmInitialized) {
29370                 throw new Error("initializeWasm() must be awaited first!");
29371         }
29372         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_required(this_arg);
29373         // debug statements here
29374 }
29375         // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29376 /* @internal */
29377 export function NodeFeatures_supports_basic_mpp(this_arg: bigint): boolean {
29378         if(!isWasmInitialized) {
29379                 throw new Error("initializeWasm() must be awaited first!");
29380         }
29381         const nativeResponseValue = wasm.TS_NodeFeatures_supports_basic_mpp(this_arg);
29382         return nativeResponseValue;
29383 }
29384         // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29385 /* @internal */
29386 export function InvoiceFeatures_set_basic_mpp_optional(this_arg: bigint): void {
29387         if(!isWasmInitialized) {
29388                 throw new Error("initializeWasm() must be awaited first!");
29389         }
29390         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_optional(this_arg);
29391         // debug statements here
29392 }
29393         // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29394 /* @internal */
29395 export function InvoiceFeatures_set_basic_mpp_required(this_arg: bigint): void {
29396         if(!isWasmInitialized) {
29397                 throw new Error("initializeWasm() must be awaited first!");
29398         }
29399         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_required(this_arg);
29400         // debug statements here
29401 }
29402         // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29403 /* @internal */
29404 export function InvoiceFeatures_supports_basic_mpp(this_arg: bigint): boolean {
29405         if(!isWasmInitialized) {
29406                 throw new Error("initializeWasm() must be awaited first!");
29407         }
29408         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_basic_mpp(this_arg);
29409         return nativeResponseValue;
29410 }
29411         // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29412 /* @internal */
29413 export function InitFeatures_requires_basic_mpp(this_arg: bigint): boolean {
29414         if(!isWasmInitialized) {
29415                 throw new Error("initializeWasm() must be awaited first!");
29416         }
29417         const nativeResponseValue = wasm.TS_InitFeatures_requires_basic_mpp(this_arg);
29418         return nativeResponseValue;
29419 }
29420         // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29421 /* @internal */
29422 export function NodeFeatures_requires_basic_mpp(this_arg: bigint): boolean {
29423         if(!isWasmInitialized) {
29424                 throw new Error("initializeWasm() must be awaited first!");
29425         }
29426         const nativeResponseValue = wasm.TS_NodeFeatures_requires_basic_mpp(this_arg);
29427         return nativeResponseValue;
29428 }
29429         // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
29430 /* @internal */
29431 export function InvoiceFeatures_requires_basic_mpp(this_arg: bigint): boolean {
29432         if(!isWasmInitialized) {
29433                 throw new Error("initializeWasm() must be awaited first!");
29434         }
29435         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_basic_mpp(this_arg);
29436         return nativeResponseValue;
29437 }
29438         // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29439 /* @internal */
29440 export function InitFeatures_set_wumbo_optional(this_arg: bigint): void {
29441         if(!isWasmInitialized) {
29442                 throw new Error("initializeWasm() must be awaited first!");
29443         }
29444         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_optional(this_arg);
29445         // debug statements here
29446 }
29447         // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29448 /* @internal */
29449 export function InitFeatures_set_wumbo_required(this_arg: bigint): void {
29450         if(!isWasmInitialized) {
29451                 throw new Error("initializeWasm() must be awaited first!");
29452         }
29453         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_required(this_arg);
29454         // debug statements here
29455 }
29456         // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29457 /* @internal */
29458 export function InitFeatures_supports_wumbo(this_arg: bigint): boolean {
29459         if(!isWasmInitialized) {
29460                 throw new Error("initializeWasm() must be awaited first!");
29461         }
29462         const nativeResponseValue = wasm.TS_InitFeatures_supports_wumbo(this_arg);
29463         return nativeResponseValue;
29464 }
29465         // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29466 /* @internal */
29467 export function NodeFeatures_set_wumbo_optional(this_arg: bigint): void {
29468         if(!isWasmInitialized) {
29469                 throw new Error("initializeWasm() must be awaited first!");
29470         }
29471         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_optional(this_arg);
29472         // debug statements here
29473 }
29474         // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29475 /* @internal */
29476 export function NodeFeatures_set_wumbo_required(this_arg: bigint): void {
29477         if(!isWasmInitialized) {
29478                 throw new Error("initializeWasm() must be awaited first!");
29479         }
29480         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_required(this_arg);
29481         // debug statements here
29482 }
29483         // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29484 /* @internal */
29485 export function NodeFeatures_supports_wumbo(this_arg: bigint): boolean {
29486         if(!isWasmInitialized) {
29487                 throw new Error("initializeWasm() must be awaited first!");
29488         }
29489         const nativeResponseValue = wasm.TS_NodeFeatures_supports_wumbo(this_arg);
29490         return nativeResponseValue;
29491 }
29492         // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29493 /* @internal */
29494 export function InitFeatures_requires_wumbo(this_arg: bigint): boolean {
29495         if(!isWasmInitialized) {
29496                 throw new Error("initializeWasm() must be awaited first!");
29497         }
29498         const nativeResponseValue = wasm.TS_InitFeatures_requires_wumbo(this_arg);
29499         return nativeResponseValue;
29500 }
29501         // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29502 /* @internal */
29503 export function NodeFeatures_requires_wumbo(this_arg: bigint): boolean {
29504         if(!isWasmInitialized) {
29505                 throw new Error("initializeWasm() must be awaited first!");
29506         }
29507         const nativeResponseValue = wasm.TS_NodeFeatures_requires_wumbo(this_arg);
29508         return nativeResponseValue;
29509 }
29510         // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29511 /* @internal */
29512 export function InitFeatures_set_shutdown_any_segwit_optional(this_arg: bigint): void {
29513         if(!isWasmInitialized) {
29514                 throw new Error("initializeWasm() must be awaited first!");
29515         }
29516         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_optional(this_arg);
29517         // debug statements here
29518 }
29519         // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29520 /* @internal */
29521 export function InitFeatures_set_shutdown_any_segwit_required(this_arg: bigint): void {
29522         if(!isWasmInitialized) {
29523                 throw new Error("initializeWasm() must be awaited first!");
29524         }
29525         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_required(this_arg);
29526         // debug statements here
29527 }
29528         // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29529 /* @internal */
29530 export function InitFeatures_supports_shutdown_anysegwit(this_arg: bigint): boolean {
29531         if(!isWasmInitialized) {
29532                 throw new Error("initializeWasm() must be awaited first!");
29533         }
29534         const nativeResponseValue = wasm.TS_InitFeatures_supports_shutdown_anysegwit(this_arg);
29535         return nativeResponseValue;
29536 }
29537         // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29538 /* @internal */
29539 export function NodeFeatures_set_shutdown_any_segwit_optional(this_arg: bigint): void {
29540         if(!isWasmInitialized) {
29541                 throw new Error("initializeWasm() must be awaited first!");
29542         }
29543         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_optional(this_arg);
29544         // debug statements here
29545 }
29546         // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29547 /* @internal */
29548 export function NodeFeatures_set_shutdown_any_segwit_required(this_arg: bigint): void {
29549         if(!isWasmInitialized) {
29550                 throw new Error("initializeWasm() must be awaited first!");
29551         }
29552         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_required(this_arg);
29553         // debug statements here
29554 }
29555         // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29556 /* @internal */
29557 export function NodeFeatures_supports_shutdown_anysegwit(this_arg: bigint): boolean {
29558         if(!isWasmInitialized) {
29559                 throw new Error("initializeWasm() must be awaited first!");
29560         }
29561         const nativeResponseValue = wasm.TS_NodeFeatures_supports_shutdown_anysegwit(this_arg);
29562         return nativeResponseValue;
29563 }
29564         // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29565 /* @internal */
29566 export function InitFeatures_requires_shutdown_anysegwit(this_arg: bigint): boolean {
29567         if(!isWasmInitialized) {
29568                 throw new Error("initializeWasm() must be awaited first!");
29569         }
29570         const nativeResponseValue = wasm.TS_InitFeatures_requires_shutdown_anysegwit(this_arg);
29571         return nativeResponseValue;
29572 }
29573         // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29574 /* @internal */
29575 export function NodeFeatures_requires_shutdown_anysegwit(this_arg: bigint): boolean {
29576         if(!isWasmInitialized) {
29577                 throw new Error("initializeWasm() must be awaited first!");
29578         }
29579         const nativeResponseValue = wasm.TS_NodeFeatures_requires_shutdown_anysegwit(this_arg);
29580         return nativeResponseValue;
29581 }
29582         // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29583 /* @internal */
29584 export function InitFeatures_set_onion_messages_optional(this_arg: bigint): void {
29585         if(!isWasmInitialized) {
29586                 throw new Error("initializeWasm() must be awaited first!");
29587         }
29588         const nativeResponseValue = wasm.TS_InitFeatures_set_onion_messages_optional(this_arg);
29589         // debug statements here
29590 }
29591         // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29592 /* @internal */
29593 export function InitFeatures_set_onion_messages_required(this_arg: bigint): void {
29594         if(!isWasmInitialized) {
29595                 throw new Error("initializeWasm() must be awaited first!");
29596         }
29597         const nativeResponseValue = wasm.TS_InitFeatures_set_onion_messages_required(this_arg);
29598         // debug statements here
29599 }
29600         // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29601 /* @internal */
29602 export function InitFeatures_supports_onion_messages(this_arg: bigint): boolean {
29603         if(!isWasmInitialized) {
29604                 throw new Error("initializeWasm() must be awaited first!");
29605         }
29606         const nativeResponseValue = wasm.TS_InitFeatures_supports_onion_messages(this_arg);
29607         return nativeResponseValue;
29608 }
29609         // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29610 /* @internal */
29611 export function NodeFeatures_set_onion_messages_optional(this_arg: bigint): void {
29612         if(!isWasmInitialized) {
29613                 throw new Error("initializeWasm() must be awaited first!");
29614         }
29615         const nativeResponseValue = wasm.TS_NodeFeatures_set_onion_messages_optional(this_arg);
29616         // debug statements here
29617 }
29618         // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29619 /* @internal */
29620 export function NodeFeatures_set_onion_messages_required(this_arg: bigint): void {
29621         if(!isWasmInitialized) {
29622                 throw new Error("initializeWasm() must be awaited first!");
29623         }
29624         const nativeResponseValue = wasm.TS_NodeFeatures_set_onion_messages_required(this_arg);
29625         // debug statements here
29626 }
29627         // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29628 /* @internal */
29629 export function NodeFeatures_supports_onion_messages(this_arg: bigint): boolean {
29630         if(!isWasmInitialized) {
29631                 throw new Error("initializeWasm() must be awaited first!");
29632         }
29633         const nativeResponseValue = wasm.TS_NodeFeatures_supports_onion_messages(this_arg);
29634         return nativeResponseValue;
29635 }
29636         // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29637 /* @internal */
29638 export function InitFeatures_requires_onion_messages(this_arg: bigint): boolean {
29639         if(!isWasmInitialized) {
29640                 throw new Error("initializeWasm() must be awaited first!");
29641         }
29642         const nativeResponseValue = wasm.TS_InitFeatures_requires_onion_messages(this_arg);
29643         return nativeResponseValue;
29644 }
29645         // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29646 /* @internal */
29647 export function NodeFeatures_requires_onion_messages(this_arg: bigint): boolean {
29648         if(!isWasmInitialized) {
29649                 throw new Error("initializeWasm() must be awaited first!");
29650         }
29651         const nativeResponseValue = wasm.TS_NodeFeatures_requires_onion_messages(this_arg);
29652         return nativeResponseValue;
29653 }
29654         // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29655 /* @internal */
29656 export function InitFeatures_set_channel_type_optional(this_arg: bigint): void {
29657         if(!isWasmInitialized) {
29658                 throw new Error("initializeWasm() must be awaited first!");
29659         }
29660         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_optional(this_arg);
29661         // debug statements here
29662 }
29663         // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29664 /* @internal */
29665 export function InitFeatures_set_channel_type_required(this_arg: bigint): void {
29666         if(!isWasmInitialized) {
29667                 throw new Error("initializeWasm() must be awaited first!");
29668         }
29669         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_required(this_arg);
29670         // debug statements here
29671 }
29672         // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29673 /* @internal */
29674 export function InitFeatures_supports_channel_type(this_arg: bigint): boolean {
29675         if(!isWasmInitialized) {
29676                 throw new Error("initializeWasm() must be awaited first!");
29677         }
29678         const nativeResponseValue = wasm.TS_InitFeatures_supports_channel_type(this_arg);
29679         return nativeResponseValue;
29680 }
29681         // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29682 /* @internal */
29683 export function NodeFeatures_set_channel_type_optional(this_arg: bigint): void {
29684         if(!isWasmInitialized) {
29685                 throw new Error("initializeWasm() must be awaited first!");
29686         }
29687         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_optional(this_arg);
29688         // debug statements here
29689 }
29690         // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29691 /* @internal */
29692 export function NodeFeatures_set_channel_type_required(this_arg: bigint): void {
29693         if(!isWasmInitialized) {
29694                 throw new Error("initializeWasm() must be awaited first!");
29695         }
29696         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_required(this_arg);
29697         // debug statements here
29698 }
29699         // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29700 /* @internal */
29701 export function NodeFeatures_supports_channel_type(this_arg: bigint): boolean {
29702         if(!isWasmInitialized) {
29703                 throw new Error("initializeWasm() must be awaited first!");
29704         }
29705         const nativeResponseValue = wasm.TS_NodeFeatures_supports_channel_type(this_arg);
29706         return nativeResponseValue;
29707 }
29708         // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29709 /* @internal */
29710 export function InitFeatures_requires_channel_type(this_arg: bigint): boolean {
29711         if(!isWasmInitialized) {
29712                 throw new Error("initializeWasm() must be awaited first!");
29713         }
29714         const nativeResponseValue = wasm.TS_InitFeatures_requires_channel_type(this_arg);
29715         return nativeResponseValue;
29716 }
29717         // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29718 /* @internal */
29719 export function NodeFeatures_requires_channel_type(this_arg: bigint): boolean {
29720         if(!isWasmInitialized) {
29721                 throw new Error("initializeWasm() must be awaited first!");
29722         }
29723         const nativeResponseValue = wasm.TS_NodeFeatures_requires_channel_type(this_arg);
29724         return nativeResponseValue;
29725 }
29726         // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29727 /* @internal */
29728 export function InitFeatures_set_scid_privacy_optional(this_arg: bigint): void {
29729         if(!isWasmInitialized) {
29730                 throw new Error("initializeWasm() must be awaited first!");
29731         }
29732         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_optional(this_arg);
29733         // debug statements here
29734 }
29735         // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29736 /* @internal */
29737 export function InitFeatures_set_scid_privacy_required(this_arg: bigint): void {
29738         if(!isWasmInitialized) {
29739                 throw new Error("initializeWasm() must be awaited first!");
29740         }
29741         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_required(this_arg);
29742         // debug statements here
29743 }
29744         // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29745 /* @internal */
29746 export function InitFeatures_supports_scid_privacy(this_arg: bigint): boolean {
29747         if(!isWasmInitialized) {
29748                 throw new Error("initializeWasm() must be awaited first!");
29749         }
29750         const nativeResponseValue = wasm.TS_InitFeatures_supports_scid_privacy(this_arg);
29751         return nativeResponseValue;
29752 }
29753         // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29754 /* @internal */
29755 export function NodeFeatures_set_scid_privacy_optional(this_arg: bigint): void {
29756         if(!isWasmInitialized) {
29757                 throw new Error("initializeWasm() must be awaited first!");
29758         }
29759         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_optional(this_arg);
29760         // debug statements here
29761 }
29762         // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29763 /* @internal */
29764 export function NodeFeatures_set_scid_privacy_required(this_arg: bigint): void {
29765         if(!isWasmInitialized) {
29766                 throw new Error("initializeWasm() must be awaited first!");
29767         }
29768         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_required(this_arg);
29769         // debug statements here
29770 }
29771         // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29772 /* @internal */
29773 export function NodeFeatures_supports_scid_privacy(this_arg: bigint): boolean {
29774         if(!isWasmInitialized) {
29775                 throw new Error("initializeWasm() must be awaited first!");
29776         }
29777         const nativeResponseValue = wasm.TS_NodeFeatures_supports_scid_privacy(this_arg);
29778         return nativeResponseValue;
29779 }
29780         // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29781 /* @internal */
29782 export function ChannelTypeFeatures_set_scid_privacy_optional(this_arg: bigint): void {
29783         if(!isWasmInitialized) {
29784                 throw new Error("initializeWasm() must be awaited first!");
29785         }
29786         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_optional(this_arg);
29787         // debug statements here
29788 }
29789         // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29790 /* @internal */
29791 export function ChannelTypeFeatures_set_scid_privacy_required(this_arg: bigint): void {
29792         if(!isWasmInitialized) {
29793                 throw new Error("initializeWasm() must be awaited first!");
29794         }
29795         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_required(this_arg);
29796         // debug statements here
29797 }
29798         // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29799 /* @internal */
29800 export function ChannelTypeFeatures_supports_scid_privacy(this_arg: bigint): boolean {
29801         if(!isWasmInitialized) {
29802                 throw new Error("initializeWasm() must be awaited first!");
29803         }
29804         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_scid_privacy(this_arg);
29805         return nativeResponseValue;
29806 }
29807         // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29808 /* @internal */
29809 export function InitFeatures_requires_scid_privacy(this_arg: bigint): boolean {
29810         if(!isWasmInitialized) {
29811                 throw new Error("initializeWasm() must be awaited first!");
29812         }
29813         const nativeResponseValue = wasm.TS_InitFeatures_requires_scid_privacy(this_arg);
29814         return nativeResponseValue;
29815 }
29816         // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29817 /* @internal */
29818 export function NodeFeatures_requires_scid_privacy(this_arg: bigint): boolean {
29819         if(!isWasmInitialized) {
29820                 throw new Error("initializeWasm() must be awaited first!");
29821         }
29822         const nativeResponseValue = wasm.TS_NodeFeatures_requires_scid_privacy(this_arg);
29823         return nativeResponseValue;
29824 }
29825         // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29826 /* @internal */
29827 export function ChannelTypeFeatures_requires_scid_privacy(this_arg: bigint): boolean {
29828         if(!isWasmInitialized) {
29829                 throw new Error("initializeWasm() must be awaited first!");
29830         }
29831         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_scid_privacy(this_arg);
29832         return nativeResponseValue;
29833 }
29834         // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
29835 /* @internal */
29836 export function InitFeatures_set_zero_conf_optional(this_arg: bigint): void {
29837         if(!isWasmInitialized) {
29838                 throw new Error("initializeWasm() must be awaited first!");
29839         }
29840         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_optional(this_arg);
29841         // debug statements here
29842 }
29843         // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
29844 /* @internal */
29845 export function InitFeatures_set_zero_conf_required(this_arg: bigint): void {
29846         if(!isWasmInitialized) {
29847                 throw new Error("initializeWasm() must be awaited first!");
29848         }
29849         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_required(this_arg);
29850         // debug statements here
29851 }
29852         // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29853 /* @internal */
29854 export function InitFeatures_supports_zero_conf(this_arg: bigint): boolean {
29855         if(!isWasmInitialized) {
29856                 throw new Error("initializeWasm() must be awaited first!");
29857         }
29858         const nativeResponseValue = wasm.TS_InitFeatures_supports_zero_conf(this_arg);
29859         return nativeResponseValue;
29860 }
29861         // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29862 /* @internal */
29863 export function NodeFeatures_set_zero_conf_optional(this_arg: bigint): void {
29864         if(!isWasmInitialized) {
29865                 throw new Error("initializeWasm() must be awaited first!");
29866         }
29867         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_optional(this_arg);
29868         // debug statements here
29869 }
29870         // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29871 /* @internal */
29872 export function NodeFeatures_set_zero_conf_required(this_arg: bigint): void {
29873         if(!isWasmInitialized) {
29874                 throw new Error("initializeWasm() must be awaited first!");
29875         }
29876         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_required(this_arg);
29877         // debug statements here
29878 }
29879         // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29880 /* @internal */
29881 export function NodeFeatures_supports_zero_conf(this_arg: bigint): boolean {
29882         if(!isWasmInitialized) {
29883                 throw new Error("initializeWasm() must be awaited first!");
29884         }
29885         const nativeResponseValue = wasm.TS_NodeFeatures_supports_zero_conf(this_arg);
29886         return nativeResponseValue;
29887 }
29888         // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29889 /* @internal */
29890 export function ChannelTypeFeatures_set_zero_conf_optional(this_arg: bigint): void {
29891         if(!isWasmInitialized) {
29892                 throw new Error("initializeWasm() must be awaited first!");
29893         }
29894         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_optional(this_arg);
29895         // debug statements here
29896 }
29897         // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29898 /* @internal */
29899 export function ChannelTypeFeatures_set_zero_conf_required(this_arg: bigint): void {
29900         if(!isWasmInitialized) {
29901                 throw new Error("initializeWasm() must be awaited first!");
29902         }
29903         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_required(this_arg);
29904         // debug statements here
29905 }
29906         // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29907 /* @internal */
29908 export function ChannelTypeFeatures_supports_zero_conf(this_arg: bigint): boolean {
29909         if(!isWasmInitialized) {
29910                 throw new Error("initializeWasm() must be awaited first!");
29911         }
29912         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_zero_conf(this_arg);
29913         return nativeResponseValue;
29914 }
29915         // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
29916 /* @internal */
29917 export function InitFeatures_requires_zero_conf(this_arg: bigint): boolean {
29918         if(!isWasmInitialized) {
29919                 throw new Error("initializeWasm() must be awaited first!");
29920         }
29921         const nativeResponseValue = wasm.TS_InitFeatures_requires_zero_conf(this_arg);
29922         return nativeResponseValue;
29923 }
29924         // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29925 /* @internal */
29926 export function NodeFeatures_requires_zero_conf(this_arg: bigint): boolean {
29927         if(!isWasmInitialized) {
29928                 throw new Error("initializeWasm() must be awaited first!");
29929         }
29930         const nativeResponseValue = wasm.TS_NodeFeatures_requires_zero_conf(this_arg);
29931         return nativeResponseValue;
29932 }
29933         // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
29934 /* @internal */
29935 export function ChannelTypeFeatures_requires_zero_conf(this_arg: bigint): boolean {
29936         if(!isWasmInitialized) {
29937                 throw new Error("initializeWasm() must be awaited first!");
29938         }
29939         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_zero_conf(this_arg);
29940         return nativeResponseValue;
29941 }
29942         // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29943 /* @internal */
29944 export function NodeFeatures_set_keysend_optional(this_arg: bigint): void {
29945         if(!isWasmInitialized) {
29946                 throw new Error("initializeWasm() must be awaited first!");
29947         }
29948         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_optional(this_arg);
29949         // debug statements here
29950 }
29951         // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
29952 /* @internal */
29953 export function NodeFeatures_set_keysend_required(this_arg: bigint): void {
29954         if(!isWasmInitialized) {
29955                 throw new Error("initializeWasm() must be awaited first!");
29956         }
29957         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_required(this_arg);
29958         // debug statements here
29959 }
29960         // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29961 /* @internal */
29962 export function NodeFeatures_supports_keysend(this_arg: bigint): boolean {
29963         if(!isWasmInitialized) {
29964                 throw new Error("initializeWasm() must be awaited first!");
29965         }
29966         const nativeResponseValue = wasm.TS_NodeFeatures_supports_keysend(this_arg);
29967         return nativeResponseValue;
29968 }
29969         // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
29970 /* @internal */
29971 export function NodeFeatures_requires_keysend(this_arg: bigint): boolean {
29972         if(!isWasmInitialized) {
29973                 throw new Error("initializeWasm() must be awaited first!");
29974         }
29975         const nativeResponseValue = wasm.TS_NodeFeatures_requires_keysend(this_arg);
29976         return nativeResponseValue;
29977 }
29978         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
29979 /* @internal */
29980 export function ShutdownScript_free(this_obj: bigint): void {
29981         if(!isWasmInitialized) {
29982                 throw new Error("initializeWasm() must be awaited first!");
29983         }
29984         const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
29985         // debug statements here
29986 }
29987         // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
29988 /* @internal */
29989 export function ShutdownScript_clone_ptr(arg: bigint): bigint {
29990         if(!isWasmInitialized) {
29991                 throw new Error("initializeWasm() must be awaited first!");
29992         }
29993         const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
29994         return nativeResponseValue;
29995 }
29996         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
29997 /* @internal */
29998 export function ShutdownScript_clone(orig: bigint): bigint {
29999         if(!isWasmInitialized) {
30000                 throw new Error("initializeWasm() must be awaited first!");
30001         }
30002         const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
30003         return nativeResponseValue;
30004 }
30005         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
30006 /* @internal */
30007 export function InvalidShutdownScript_free(this_obj: bigint): void {
30008         if(!isWasmInitialized) {
30009                 throw new Error("initializeWasm() must be awaited first!");
30010         }
30011         const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
30012         // debug statements here
30013 }
30014         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
30015 /* @internal */
30016 export function InvalidShutdownScript_get_script(this_ptr: bigint): number {
30017         if(!isWasmInitialized) {
30018                 throw new Error("initializeWasm() must be awaited first!");
30019         }
30020         const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
30021         return nativeResponseValue;
30022 }
30023         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
30024 /* @internal */
30025 export function InvalidShutdownScript_set_script(this_ptr: bigint, val: number): void {
30026         if(!isWasmInitialized) {
30027                 throw new Error("initializeWasm() must be awaited first!");
30028         }
30029         const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
30030         // debug statements here
30031 }
30032         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
30033 /* @internal */
30034 export function InvalidShutdownScript_new(script_arg: number): bigint {
30035         if(!isWasmInitialized) {
30036                 throw new Error("initializeWasm() must be awaited first!");
30037         }
30038         const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
30039         return nativeResponseValue;
30040 }
30041         // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
30042 /* @internal */
30043 export function InvalidShutdownScript_clone_ptr(arg: bigint): bigint {
30044         if(!isWasmInitialized) {
30045                 throw new Error("initializeWasm() must be awaited first!");
30046         }
30047         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
30048         return nativeResponseValue;
30049 }
30050         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
30051 /* @internal */
30052 export function InvalidShutdownScript_clone(orig: bigint): bigint {
30053         if(!isWasmInitialized) {
30054                 throw new Error("initializeWasm() must be awaited first!");
30055         }
30056         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
30057         return nativeResponseValue;
30058 }
30059         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
30060 /* @internal */
30061 export function ShutdownScript_write(obj: bigint): number {
30062         if(!isWasmInitialized) {
30063                 throw new Error("initializeWasm() must be awaited first!");
30064         }
30065         const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
30066         return nativeResponseValue;
30067 }
30068         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
30069 /* @internal */
30070 export function ShutdownScript_read(ser: number): bigint {
30071         if(!isWasmInitialized) {
30072                 throw new Error("initializeWasm() must be awaited first!");
30073         }
30074         const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
30075         return nativeResponseValue;
30076 }
30077         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
30078 /* @internal */
30079 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): bigint {
30080         if(!isWasmInitialized) {
30081                 throw new Error("initializeWasm() must be awaited first!");
30082         }
30083         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
30084         return nativeResponseValue;
30085 }
30086         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
30087 /* @internal */
30088 export function ShutdownScript_new_p2wsh(script_hash: number): bigint {
30089         if(!isWasmInitialized) {
30090                 throw new Error("initializeWasm() must be awaited first!");
30091         }
30092         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
30093         return nativeResponseValue;
30094 }
30095         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
30096 /* @internal */
30097 export function ShutdownScript_new_witness_program(version: number, program: number): bigint {
30098         if(!isWasmInitialized) {
30099                 throw new Error("initializeWasm() must be awaited first!");
30100         }
30101         const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
30102         return nativeResponseValue;
30103 }
30104         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
30105 /* @internal */
30106 export function ShutdownScript_into_inner(this_arg: bigint): number {
30107         if(!isWasmInitialized) {
30108                 throw new Error("initializeWasm() must be awaited first!");
30109         }
30110         const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
30111         return nativeResponseValue;
30112 }
30113         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
30114 /* @internal */
30115 export function ShutdownScript_as_legacy_pubkey(this_arg: bigint): number {
30116         if(!isWasmInitialized) {
30117                 throw new Error("initializeWasm() must be awaited first!");
30118         }
30119         const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
30120         return nativeResponseValue;
30121 }
30122         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
30123 /* @internal */
30124 export function ShutdownScript_is_compatible(this_arg: bigint, features: bigint): boolean {
30125         if(!isWasmInitialized) {
30126                 throw new Error("initializeWasm() must be awaited first!");
30127         }
30128         const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
30129         return nativeResponseValue;
30130 }
30131         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
30132 /* @internal */
30133 export function CustomMessageReader_free(this_ptr: bigint): void {
30134         if(!isWasmInitialized) {
30135                 throw new Error("initializeWasm() must be awaited first!");
30136         }
30137         const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
30138         // debug statements here
30139 }
30140         // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
30141 /* @internal */
30142 export function Type_clone_ptr(arg: bigint): bigint {
30143         if(!isWasmInitialized) {
30144                 throw new Error("initializeWasm() must be awaited first!");
30145         }
30146         const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
30147         return nativeResponseValue;
30148 }
30149         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
30150 /* @internal */
30151 export function Type_clone(orig: bigint): bigint {
30152         if(!isWasmInitialized) {
30153                 throw new Error("initializeWasm() must be awaited first!");
30154         }
30155         const nativeResponseValue = wasm.TS_Type_clone(orig);
30156         return nativeResponseValue;
30157 }
30158         // void Type_free(struct LDKType this_ptr);
30159 /* @internal */
30160 export function Type_free(this_ptr: bigint): void {
30161         if(!isWasmInitialized) {
30162                 throw new Error("initializeWasm() must be awaited first!");
30163         }
30164         const nativeResponseValue = wasm.TS_Type_free(this_ptr);
30165         // debug statements here
30166 }
30167         // void NodeId_free(struct LDKNodeId this_obj);
30168 /* @internal */
30169 export function NodeId_free(this_obj: bigint): void {
30170         if(!isWasmInitialized) {
30171                 throw new Error("initializeWasm() must be awaited first!");
30172         }
30173         const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
30174         // debug statements here
30175 }
30176         // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
30177 /* @internal */
30178 export function NodeId_clone_ptr(arg: bigint): bigint {
30179         if(!isWasmInitialized) {
30180                 throw new Error("initializeWasm() must be awaited first!");
30181         }
30182         const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
30183         return nativeResponseValue;
30184 }
30185         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
30186 /* @internal */
30187 export function NodeId_clone(orig: bigint): bigint {
30188         if(!isWasmInitialized) {
30189                 throw new Error("initializeWasm() must be awaited first!");
30190         }
30191         const nativeResponseValue = wasm.TS_NodeId_clone(orig);
30192         return nativeResponseValue;
30193 }
30194         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
30195 /* @internal */
30196 export function NodeId_from_pubkey(pubkey: number): bigint {
30197         if(!isWasmInitialized) {
30198                 throw new Error("initializeWasm() must be awaited first!");
30199         }
30200         const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
30201         return nativeResponseValue;
30202 }
30203         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
30204 /* @internal */
30205 export function NodeId_as_slice(this_arg: bigint): number {
30206         if(!isWasmInitialized) {
30207                 throw new Error("initializeWasm() must be awaited first!");
30208         }
30209         const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
30210         return nativeResponseValue;
30211 }
30212         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
30213 /* @internal */
30214 export function NodeId_hash(o: bigint): bigint {
30215         if(!isWasmInitialized) {
30216                 throw new Error("initializeWasm() must be awaited first!");
30217         }
30218         const nativeResponseValue = wasm.TS_NodeId_hash(o);
30219         return nativeResponseValue;
30220 }
30221         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
30222 /* @internal */
30223 export function NodeId_write(obj: bigint): number {
30224         if(!isWasmInitialized) {
30225                 throw new Error("initializeWasm() must be awaited first!");
30226         }
30227         const nativeResponseValue = wasm.TS_NodeId_write(obj);
30228         return nativeResponseValue;
30229 }
30230         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
30231 /* @internal */
30232 export function NodeId_read(ser: number): bigint {
30233         if(!isWasmInitialized) {
30234                 throw new Error("initializeWasm() must be awaited first!");
30235         }
30236         const nativeResponseValue = wasm.TS_NodeId_read(ser);
30237         return nativeResponseValue;
30238 }
30239         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
30240 /* @internal */
30241 export function NetworkGraph_free(this_obj: bigint): void {
30242         if(!isWasmInitialized) {
30243                 throw new Error("initializeWasm() must be awaited first!");
30244         }
30245         const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
30246         // debug statements here
30247 }
30248         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
30249 /* @internal */
30250 export function ReadOnlyNetworkGraph_free(this_obj: bigint): void {
30251         if(!isWasmInitialized) {
30252                 throw new Error("initializeWasm() must be awaited first!");
30253         }
30254         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
30255         // debug statements here
30256 }
30257         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
30258 /* @internal */
30259 export function NetworkUpdate_free(this_ptr: bigint): void {
30260         if(!isWasmInitialized) {
30261                 throw new Error("initializeWasm() must be awaited first!");
30262         }
30263         const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
30264         // debug statements here
30265 }
30266         // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
30267 /* @internal */
30268 export function NetworkUpdate_clone_ptr(arg: bigint): bigint {
30269         if(!isWasmInitialized) {
30270                 throw new Error("initializeWasm() must be awaited first!");
30271         }
30272         const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
30273         return nativeResponseValue;
30274 }
30275         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
30276 /* @internal */
30277 export function NetworkUpdate_clone(orig: bigint): bigint {
30278         if(!isWasmInitialized) {
30279                 throw new Error("initializeWasm() must be awaited first!");
30280         }
30281         const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
30282         return nativeResponseValue;
30283 }
30284         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
30285 /* @internal */
30286 export function NetworkUpdate_channel_update_message(msg: bigint): bigint {
30287         if(!isWasmInitialized) {
30288                 throw new Error("initializeWasm() must be awaited first!");
30289         }
30290         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
30291         return nativeResponseValue;
30292 }
30293         // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
30294 /* @internal */
30295 export function NetworkUpdate_channel_failure(short_channel_id: bigint, is_permanent: boolean): bigint {
30296         if(!isWasmInitialized) {
30297                 throw new Error("initializeWasm() must be awaited first!");
30298         }
30299         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_failure(short_channel_id, is_permanent);
30300         return nativeResponseValue;
30301 }
30302         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
30303 /* @internal */
30304 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): bigint {
30305         if(!isWasmInitialized) {
30306                 throw new Error("initializeWasm() must be awaited first!");
30307         }
30308         const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
30309         return nativeResponseValue;
30310 }
30311         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
30312 /* @internal */
30313 export function NetworkUpdate_write(obj: bigint): number {
30314         if(!isWasmInitialized) {
30315                 throw new Error("initializeWasm() must be awaited first!");
30316         }
30317         const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
30318         return nativeResponseValue;
30319 }
30320         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
30321 /* @internal */
30322 export function NetworkUpdate_read(ser: number): bigint {
30323         if(!isWasmInitialized) {
30324                 throw new Error("initializeWasm() must be awaited first!");
30325         }
30326         const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
30327         return nativeResponseValue;
30328 }
30329         // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
30330 /* @internal */
30331 export function P2PGossipSync_free(this_obj: bigint): void {
30332         if(!isWasmInitialized) {
30333                 throw new Error("initializeWasm() must be awaited first!");
30334         }
30335         const nativeResponseValue = wasm.TS_P2PGossipSync_free(this_obj);
30336         // debug statements here
30337 }
30338         // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
30339 /* @internal */
30340 export function P2PGossipSync_new(network_graph: bigint, chain_access: bigint, logger: bigint): bigint {
30341         if(!isWasmInitialized) {
30342                 throw new Error("initializeWasm() must be awaited first!");
30343         }
30344         const nativeResponseValue = wasm.TS_P2PGossipSync_new(network_graph, chain_access, logger);
30345         return nativeResponseValue;
30346 }
30347         // void P2PGossipSync_add_chain_access(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
30348 /* @internal */
30349 export function P2PGossipSync_add_chain_access(this_arg: bigint, chain_access: bigint): void {
30350         if(!isWasmInitialized) {
30351                 throw new Error("initializeWasm() must be awaited first!");
30352         }
30353         const nativeResponseValue = wasm.TS_P2PGossipSync_add_chain_access(this_arg, chain_access);
30354         // debug statements here
30355 }
30356         // struct LDKEventHandler NetworkGraph_as_EventHandler(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
30357 /* @internal */
30358 export function NetworkGraph_as_EventHandler(this_arg: bigint): bigint {
30359         if(!isWasmInitialized) {
30360                 throw new Error("initializeWasm() must be awaited first!");
30361         }
30362         const nativeResponseValue = wasm.TS_NetworkGraph_as_EventHandler(this_arg);
30363         return nativeResponseValue;
30364 }
30365         // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
30366 /* @internal */
30367 export function P2PGossipSync_as_RoutingMessageHandler(this_arg: bigint): bigint {
30368         if(!isWasmInitialized) {
30369                 throw new Error("initializeWasm() must be awaited first!");
30370         }
30371         const nativeResponseValue = wasm.TS_P2PGossipSync_as_RoutingMessageHandler(this_arg);
30372         return nativeResponseValue;
30373 }
30374         // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
30375 /* @internal */
30376 export function P2PGossipSync_as_MessageSendEventsProvider(this_arg: bigint): bigint {
30377         if(!isWasmInitialized) {
30378                 throw new Error("initializeWasm() must be awaited first!");
30379         }
30380         const nativeResponseValue = wasm.TS_P2PGossipSync_as_MessageSendEventsProvider(this_arg);
30381         return nativeResponseValue;
30382 }
30383         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
30384 /* @internal */
30385 export function ChannelUpdateInfo_free(this_obj: bigint): void {
30386         if(!isWasmInitialized) {
30387                 throw new Error("initializeWasm() must be awaited first!");
30388         }
30389         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
30390         // debug statements here
30391 }
30392         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30393 /* @internal */
30394 export function ChannelUpdateInfo_get_last_update(this_ptr: bigint): number {
30395         if(!isWasmInitialized) {
30396                 throw new Error("initializeWasm() must be awaited first!");
30397         }
30398         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
30399         return nativeResponseValue;
30400 }
30401         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
30402 /* @internal */
30403 export function ChannelUpdateInfo_set_last_update(this_ptr: bigint, val: number): void {
30404         if(!isWasmInitialized) {
30405                 throw new Error("initializeWasm() must be awaited first!");
30406         }
30407         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
30408         // debug statements here
30409 }
30410         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30411 /* @internal */
30412 export function ChannelUpdateInfo_get_enabled(this_ptr: bigint): boolean {
30413         if(!isWasmInitialized) {
30414                 throw new Error("initializeWasm() must be awaited first!");
30415         }
30416         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
30417         return nativeResponseValue;
30418 }
30419         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
30420 /* @internal */
30421 export function ChannelUpdateInfo_set_enabled(this_ptr: bigint, val: boolean): void {
30422         if(!isWasmInitialized) {
30423                 throw new Error("initializeWasm() must be awaited first!");
30424         }
30425         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
30426         // debug statements here
30427 }
30428         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30429 /* @internal */
30430 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: bigint): number {
30431         if(!isWasmInitialized) {
30432                 throw new Error("initializeWasm() must be awaited first!");
30433         }
30434         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
30435         return nativeResponseValue;
30436 }
30437         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
30438 /* @internal */
30439 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
30440         if(!isWasmInitialized) {
30441                 throw new Error("initializeWasm() must be awaited first!");
30442         }
30443         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
30444         // debug statements here
30445 }
30446         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30447 /* @internal */
30448 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: bigint): bigint {
30449         if(!isWasmInitialized) {
30450                 throw new Error("initializeWasm() must be awaited first!");
30451         }
30452         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
30453         return nativeResponseValue;
30454 }
30455         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
30456 /* @internal */
30457 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
30458         if(!isWasmInitialized) {
30459                 throw new Error("initializeWasm() must be awaited first!");
30460         }
30461         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
30462         // debug statements here
30463 }
30464         // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30465 /* @internal */
30466 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: bigint): bigint {
30467         if(!isWasmInitialized) {
30468                 throw new Error("initializeWasm() must be awaited first!");
30469         }
30470         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
30471         return nativeResponseValue;
30472 }
30473         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
30474 /* @internal */
30475 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
30476         if(!isWasmInitialized) {
30477                 throw new Error("initializeWasm() must be awaited first!");
30478         }
30479         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
30480         // debug statements here
30481 }
30482         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30483 /* @internal */
30484 export function ChannelUpdateInfo_get_fees(this_ptr: bigint): bigint {
30485         if(!isWasmInitialized) {
30486                 throw new Error("initializeWasm() must be awaited first!");
30487         }
30488         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
30489         return nativeResponseValue;
30490 }
30491         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
30492 /* @internal */
30493 export function ChannelUpdateInfo_set_fees(this_ptr: bigint, val: bigint): void {
30494         if(!isWasmInitialized) {
30495                 throw new Error("initializeWasm() must be awaited first!");
30496         }
30497         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
30498         // debug statements here
30499 }
30500         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
30501 /* @internal */
30502 export function ChannelUpdateInfo_get_last_update_message(this_ptr: bigint): bigint {
30503         if(!isWasmInitialized) {
30504                 throw new Error("initializeWasm() must be awaited first!");
30505         }
30506         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
30507         return nativeResponseValue;
30508 }
30509         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
30510 /* @internal */
30511 export function ChannelUpdateInfo_set_last_update_message(this_ptr: bigint, val: bigint): void {
30512         if(!isWasmInitialized) {
30513                 throw new Error("initializeWasm() must be awaited first!");
30514         }
30515         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
30516         // debug statements here
30517 }
30518         // 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, uint64_t htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg);
30519 /* @internal */
30520 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: bigint, fees_arg: bigint, last_update_message_arg: bigint): bigint {
30521         if(!isWasmInitialized) {
30522                 throw new Error("initializeWasm() must be awaited first!");
30523         }
30524         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);
30525         return nativeResponseValue;
30526 }
30527         // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
30528 /* @internal */
30529 export function ChannelUpdateInfo_clone_ptr(arg: bigint): bigint {
30530         if(!isWasmInitialized) {
30531                 throw new Error("initializeWasm() must be awaited first!");
30532         }
30533         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
30534         return nativeResponseValue;
30535 }
30536         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
30537 /* @internal */
30538 export function ChannelUpdateInfo_clone(orig: bigint): bigint {
30539         if(!isWasmInitialized) {
30540                 throw new Error("initializeWasm() must be awaited first!");
30541         }
30542         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
30543         return nativeResponseValue;
30544 }
30545         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
30546 /* @internal */
30547 export function ChannelUpdateInfo_write(obj: bigint): number {
30548         if(!isWasmInitialized) {
30549                 throw new Error("initializeWasm() must be awaited first!");
30550         }
30551         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
30552         return nativeResponseValue;
30553 }
30554         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
30555 /* @internal */
30556 export function ChannelUpdateInfo_read(ser: number): bigint {
30557         if(!isWasmInitialized) {
30558                 throw new Error("initializeWasm() must be awaited first!");
30559         }
30560         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
30561         return nativeResponseValue;
30562 }
30563         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
30564 /* @internal */
30565 export function ChannelInfo_free(this_obj: bigint): void {
30566         if(!isWasmInitialized) {
30567                 throw new Error("initializeWasm() must be awaited first!");
30568         }
30569         const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
30570         // debug statements here
30571 }
30572         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30573 /* @internal */
30574 export function ChannelInfo_get_features(this_ptr: bigint): bigint {
30575         if(!isWasmInitialized) {
30576                 throw new Error("initializeWasm() must be awaited first!");
30577         }
30578         const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
30579         return nativeResponseValue;
30580 }
30581         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
30582 /* @internal */
30583 export function ChannelInfo_set_features(this_ptr: bigint, val: bigint): void {
30584         if(!isWasmInitialized) {
30585                 throw new Error("initializeWasm() must be awaited first!");
30586         }
30587         const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
30588         // debug statements here
30589 }
30590         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30591 /* @internal */
30592 export function ChannelInfo_get_node_one(this_ptr: bigint): bigint {
30593         if(!isWasmInitialized) {
30594                 throw new Error("initializeWasm() must be awaited first!");
30595         }
30596         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
30597         return nativeResponseValue;
30598 }
30599         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
30600 /* @internal */
30601 export function ChannelInfo_set_node_one(this_ptr: bigint, val: bigint): void {
30602         if(!isWasmInitialized) {
30603                 throw new Error("initializeWasm() must be awaited first!");
30604         }
30605         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
30606         // debug statements here
30607 }
30608         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30609 /* @internal */
30610 export function ChannelInfo_get_one_to_two(this_ptr: bigint): bigint {
30611         if(!isWasmInitialized) {
30612                 throw new Error("initializeWasm() must be awaited first!");
30613         }
30614         const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
30615         return nativeResponseValue;
30616 }
30617         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
30618 /* @internal */
30619 export function ChannelInfo_set_one_to_two(this_ptr: bigint, val: bigint): void {
30620         if(!isWasmInitialized) {
30621                 throw new Error("initializeWasm() must be awaited first!");
30622         }
30623         const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
30624         // debug statements here
30625 }
30626         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30627 /* @internal */
30628 export function ChannelInfo_get_node_two(this_ptr: bigint): bigint {
30629         if(!isWasmInitialized) {
30630                 throw new Error("initializeWasm() must be awaited first!");
30631         }
30632         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
30633         return nativeResponseValue;
30634 }
30635         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
30636 /* @internal */
30637 export function ChannelInfo_set_node_two(this_ptr: bigint, val: bigint): void {
30638         if(!isWasmInitialized) {
30639                 throw new Error("initializeWasm() must be awaited first!");
30640         }
30641         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
30642         // debug statements here
30643 }
30644         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30645 /* @internal */
30646 export function ChannelInfo_get_two_to_one(this_ptr: bigint): bigint {
30647         if(!isWasmInitialized) {
30648                 throw new Error("initializeWasm() must be awaited first!");
30649         }
30650         const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
30651         return nativeResponseValue;
30652 }
30653         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
30654 /* @internal */
30655 export function ChannelInfo_set_two_to_one(this_ptr: bigint, val: bigint): void {
30656         if(!isWasmInitialized) {
30657                 throw new Error("initializeWasm() must be awaited first!");
30658         }
30659         const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
30660         // debug statements here
30661 }
30662         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30663 /* @internal */
30664 export function ChannelInfo_get_capacity_sats(this_ptr: bigint): bigint {
30665         if(!isWasmInitialized) {
30666                 throw new Error("initializeWasm() must be awaited first!");
30667         }
30668         const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
30669         return nativeResponseValue;
30670 }
30671         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30672 /* @internal */
30673 export function ChannelInfo_set_capacity_sats(this_ptr: bigint, val: bigint): void {
30674         if(!isWasmInitialized) {
30675                 throw new Error("initializeWasm() must be awaited first!");
30676         }
30677         const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
30678         // debug statements here
30679 }
30680         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
30681 /* @internal */
30682 export function ChannelInfo_get_announcement_message(this_ptr: bigint): bigint {
30683         if(!isWasmInitialized) {
30684                 throw new Error("initializeWasm() must be awaited first!");
30685         }
30686         const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
30687         return nativeResponseValue;
30688 }
30689         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
30690 /* @internal */
30691 export function ChannelInfo_set_announcement_message(this_ptr: bigint, val: bigint): void {
30692         if(!isWasmInitialized) {
30693                 throw new Error("initializeWasm() must be awaited first!");
30694         }
30695         const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
30696         // debug statements here
30697 }
30698         // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
30699 /* @internal */
30700 export function ChannelInfo_clone_ptr(arg: bigint): bigint {
30701         if(!isWasmInitialized) {
30702                 throw new Error("initializeWasm() must be awaited first!");
30703         }
30704         const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
30705         return nativeResponseValue;
30706 }
30707         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
30708 /* @internal */
30709 export function ChannelInfo_clone(orig: bigint): bigint {
30710         if(!isWasmInitialized) {
30711                 throw new Error("initializeWasm() must be awaited first!");
30712         }
30713         const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
30714         return nativeResponseValue;
30715 }
30716         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
30717 /* @internal */
30718 export function ChannelInfo_get_directional_info(this_arg: bigint, channel_flags: number): bigint {
30719         if(!isWasmInitialized) {
30720                 throw new Error("initializeWasm() must be awaited first!");
30721         }
30722         const nativeResponseValue = wasm.TS_ChannelInfo_get_directional_info(this_arg, channel_flags);
30723         return nativeResponseValue;
30724 }
30725         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
30726 /* @internal */
30727 export function ChannelInfo_write(obj: bigint): number {
30728         if(!isWasmInitialized) {
30729                 throw new Error("initializeWasm() must be awaited first!");
30730         }
30731         const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
30732         return nativeResponseValue;
30733 }
30734         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
30735 /* @internal */
30736 export function ChannelInfo_read(ser: number): bigint {
30737         if(!isWasmInitialized) {
30738                 throw new Error("initializeWasm() must be awaited first!");
30739         }
30740         const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
30741         return nativeResponseValue;
30742 }
30743         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
30744 /* @internal */
30745 export function DirectedChannelInfo_free(this_obj: bigint): void {
30746         if(!isWasmInitialized) {
30747                 throw new Error("initializeWasm() must be awaited first!");
30748         }
30749         const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
30750         // debug statements here
30751 }
30752         // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
30753 /* @internal */
30754 export function DirectedChannelInfo_clone_ptr(arg: bigint): bigint {
30755         if(!isWasmInitialized) {
30756                 throw new Error("initializeWasm() must be awaited first!");
30757         }
30758         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
30759         return nativeResponseValue;
30760 }
30761         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
30762 /* @internal */
30763 export function DirectedChannelInfo_clone(orig: bigint): bigint {
30764         if(!isWasmInitialized) {
30765                 throw new Error("initializeWasm() must be awaited first!");
30766         }
30767         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
30768         return nativeResponseValue;
30769 }
30770         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
30771 /* @internal */
30772 export function DirectedChannelInfo_channel(this_arg: bigint): bigint {
30773         if(!isWasmInitialized) {
30774                 throw new Error("initializeWasm() must be awaited first!");
30775         }
30776         const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
30777         return nativeResponseValue;
30778 }
30779         // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
30780 /* @internal */
30781 export function DirectedChannelInfo_direction(this_arg: bigint): bigint {
30782         if(!isWasmInitialized) {
30783                 throw new Error("initializeWasm() must be awaited first!");
30784         }
30785         const nativeResponseValue = wasm.TS_DirectedChannelInfo_direction(this_arg);
30786         return nativeResponseValue;
30787 }
30788         // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
30789 /* @internal */
30790 export function DirectedChannelInfo_htlc_maximum_msat(this_arg: bigint): bigint {
30791         if(!isWasmInitialized) {
30792                 throw new Error("initializeWasm() must be awaited first!");
30793         }
30794         const nativeResponseValue = wasm.TS_DirectedChannelInfo_htlc_maximum_msat(this_arg);
30795         return nativeResponseValue;
30796 }
30797         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
30798 /* @internal */
30799 export function DirectedChannelInfo_effective_capacity(this_arg: bigint): bigint {
30800         if(!isWasmInitialized) {
30801                 throw new Error("initializeWasm() must be awaited first!");
30802         }
30803         const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
30804         return nativeResponseValue;
30805 }
30806         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
30807 /* @internal */
30808 export function EffectiveCapacity_free(this_ptr: bigint): void {
30809         if(!isWasmInitialized) {
30810                 throw new Error("initializeWasm() must be awaited first!");
30811         }
30812         const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
30813         // debug statements here
30814 }
30815         // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
30816 /* @internal */
30817 export function EffectiveCapacity_clone_ptr(arg: bigint): bigint {
30818         if(!isWasmInitialized) {
30819                 throw new Error("initializeWasm() must be awaited first!");
30820         }
30821         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
30822         return nativeResponseValue;
30823 }
30824         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
30825 /* @internal */
30826 export function EffectiveCapacity_clone(orig: bigint): bigint {
30827         if(!isWasmInitialized) {
30828                 throw new Error("initializeWasm() must be awaited first!");
30829         }
30830         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
30831         return nativeResponseValue;
30832 }
30833         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
30834 /* @internal */
30835 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): bigint {
30836         if(!isWasmInitialized) {
30837                 throw new Error("initializeWasm() must be awaited first!");
30838         }
30839         const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
30840         return nativeResponseValue;
30841 }
30842         // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
30843 /* @internal */
30844 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): bigint {
30845         if(!isWasmInitialized) {
30846                 throw new Error("initializeWasm() must be awaited first!");
30847         }
30848         const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
30849         return nativeResponseValue;
30850 }
30851         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, struct LDKCOption_u64Z htlc_maximum_msat);
30852 /* @internal */
30853 export function EffectiveCapacity_total(capacity_msat: bigint, htlc_maximum_msat: bigint): bigint {
30854         if(!isWasmInitialized) {
30855                 throw new Error("initializeWasm() must be awaited first!");
30856         }
30857         const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat, htlc_maximum_msat);
30858         return nativeResponseValue;
30859 }
30860         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
30861 /* @internal */
30862 export function EffectiveCapacity_infinite(): bigint {
30863         if(!isWasmInitialized) {
30864                 throw new Error("initializeWasm() must be awaited first!");
30865         }
30866         const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
30867         return nativeResponseValue;
30868 }
30869         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
30870 /* @internal */
30871 export function EffectiveCapacity_unknown(): bigint {
30872         if(!isWasmInitialized) {
30873                 throw new Error("initializeWasm() must be awaited first!");
30874         }
30875         const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
30876         return nativeResponseValue;
30877 }
30878         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
30879 /* @internal */
30880 export function EffectiveCapacity_as_msat(this_arg: bigint): bigint {
30881         if(!isWasmInitialized) {
30882                 throw new Error("initializeWasm() must be awaited first!");
30883         }
30884         const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
30885         return nativeResponseValue;
30886 }
30887         // void RoutingFees_free(struct LDKRoutingFees this_obj);
30888 /* @internal */
30889 export function RoutingFees_free(this_obj: bigint): void {
30890         if(!isWasmInitialized) {
30891                 throw new Error("initializeWasm() must be awaited first!");
30892         }
30893         const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
30894         // debug statements here
30895 }
30896         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
30897 /* @internal */
30898 export function RoutingFees_get_base_msat(this_ptr: bigint): number {
30899         if(!isWasmInitialized) {
30900                 throw new Error("initializeWasm() must be awaited first!");
30901         }
30902         const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
30903         return nativeResponseValue;
30904 }
30905         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
30906 /* @internal */
30907 export function RoutingFees_set_base_msat(this_ptr: bigint, val: number): void {
30908         if(!isWasmInitialized) {
30909                 throw new Error("initializeWasm() must be awaited first!");
30910         }
30911         const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
30912         // debug statements here
30913 }
30914         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
30915 /* @internal */
30916 export function RoutingFees_get_proportional_millionths(this_ptr: bigint): number {
30917         if(!isWasmInitialized) {
30918                 throw new Error("initializeWasm() must be awaited first!");
30919         }
30920         const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
30921         return nativeResponseValue;
30922 }
30923         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
30924 /* @internal */
30925 export function RoutingFees_set_proportional_millionths(this_ptr: bigint, val: number): void {
30926         if(!isWasmInitialized) {
30927                 throw new Error("initializeWasm() must be awaited first!");
30928         }
30929         const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
30930         // debug statements here
30931 }
30932         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
30933 /* @internal */
30934 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): bigint {
30935         if(!isWasmInitialized) {
30936                 throw new Error("initializeWasm() must be awaited first!");
30937         }
30938         const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
30939         return nativeResponseValue;
30940 }
30941         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
30942 /* @internal */
30943 export function RoutingFees_eq(a: bigint, b: bigint): boolean {
30944         if(!isWasmInitialized) {
30945                 throw new Error("initializeWasm() must be awaited first!");
30946         }
30947         const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
30948         return nativeResponseValue;
30949 }
30950         // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
30951 /* @internal */
30952 export function RoutingFees_clone_ptr(arg: bigint): bigint {
30953         if(!isWasmInitialized) {
30954                 throw new Error("initializeWasm() must be awaited first!");
30955         }
30956         const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
30957         return nativeResponseValue;
30958 }
30959         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
30960 /* @internal */
30961 export function RoutingFees_clone(orig: bigint): bigint {
30962         if(!isWasmInitialized) {
30963                 throw new Error("initializeWasm() must be awaited first!");
30964         }
30965         const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
30966         return nativeResponseValue;
30967 }
30968         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
30969 /* @internal */
30970 export function RoutingFees_hash(o: bigint): bigint {
30971         if(!isWasmInitialized) {
30972                 throw new Error("initializeWasm() must be awaited first!");
30973         }
30974         const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
30975         return nativeResponseValue;
30976 }
30977         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
30978 /* @internal */
30979 export function RoutingFees_write(obj: bigint): number {
30980         if(!isWasmInitialized) {
30981                 throw new Error("initializeWasm() must be awaited first!");
30982         }
30983         const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
30984         return nativeResponseValue;
30985 }
30986         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
30987 /* @internal */
30988 export function RoutingFees_read(ser: number): bigint {
30989         if(!isWasmInitialized) {
30990                 throw new Error("initializeWasm() must be awaited first!");
30991         }
30992         const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
30993         return nativeResponseValue;
30994 }
30995         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
30996 /* @internal */
30997 export function NodeAnnouncementInfo_free(this_obj: bigint): void {
30998         if(!isWasmInitialized) {
30999                 throw new Error("initializeWasm() must be awaited first!");
31000         }
31001         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
31002         // debug statements here
31003 }
31004         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
31005 /* @internal */
31006 export function NodeAnnouncementInfo_get_features(this_ptr: bigint): bigint {
31007         if(!isWasmInitialized) {
31008                 throw new Error("initializeWasm() must be awaited first!");
31009         }
31010         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
31011         return nativeResponseValue;
31012 }
31013         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
31014 /* @internal */
31015 export function NodeAnnouncementInfo_set_features(this_ptr: bigint, val: bigint): void {
31016         if(!isWasmInitialized) {
31017                 throw new Error("initializeWasm() must be awaited first!");
31018         }
31019         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
31020         // debug statements here
31021 }
31022         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
31023 /* @internal */
31024 export function NodeAnnouncementInfo_get_last_update(this_ptr: bigint): number {
31025         if(!isWasmInitialized) {
31026                 throw new Error("initializeWasm() must be awaited first!");
31027         }
31028         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
31029         return nativeResponseValue;
31030 }
31031         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
31032 /* @internal */
31033 export function NodeAnnouncementInfo_set_last_update(this_ptr: bigint, val: number): void {
31034         if(!isWasmInitialized) {
31035                 throw new Error("initializeWasm() must be awaited first!");
31036         }
31037         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
31038         // debug statements here
31039 }
31040         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
31041 /* @internal */
31042 export function NodeAnnouncementInfo_get_rgb(this_ptr: bigint): number {
31043         if(!isWasmInitialized) {
31044                 throw new Error("initializeWasm() must be awaited first!");
31045         }
31046         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
31047         return nativeResponseValue;
31048 }
31049         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
31050 /* @internal */
31051 export function NodeAnnouncementInfo_set_rgb(this_ptr: bigint, val: number): void {
31052         if(!isWasmInitialized) {
31053                 throw new Error("initializeWasm() must be awaited first!");
31054         }
31055         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
31056         // debug statements here
31057 }
31058         // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
31059 /* @internal */
31060 export function NodeAnnouncementInfo_get_alias(this_ptr: bigint): bigint {
31061         if(!isWasmInitialized) {
31062                 throw new Error("initializeWasm() must be awaited first!");
31063         }
31064         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
31065         return nativeResponseValue;
31066 }
31067         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
31068 /* @internal */
31069 export function NodeAnnouncementInfo_set_alias(this_ptr: bigint, val: bigint): void {
31070         if(!isWasmInitialized) {
31071                 throw new Error("initializeWasm() must be awaited first!");
31072         }
31073         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
31074         // debug statements here
31075 }
31076         // struct LDKCVec_NetAddressZ NodeAnnouncementInfo_get_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
31077 /* @internal */
31078 export function NodeAnnouncementInfo_get_addresses(this_ptr: bigint): number {
31079         if(!isWasmInitialized) {
31080                 throw new Error("initializeWasm() must be awaited first!");
31081         }
31082         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_addresses(this_ptr);
31083         return nativeResponseValue;
31084 }
31085         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
31086 /* @internal */
31087 export function NodeAnnouncementInfo_set_addresses(this_ptr: bigint, val: number): void {
31088         if(!isWasmInitialized) {
31089                 throw new Error("initializeWasm() must be awaited first!");
31090         }
31091         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_addresses(this_ptr, val);
31092         // debug statements here
31093 }
31094         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
31095 /* @internal */
31096 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: bigint): bigint {
31097         if(!isWasmInitialized) {
31098                 throw new Error("initializeWasm() must be awaited first!");
31099         }
31100         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
31101         return nativeResponseValue;
31102 }
31103         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
31104 /* @internal */
31105 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: bigint, val: bigint): void {
31106         if(!isWasmInitialized) {
31107                 throw new Error("initializeWasm() must be awaited first!");
31108         }
31109         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
31110         // debug statements here
31111 }
31112         // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
31113 /* @internal */
31114 export function NodeAnnouncementInfo_new(features_arg: bigint, last_update_arg: number, rgb_arg: number, alias_arg: bigint, addresses_arg: number, announcement_message_arg: bigint): bigint {
31115         if(!isWasmInitialized) {
31116                 throw new Error("initializeWasm() must be awaited first!");
31117         }
31118         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, addresses_arg, announcement_message_arg);
31119         return nativeResponseValue;
31120 }
31121         // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
31122 /* @internal */
31123 export function NodeAnnouncementInfo_clone_ptr(arg: bigint): bigint {
31124         if(!isWasmInitialized) {
31125                 throw new Error("initializeWasm() must be awaited first!");
31126         }
31127         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
31128         return nativeResponseValue;
31129 }
31130         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
31131 /* @internal */
31132 export function NodeAnnouncementInfo_clone(orig: bigint): bigint {
31133         if(!isWasmInitialized) {
31134                 throw new Error("initializeWasm() must be awaited first!");
31135         }
31136         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
31137         return nativeResponseValue;
31138 }
31139         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
31140 /* @internal */
31141 export function NodeAnnouncementInfo_write(obj: bigint): number {
31142         if(!isWasmInitialized) {
31143                 throw new Error("initializeWasm() must be awaited first!");
31144         }
31145         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
31146         return nativeResponseValue;
31147 }
31148         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
31149 /* @internal */
31150 export function NodeAnnouncementInfo_read(ser: number): bigint {
31151         if(!isWasmInitialized) {
31152                 throw new Error("initializeWasm() must be awaited first!");
31153         }
31154         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
31155         return nativeResponseValue;
31156 }
31157         // void NodeAlias_free(struct LDKNodeAlias this_obj);
31158 /* @internal */
31159 export function NodeAlias_free(this_obj: bigint): void {
31160         if(!isWasmInitialized) {
31161                 throw new Error("initializeWasm() must be awaited first!");
31162         }
31163         const nativeResponseValue = wasm.TS_NodeAlias_free(this_obj);
31164         // debug statements here
31165 }
31166         // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
31167 /* @internal */
31168 export function NodeAlias_get_a(this_ptr: bigint): number {
31169         if(!isWasmInitialized) {
31170                 throw new Error("initializeWasm() must be awaited first!");
31171         }
31172         const nativeResponseValue = wasm.TS_NodeAlias_get_a(this_ptr);
31173         return nativeResponseValue;
31174 }
31175         // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
31176 /* @internal */
31177 export function NodeAlias_set_a(this_ptr: bigint, val: number): void {
31178         if(!isWasmInitialized) {
31179                 throw new Error("initializeWasm() must be awaited first!");
31180         }
31181         const nativeResponseValue = wasm.TS_NodeAlias_set_a(this_ptr, val);
31182         // debug statements here
31183 }
31184         // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
31185 /* @internal */
31186 export function NodeAlias_new(a_arg: number): bigint {
31187         if(!isWasmInitialized) {
31188                 throw new Error("initializeWasm() must be awaited first!");
31189         }
31190         const nativeResponseValue = wasm.TS_NodeAlias_new(a_arg);
31191         return nativeResponseValue;
31192 }
31193         // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
31194 /* @internal */
31195 export function NodeAlias_clone_ptr(arg: bigint): bigint {
31196         if(!isWasmInitialized) {
31197                 throw new Error("initializeWasm() must be awaited first!");
31198         }
31199         const nativeResponseValue = wasm.TS_NodeAlias_clone_ptr(arg);
31200         return nativeResponseValue;
31201 }
31202         // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
31203 /* @internal */
31204 export function NodeAlias_clone(orig: bigint): bigint {
31205         if(!isWasmInitialized) {
31206                 throw new Error("initializeWasm() must be awaited first!");
31207         }
31208         const nativeResponseValue = wasm.TS_NodeAlias_clone(orig);
31209         return nativeResponseValue;
31210 }
31211         // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
31212 /* @internal */
31213 export function NodeAlias_write(obj: bigint): number {
31214         if(!isWasmInitialized) {
31215                 throw new Error("initializeWasm() must be awaited first!");
31216         }
31217         const nativeResponseValue = wasm.TS_NodeAlias_write(obj);
31218         return nativeResponseValue;
31219 }
31220         // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
31221 /* @internal */
31222 export function NodeAlias_read(ser: number): bigint {
31223         if(!isWasmInitialized) {
31224                 throw new Error("initializeWasm() must be awaited first!");
31225         }
31226         const nativeResponseValue = wasm.TS_NodeAlias_read(ser);
31227         return nativeResponseValue;
31228 }
31229         // void NodeInfo_free(struct LDKNodeInfo this_obj);
31230 /* @internal */
31231 export function NodeInfo_free(this_obj: bigint): void {
31232         if(!isWasmInitialized) {
31233                 throw new Error("initializeWasm() must be awaited first!");
31234         }
31235         const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
31236         // debug statements here
31237 }
31238         // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
31239 /* @internal */
31240 export function NodeInfo_get_channels(this_ptr: bigint): number {
31241         if(!isWasmInitialized) {
31242                 throw new Error("initializeWasm() must be awaited first!");
31243         }
31244         const nativeResponseValue = wasm.TS_NodeInfo_get_channels(this_ptr);
31245         return nativeResponseValue;
31246 }
31247         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
31248 /* @internal */
31249 export function NodeInfo_set_channels(this_ptr: bigint, val: number): void {
31250         if(!isWasmInitialized) {
31251                 throw new Error("initializeWasm() must be awaited first!");
31252         }
31253         const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
31254         // debug statements here
31255 }
31256         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
31257 /* @internal */
31258 export function NodeInfo_get_lowest_inbound_channel_fees(this_ptr: bigint): bigint {
31259         if(!isWasmInitialized) {
31260                 throw new Error("initializeWasm() must be awaited first!");
31261         }
31262         const nativeResponseValue = wasm.TS_NodeInfo_get_lowest_inbound_channel_fees(this_ptr);
31263         return nativeResponseValue;
31264 }
31265         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
31266 /* @internal */
31267 export function NodeInfo_set_lowest_inbound_channel_fees(this_ptr: bigint, val: bigint): void {
31268         if(!isWasmInitialized) {
31269                 throw new Error("initializeWasm() must be awaited first!");
31270         }
31271         const nativeResponseValue = wasm.TS_NodeInfo_set_lowest_inbound_channel_fees(this_ptr, val);
31272         // debug statements here
31273 }
31274         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
31275 /* @internal */
31276 export function NodeInfo_get_announcement_info(this_ptr: bigint): bigint {
31277         if(!isWasmInitialized) {
31278                 throw new Error("initializeWasm() must be awaited first!");
31279         }
31280         const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
31281         return nativeResponseValue;
31282 }
31283         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
31284 /* @internal */
31285 export function NodeInfo_set_announcement_info(this_ptr: bigint, val: bigint): void {
31286         if(!isWasmInitialized) {
31287                 throw new Error("initializeWasm() must be awaited first!");
31288         }
31289         const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
31290         // debug statements here
31291 }
31292         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
31293 /* @internal */
31294 export function NodeInfo_new(channels_arg: number, lowest_inbound_channel_fees_arg: bigint, announcement_info_arg: bigint): bigint {
31295         if(!isWasmInitialized) {
31296                 throw new Error("initializeWasm() must be awaited first!");
31297         }
31298         const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg, announcement_info_arg);
31299         return nativeResponseValue;
31300 }
31301         // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
31302 /* @internal */
31303 export function NodeInfo_clone_ptr(arg: bigint): bigint {
31304         if(!isWasmInitialized) {
31305                 throw new Error("initializeWasm() must be awaited first!");
31306         }
31307         const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
31308         return nativeResponseValue;
31309 }
31310         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
31311 /* @internal */
31312 export function NodeInfo_clone(orig: bigint): bigint {
31313         if(!isWasmInitialized) {
31314                 throw new Error("initializeWasm() must be awaited first!");
31315         }
31316         const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
31317         return nativeResponseValue;
31318 }
31319         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
31320 /* @internal */
31321 export function NodeInfo_write(obj: bigint): number {
31322         if(!isWasmInitialized) {
31323                 throw new Error("initializeWasm() must be awaited first!");
31324         }
31325         const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
31326         return nativeResponseValue;
31327 }
31328         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
31329 /* @internal */
31330 export function NodeInfo_read(ser: number): bigint {
31331         if(!isWasmInitialized) {
31332                 throw new Error("initializeWasm() must be awaited first!");
31333         }
31334         const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
31335         return nativeResponseValue;
31336 }
31337         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
31338 /* @internal */
31339 export function NetworkGraph_write(obj: bigint): number {
31340         if(!isWasmInitialized) {
31341                 throw new Error("initializeWasm() must be awaited first!");
31342         }
31343         const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
31344         return nativeResponseValue;
31345 }
31346         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
31347 /* @internal */
31348 export function NetworkGraph_read(ser: number, arg: bigint): bigint {
31349         if(!isWasmInitialized) {
31350                 throw new Error("initializeWasm() must be awaited first!");
31351         }
31352         const nativeResponseValue = wasm.TS_NetworkGraph_read(ser, arg);
31353         return nativeResponseValue;
31354 }
31355         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKLogger logger);
31356 /* @internal */
31357 export function NetworkGraph_new(genesis_hash: number, logger: bigint): bigint {
31358         if(!isWasmInitialized) {
31359                 throw new Error("initializeWasm() must be awaited first!");
31360         }
31361         const nativeResponseValue = wasm.TS_NetworkGraph_new(genesis_hash, logger);
31362         return nativeResponseValue;
31363 }
31364         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
31365 /* @internal */
31366 export function NetworkGraph_read_only(this_arg: bigint): bigint {
31367         if(!isWasmInitialized) {
31368                 throw new Error("initializeWasm() must be awaited first!");
31369         }
31370         const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
31371         return nativeResponseValue;
31372 }
31373         // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
31374 /* @internal */
31375 export function NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg: bigint): bigint {
31376         if(!isWasmInitialized) {
31377                 throw new Error("initializeWasm() must be awaited first!");
31378         }
31379         const nativeResponseValue = wasm.TS_NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg);
31380         return nativeResponseValue;
31381 }
31382         // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
31383 /* @internal */
31384 export function NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg: bigint, last_rapid_gossip_sync_timestamp: number): void {
31385         if(!isWasmInitialized) {
31386                 throw new Error("initializeWasm() must be awaited first!");
31387         }
31388         const nativeResponseValue = wasm.TS_NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg, last_rapid_gossip_sync_timestamp);
31389         // debug statements here
31390 }
31391         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
31392 /* @internal */
31393 export function NetworkGraph_update_node_from_announcement(this_arg: bigint, msg: bigint): bigint {
31394         if(!isWasmInitialized) {
31395                 throw new Error("initializeWasm() must be awaited first!");
31396         }
31397         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
31398         return nativeResponseValue;
31399 }
31400         // 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);
31401 /* @internal */
31402 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: bigint, msg: bigint): bigint {
31403         if(!isWasmInitialized) {
31404                 throw new Error("initializeWasm() must be awaited first!");
31405         }
31406         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
31407         return nativeResponseValue;
31408 }
31409         // 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);
31410 /* @internal */
31411 export function NetworkGraph_update_channel_from_announcement(this_arg: bigint, msg: bigint, chain_access: bigint): bigint {
31412         if(!isWasmInitialized) {
31413                 throw new Error("initializeWasm() must be awaited first!");
31414         }
31415         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, chain_access);
31416         return nativeResponseValue;
31417 }
31418         // 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);
31419 /* @internal */
31420 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: bigint, msg: bigint, chain_access: bigint): bigint {
31421         if(!isWasmInitialized) {
31422                 throw new Error("initializeWasm() must be awaited first!");
31423         }
31424         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, chain_access);
31425         return nativeResponseValue;
31426 }
31427         // 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);
31428 /* @internal */
31429 export function NetworkGraph_add_channel_from_partial_announcement(this_arg: bigint, short_channel_id: bigint, timestamp: bigint, features: bigint, node_id_1: number, node_id_2: number): bigint {
31430         if(!isWasmInitialized) {
31431                 throw new Error("initializeWasm() must be awaited first!");
31432         }
31433         const nativeResponseValue = wasm.TS_NetworkGraph_add_channel_from_partial_announcement(this_arg, short_channel_id, timestamp, features, node_id_1, node_id_2);
31434         return nativeResponseValue;
31435 }
31436         // void NetworkGraph_channel_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
31437 /* @internal */
31438 export function NetworkGraph_channel_failed(this_arg: bigint, short_channel_id: bigint, is_permanent: boolean): void {
31439         if(!isWasmInitialized) {
31440                 throw new Error("initializeWasm() must be awaited first!");
31441         }
31442         const nativeResponseValue = wasm.TS_NetworkGraph_channel_failed(this_arg, short_channel_id, is_permanent);
31443         // debug statements here
31444 }
31445         // void NetworkGraph_node_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
31446 /* @internal */
31447 export function NetworkGraph_node_failed(this_arg: bigint, _node_id: number, is_permanent: boolean): void {
31448         if(!isWasmInitialized) {
31449                 throw new Error("initializeWasm() must be awaited first!");
31450         }
31451         const nativeResponseValue = wasm.TS_NetworkGraph_node_failed(this_arg, _node_id, is_permanent);
31452         // debug statements here
31453 }
31454         // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
31455 /* @internal */
31456 export function NetworkGraph_remove_stale_channels_with_time(this_arg: bigint, current_time_unix: bigint): void {
31457         if(!isWasmInitialized) {
31458                 throw new Error("initializeWasm() must be awaited first!");
31459         }
31460         const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_with_time(this_arg, current_time_unix);
31461         // debug statements here
31462 }
31463         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
31464 /* @internal */
31465 export function NetworkGraph_update_channel(this_arg: bigint, msg: bigint): bigint {
31466         if(!isWasmInitialized) {
31467                 throw new Error("initializeWasm() must be awaited first!");
31468         }
31469         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
31470         return nativeResponseValue;
31471 }
31472         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
31473 /* @internal */
31474 export function NetworkGraph_update_channel_unsigned(this_arg: bigint, msg: bigint): bigint {
31475         if(!isWasmInitialized) {
31476                 throw new Error("initializeWasm() must be awaited first!");
31477         }
31478         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
31479         return nativeResponseValue;
31480 }
31481         // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
31482 /* @internal */
31483 export function ReadOnlyNetworkGraph_channel(this_arg: bigint, short_channel_id: bigint): bigint {
31484         if(!isWasmInitialized) {
31485                 throw new Error("initializeWasm() must be awaited first!");
31486         }
31487         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_channel(this_arg, short_channel_id);
31488         return nativeResponseValue;
31489 }
31490         // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
31491 /* @internal */
31492 export function ReadOnlyNetworkGraph_list_channels(this_arg: bigint): number {
31493         if(!isWasmInitialized) {
31494                 throw new Error("initializeWasm() must be awaited first!");
31495         }
31496         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_list_channels(this_arg);
31497         return nativeResponseValue;
31498 }
31499         // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
31500 /* @internal */
31501 export function ReadOnlyNetworkGraph_node(this_arg: bigint, node_id: bigint): bigint {
31502         if(!isWasmInitialized) {
31503                 throw new Error("initializeWasm() must be awaited first!");
31504         }
31505         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_node(this_arg, node_id);
31506         return nativeResponseValue;
31507 }
31508         // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
31509 /* @internal */
31510 export function ReadOnlyNetworkGraph_list_nodes(this_arg: bigint): number {
31511         if(!isWasmInitialized) {
31512                 throw new Error("initializeWasm() must be awaited first!");
31513         }
31514         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_list_nodes(this_arg);
31515         return nativeResponseValue;
31516 }
31517         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
31518 /* @internal */
31519 export function ReadOnlyNetworkGraph_get_addresses(this_arg: bigint, pubkey: number): bigint {
31520         if(!isWasmInitialized) {
31521                 throw new Error("initializeWasm() must be awaited first!");
31522         }
31523         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
31524         return nativeResponseValue;
31525 }
31526         // void RouteHop_free(struct LDKRouteHop this_obj);
31527 /* @internal */
31528 export function RouteHop_free(this_obj: bigint): void {
31529         if(!isWasmInitialized) {
31530                 throw new Error("initializeWasm() must be awaited first!");
31531         }
31532         const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
31533         // debug statements here
31534 }
31535         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
31536 /* @internal */
31537 export function RouteHop_get_pubkey(this_ptr: bigint): number {
31538         if(!isWasmInitialized) {
31539                 throw new Error("initializeWasm() must be awaited first!");
31540         }
31541         const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
31542         return nativeResponseValue;
31543 }
31544         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
31545 /* @internal */
31546 export function RouteHop_set_pubkey(this_ptr: bigint, val: number): void {
31547         if(!isWasmInitialized) {
31548                 throw new Error("initializeWasm() must be awaited first!");
31549         }
31550         const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
31551         // debug statements here
31552 }
31553         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
31554 /* @internal */
31555 export function RouteHop_get_node_features(this_ptr: bigint): bigint {
31556         if(!isWasmInitialized) {
31557                 throw new Error("initializeWasm() must be awaited first!");
31558         }
31559         const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
31560         return nativeResponseValue;
31561 }
31562         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
31563 /* @internal */
31564 export function RouteHop_set_node_features(this_ptr: bigint, val: bigint): void {
31565         if(!isWasmInitialized) {
31566                 throw new Error("initializeWasm() must be awaited first!");
31567         }
31568         const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
31569         // debug statements here
31570 }
31571         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
31572 /* @internal */
31573 export function RouteHop_get_short_channel_id(this_ptr: bigint): bigint {
31574         if(!isWasmInitialized) {
31575                 throw new Error("initializeWasm() must be awaited first!");
31576         }
31577         const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
31578         return nativeResponseValue;
31579 }
31580         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
31581 /* @internal */
31582 export function RouteHop_set_short_channel_id(this_ptr: bigint, val: bigint): void {
31583         if(!isWasmInitialized) {
31584                 throw new Error("initializeWasm() must be awaited first!");
31585         }
31586         const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
31587         // debug statements here
31588 }
31589         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
31590 /* @internal */
31591 export function RouteHop_get_channel_features(this_ptr: bigint): bigint {
31592         if(!isWasmInitialized) {
31593                 throw new Error("initializeWasm() must be awaited first!");
31594         }
31595         const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
31596         return nativeResponseValue;
31597 }
31598         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
31599 /* @internal */
31600 export function RouteHop_set_channel_features(this_ptr: bigint, val: bigint): void {
31601         if(!isWasmInitialized) {
31602                 throw new Error("initializeWasm() must be awaited first!");
31603         }
31604         const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
31605         // debug statements here
31606 }
31607         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
31608 /* @internal */
31609 export function RouteHop_get_fee_msat(this_ptr: bigint): bigint {
31610         if(!isWasmInitialized) {
31611                 throw new Error("initializeWasm() must be awaited first!");
31612         }
31613         const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
31614         return nativeResponseValue;
31615 }
31616         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
31617 /* @internal */
31618 export function RouteHop_set_fee_msat(this_ptr: bigint, val: bigint): void {
31619         if(!isWasmInitialized) {
31620                 throw new Error("initializeWasm() must be awaited first!");
31621         }
31622         const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
31623         // debug statements here
31624 }
31625         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
31626 /* @internal */
31627 export function RouteHop_get_cltv_expiry_delta(this_ptr: bigint): number {
31628         if(!isWasmInitialized) {
31629                 throw new Error("initializeWasm() must be awaited first!");
31630         }
31631         const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
31632         return nativeResponseValue;
31633 }
31634         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
31635 /* @internal */
31636 export function RouteHop_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
31637         if(!isWasmInitialized) {
31638                 throw new Error("initializeWasm() must be awaited first!");
31639         }
31640         const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
31641         // debug statements here
31642 }
31643         // 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);
31644 /* @internal */
31645 export function RouteHop_new(pubkey_arg: number, node_features_arg: bigint, short_channel_id_arg: bigint, channel_features_arg: bigint, fee_msat_arg: bigint, cltv_expiry_delta_arg: number): bigint {
31646         if(!isWasmInitialized) {
31647                 throw new Error("initializeWasm() must be awaited first!");
31648         }
31649         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);
31650         return nativeResponseValue;
31651 }
31652         // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
31653 /* @internal */
31654 export function RouteHop_clone_ptr(arg: bigint): bigint {
31655         if(!isWasmInitialized) {
31656                 throw new Error("initializeWasm() must be awaited first!");
31657         }
31658         const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
31659         return nativeResponseValue;
31660 }
31661         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
31662 /* @internal */
31663 export function RouteHop_clone(orig: bigint): bigint {
31664         if(!isWasmInitialized) {
31665                 throw new Error("initializeWasm() must be awaited first!");
31666         }
31667         const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
31668         return nativeResponseValue;
31669 }
31670         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
31671 /* @internal */
31672 export function RouteHop_hash(o: bigint): bigint {
31673         if(!isWasmInitialized) {
31674                 throw new Error("initializeWasm() must be awaited first!");
31675         }
31676         const nativeResponseValue = wasm.TS_RouteHop_hash(o);
31677         return nativeResponseValue;
31678 }
31679         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
31680 /* @internal */
31681 export function RouteHop_eq(a: bigint, b: bigint): boolean {
31682         if(!isWasmInitialized) {
31683                 throw new Error("initializeWasm() must be awaited first!");
31684         }
31685         const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
31686         return nativeResponseValue;
31687 }
31688         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
31689 /* @internal */
31690 export function RouteHop_write(obj: bigint): number {
31691         if(!isWasmInitialized) {
31692                 throw new Error("initializeWasm() must be awaited first!");
31693         }
31694         const nativeResponseValue = wasm.TS_RouteHop_write(obj);
31695         return nativeResponseValue;
31696 }
31697         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
31698 /* @internal */
31699 export function RouteHop_read(ser: number): bigint {
31700         if(!isWasmInitialized) {
31701                 throw new Error("initializeWasm() must be awaited first!");
31702         }
31703         const nativeResponseValue = wasm.TS_RouteHop_read(ser);
31704         return nativeResponseValue;
31705 }
31706         // void Route_free(struct LDKRoute this_obj);
31707 /* @internal */
31708 export function Route_free(this_obj: bigint): void {
31709         if(!isWasmInitialized) {
31710                 throw new Error("initializeWasm() must be awaited first!");
31711         }
31712         const nativeResponseValue = wasm.TS_Route_free(this_obj);
31713         // debug statements here
31714 }
31715         // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
31716 /* @internal */
31717 export function Route_get_paths(this_ptr: bigint): number {
31718         if(!isWasmInitialized) {
31719                 throw new Error("initializeWasm() must be awaited first!");
31720         }
31721         const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
31722         return nativeResponseValue;
31723 }
31724         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
31725 /* @internal */
31726 export function Route_set_paths(this_ptr: bigint, val: number): void {
31727         if(!isWasmInitialized) {
31728                 throw new Error("initializeWasm() must be awaited first!");
31729         }
31730         const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
31731         // debug statements here
31732 }
31733         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
31734 /* @internal */
31735 export function Route_get_payment_params(this_ptr: bigint): bigint {
31736         if(!isWasmInitialized) {
31737                 throw new Error("initializeWasm() must be awaited first!");
31738         }
31739         const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
31740         return nativeResponseValue;
31741 }
31742         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
31743 /* @internal */
31744 export function Route_set_payment_params(this_ptr: bigint, val: bigint): void {
31745         if(!isWasmInitialized) {
31746                 throw new Error("initializeWasm() must be awaited first!");
31747         }
31748         const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
31749         // debug statements here
31750 }
31751         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
31752 /* @internal */
31753 export function Route_new(paths_arg: number, payment_params_arg: bigint): bigint {
31754         if(!isWasmInitialized) {
31755                 throw new Error("initializeWasm() must be awaited first!");
31756         }
31757         const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
31758         return nativeResponseValue;
31759 }
31760         // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
31761 /* @internal */
31762 export function Route_clone_ptr(arg: bigint): bigint {
31763         if(!isWasmInitialized) {
31764                 throw new Error("initializeWasm() must be awaited first!");
31765         }
31766         const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
31767         return nativeResponseValue;
31768 }
31769         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
31770 /* @internal */
31771 export function Route_clone(orig: bigint): bigint {
31772         if(!isWasmInitialized) {
31773                 throw new Error("initializeWasm() must be awaited first!");
31774         }
31775         const nativeResponseValue = wasm.TS_Route_clone(orig);
31776         return nativeResponseValue;
31777 }
31778         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
31779 /* @internal */
31780 export function Route_hash(o: bigint): bigint {
31781         if(!isWasmInitialized) {
31782                 throw new Error("initializeWasm() must be awaited first!");
31783         }
31784         const nativeResponseValue = wasm.TS_Route_hash(o);
31785         return nativeResponseValue;
31786 }
31787         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
31788 /* @internal */
31789 export function Route_eq(a: bigint, b: bigint): boolean {
31790         if(!isWasmInitialized) {
31791                 throw new Error("initializeWasm() must be awaited first!");
31792         }
31793         const nativeResponseValue = wasm.TS_Route_eq(a, b);
31794         return nativeResponseValue;
31795 }
31796         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
31797 /* @internal */
31798 export function Route_get_total_fees(this_arg: bigint): bigint {
31799         if(!isWasmInitialized) {
31800                 throw new Error("initializeWasm() must be awaited first!");
31801         }
31802         const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
31803         return nativeResponseValue;
31804 }
31805         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
31806 /* @internal */
31807 export function Route_get_total_amount(this_arg: bigint): bigint {
31808         if(!isWasmInitialized) {
31809                 throw new Error("initializeWasm() must be awaited first!");
31810         }
31811         const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
31812         return nativeResponseValue;
31813 }
31814         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
31815 /* @internal */
31816 export function Route_write(obj: bigint): number {
31817         if(!isWasmInitialized) {
31818                 throw new Error("initializeWasm() must be awaited first!");
31819         }
31820         const nativeResponseValue = wasm.TS_Route_write(obj);
31821         return nativeResponseValue;
31822 }
31823         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
31824 /* @internal */
31825 export function Route_read(ser: number): bigint {
31826         if(!isWasmInitialized) {
31827                 throw new Error("initializeWasm() must be awaited first!");
31828         }
31829         const nativeResponseValue = wasm.TS_Route_read(ser);
31830         return nativeResponseValue;
31831 }
31832         // void RouteParameters_free(struct LDKRouteParameters this_obj);
31833 /* @internal */
31834 export function RouteParameters_free(this_obj: bigint): void {
31835         if(!isWasmInitialized) {
31836                 throw new Error("initializeWasm() must be awaited first!");
31837         }
31838         const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
31839         // debug statements here
31840 }
31841         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
31842 /* @internal */
31843 export function RouteParameters_get_payment_params(this_ptr: bigint): bigint {
31844         if(!isWasmInitialized) {
31845                 throw new Error("initializeWasm() must be awaited first!");
31846         }
31847         const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
31848         return nativeResponseValue;
31849 }
31850         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
31851 /* @internal */
31852 export function RouteParameters_set_payment_params(this_ptr: bigint, val: bigint): void {
31853         if(!isWasmInitialized) {
31854                 throw new Error("initializeWasm() must be awaited first!");
31855         }
31856         const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
31857         // debug statements here
31858 }
31859         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
31860 /* @internal */
31861 export function RouteParameters_get_final_value_msat(this_ptr: bigint): bigint {
31862         if(!isWasmInitialized) {
31863                 throw new Error("initializeWasm() must be awaited first!");
31864         }
31865         const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
31866         return nativeResponseValue;
31867 }
31868         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
31869 /* @internal */
31870 export function RouteParameters_set_final_value_msat(this_ptr: bigint, val: bigint): void {
31871         if(!isWasmInitialized) {
31872                 throw new Error("initializeWasm() must be awaited first!");
31873         }
31874         const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
31875         // debug statements here
31876 }
31877         // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
31878 /* @internal */
31879 export function RouteParameters_get_final_cltv_expiry_delta(this_ptr: bigint): number {
31880         if(!isWasmInitialized) {
31881                 throw new Error("initializeWasm() must be awaited first!");
31882         }
31883         const nativeResponseValue = wasm.TS_RouteParameters_get_final_cltv_expiry_delta(this_ptr);
31884         return nativeResponseValue;
31885 }
31886         // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
31887 /* @internal */
31888 export function RouteParameters_set_final_cltv_expiry_delta(this_ptr: bigint, val: number): void {
31889         if(!isWasmInitialized) {
31890                 throw new Error("initializeWasm() must be awaited first!");
31891         }
31892         const nativeResponseValue = wasm.TS_RouteParameters_set_final_cltv_expiry_delta(this_ptr, val);
31893         // debug statements here
31894 }
31895         // 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);
31896 /* @internal */
31897 export function RouteParameters_new(payment_params_arg: bigint, final_value_msat_arg: bigint, final_cltv_expiry_delta_arg: number): bigint {
31898         if(!isWasmInitialized) {
31899                 throw new Error("initializeWasm() must be awaited first!");
31900         }
31901         const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg, final_cltv_expiry_delta_arg);
31902         return nativeResponseValue;
31903 }
31904         // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
31905 /* @internal */
31906 export function RouteParameters_clone_ptr(arg: bigint): bigint {
31907         if(!isWasmInitialized) {
31908                 throw new Error("initializeWasm() must be awaited first!");
31909         }
31910         const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
31911         return nativeResponseValue;
31912 }
31913         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
31914 /* @internal */
31915 export function RouteParameters_clone(orig: bigint): bigint {
31916         if(!isWasmInitialized) {
31917                 throw new Error("initializeWasm() must be awaited first!");
31918         }
31919         const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
31920         return nativeResponseValue;
31921 }
31922         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
31923 /* @internal */
31924 export function RouteParameters_write(obj: bigint): number {
31925         if(!isWasmInitialized) {
31926                 throw new Error("initializeWasm() must be awaited first!");
31927         }
31928         const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
31929         return nativeResponseValue;
31930 }
31931         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
31932 /* @internal */
31933 export function RouteParameters_read(ser: number): bigint {
31934         if(!isWasmInitialized) {
31935                 throw new Error("initializeWasm() must be awaited first!");
31936         }
31937         const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
31938         return nativeResponseValue;
31939 }
31940         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
31941 /* @internal */
31942 export function PaymentParameters_free(this_obj: bigint): void {
31943         if(!isWasmInitialized) {
31944                 throw new Error("initializeWasm() must be awaited first!");
31945         }
31946         const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
31947         // debug statements here
31948 }
31949         // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
31950 /* @internal */
31951 export function PaymentParameters_get_payee_pubkey(this_ptr: bigint): number {
31952         if(!isWasmInitialized) {
31953                 throw new Error("initializeWasm() must be awaited first!");
31954         }
31955         const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
31956         return nativeResponseValue;
31957 }
31958         // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
31959 /* @internal */
31960 export function PaymentParameters_set_payee_pubkey(this_ptr: bigint, val: number): void {
31961         if(!isWasmInitialized) {
31962                 throw new Error("initializeWasm() must be awaited first!");
31963         }
31964         const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
31965         // debug statements here
31966 }
31967         // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
31968 /* @internal */
31969 export function PaymentParameters_get_features(this_ptr: bigint): bigint {
31970         if(!isWasmInitialized) {
31971                 throw new Error("initializeWasm() must be awaited first!");
31972         }
31973         const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
31974         return nativeResponseValue;
31975 }
31976         // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
31977 /* @internal */
31978 export function PaymentParameters_set_features(this_ptr: bigint, val: bigint): void {
31979         if(!isWasmInitialized) {
31980                 throw new Error("initializeWasm() must be awaited first!");
31981         }
31982         const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
31983         // debug statements here
31984 }
31985         // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
31986 /* @internal */
31987 export function PaymentParameters_get_route_hints(this_ptr: bigint): number {
31988         if(!isWasmInitialized) {
31989                 throw new Error("initializeWasm() must be awaited first!");
31990         }
31991         const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
31992         return nativeResponseValue;
31993 }
31994         // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
31995 /* @internal */
31996 export function PaymentParameters_set_route_hints(this_ptr: bigint, val: number): void {
31997         if(!isWasmInitialized) {
31998                 throw new Error("initializeWasm() must be awaited first!");
31999         }
32000         const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
32001         // debug statements here
32002 }
32003         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
32004 /* @internal */
32005 export function PaymentParameters_get_expiry_time(this_ptr: bigint): bigint {
32006         if(!isWasmInitialized) {
32007                 throw new Error("initializeWasm() must be awaited first!");
32008         }
32009         const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
32010         return nativeResponseValue;
32011 }
32012         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
32013 /* @internal */
32014 export function PaymentParameters_set_expiry_time(this_ptr: bigint, val: bigint): void {
32015         if(!isWasmInitialized) {
32016                 throw new Error("initializeWasm() must be awaited first!");
32017         }
32018         const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
32019         // debug statements here
32020 }
32021         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
32022 /* @internal */
32023 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: bigint): number {
32024         if(!isWasmInitialized) {
32025                 throw new Error("initializeWasm() must be awaited first!");
32026         }
32027         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
32028         return nativeResponseValue;
32029 }
32030         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
32031 /* @internal */
32032 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: bigint, val: number): void {
32033         if(!isWasmInitialized) {
32034                 throw new Error("initializeWasm() must be awaited first!");
32035         }
32036         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
32037         // debug statements here
32038 }
32039         // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
32040 /* @internal */
32041 export function PaymentParameters_get_max_path_count(this_ptr: bigint): number {
32042         if(!isWasmInitialized) {
32043                 throw new Error("initializeWasm() must be awaited first!");
32044         }
32045         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_path_count(this_ptr);
32046         return nativeResponseValue;
32047 }
32048         // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
32049 /* @internal */
32050 export function PaymentParameters_set_max_path_count(this_ptr: bigint, val: number): void {
32051         if(!isWasmInitialized) {
32052                 throw new Error("initializeWasm() must be awaited first!");
32053         }
32054         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_path_count(this_ptr, val);
32055         // debug statements here
32056 }
32057         // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
32058 /* @internal */
32059 export function PaymentParameters_get_max_channel_saturation_power_of_half(this_ptr: bigint): number {
32060         if(!isWasmInitialized) {
32061                 throw new Error("initializeWasm() must be awaited first!");
32062         }
32063         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_channel_saturation_power_of_half(this_ptr);
32064         return nativeResponseValue;
32065 }
32066         // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
32067 /* @internal */
32068 export function PaymentParameters_set_max_channel_saturation_power_of_half(this_ptr: bigint, val: number): void {
32069         if(!isWasmInitialized) {
32070                 throw new Error("initializeWasm() must be awaited first!");
32071         }
32072         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_channel_saturation_power_of_half(this_ptr, val);
32073         // debug statements here
32074 }
32075         // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
32076 /* @internal */
32077 export function PaymentParameters_get_previously_failed_channels(this_ptr: bigint): number {
32078         if(!isWasmInitialized) {
32079                 throw new Error("initializeWasm() must be awaited first!");
32080         }
32081         const nativeResponseValue = wasm.TS_PaymentParameters_get_previously_failed_channels(this_ptr);
32082         return nativeResponseValue;
32083 }
32084         // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
32085 /* @internal */
32086 export function PaymentParameters_set_previously_failed_channels(this_ptr: bigint, val: number): void {
32087         if(!isWasmInitialized) {
32088                 throw new Error("initializeWasm() must be awaited first!");
32089         }
32090         const nativeResponseValue = wasm.TS_PaymentParameters_set_previously_failed_channels(this_ptr, val);
32091         // debug statements here
32092 }
32093         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKCVec_RouteHintZ route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_arg);
32094 /* @internal */
32095 export function PaymentParameters_new(payee_pubkey_arg: number, features_arg: bigint, route_hints_arg: number, expiry_time_arg: bigint, max_total_cltv_expiry_delta_arg: number, max_path_count_arg: number, max_channel_saturation_power_of_half_arg: number, previously_failed_channels_arg: number): bigint {
32096         if(!isWasmInitialized) {
32097                 throw new Error("initializeWasm() must be awaited first!");
32098         }
32099         const nativeResponseValue = wasm.TS_PaymentParameters_new(payee_pubkey_arg, features_arg, route_hints_arg, expiry_time_arg, max_total_cltv_expiry_delta_arg, max_path_count_arg, max_channel_saturation_power_of_half_arg, previously_failed_channels_arg);
32100         return nativeResponseValue;
32101 }
32102         // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
32103 /* @internal */
32104 export function PaymentParameters_clone_ptr(arg: bigint): bigint {
32105         if(!isWasmInitialized) {
32106                 throw new Error("initializeWasm() must be awaited first!");
32107         }
32108         const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
32109         return nativeResponseValue;
32110 }
32111         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
32112 /* @internal */
32113 export function PaymentParameters_clone(orig: bigint): bigint {
32114         if(!isWasmInitialized) {
32115                 throw new Error("initializeWasm() must be awaited first!");
32116         }
32117         const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
32118         return nativeResponseValue;
32119 }
32120         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
32121 /* @internal */
32122 export function PaymentParameters_hash(o: bigint): bigint {
32123         if(!isWasmInitialized) {
32124                 throw new Error("initializeWasm() must be awaited first!");
32125         }
32126         const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
32127         return nativeResponseValue;
32128 }
32129         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
32130 /* @internal */
32131 export function PaymentParameters_eq(a: bigint, b: bigint): boolean {
32132         if(!isWasmInitialized) {
32133                 throw new Error("initializeWasm() must be awaited first!");
32134         }
32135         const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
32136         return nativeResponseValue;
32137 }
32138         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
32139 /* @internal */
32140 export function PaymentParameters_write(obj: bigint): number {
32141         if(!isWasmInitialized) {
32142                 throw new Error("initializeWasm() must be awaited first!");
32143         }
32144         const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
32145         return nativeResponseValue;
32146 }
32147         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
32148 /* @internal */
32149 export function PaymentParameters_read(ser: number): bigint {
32150         if(!isWasmInitialized) {
32151                 throw new Error("initializeWasm() must be awaited first!");
32152         }
32153         const nativeResponseValue = wasm.TS_PaymentParameters_read(ser);
32154         return nativeResponseValue;
32155 }
32156         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
32157 /* @internal */
32158 export function PaymentParameters_from_node_id(payee_pubkey: number): bigint {
32159         if(!isWasmInitialized) {
32160                 throw new Error("initializeWasm() must be awaited first!");
32161         }
32162         const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey);
32163         return nativeResponseValue;
32164 }
32165         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
32166 /* @internal */
32167 export function PaymentParameters_for_keysend(payee_pubkey: number): bigint {
32168         if(!isWasmInitialized) {
32169                 throw new Error("initializeWasm() must be awaited first!");
32170         }
32171         const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey);
32172         return nativeResponseValue;
32173 }
32174         // void RouteHint_free(struct LDKRouteHint this_obj);
32175 /* @internal */
32176 export function RouteHint_free(this_obj: bigint): void {
32177         if(!isWasmInitialized) {
32178                 throw new Error("initializeWasm() must be awaited first!");
32179         }
32180         const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
32181         // debug statements here
32182 }
32183         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
32184 /* @internal */
32185 export function RouteHint_get_a(this_ptr: bigint): number {
32186         if(!isWasmInitialized) {
32187                 throw new Error("initializeWasm() must be awaited first!");
32188         }
32189         const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
32190         return nativeResponseValue;
32191 }
32192         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
32193 /* @internal */
32194 export function RouteHint_set_a(this_ptr: bigint, val: number): void {
32195         if(!isWasmInitialized) {
32196                 throw new Error("initializeWasm() must be awaited first!");
32197         }
32198         const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
32199         // debug statements here
32200 }
32201         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
32202 /* @internal */
32203 export function RouteHint_new(a_arg: number): bigint {
32204         if(!isWasmInitialized) {
32205                 throw new Error("initializeWasm() must be awaited first!");
32206         }
32207         const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
32208         return nativeResponseValue;
32209 }
32210         // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
32211 /* @internal */
32212 export function RouteHint_clone_ptr(arg: bigint): bigint {
32213         if(!isWasmInitialized) {
32214                 throw new Error("initializeWasm() must be awaited first!");
32215         }
32216         const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
32217         return nativeResponseValue;
32218 }
32219         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
32220 /* @internal */
32221 export function RouteHint_clone(orig: bigint): bigint {
32222         if(!isWasmInitialized) {
32223                 throw new Error("initializeWasm() must be awaited first!");
32224         }
32225         const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
32226         return nativeResponseValue;
32227 }
32228         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
32229 /* @internal */
32230 export function RouteHint_hash(o: bigint): bigint {
32231         if(!isWasmInitialized) {
32232                 throw new Error("initializeWasm() must be awaited first!");
32233         }
32234         const nativeResponseValue = wasm.TS_RouteHint_hash(o);
32235         return nativeResponseValue;
32236 }
32237         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
32238 /* @internal */
32239 export function RouteHint_eq(a: bigint, b: bigint): boolean {
32240         if(!isWasmInitialized) {
32241                 throw new Error("initializeWasm() must be awaited first!");
32242         }
32243         const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
32244         return nativeResponseValue;
32245 }
32246         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
32247 /* @internal */
32248 export function RouteHint_write(obj: bigint): number {
32249         if(!isWasmInitialized) {
32250                 throw new Error("initializeWasm() must be awaited first!");
32251         }
32252         const nativeResponseValue = wasm.TS_RouteHint_write(obj);
32253         return nativeResponseValue;
32254 }
32255         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
32256 /* @internal */
32257 export function RouteHint_read(ser: number): bigint {
32258         if(!isWasmInitialized) {
32259                 throw new Error("initializeWasm() must be awaited first!");
32260         }
32261         const nativeResponseValue = wasm.TS_RouteHint_read(ser);
32262         return nativeResponseValue;
32263 }
32264         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
32265 /* @internal */
32266 export function RouteHintHop_free(this_obj: bigint): void {
32267         if(!isWasmInitialized) {
32268                 throw new Error("initializeWasm() must be awaited first!");
32269         }
32270         const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
32271         // debug statements here
32272 }
32273         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
32274 /* @internal */
32275 export function RouteHintHop_get_src_node_id(this_ptr: bigint): number {
32276         if(!isWasmInitialized) {
32277                 throw new Error("initializeWasm() must be awaited first!");
32278         }
32279         const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
32280         return nativeResponseValue;
32281 }
32282         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
32283 /* @internal */
32284 export function RouteHintHop_set_src_node_id(this_ptr: bigint, val: number): void {
32285         if(!isWasmInitialized) {
32286                 throw new Error("initializeWasm() must be awaited first!");
32287         }
32288         const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
32289         // debug statements here
32290 }
32291         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
32292 /* @internal */
32293 export function RouteHintHop_get_short_channel_id(this_ptr: bigint): bigint {
32294         if(!isWasmInitialized) {
32295                 throw new Error("initializeWasm() must be awaited first!");
32296         }
32297         const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
32298         return nativeResponseValue;
32299 }
32300         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
32301 /* @internal */
32302 export function RouteHintHop_set_short_channel_id(this_ptr: bigint, val: bigint): void {
32303         if(!isWasmInitialized) {
32304                 throw new Error("initializeWasm() must be awaited first!");
32305         }
32306         const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
32307         // debug statements here
32308 }
32309         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
32310 /* @internal */
32311 export function RouteHintHop_get_fees(this_ptr: bigint): bigint {
32312         if(!isWasmInitialized) {
32313                 throw new Error("initializeWasm() must be awaited first!");
32314         }
32315         const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
32316         return nativeResponseValue;
32317 }
32318         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
32319 /* @internal */
32320 export function RouteHintHop_set_fees(this_ptr: bigint, val: bigint): void {
32321         if(!isWasmInitialized) {
32322                 throw new Error("initializeWasm() must be awaited first!");
32323         }
32324         const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
32325         // debug statements here
32326 }
32327         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
32328 /* @internal */
32329 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: bigint): number {
32330         if(!isWasmInitialized) {
32331                 throw new Error("initializeWasm() must be awaited first!");
32332         }
32333         const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
32334         return nativeResponseValue;
32335 }
32336         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
32337 /* @internal */
32338 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
32339         if(!isWasmInitialized) {
32340                 throw new Error("initializeWasm() must be awaited first!");
32341         }
32342         const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
32343         // debug statements here
32344 }
32345         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
32346 /* @internal */
32347 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: bigint): bigint {
32348         if(!isWasmInitialized) {
32349                 throw new Error("initializeWasm() must be awaited first!");
32350         }
32351         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
32352         return nativeResponseValue;
32353 }
32354         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
32355 /* @internal */
32356 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
32357         if(!isWasmInitialized) {
32358                 throw new Error("initializeWasm() must be awaited first!");
32359         }
32360         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
32361         // debug statements here
32362 }
32363         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
32364 /* @internal */
32365 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: bigint): bigint {
32366         if(!isWasmInitialized) {
32367                 throw new Error("initializeWasm() must be awaited first!");
32368         }
32369         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
32370         return nativeResponseValue;
32371 }
32372         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
32373 /* @internal */
32374 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
32375         if(!isWasmInitialized) {
32376                 throw new Error("initializeWasm() must be awaited first!");
32377         }
32378         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
32379         // debug statements here
32380 }
32381         // 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);
32382 /* @internal */
32383 export function RouteHintHop_new(src_node_id_arg: number, short_channel_id_arg: bigint, fees_arg: bigint, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: bigint): bigint {
32384         if(!isWasmInitialized) {
32385                 throw new Error("initializeWasm() must be awaited first!");
32386         }
32387         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);
32388         return nativeResponseValue;
32389 }
32390         // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
32391 /* @internal */
32392 export function RouteHintHop_clone_ptr(arg: bigint): bigint {
32393         if(!isWasmInitialized) {
32394                 throw new Error("initializeWasm() must be awaited first!");
32395         }
32396         const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
32397         return nativeResponseValue;
32398 }
32399         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
32400 /* @internal */
32401 export function RouteHintHop_clone(orig: bigint): bigint {
32402         if(!isWasmInitialized) {
32403                 throw new Error("initializeWasm() must be awaited first!");
32404         }
32405         const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
32406         return nativeResponseValue;
32407 }
32408         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
32409 /* @internal */
32410 export function RouteHintHop_hash(o: bigint): bigint {
32411         if(!isWasmInitialized) {
32412                 throw new Error("initializeWasm() must be awaited first!");
32413         }
32414         const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
32415         return nativeResponseValue;
32416 }
32417         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
32418 /* @internal */
32419 export function RouteHintHop_eq(a: bigint, b: bigint): boolean {
32420         if(!isWasmInitialized) {
32421                 throw new Error("initializeWasm() must be awaited first!");
32422         }
32423         const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
32424         return nativeResponseValue;
32425 }
32426         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
32427 /* @internal */
32428 export function RouteHintHop_write(obj: bigint): number {
32429         if(!isWasmInitialized) {
32430                 throw new Error("initializeWasm() must be awaited first!");
32431         }
32432         const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
32433         return nativeResponseValue;
32434 }
32435         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
32436 /* @internal */
32437 export function RouteHintHop_read(ser: number): bigint {
32438         if(!isWasmInitialized) {
32439                 throw new Error("initializeWasm() must be awaited first!");
32440         }
32441         const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
32442         return nativeResponseValue;
32443 }
32444         // 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]);
32445 /* @internal */
32446 export function find_route(our_node_pubkey: number, route_params: bigint, network_graph: bigint, first_hops: number, logger: bigint, scorer: bigint, random_seed_bytes: number): bigint {
32447         if(!isWasmInitialized) {
32448                 throw new Error("initializeWasm() must be awaited first!");
32449         }
32450         const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network_graph, first_hops, logger, scorer, random_seed_bytes);
32451         return nativeResponseValue;
32452 }
32453         // 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]);
32454 /* @internal */
32455 export function build_route_from_hops(our_node_pubkey: number, hops: number, route_params: bigint, network_graph: bigint, logger: bigint, random_seed_bytes: number): bigint {
32456         if(!isWasmInitialized) {
32457                 throw new Error("initializeWasm() must be awaited first!");
32458         }
32459         const nativeResponseValue = wasm.TS_build_route_from_hops(our_node_pubkey, hops, route_params, network_graph, logger, random_seed_bytes);
32460         return nativeResponseValue;
32461 }
32462         // void Score_free(struct LDKScore this_ptr);
32463 /* @internal */
32464 export function Score_free(this_ptr: bigint): void {
32465         if(!isWasmInitialized) {
32466                 throw new Error("initializeWasm() must be awaited first!");
32467         }
32468         const nativeResponseValue = wasm.TS_Score_free(this_ptr);
32469         // debug statements here
32470 }
32471         // void LockableScore_free(struct LDKLockableScore this_ptr);
32472 /* @internal */
32473 export function LockableScore_free(this_ptr: bigint): void {
32474         if(!isWasmInitialized) {
32475                 throw new Error("initializeWasm() must be awaited first!");
32476         }
32477         const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
32478         // debug statements here
32479 }
32480         // void WriteableScore_free(struct LDKWriteableScore this_ptr);
32481 /* @internal */
32482 export function WriteableScore_free(this_ptr: bigint): void {
32483         if(!isWasmInitialized) {
32484                 throw new Error("initializeWasm() must be awaited first!");
32485         }
32486         const nativeResponseValue = wasm.TS_WriteableScore_free(this_ptr);
32487         // debug statements here
32488 }
32489         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
32490 /* @internal */
32491 export function MultiThreadedLockableScore_free(this_obj: bigint): void {
32492         if(!isWasmInitialized) {
32493                 throw new Error("initializeWasm() must be awaited first!");
32494         }
32495         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
32496         // debug statements here
32497 }
32498         // void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj);
32499 /* @internal */
32500 export function MultiThreadedScoreLock_free(this_obj: bigint): void {
32501         if(!isWasmInitialized) {
32502                 throw new Error("initializeWasm() must be awaited first!");
32503         }
32504         const nativeResponseValue = wasm.TS_MultiThreadedScoreLock_free(this_obj);
32505         // debug statements here
32506 }
32507         // struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg);
32508 /* @internal */
32509 export function MultiThreadedScoreLock_as_Score(this_arg: bigint): bigint {
32510         if(!isWasmInitialized) {
32511                 throw new Error("initializeWasm() must be awaited first!");
32512         }
32513         const nativeResponseValue = wasm.TS_MultiThreadedScoreLock_as_Score(this_arg);
32514         return nativeResponseValue;
32515 }
32516         // struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj);
32517 /* @internal */
32518 export function MultiThreadedScoreLock_write(obj: bigint): number {
32519         if(!isWasmInitialized) {
32520                 throw new Error("initializeWasm() must be awaited first!");
32521         }
32522         const nativeResponseValue = wasm.TS_MultiThreadedScoreLock_write(obj);
32523         return nativeResponseValue;
32524 }
32525         // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
32526 /* @internal */
32527 export function MultiThreadedLockableScore_as_LockableScore(this_arg: bigint): bigint {
32528         if(!isWasmInitialized) {
32529                 throw new Error("initializeWasm() must be awaited first!");
32530         }
32531         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_as_LockableScore(this_arg);
32532         return nativeResponseValue;
32533 }
32534         // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
32535 /* @internal */
32536 export function MultiThreadedLockableScore_write(obj: bigint): number {
32537         if(!isWasmInitialized) {
32538                 throw new Error("initializeWasm() must be awaited first!");
32539         }
32540         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_write(obj);
32541         return nativeResponseValue;
32542 }
32543         // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
32544 /* @internal */
32545 export function MultiThreadedLockableScore_as_WriteableScore(this_arg: bigint): bigint {
32546         if(!isWasmInitialized) {
32547                 throw new Error("initializeWasm() must be awaited first!");
32548         }
32549         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_as_WriteableScore(this_arg);
32550         return nativeResponseValue;
32551 }
32552         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
32553 /* @internal */
32554 export function MultiThreadedLockableScore_new(score: bigint): bigint {
32555         if(!isWasmInitialized) {
32556                 throw new Error("initializeWasm() must be awaited first!");
32557         }
32558         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
32559         return nativeResponseValue;
32560 }
32561         // void ChannelUsage_free(struct LDKChannelUsage this_obj);
32562 /* @internal */
32563 export function ChannelUsage_free(this_obj: bigint): void {
32564         if(!isWasmInitialized) {
32565                 throw new Error("initializeWasm() must be awaited first!");
32566         }
32567         const nativeResponseValue = wasm.TS_ChannelUsage_free(this_obj);
32568         // debug statements here
32569 }
32570         // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
32571 /* @internal */
32572 export function ChannelUsage_get_amount_msat(this_ptr: bigint): bigint {
32573         if(!isWasmInitialized) {
32574                 throw new Error("initializeWasm() must be awaited first!");
32575         }
32576         const nativeResponseValue = wasm.TS_ChannelUsage_get_amount_msat(this_ptr);
32577         return nativeResponseValue;
32578 }
32579         // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
32580 /* @internal */
32581 export function ChannelUsage_set_amount_msat(this_ptr: bigint, val: bigint): void {
32582         if(!isWasmInitialized) {
32583                 throw new Error("initializeWasm() must be awaited first!");
32584         }
32585         const nativeResponseValue = wasm.TS_ChannelUsage_set_amount_msat(this_ptr, val);
32586         // debug statements here
32587 }
32588         // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
32589 /* @internal */
32590 export function ChannelUsage_get_inflight_htlc_msat(this_ptr: bigint): bigint {
32591         if(!isWasmInitialized) {
32592                 throw new Error("initializeWasm() must be awaited first!");
32593         }
32594         const nativeResponseValue = wasm.TS_ChannelUsage_get_inflight_htlc_msat(this_ptr);
32595         return nativeResponseValue;
32596 }
32597         // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
32598 /* @internal */
32599 export function ChannelUsage_set_inflight_htlc_msat(this_ptr: bigint, val: bigint): void {
32600         if(!isWasmInitialized) {
32601                 throw new Error("initializeWasm() must be awaited first!");
32602         }
32603         const nativeResponseValue = wasm.TS_ChannelUsage_set_inflight_htlc_msat(this_ptr, val);
32604         // debug statements here
32605 }
32606         // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
32607 /* @internal */
32608 export function ChannelUsage_get_effective_capacity(this_ptr: bigint): bigint {
32609         if(!isWasmInitialized) {
32610                 throw new Error("initializeWasm() must be awaited first!");
32611         }
32612         const nativeResponseValue = wasm.TS_ChannelUsage_get_effective_capacity(this_ptr);
32613         return nativeResponseValue;
32614 }
32615         // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
32616 /* @internal */
32617 export function ChannelUsage_set_effective_capacity(this_ptr: bigint, val: bigint): void {
32618         if(!isWasmInitialized) {
32619                 throw new Error("initializeWasm() must be awaited first!");
32620         }
32621         const nativeResponseValue = wasm.TS_ChannelUsage_set_effective_capacity(this_ptr, val);
32622         // debug statements here
32623 }
32624         // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
32625 /* @internal */
32626 export function ChannelUsage_new(amount_msat_arg: bigint, inflight_htlc_msat_arg: bigint, effective_capacity_arg: bigint): bigint {
32627         if(!isWasmInitialized) {
32628                 throw new Error("initializeWasm() must be awaited first!");
32629         }
32630         const nativeResponseValue = wasm.TS_ChannelUsage_new(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg);
32631         return nativeResponseValue;
32632 }
32633         // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
32634 /* @internal */
32635 export function ChannelUsage_clone_ptr(arg: bigint): bigint {
32636         if(!isWasmInitialized) {
32637                 throw new Error("initializeWasm() must be awaited first!");
32638         }
32639         const nativeResponseValue = wasm.TS_ChannelUsage_clone_ptr(arg);
32640         return nativeResponseValue;
32641 }
32642         // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
32643 /* @internal */
32644 export function ChannelUsage_clone(orig: bigint): bigint {
32645         if(!isWasmInitialized) {
32646                 throw new Error("initializeWasm() must be awaited first!");
32647         }
32648         const nativeResponseValue = wasm.TS_ChannelUsage_clone(orig);
32649         return nativeResponseValue;
32650 }
32651         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
32652 /* @internal */
32653 export function FixedPenaltyScorer_free(this_obj: bigint): void {
32654         if(!isWasmInitialized) {
32655                 throw new Error("initializeWasm() must be awaited first!");
32656         }
32657         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
32658         // debug statements here
32659 }
32660         // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
32661 /* @internal */
32662 export function FixedPenaltyScorer_clone_ptr(arg: bigint): bigint {
32663         if(!isWasmInitialized) {
32664                 throw new Error("initializeWasm() must be awaited first!");
32665         }
32666         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
32667         return nativeResponseValue;
32668 }
32669         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
32670 /* @internal */
32671 export function FixedPenaltyScorer_clone(orig: bigint): bigint {
32672         if(!isWasmInitialized) {
32673                 throw new Error("initializeWasm() must be awaited first!");
32674         }
32675         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
32676         return nativeResponseValue;
32677 }
32678         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
32679 /* @internal */
32680 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): bigint {
32681         if(!isWasmInitialized) {
32682                 throw new Error("initializeWasm() must be awaited first!");
32683         }
32684         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
32685         return nativeResponseValue;
32686 }
32687         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
32688 /* @internal */
32689 export function FixedPenaltyScorer_as_Score(this_arg: bigint): bigint {
32690         if(!isWasmInitialized) {
32691                 throw new Error("initializeWasm() must be awaited first!");
32692         }
32693         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
32694         return nativeResponseValue;
32695 }
32696         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
32697 /* @internal */
32698 export function FixedPenaltyScorer_write(obj: bigint): number {
32699         if(!isWasmInitialized) {
32700                 throw new Error("initializeWasm() must be awaited first!");
32701         }
32702         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
32703         return nativeResponseValue;
32704 }
32705         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
32706 /* @internal */
32707 export function FixedPenaltyScorer_read(ser: number, arg: bigint): bigint {
32708         if(!isWasmInitialized) {
32709                 throw new Error("initializeWasm() must be awaited first!");
32710         }
32711         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser, arg);
32712         return nativeResponseValue;
32713 }
32714         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
32715 /* @internal */
32716 export function ProbabilisticScorer_free(this_obj: bigint): void {
32717         if(!isWasmInitialized) {
32718                 throw new Error("initializeWasm() must be awaited first!");
32719         }
32720         const nativeResponseValue = wasm.TS_ProbabilisticScorer_free(this_obj);
32721         // debug statements here
32722 }
32723         // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
32724 /* @internal */
32725 export function ProbabilisticScoringParameters_free(this_obj: bigint): void {
32726         if(!isWasmInitialized) {
32727                 throw new Error("initializeWasm() must be awaited first!");
32728         }
32729         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
32730         // debug statements here
32731 }
32732         // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32733 /* @internal */
32734 export function ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr: bigint): bigint {
32735         if(!isWasmInitialized) {
32736                 throw new Error("initializeWasm() must be awaited first!");
32737         }
32738         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr);
32739         return nativeResponseValue;
32740 }
32741         // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32742 /* @internal */
32743 export function ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr: bigint, val: bigint): void {
32744         if(!isWasmInitialized) {
32745                 throw new Error("initializeWasm() must be awaited first!");
32746         }
32747         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr, val);
32748         // debug statements here
32749 }
32750         // uint64_t ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32751 /* @internal */
32752 export function ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(this_ptr: bigint): bigint {
32753         if(!isWasmInitialized) {
32754                 throw new Error("initializeWasm() must be awaited first!");
32755         }
32756         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(this_ptr);
32757         return nativeResponseValue;
32758 }
32759         // void ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32760 /* @internal */
32761 export function ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(this_ptr: bigint, val: bigint): void {
32762         if(!isWasmInitialized) {
32763                 throw new Error("initializeWasm() must be awaited first!");
32764         }
32765         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(this_ptr, val);
32766         // debug statements here
32767 }
32768         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32769 /* @internal */
32770 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: bigint): bigint {
32771         if(!isWasmInitialized) {
32772                 throw new Error("initializeWasm() must be awaited first!");
32773         }
32774         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
32775         return nativeResponseValue;
32776 }
32777         // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32778 /* @internal */
32779 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: bigint, val: bigint): void {
32780         if(!isWasmInitialized) {
32781                 throw new Error("initializeWasm() must be awaited first!");
32782         }
32783         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
32784         // debug statements here
32785 }
32786         // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32787 /* @internal */
32788 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: bigint): bigint {
32789         if(!isWasmInitialized) {
32790                 throw new Error("initializeWasm() must be awaited first!");
32791         }
32792         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
32793         return nativeResponseValue;
32794 }
32795         // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32796 /* @internal */
32797 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: bigint, val: bigint): void {
32798         if(!isWasmInitialized) {
32799                 throw new Error("initializeWasm() must be awaited first!");
32800         }
32801         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
32802         // debug statements here
32803 }
32804         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32805 /* @internal */
32806 export function ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(this_ptr: bigint): bigint {
32807         if(!isWasmInitialized) {
32808                 throw new Error("initializeWasm() must be awaited first!");
32809         }
32810         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(this_ptr);
32811         return nativeResponseValue;
32812 }
32813         // void ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32814 /* @internal */
32815 export function ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(this_ptr: bigint, val: bigint): void {
32816         if(!isWasmInitialized) {
32817                 throw new Error("initializeWasm() must be awaited first!");
32818         }
32819         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(this_ptr, val);
32820         // debug statements here
32821 }
32822         // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32823 /* @internal */
32824 export function ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr: bigint): bigint {
32825         if(!isWasmInitialized) {
32826                 throw new Error("initializeWasm() must be awaited first!");
32827         }
32828         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr);
32829         return nativeResponseValue;
32830 }
32831         // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32832 /* @internal */
32833 export function ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr: bigint, val: bigint): void {
32834         if(!isWasmInitialized) {
32835                 throw new Error("initializeWasm() must be awaited first!");
32836         }
32837         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr, val);
32838         // debug statements here
32839 }
32840         // uint64_t ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
32841 /* @internal */
32842 export function ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(this_ptr: bigint): bigint {
32843         if(!isWasmInitialized) {
32844                 throw new Error("initializeWasm() must be awaited first!");
32845         }
32846         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(this_ptr);
32847         return nativeResponseValue;
32848 }
32849         // void ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
32850 /* @internal */
32851 export function ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(this_ptr: bigint, val: bigint): void {
32852         if(!isWasmInitialized) {
32853                 throw new Error("initializeWasm() must be awaited first!");
32854         }
32855         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(this_ptr, val);
32856         // debug statements here
32857 }
32858         // uint64_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
32859 /* @internal */
32860 export function ProbabilisticScoringParameters_clone_ptr(arg: bigint): bigint {
32861         if(!isWasmInitialized) {
32862                 throw new Error("initializeWasm() must be awaited first!");
32863         }
32864         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
32865         return nativeResponseValue;
32866 }
32867         // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
32868 /* @internal */
32869 export function ProbabilisticScoringParameters_clone(orig: bigint): bigint {
32870         if(!isWasmInitialized) {
32871                 throw new Error("initializeWasm() must be awaited first!");
32872         }
32873         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
32874         return nativeResponseValue;
32875 }
32876         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
32877 /* @internal */
32878 export function ProbabilisticScorer_new(params: bigint, network_graph: bigint, logger: bigint): bigint {
32879         if(!isWasmInitialized) {
32880                 throw new Error("initializeWasm() must be awaited first!");
32881         }
32882         const nativeResponseValue = wasm.TS_ProbabilisticScorer_new(params, network_graph, logger);
32883         return nativeResponseValue;
32884 }
32885         // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
32886 /* @internal */
32887 export function ProbabilisticScorer_debug_log_liquidity_stats(this_arg: bigint): void {
32888         if(!isWasmInitialized) {
32889                 throw new Error("initializeWasm() must be awaited first!");
32890         }
32891         const nativeResponseValue = wasm.TS_ProbabilisticScorer_debug_log_liquidity_stats(this_arg);
32892         // debug statements here
32893 }
32894         // MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_channel_liquidity_range(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
32895 /* @internal */
32896 export function ProbabilisticScorer_estimated_channel_liquidity_range(this_arg: bigint, scid: bigint, target: bigint): bigint {
32897         if(!isWasmInitialized) {
32898                 throw new Error("initializeWasm() must be awaited first!");
32899         }
32900         const nativeResponseValue = wasm.TS_ProbabilisticScorer_estimated_channel_liquidity_range(this_arg, scid, target);
32901         return nativeResponseValue;
32902 }
32903         // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
32904 /* @internal */
32905 export function ProbabilisticScorer_add_banned(this_arg: bigint, node_id: bigint): void {
32906         if(!isWasmInitialized) {
32907                 throw new Error("initializeWasm() must be awaited first!");
32908         }
32909         const nativeResponseValue = wasm.TS_ProbabilisticScorer_add_banned(this_arg, node_id);
32910         // debug statements here
32911 }
32912         // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
32913 /* @internal */
32914 export function ProbabilisticScorer_remove_banned(this_arg: bigint, node_id: bigint): void {
32915         if(!isWasmInitialized) {
32916                 throw new Error("initializeWasm() must be awaited first!");
32917         }
32918         const nativeResponseValue = wasm.TS_ProbabilisticScorer_remove_banned(this_arg, node_id);
32919         // debug statements here
32920 }
32921         // void ProbabilisticScorer_set_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
32922 /* @internal */
32923 export function ProbabilisticScorer_set_manual_penalty(this_arg: bigint, node_id: bigint, penalty: bigint): void {
32924         if(!isWasmInitialized) {
32925                 throw new Error("initializeWasm() must be awaited first!");
32926         }
32927         const nativeResponseValue = wasm.TS_ProbabilisticScorer_set_manual_penalty(this_arg, node_id, penalty);
32928         // debug statements here
32929 }
32930         // void ProbabilisticScorer_remove_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
32931 /* @internal */
32932 export function ProbabilisticScorer_remove_manual_penalty(this_arg: bigint, node_id: bigint): void {
32933         if(!isWasmInitialized) {
32934                 throw new Error("initializeWasm() must be awaited first!");
32935         }
32936         const nativeResponseValue = wasm.TS_ProbabilisticScorer_remove_manual_penalty(this_arg, node_id);
32937         // debug statements here
32938 }
32939         // void ProbabilisticScorer_clear_manual_penalties(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
32940 /* @internal */
32941 export function ProbabilisticScorer_clear_manual_penalties(this_arg: bigint): void {
32942         if(!isWasmInitialized) {
32943                 throw new Error("initializeWasm() must be awaited first!");
32944         }
32945         const nativeResponseValue = wasm.TS_ProbabilisticScorer_clear_manual_penalties(this_arg);
32946         // debug statements here
32947 }
32948         // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
32949 /* @internal */
32950 export function ProbabilisticScoringParameters_add_banned_from_list(this_arg: bigint, node_ids: number): void {
32951         if(!isWasmInitialized) {
32952                 throw new Error("initializeWasm() must be awaited first!");
32953         }
32954         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_add_banned_from_list(this_arg, node_ids);
32955         // debug statements here
32956 }
32957         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
32958 /* @internal */
32959 export function ProbabilisticScoringParameters_default(): bigint {
32960         if(!isWasmInitialized) {
32961                 throw new Error("initializeWasm() must be awaited first!");
32962         }
32963         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
32964         return nativeResponseValue;
32965 }
32966         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
32967 /* @internal */
32968 export function ProbabilisticScorer_as_Score(this_arg: bigint): bigint {
32969         if(!isWasmInitialized) {
32970                 throw new Error("initializeWasm() must be awaited first!");
32971         }
32972         const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
32973         return nativeResponseValue;
32974 }
32975         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
32976 /* @internal */
32977 export function ProbabilisticScorer_write(obj: bigint): number {
32978         if(!isWasmInitialized) {
32979                 throw new Error("initializeWasm() must be awaited first!");
32980         }
32981         const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
32982         return nativeResponseValue;
32983 }
32984         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
32985 /* @internal */
32986 export function ProbabilisticScorer_read(ser: number, arg_a: bigint, arg_b: bigint, arg_c: bigint): bigint {
32987         if(!isWasmInitialized) {
32988                 throw new Error("initializeWasm() must be awaited first!");
32989         }
32990         const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b, arg_c);
32991         return nativeResponseValue;
32992 }
32993         // void BlindedRoute_free(struct LDKBlindedRoute this_obj);
32994 /* @internal */
32995 export function BlindedRoute_free(this_obj: bigint): void {
32996         if(!isWasmInitialized) {
32997                 throw new Error("initializeWasm() must be awaited first!");
32998         }
32999         const nativeResponseValue = wasm.TS_BlindedRoute_free(this_obj);
33000         // debug statements here
33001 }
33002         // void BlindedHop_free(struct LDKBlindedHop this_obj);
33003 /* @internal */
33004 export function BlindedHop_free(this_obj: bigint): void {
33005         if(!isWasmInitialized) {
33006                 throw new Error("initializeWasm() must be awaited first!");
33007         }
33008         const nativeResponseValue = wasm.TS_BlindedHop_free(this_obj);
33009         // debug statements here
33010 }
33011         // MUST_USE_RES struct LDKCResult_BlindedRouteNoneZ BlindedRoute_new(struct LDKCVec_PublicKeyZ node_pks, const struct LDKKeysInterface *NONNULL_PTR keys_manager);
33012 /* @internal */
33013 export function BlindedRoute_new(node_pks: number, keys_manager: bigint): bigint {
33014         if(!isWasmInitialized) {
33015                 throw new Error("initializeWasm() must be awaited first!");
33016         }
33017         const nativeResponseValue = wasm.TS_BlindedRoute_new(node_pks, keys_manager);
33018         return nativeResponseValue;
33019 }
33020         // struct LDKCVec_u8Z BlindedRoute_write(const struct LDKBlindedRoute *NONNULL_PTR obj);
33021 /* @internal */
33022 export function BlindedRoute_write(obj: bigint): number {
33023         if(!isWasmInitialized) {
33024                 throw new Error("initializeWasm() must be awaited first!");
33025         }
33026         const nativeResponseValue = wasm.TS_BlindedRoute_write(obj);
33027         return nativeResponseValue;
33028 }
33029         // struct LDKCResult_BlindedRouteDecodeErrorZ BlindedRoute_read(struct LDKu8slice ser);
33030 /* @internal */
33031 export function BlindedRoute_read(ser: number): bigint {
33032         if(!isWasmInitialized) {
33033                 throw new Error("initializeWasm() must be awaited first!");
33034         }
33035         const nativeResponseValue = wasm.TS_BlindedRoute_read(ser);
33036         return nativeResponseValue;
33037 }
33038         // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
33039 /* @internal */
33040 export function BlindedHop_write(obj: bigint): number {
33041         if(!isWasmInitialized) {
33042                 throw new Error("initializeWasm() must be awaited first!");
33043         }
33044         const nativeResponseValue = wasm.TS_BlindedHop_write(obj);
33045         return nativeResponseValue;
33046 }
33047         // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
33048 /* @internal */
33049 export function BlindedHop_read(ser: number): bigint {
33050         if(!isWasmInitialized) {
33051                 throw new Error("initializeWasm() must be awaited first!");
33052         }
33053         const nativeResponseValue = wasm.TS_BlindedHop_read(ser);
33054         return nativeResponseValue;
33055 }
33056         // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
33057 /* @internal */
33058 export function OnionMessenger_free(this_obj: bigint): void {
33059         if(!isWasmInitialized) {
33060                 throw new Error("initializeWasm() must be awaited first!");
33061         }
33062         const nativeResponseValue = wasm.TS_OnionMessenger_free(this_obj);
33063         // debug statements here
33064 }
33065         // void Destination_free(struct LDKDestination this_ptr);
33066 /* @internal */
33067 export function Destination_free(this_ptr: bigint): void {
33068         if(!isWasmInitialized) {
33069                 throw new Error("initializeWasm() must be awaited first!");
33070         }
33071         const nativeResponseValue = wasm.TS_Destination_free(this_ptr);
33072         // debug statements here
33073 }
33074         // struct LDKDestination Destination_node(struct LDKPublicKey a);
33075 /* @internal */
33076 export function Destination_node(a: number): bigint {
33077         if(!isWasmInitialized) {
33078                 throw new Error("initializeWasm() must be awaited first!");
33079         }
33080         const nativeResponseValue = wasm.TS_Destination_node(a);
33081         return nativeResponseValue;
33082 }
33083         // struct LDKDestination Destination_blinded_route(struct LDKBlindedRoute a);
33084 /* @internal */
33085 export function Destination_blinded_route(a: bigint): bigint {
33086         if(!isWasmInitialized) {
33087                 throw new Error("initializeWasm() must be awaited first!");
33088         }
33089         const nativeResponseValue = wasm.TS_Destination_blinded_route(a);
33090         return nativeResponseValue;
33091 }
33092         // void SendError_free(struct LDKSendError this_ptr);
33093 /* @internal */
33094 export function SendError_free(this_ptr: bigint): void {
33095         if(!isWasmInitialized) {
33096                 throw new Error("initializeWasm() must be awaited first!");
33097         }
33098         const nativeResponseValue = wasm.TS_SendError_free(this_ptr);
33099         // debug statements here
33100 }
33101         // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
33102 /* @internal */
33103 export function SendError_clone_ptr(arg: bigint): bigint {
33104         if(!isWasmInitialized) {
33105                 throw new Error("initializeWasm() must be awaited first!");
33106         }
33107         const nativeResponseValue = wasm.TS_SendError_clone_ptr(arg);
33108         return nativeResponseValue;
33109 }
33110         // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
33111 /* @internal */
33112 export function SendError_clone(orig: bigint): bigint {
33113         if(!isWasmInitialized) {
33114                 throw new Error("initializeWasm() must be awaited first!");
33115         }
33116         const nativeResponseValue = wasm.TS_SendError_clone(orig);
33117         return nativeResponseValue;
33118 }
33119         // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
33120 /* @internal */
33121 export function SendError_secp256k1(a: Secp256k1Error): bigint {
33122         if(!isWasmInitialized) {
33123                 throw new Error("initializeWasm() must be awaited first!");
33124         }
33125         const nativeResponseValue = wasm.TS_SendError_secp256k1(a);
33126         return nativeResponseValue;
33127 }
33128         // struct LDKSendError SendError_too_big_packet(void);
33129 /* @internal */
33130 export function SendError_too_big_packet(): bigint {
33131         if(!isWasmInitialized) {
33132                 throw new Error("initializeWasm() must be awaited first!");
33133         }
33134         const nativeResponseValue = wasm.TS_SendError_too_big_packet();
33135         return nativeResponseValue;
33136 }
33137         // struct LDKSendError SendError_too_few_blinded_hops(void);
33138 /* @internal */
33139 export function SendError_too_few_blinded_hops(): bigint {
33140         if(!isWasmInitialized) {
33141                 throw new Error("initializeWasm() must be awaited first!");
33142         }
33143         const nativeResponseValue = wasm.TS_SendError_too_few_blinded_hops();
33144         return nativeResponseValue;
33145 }
33146         // struct LDKSendError SendError_invalid_first_hop(void);
33147 /* @internal */
33148 export function SendError_invalid_first_hop(): bigint {
33149         if(!isWasmInitialized) {
33150                 throw new Error("initializeWasm() must be awaited first!");
33151         }
33152         const nativeResponseValue = wasm.TS_SendError_invalid_first_hop();
33153         return nativeResponseValue;
33154 }
33155         // struct LDKSendError SendError_buffer_full(void);
33156 /* @internal */
33157 export function SendError_buffer_full(): bigint {
33158         if(!isWasmInitialized) {
33159                 throw new Error("initializeWasm() must be awaited first!");
33160         }
33161         const nativeResponseValue = wasm.TS_SendError_buffer_full();
33162         return nativeResponseValue;
33163 }
33164         // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKKeysInterface keys_manager, struct LDKLogger logger);
33165 /* @internal */
33166 export function OnionMessenger_new(keys_manager: bigint, logger: bigint): bigint {
33167         if(!isWasmInitialized) {
33168                 throw new Error("initializeWasm() must be awaited first!");
33169         }
33170         const nativeResponseValue = wasm.TS_OnionMessenger_new(keys_manager, logger);
33171         return nativeResponseValue;
33172 }
33173         // MUST_USE_RES struct LDKCResult_NoneSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKCVec_PublicKeyZ intermediate_nodes, struct LDKDestination destination, struct LDKBlindedRoute reply_path);
33174 /* @internal */
33175 export function OnionMessenger_send_onion_message(this_arg: bigint, intermediate_nodes: number, destination: bigint, reply_path: bigint): bigint {
33176         if(!isWasmInitialized) {
33177                 throw new Error("initializeWasm() must be awaited first!");
33178         }
33179         const nativeResponseValue = wasm.TS_OnionMessenger_send_onion_message(this_arg, intermediate_nodes, destination, reply_path);
33180         return nativeResponseValue;
33181 }
33182         // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
33183 /* @internal */
33184 export function OnionMessenger_as_OnionMessageHandler(this_arg: bigint): bigint {
33185         if(!isWasmInitialized) {
33186                 throw new Error("initializeWasm() must be awaited first!");
33187         }
33188         const nativeResponseValue = wasm.TS_OnionMessenger_as_OnionMessageHandler(this_arg);
33189         return nativeResponseValue;
33190 }
33191         // struct LDKOnionMessageProvider OnionMessenger_as_OnionMessageProvider(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
33192 /* @internal */
33193 export function OnionMessenger_as_OnionMessageProvider(this_arg: bigint): bigint {
33194         if(!isWasmInitialized) {
33195                 throw new Error("initializeWasm() must be awaited first!");
33196         }
33197         const nativeResponseValue = wasm.TS_OnionMessenger_as_OnionMessageProvider(this_arg);
33198         return nativeResponseValue;
33199 }
33200         // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
33201 /* @internal */
33202 export function RapidGossipSync_free(this_obj: bigint): void {
33203         if(!isWasmInitialized) {
33204                 throw new Error("initializeWasm() must be awaited first!");
33205         }
33206         const nativeResponseValue = wasm.TS_RapidGossipSync_free(this_obj);
33207         // debug statements here
33208 }
33209         // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph);
33210 /* @internal */
33211 export function RapidGossipSync_new(network_graph: bigint): bigint {
33212         if(!isWasmInitialized) {
33213                 throw new Error("initializeWasm() must be awaited first!");
33214         }
33215         const nativeResponseValue = wasm.TS_RapidGossipSync_new(network_graph);
33216         return nativeResponseValue;
33217 }
33218         // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
33219 /* @internal */
33220 export function RapidGossipSync_update_network_graph(this_arg: bigint, update_data: number): bigint {
33221         if(!isWasmInitialized) {
33222                 throw new Error("initializeWasm() must be awaited first!");
33223         }
33224         const nativeResponseValue = wasm.TS_RapidGossipSync_update_network_graph(this_arg, update_data);
33225         return nativeResponseValue;
33226 }
33227         // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
33228 /* @internal */
33229 export function RapidGossipSync_is_initial_sync_complete(this_arg: bigint): boolean {
33230         if(!isWasmInitialized) {
33231                 throw new Error("initializeWasm() must be awaited first!");
33232         }
33233         const nativeResponseValue = wasm.TS_RapidGossipSync_is_initial_sync_complete(this_arg);
33234         return nativeResponseValue;
33235 }
33236         // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
33237 /* @internal */
33238 export function GraphSyncError_free(this_ptr: bigint): void {
33239         if(!isWasmInitialized) {
33240                 throw new Error("initializeWasm() must be awaited first!");
33241         }
33242         const nativeResponseValue = wasm.TS_GraphSyncError_free(this_ptr);
33243         // debug statements here
33244 }
33245         // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
33246 /* @internal */
33247 export function GraphSyncError_clone_ptr(arg: bigint): bigint {
33248         if(!isWasmInitialized) {
33249                 throw new Error("initializeWasm() must be awaited first!");
33250         }
33251         const nativeResponseValue = wasm.TS_GraphSyncError_clone_ptr(arg);
33252         return nativeResponseValue;
33253 }
33254         // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
33255 /* @internal */
33256 export function GraphSyncError_clone(orig: bigint): bigint {
33257         if(!isWasmInitialized) {
33258                 throw new Error("initializeWasm() must be awaited first!");
33259         }
33260         const nativeResponseValue = wasm.TS_GraphSyncError_clone(orig);
33261         return nativeResponseValue;
33262 }
33263         // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
33264 /* @internal */
33265 export function GraphSyncError_decode_error(a: bigint): bigint {
33266         if(!isWasmInitialized) {
33267                 throw new Error("initializeWasm() must be awaited first!");
33268         }
33269         const nativeResponseValue = wasm.TS_GraphSyncError_decode_error(a);
33270         return nativeResponseValue;
33271 }
33272         // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
33273 /* @internal */
33274 export function GraphSyncError_lightning_error(a: bigint): bigint {
33275         if(!isWasmInitialized) {
33276                 throw new Error("initializeWasm() must be awaited first!");
33277         }
33278         const nativeResponseValue = wasm.TS_GraphSyncError_lightning_error(a);
33279         return nativeResponseValue;
33280 }
33281         // void ParseError_free(struct LDKParseError this_ptr);
33282 /* @internal */
33283 export function ParseError_free(this_ptr: bigint): void {
33284         if(!isWasmInitialized) {
33285                 throw new Error("initializeWasm() must be awaited first!");
33286         }
33287         const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
33288         // debug statements here
33289 }
33290         // uint64_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
33291 /* @internal */
33292 export function ParseError_clone_ptr(arg: bigint): bigint {
33293         if(!isWasmInitialized) {
33294                 throw new Error("initializeWasm() must be awaited first!");
33295         }
33296         const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
33297         return nativeResponseValue;
33298 }
33299         // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
33300 /* @internal */
33301 export function ParseError_clone(orig: bigint): bigint {
33302         if(!isWasmInitialized) {
33303                 throw new Error("initializeWasm() must be awaited first!");
33304         }
33305         const nativeResponseValue = wasm.TS_ParseError_clone(orig);
33306         return nativeResponseValue;
33307 }
33308         // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
33309 /* @internal */
33310 export function ParseError_bech32_error(a: bigint): bigint {
33311         if(!isWasmInitialized) {
33312                 throw new Error("initializeWasm() must be awaited first!");
33313         }
33314         const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
33315         return nativeResponseValue;
33316 }
33317         // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
33318 /* @internal */
33319 export function ParseError_parse_amount_error(a: number): bigint {
33320         if(!isWasmInitialized) {
33321                 throw new Error("initializeWasm() must be awaited first!");
33322         }
33323         const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
33324         return nativeResponseValue;
33325 }
33326         // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
33327 /* @internal */
33328 export function ParseError_malformed_signature(a: Secp256k1Error): bigint {
33329         if(!isWasmInitialized) {
33330                 throw new Error("initializeWasm() must be awaited first!");
33331         }
33332         const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
33333         return nativeResponseValue;
33334 }
33335         // struct LDKParseError ParseError_bad_prefix(void);
33336 /* @internal */
33337 export function ParseError_bad_prefix(): bigint {
33338         if(!isWasmInitialized) {
33339                 throw new Error("initializeWasm() must be awaited first!");
33340         }
33341         const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
33342         return nativeResponseValue;
33343 }
33344         // struct LDKParseError ParseError_unknown_currency(void);
33345 /* @internal */
33346 export function ParseError_unknown_currency(): bigint {
33347         if(!isWasmInitialized) {
33348                 throw new Error("initializeWasm() must be awaited first!");
33349         }
33350         const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
33351         return nativeResponseValue;
33352 }
33353         // struct LDKParseError ParseError_unknown_si_prefix(void);
33354 /* @internal */
33355 export function ParseError_unknown_si_prefix(): bigint {
33356         if(!isWasmInitialized) {
33357                 throw new Error("initializeWasm() must be awaited first!");
33358         }
33359         const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
33360         return nativeResponseValue;
33361 }
33362         // struct LDKParseError ParseError_malformed_hrp(void);
33363 /* @internal */
33364 export function ParseError_malformed_hrp(): bigint {
33365         if(!isWasmInitialized) {
33366                 throw new Error("initializeWasm() must be awaited first!");
33367         }
33368         const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
33369         return nativeResponseValue;
33370 }
33371         // struct LDKParseError ParseError_too_short_data_part(void);
33372 /* @internal */
33373 export function ParseError_too_short_data_part(): bigint {
33374         if(!isWasmInitialized) {
33375                 throw new Error("initializeWasm() must be awaited first!");
33376         }
33377         const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
33378         return nativeResponseValue;
33379 }
33380         // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
33381 /* @internal */
33382 export function ParseError_unexpected_end_of_tagged_fields(): bigint {
33383         if(!isWasmInitialized) {
33384                 throw new Error("initializeWasm() must be awaited first!");
33385         }
33386         const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
33387         return nativeResponseValue;
33388 }
33389         // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
33390 /* @internal */
33391 export function ParseError_description_decode_error(a: number): bigint {
33392         if(!isWasmInitialized) {
33393                 throw new Error("initializeWasm() must be awaited first!");
33394         }
33395         const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
33396         return nativeResponseValue;
33397 }
33398         // struct LDKParseError ParseError_padding_error(void);
33399 /* @internal */
33400 export function ParseError_padding_error(): bigint {
33401         if(!isWasmInitialized) {
33402                 throw new Error("initializeWasm() must be awaited first!");
33403         }
33404         const nativeResponseValue = wasm.TS_ParseError_padding_error();
33405         return nativeResponseValue;
33406 }
33407         // struct LDKParseError ParseError_integer_overflow_error(void);
33408 /* @internal */
33409 export function ParseError_integer_overflow_error(): bigint {
33410         if(!isWasmInitialized) {
33411                 throw new Error("initializeWasm() must be awaited first!");
33412         }
33413         const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
33414         return nativeResponseValue;
33415 }
33416         // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
33417 /* @internal */
33418 export function ParseError_invalid_seg_wit_program_length(): bigint {
33419         if(!isWasmInitialized) {
33420                 throw new Error("initializeWasm() must be awaited first!");
33421         }
33422         const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
33423         return nativeResponseValue;
33424 }
33425         // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
33426 /* @internal */
33427 export function ParseError_invalid_pub_key_hash_length(): bigint {
33428         if(!isWasmInitialized) {
33429                 throw new Error("initializeWasm() must be awaited first!");
33430         }
33431         const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
33432         return nativeResponseValue;
33433 }
33434         // struct LDKParseError ParseError_invalid_script_hash_length(void);
33435 /* @internal */
33436 export function ParseError_invalid_script_hash_length(): bigint {
33437         if(!isWasmInitialized) {
33438                 throw new Error("initializeWasm() must be awaited first!");
33439         }
33440         const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
33441         return nativeResponseValue;
33442 }
33443         // struct LDKParseError ParseError_invalid_recovery_id(void);
33444 /* @internal */
33445 export function ParseError_invalid_recovery_id(): bigint {
33446         if(!isWasmInitialized) {
33447                 throw new Error("initializeWasm() must be awaited first!");
33448         }
33449         const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
33450         return nativeResponseValue;
33451 }
33452         // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
33453 /* @internal */
33454 export function ParseError_invalid_slice_length(a: number): bigint {
33455         if(!isWasmInitialized) {
33456                 throw new Error("initializeWasm() must be awaited first!");
33457         }
33458         const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
33459         return nativeResponseValue;
33460 }
33461         // struct LDKParseError ParseError_skip(void);
33462 /* @internal */
33463 export function ParseError_skip(): bigint {
33464         if(!isWasmInitialized) {
33465                 throw new Error("initializeWasm() must be awaited first!");
33466         }
33467         const nativeResponseValue = wasm.TS_ParseError_skip();
33468         return nativeResponseValue;
33469 }
33470         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
33471 /* @internal */
33472 export function ParseOrSemanticError_free(this_ptr: bigint): void {
33473         if(!isWasmInitialized) {
33474                 throw new Error("initializeWasm() must be awaited first!");
33475         }
33476         const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
33477         // debug statements here
33478 }
33479         // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
33480 /* @internal */
33481 export function ParseOrSemanticError_clone_ptr(arg: bigint): bigint {
33482         if(!isWasmInitialized) {
33483                 throw new Error("initializeWasm() must be awaited first!");
33484         }
33485         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
33486         return nativeResponseValue;
33487 }
33488         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
33489 /* @internal */
33490 export function ParseOrSemanticError_clone(orig: bigint): bigint {
33491         if(!isWasmInitialized) {
33492                 throw new Error("initializeWasm() must be awaited first!");
33493         }
33494         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
33495         return nativeResponseValue;
33496 }
33497         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
33498 /* @internal */
33499 export function ParseOrSemanticError_parse_error(a: bigint): bigint {
33500         if(!isWasmInitialized) {
33501                 throw new Error("initializeWasm() must be awaited first!");
33502         }
33503         const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
33504         return nativeResponseValue;
33505 }
33506         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
33507 /* @internal */
33508 export function ParseOrSemanticError_semantic_error(a: SemanticError): bigint {
33509         if(!isWasmInitialized) {
33510                 throw new Error("initializeWasm() must be awaited first!");
33511         }
33512         const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);
33513         return nativeResponseValue;
33514 }
33515         // void Invoice_free(struct LDKInvoice this_obj);
33516 /* @internal */
33517 export function Invoice_free(this_obj: bigint): void {
33518         if(!isWasmInitialized) {
33519                 throw new Error("initializeWasm() must be awaited first!");
33520         }
33521         const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
33522         // debug statements here
33523 }
33524         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
33525 /* @internal */
33526 export function Invoice_eq(a: bigint, b: bigint): boolean {
33527         if(!isWasmInitialized) {
33528                 throw new Error("initializeWasm() must be awaited first!");
33529         }
33530         const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
33531         return nativeResponseValue;
33532 }
33533         // uint64_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
33534 /* @internal */
33535 export function Invoice_clone_ptr(arg: bigint): bigint {
33536         if(!isWasmInitialized) {
33537                 throw new Error("initializeWasm() must be awaited first!");
33538         }
33539         const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
33540         return nativeResponseValue;
33541 }
33542         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
33543 /* @internal */
33544 export function Invoice_clone(orig: bigint): bigint {
33545         if(!isWasmInitialized) {
33546                 throw new Error("initializeWasm() must be awaited first!");
33547         }
33548         const nativeResponseValue = wasm.TS_Invoice_clone(orig);
33549         return nativeResponseValue;
33550 }
33551         // uint64_t Invoice_hash(const struct LDKInvoice *NONNULL_PTR o);
33552 /* @internal */
33553 export function Invoice_hash(o: bigint): bigint {
33554         if(!isWasmInitialized) {
33555                 throw new Error("initializeWasm() must be awaited first!");
33556         }
33557         const nativeResponseValue = wasm.TS_Invoice_hash(o);
33558         return nativeResponseValue;
33559 }
33560         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
33561 /* @internal */
33562 export function SignedRawInvoice_free(this_obj: bigint): void {
33563         if(!isWasmInitialized) {
33564                 throw new Error("initializeWasm() must be awaited first!");
33565         }
33566         const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
33567         // debug statements here
33568 }
33569         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
33570 /* @internal */
33571 export function SignedRawInvoice_eq(a: bigint, b: bigint): boolean {
33572         if(!isWasmInitialized) {
33573                 throw new Error("initializeWasm() must be awaited first!");
33574         }
33575         const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
33576         return nativeResponseValue;
33577 }
33578         // uint64_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
33579 /* @internal */
33580 export function SignedRawInvoice_clone_ptr(arg: bigint): bigint {
33581         if(!isWasmInitialized) {
33582                 throw new Error("initializeWasm() must be awaited first!");
33583         }
33584         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
33585         return nativeResponseValue;
33586 }
33587         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
33588 /* @internal */
33589 export function SignedRawInvoice_clone(orig: bigint): bigint {
33590         if(!isWasmInitialized) {
33591                 throw new Error("initializeWasm() must be awaited first!");
33592         }
33593         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
33594         return nativeResponseValue;
33595 }
33596         // uint64_t SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR o);
33597 /* @internal */
33598 export function SignedRawInvoice_hash(o: bigint): bigint {
33599         if(!isWasmInitialized) {
33600                 throw new Error("initializeWasm() must be awaited first!");
33601         }
33602         const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(o);
33603         return nativeResponseValue;
33604 }
33605         // void RawInvoice_free(struct LDKRawInvoice this_obj);
33606 /* @internal */
33607 export function RawInvoice_free(this_obj: bigint): void {
33608         if(!isWasmInitialized) {
33609                 throw new Error("initializeWasm() must be awaited first!");
33610         }
33611         const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
33612         // debug statements here
33613 }
33614         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
33615 /* @internal */
33616 export function RawInvoice_get_data(this_ptr: bigint): bigint {
33617         if(!isWasmInitialized) {
33618                 throw new Error("initializeWasm() must be awaited first!");
33619         }
33620         const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
33621         return nativeResponseValue;
33622 }
33623         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
33624 /* @internal */
33625 export function RawInvoice_set_data(this_ptr: bigint, val: bigint): void {
33626         if(!isWasmInitialized) {
33627                 throw new Error("initializeWasm() must be awaited first!");
33628         }
33629         const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
33630         // debug statements here
33631 }
33632         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
33633 /* @internal */
33634 export function RawInvoice_eq(a: bigint, b: bigint): boolean {
33635         if(!isWasmInitialized) {
33636                 throw new Error("initializeWasm() must be awaited first!");
33637         }
33638         const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
33639         return nativeResponseValue;
33640 }
33641         // uint64_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
33642 /* @internal */
33643 export function RawInvoice_clone_ptr(arg: bigint): bigint {
33644         if(!isWasmInitialized) {
33645                 throw new Error("initializeWasm() must be awaited first!");
33646         }
33647         const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
33648         return nativeResponseValue;
33649 }
33650         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
33651 /* @internal */
33652 export function RawInvoice_clone(orig: bigint): bigint {
33653         if(!isWasmInitialized) {
33654                 throw new Error("initializeWasm() must be awaited first!");
33655         }
33656         const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
33657         return nativeResponseValue;
33658 }
33659         // uint64_t RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR o);
33660 /* @internal */
33661 export function RawInvoice_hash(o: bigint): bigint {
33662         if(!isWasmInitialized) {
33663                 throw new Error("initializeWasm() must be awaited first!");
33664         }
33665         const nativeResponseValue = wasm.TS_RawInvoice_hash(o);
33666         return nativeResponseValue;
33667 }
33668         // void RawDataPart_free(struct LDKRawDataPart this_obj);
33669 /* @internal */
33670 export function RawDataPart_free(this_obj: bigint): void {
33671         if(!isWasmInitialized) {
33672                 throw new Error("initializeWasm() must be awaited first!");
33673         }
33674         const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
33675         // debug statements here
33676 }
33677         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
33678 /* @internal */
33679 export function RawDataPart_get_timestamp(this_ptr: bigint): bigint {
33680         if(!isWasmInitialized) {
33681                 throw new Error("initializeWasm() must be awaited first!");
33682         }
33683         const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
33684         return nativeResponseValue;
33685 }
33686         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
33687 /* @internal */
33688 export function RawDataPart_set_timestamp(this_ptr: bigint, val: bigint): void {
33689         if(!isWasmInitialized) {
33690                 throw new Error("initializeWasm() must be awaited first!");
33691         }
33692         const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
33693         // debug statements here
33694 }
33695         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
33696 /* @internal */
33697 export function RawDataPart_eq(a: bigint, b: bigint): boolean {
33698         if(!isWasmInitialized) {
33699                 throw new Error("initializeWasm() must be awaited first!");
33700         }
33701         const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
33702         return nativeResponseValue;
33703 }
33704         // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
33705 /* @internal */
33706 export function RawDataPart_clone_ptr(arg: bigint): bigint {
33707         if(!isWasmInitialized) {
33708                 throw new Error("initializeWasm() must be awaited first!");
33709         }
33710         const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
33711         return nativeResponseValue;
33712 }
33713         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
33714 /* @internal */
33715 export function RawDataPart_clone(orig: bigint): bigint {
33716         if(!isWasmInitialized) {
33717                 throw new Error("initializeWasm() must be awaited first!");
33718         }
33719         const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
33720         return nativeResponseValue;
33721 }
33722         // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
33723 /* @internal */
33724 export function RawDataPart_hash(o: bigint): bigint {
33725         if(!isWasmInitialized) {
33726                 throw new Error("initializeWasm() must be awaited first!");
33727         }
33728         const nativeResponseValue = wasm.TS_RawDataPart_hash(o);
33729         return nativeResponseValue;
33730 }
33731         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
33732 /* @internal */
33733 export function PositiveTimestamp_free(this_obj: bigint): void {
33734         if(!isWasmInitialized) {
33735                 throw new Error("initializeWasm() must be awaited first!");
33736         }
33737         const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
33738         // debug statements here
33739 }
33740         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
33741 /* @internal */
33742 export function PositiveTimestamp_eq(a: bigint, b: bigint): boolean {
33743         if(!isWasmInitialized) {
33744                 throw new Error("initializeWasm() must be awaited first!");
33745         }
33746         const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
33747         return nativeResponseValue;
33748 }
33749         // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
33750 /* @internal */
33751 export function PositiveTimestamp_clone_ptr(arg: bigint): bigint {
33752         if(!isWasmInitialized) {
33753                 throw new Error("initializeWasm() must be awaited first!");
33754         }
33755         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
33756         return nativeResponseValue;
33757 }
33758         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
33759 /* @internal */
33760 export function PositiveTimestamp_clone(orig: bigint): bigint {
33761         if(!isWasmInitialized) {
33762                 throw new Error("initializeWasm() must be awaited first!");
33763         }
33764         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
33765         return nativeResponseValue;
33766 }
33767         // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
33768 /* @internal */
33769 export function PositiveTimestamp_hash(o: bigint): bigint {
33770         if(!isWasmInitialized) {
33771                 throw new Error("initializeWasm() must be awaited first!");
33772         }
33773         const nativeResponseValue = wasm.TS_PositiveTimestamp_hash(o);
33774         return nativeResponseValue;
33775 }
33776         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
33777 /* @internal */
33778 export function SiPrefix_clone(orig: bigint): SiPrefix {
33779         if(!isWasmInitialized) {
33780                 throw new Error("initializeWasm() must be awaited first!");
33781         }
33782         const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
33783         return nativeResponseValue;
33784 }
33785         // enum LDKSiPrefix SiPrefix_milli(void);
33786 /* @internal */
33787 export function SiPrefix_milli(): SiPrefix {
33788         if(!isWasmInitialized) {
33789                 throw new Error("initializeWasm() must be awaited first!");
33790         }
33791         const nativeResponseValue = wasm.TS_SiPrefix_milli();
33792         return nativeResponseValue;
33793 }
33794         // enum LDKSiPrefix SiPrefix_micro(void);
33795 /* @internal */
33796 export function SiPrefix_micro(): SiPrefix {
33797         if(!isWasmInitialized) {
33798                 throw new Error("initializeWasm() must be awaited first!");
33799         }
33800         const nativeResponseValue = wasm.TS_SiPrefix_micro();
33801         return nativeResponseValue;
33802 }
33803         // enum LDKSiPrefix SiPrefix_nano(void);
33804 /* @internal */
33805 export function SiPrefix_nano(): SiPrefix {
33806         if(!isWasmInitialized) {
33807                 throw new Error("initializeWasm() must be awaited first!");
33808         }
33809         const nativeResponseValue = wasm.TS_SiPrefix_nano();
33810         return nativeResponseValue;
33811 }
33812         // enum LDKSiPrefix SiPrefix_pico(void);
33813 /* @internal */
33814 export function SiPrefix_pico(): SiPrefix {
33815         if(!isWasmInitialized) {
33816                 throw new Error("initializeWasm() must be awaited first!");
33817         }
33818         const nativeResponseValue = wasm.TS_SiPrefix_pico();
33819         return nativeResponseValue;
33820 }
33821         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
33822 /* @internal */
33823 export function SiPrefix_eq(a: bigint, b: bigint): boolean {
33824         if(!isWasmInitialized) {
33825                 throw new Error("initializeWasm() must be awaited first!");
33826         }
33827         const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
33828         return nativeResponseValue;
33829 }
33830         // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
33831 /* @internal */
33832 export function SiPrefix_hash(o: bigint): bigint {
33833         if(!isWasmInitialized) {
33834                 throw new Error("initializeWasm() must be awaited first!");
33835         }
33836         const nativeResponseValue = wasm.TS_SiPrefix_hash(o);
33837         return nativeResponseValue;
33838 }
33839         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
33840 /* @internal */
33841 export function SiPrefix_multiplier(this_arg: bigint): bigint {
33842         if(!isWasmInitialized) {
33843                 throw new Error("initializeWasm() must be awaited first!");
33844         }
33845         const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
33846         return nativeResponseValue;
33847 }
33848         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
33849 /* @internal */
33850 export function Currency_clone(orig: bigint): Currency {
33851         if(!isWasmInitialized) {
33852                 throw new Error("initializeWasm() must be awaited first!");
33853         }
33854         const nativeResponseValue = wasm.TS_Currency_clone(orig);
33855         return nativeResponseValue;
33856 }
33857         // enum LDKCurrency Currency_bitcoin(void);
33858 /* @internal */
33859 export function Currency_bitcoin(): Currency {
33860         if(!isWasmInitialized) {
33861                 throw new Error("initializeWasm() must be awaited first!");
33862         }
33863         const nativeResponseValue = wasm.TS_Currency_bitcoin();
33864         return nativeResponseValue;
33865 }
33866         // enum LDKCurrency Currency_bitcoin_testnet(void);
33867 /* @internal */
33868 export function Currency_bitcoin_testnet(): Currency {
33869         if(!isWasmInitialized) {
33870                 throw new Error("initializeWasm() must be awaited first!");
33871         }
33872         const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
33873         return nativeResponseValue;
33874 }
33875         // enum LDKCurrency Currency_regtest(void);
33876 /* @internal */
33877 export function Currency_regtest(): Currency {
33878         if(!isWasmInitialized) {
33879                 throw new Error("initializeWasm() must be awaited first!");
33880         }
33881         const nativeResponseValue = wasm.TS_Currency_regtest();
33882         return nativeResponseValue;
33883 }
33884         // enum LDKCurrency Currency_simnet(void);
33885 /* @internal */
33886 export function Currency_simnet(): Currency {
33887         if(!isWasmInitialized) {
33888                 throw new Error("initializeWasm() must be awaited first!");
33889         }
33890         const nativeResponseValue = wasm.TS_Currency_simnet();
33891         return nativeResponseValue;
33892 }
33893         // enum LDKCurrency Currency_signet(void);
33894 /* @internal */
33895 export function Currency_signet(): Currency {
33896         if(!isWasmInitialized) {
33897                 throw new Error("initializeWasm() must be awaited first!");
33898         }
33899         const nativeResponseValue = wasm.TS_Currency_signet();
33900         return nativeResponseValue;
33901 }
33902         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
33903 /* @internal */
33904 export function Currency_hash(o: bigint): bigint {
33905         if(!isWasmInitialized) {
33906                 throw new Error("initializeWasm() must be awaited first!");
33907         }
33908         const nativeResponseValue = wasm.TS_Currency_hash(o);
33909         return nativeResponseValue;
33910 }
33911         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
33912 /* @internal */
33913 export function Currency_eq(a: bigint, b: bigint): boolean {
33914         if(!isWasmInitialized) {
33915                 throw new Error("initializeWasm() must be awaited first!");
33916         }
33917         const nativeResponseValue = wasm.TS_Currency_eq(a, b);
33918         return nativeResponseValue;
33919 }
33920         // void Sha256_free(struct LDKSha256 this_obj);
33921 /* @internal */
33922 export function Sha256_free(this_obj: bigint): void {
33923         if(!isWasmInitialized) {
33924                 throw new Error("initializeWasm() must be awaited first!");
33925         }
33926         const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
33927         // debug statements here
33928 }
33929         // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
33930 /* @internal */
33931 export function Sha256_clone_ptr(arg: bigint): bigint {
33932         if(!isWasmInitialized) {
33933                 throw new Error("initializeWasm() must be awaited first!");
33934         }
33935         const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
33936         return nativeResponseValue;
33937 }
33938         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
33939 /* @internal */
33940 export function Sha256_clone(orig: bigint): bigint {
33941         if(!isWasmInitialized) {
33942                 throw new Error("initializeWasm() must be awaited first!");
33943         }
33944         const nativeResponseValue = wasm.TS_Sha256_clone(orig);
33945         return nativeResponseValue;
33946 }
33947         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
33948 /* @internal */
33949 export function Sha256_hash(o: bigint): bigint {
33950         if(!isWasmInitialized) {
33951                 throw new Error("initializeWasm() must be awaited first!");
33952         }
33953         const nativeResponseValue = wasm.TS_Sha256_hash(o);
33954         return nativeResponseValue;
33955 }
33956         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
33957 /* @internal */
33958 export function Sha256_eq(a: bigint, b: bigint): boolean {
33959         if(!isWasmInitialized) {
33960                 throw new Error("initializeWasm() must be awaited first!");
33961         }
33962         const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
33963         return nativeResponseValue;
33964 }
33965         // void Description_free(struct LDKDescription this_obj);
33966 /* @internal */
33967 export function Description_free(this_obj: bigint): void {
33968         if(!isWasmInitialized) {
33969                 throw new Error("initializeWasm() must be awaited first!");
33970         }
33971         const nativeResponseValue = wasm.TS_Description_free(this_obj);
33972         // debug statements here
33973 }
33974         // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
33975 /* @internal */
33976 export function Description_clone_ptr(arg: bigint): bigint {
33977         if(!isWasmInitialized) {
33978                 throw new Error("initializeWasm() must be awaited first!");
33979         }
33980         const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
33981         return nativeResponseValue;
33982 }
33983         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
33984 /* @internal */
33985 export function Description_clone(orig: bigint): bigint {
33986         if(!isWasmInitialized) {
33987                 throw new Error("initializeWasm() must be awaited first!");
33988         }
33989         const nativeResponseValue = wasm.TS_Description_clone(orig);
33990         return nativeResponseValue;
33991 }
33992         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
33993 /* @internal */
33994 export function Description_hash(o: bigint): bigint {
33995         if(!isWasmInitialized) {
33996                 throw new Error("initializeWasm() must be awaited first!");
33997         }
33998         const nativeResponseValue = wasm.TS_Description_hash(o);
33999         return nativeResponseValue;
34000 }
34001         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
34002 /* @internal */
34003 export function Description_eq(a: bigint, b: bigint): boolean {
34004         if(!isWasmInitialized) {
34005                 throw new Error("initializeWasm() must be awaited first!");
34006         }
34007         const nativeResponseValue = wasm.TS_Description_eq(a, b);
34008         return nativeResponseValue;
34009 }
34010         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
34011 /* @internal */
34012 export function PayeePubKey_free(this_obj: bigint): void {
34013         if(!isWasmInitialized) {
34014                 throw new Error("initializeWasm() must be awaited first!");
34015         }
34016         const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
34017         // debug statements here
34018 }
34019         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
34020 /* @internal */
34021 export function PayeePubKey_get_a(this_ptr: bigint): number {
34022         if(!isWasmInitialized) {
34023                 throw new Error("initializeWasm() must be awaited first!");
34024         }
34025         const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
34026         return nativeResponseValue;
34027 }
34028         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
34029 /* @internal */
34030 export function PayeePubKey_set_a(this_ptr: bigint, val: number): void {
34031         if(!isWasmInitialized) {
34032                 throw new Error("initializeWasm() must be awaited first!");
34033         }
34034         const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
34035         // debug statements here
34036 }
34037         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
34038 /* @internal */
34039 export function PayeePubKey_new(a_arg: number): bigint {
34040         if(!isWasmInitialized) {
34041                 throw new Error("initializeWasm() must be awaited first!");
34042         }
34043         const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
34044         return nativeResponseValue;
34045 }
34046         // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
34047 /* @internal */
34048 export function PayeePubKey_clone_ptr(arg: bigint): bigint {
34049         if(!isWasmInitialized) {
34050                 throw new Error("initializeWasm() must be awaited first!");
34051         }
34052         const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
34053         return nativeResponseValue;
34054 }
34055         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
34056 /* @internal */
34057 export function PayeePubKey_clone(orig: bigint): bigint {
34058         if(!isWasmInitialized) {
34059                 throw new Error("initializeWasm() must be awaited first!");
34060         }
34061         const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
34062         return nativeResponseValue;
34063 }
34064         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
34065 /* @internal */
34066 export function PayeePubKey_hash(o: bigint): bigint {
34067         if(!isWasmInitialized) {
34068                 throw new Error("initializeWasm() must be awaited first!");
34069         }
34070         const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
34071         return nativeResponseValue;
34072 }
34073         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
34074 /* @internal */
34075 export function PayeePubKey_eq(a: bigint, b: bigint): boolean {
34076         if(!isWasmInitialized) {
34077                 throw new Error("initializeWasm() must be awaited first!");
34078         }
34079         const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
34080         return nativeResponseValue;
34081 }
34082         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
34083 /* @internal */
34084 export function ExpiryTime_free(this_obj: bigint): void {
34085         if(!isWasmInitialized) {
34086                 throw new Error("initializeWasm() must be awaited first!");
34087         }
34088         const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
34089         // debug statements here
34090 }
34091         // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
34092 /* @internal */
34093 export function ExpiryTime_clone_ptr(arg: bigint): bigint {
34094         if(!isWasmInitialized) {
34095                 throw new Error("initializeWasm() must be awaited first!");
34096         }
34097         const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
34098         return nativeResponseValue;
34099 }
34100         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
34101 /* @internal */
34102 export function ExpiryTime_clone(orig: bigint): bigint {
34103         if(!isWasmInitialized) {
34104                 throw new Error("initializeWasm() must be awaited first!");
34105         }
34106         const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
34107         return nativeResponseValue;
34108 }
34109         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
34110 /* @internal */
34111 export function ExpiryTime_hash(o: bigint): bigint {
34112         if(!isWasmInitialized) {
34113                 throw new Error("initializeWasm() must be awaited first!");
34114         }
34115         const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
34116         return nativeResponseValue;
34117 }
34118         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
34119 /* @internal */
34120 export function ExpiryTime_eq(a: bigint, b: bigint): boolean {
34121         if(!isWasmInitialized) {
34122                 throw new Error("initializeWasm() must be awaited first!");
34123         }
34124         const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
34125         return nativeResponseValue;
34126 }
34127         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
34128 /* @internal */
34129 export function MinFinalCltvExpiry_free(this_obj: bigint): void {
34130         if(!isWasmInitialized) {
34131                 throw new Error("initializeWasm() must be awaited first!");
34132         }
34133         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_free(this_obj);
34134         // debug statements here
34135 }
34136         // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
34137 /* @internal */
34138 export function MinFinalCltvExpiry_get_a(this_ptr: bigint): bigint {
34139         if(!isWasmInitialized) {
34140                 throw new Error("initializeWasm() must be awaited first!");
34141         }
34142         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_get_a(this_ptr);
34143         return nativeResponseValue;
34144 }
34145         // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
34146 /* @internal */
34147 export function MinFinalCltvExpiry_set_a(this_ptr: bigint, val: bigint): void {
34148         if(!isWasmInitialized) {
34149                 throw new Error("initializeWasm() must be awaited first!");
34150         }
34151         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_set_a(this_ptr, val);
34152         // debug statements here
34153 }
34154         // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
34155 /* @internal */
34156 export function MinFinalCltvExpiry_new(a_arg: bigint): bigint {
34157         if(!isWasmInitialized) {
34158                 throw new Error("initializeWasm() must be awaited first!");
34159         }
34160         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_new(a_arg);
34161         return nativeResponseValue;
34162 }
34163         // uint64_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
34164 /* @internal */
34165 export function MinFinalCltvExpiry_clone_ptr(arg: bigint): bigint {
34166         if(!isWasmInitialized) {
34167                 throw new Error("initializeWasm() must be awaited first!");
34168         }
34169         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone_ptr(arg);
34170         return nativeResponseValue;
34171 }
34172         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
34173 /* @internal */
34174 export function MinFinalCltvExpiry_clone(orig: bigint): bigint {
34175         if(!isWasmInitialized) {
34176                 throw new Error("initializeWasm() must be awaited first!");
34177         }
34178         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone(orig);
34179         return nativeResponseValue;
34180 }
34181         // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
34182 /* @internal */
34183 export function MinFinalCltvExpiry_hash(o: bigint): bigint {
34184         if(!isWasmInitialized) {
34185                 throw new Error("initializeWasm() must be awaited first!");
34186         }
34187         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_hash(o);
34188         return nativeResponseValue;
34189 }
34190         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
34191 /* @internal */
34192 export function MinFinalCltvExpiry_eq(a: bigint, b: bigint): boolean {
34193         if(!isWasmInitialized) {
34194                 throw new Error("initializeWasm() must be awaited first!");
34195         }
34196         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_eq(a, b);
34197         return nativeResponseValue;
34198 }
34199         // void Fallback_free(struct LDKFallback this_ptr);
34200 /* @internal */
34201 export function Fallback_free(this_ptr: bigint): void {
34202         if(!isWasmInitialized) {
34203                 throw new Error("initializeWasm() must be awaited first!");
34204         }
34205         const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
34206         // debug statements here
34207 }
34208         // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
34209 /* @internal */
34210 export function Fallback_clone_ptr(arg: bigint): bigint {
34211         if(!isWasmInitialized) {
34212                 throw new Error("initializeWasm() must be awaited first!");
34213         }
34214         const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
34215         return nativeResponseValue;
34216 }
34217         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
34218 /* @internal */
34219 export function Fallback_clone(orig: bigint): bigint {
34220         if(!isWasmInitialized) {
34221                 throw new Error("initializeWasm() must be awaited first!");
34222         }
34223         const nativeResponseValue = wasm.TS_Fallback_clone(orig);
34224         return nativeResponseValue;
34225 }
34226         // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
34227 /* @internal */
34228 export function Fallback_seg_wit_program(version: number, program: number): bigint {
34229         if(!isWasmInitialized) {
34230                 throw new Error("initializeWasm() must be awaited first!");
34231         }
34232         const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
34233         return nativeResponseValue;
34234 }
34235         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
34236 /* @internal */
34237 export function Fallback_pub_key_hash(a: number): bigint {
34238         if(!isWasmInitialized) {
34239                 throw new Error("initializeWasm() must be awaited first!");
34240         }
34241         const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
34242         return nativeResponseValue;
34243 }
34244         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
34245 /* @internal */
34246 export function Fallback_script_hash(a: number): bigint {
34247         if(!isWasmInitialized) {
34248                 throw new Error("initializeWasm() must be awaited first!");
34249         }
34250         const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
34251         return nativeResponseValue;
34252 }
34253         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
34254 /* @internal */
34255 export function Fallback_hash(o: bigint): bigint {
34256         if(!isWasmInitialized) {
34257                 throw new Error("initializeWasm() must be awaited first!");
34258         }
34259         const nativeResponseValue = wasm.TS_Fallback_hash(o);
34260         return nativeResponseValue;
34261 }
34262         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
34263 /* @internal */
34264 export function Fallback_eq(a: bigint, b: bigint): boolean {
34265         if(!isWasmInitialized) {
34266                 throw new Error("initializeWasm() must be awaited first!");
34267         }
34268         const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
34269         return nativeResponseValue;
34270 }
34271         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
34272 /* @internal */
34273 export function InvoiceSignature_free(this_obj: bigint): void {
34274         if(!isWasmInitialized) {
34275                 throw new Error("initializeWasm() must be awaited first!");
34276         }
34277         const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
34278         // debug statements here
34279 }
34280         // uint64_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
34281 /* @internal */
34282 export function InvoiceSignature_clone_ptr(arg: bigint): bigint {
34283         if(!isWasmInitialized) {
34284                 throw new Error("initializeWasm() must be awaited first!");
34285         }
34286         const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
34287         return nativeResponseValue;
34288 }
34289         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
34290 /* @internal */
34291 export function InvoiceSignature_clone(orig: bigint): bigint {
34292         if(!isWasmInitialized) {
34293                 throw new Error("initializeWasm() must be awaited first!");
34294         }
34295         const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
34296         return nativeResponseValue;
34297 }
34298         // uint64_t InvoiceSignature_hash(const struct LDKInvoiceSignature *NONNULL_PTR o);
34299 /* @internal */
34300 export function InvoiceSignature_hash(o: bigint): bigint {
34301         if(!isWasmInitialized) {
34302                 throw new Error("initializeWasm() must be awaited first!");
34303         }
34304         const nativeResponseValue = wasm.TS_InvoiceSignature_hash(o);
34305         return nativeResponseValue;
34306 }
34307         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
34308 /* @internal */
34309 export function InvoiceSignature_eq(a: bigint, b: bigint): boolean {
34310         if(!isWasmInitialized) {
34311                 throw new Error("initializeWasm() must be awaited first!");
34312         }
34313         const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
34314         return nativeResponseValue;
34315 }
34316         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
34317 /* @internal */
34318 export function PrivateRoute_free(this_obj: bigint): void {
34319         if(!isWasmInitialized) {
34320                 throw new Error("initializeWasm() must be awaited first!");
34321         }
34322         const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
34323         // debug statements here
34324 }
34325         // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
34326 /* @internal */
34327 export function PrivateRoute_clone_ptr(arg: bigint): bigint {
34328         if(!isWasmInitialized) {
34329                 throw new Error("initializeWasm() must be awaited first!");
34330         }
34331         const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
34332         return nativeResponseValue;
34333 }
34334         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
34335 /* @internal */
34336 export function PrivateRoute_clone(orig: bigint): bigint {
34337         if(!isWasmInitialized) {
34338                 throw new Error("initializeWasm() must be awaited first!");
34339         }
34340         const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
34341         return nativeResponseValue;
34342 }
34343         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
34344 /* @internal */
34345 export function PrivateRoute_hash(o: bigint): bigint {
34346         if(!isWasmInitialized) {
34347                 throw new Error("initializeWasm() must be awaited first!");
34348         }
34349         const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
34350         return nativeResponseValue;
34351 }
34352         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
34353 /* @internal */
34354 export function PrivateRoute_eq(a: bigint, b: bigint): boolean {
34355         if(!isWasmInitialized) {
34356                 throw new Error("initializeWasm() must be awaited first!");
34357         }
34358         const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
34359         return nativeResponseValue;
34360 }
34361         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
34362 /* @internal */
34363 export function SignedRawInvoice_into_parts(this_arg: bigint): bigint {
34364         if(!isWasmInitialized) {
34365                 throw new Error("initializeWasm() must be awaited first!");
34366         }
34367         const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
34368         return nativeResponseValue;
34369 }
34370         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
34371 /* @internal */
34372 export function SignedRawInvoice_raw_invoice(this_arg: bigint): bigint {
34373         if(!isWasmInitialized) {
34374                 throw new Error("initializeWasm() must be awaited first!");
34375         }
34376         const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
34377         return nativeResponseValue;
34378 }
34379         // MUST_USE_RES const uint8_t (*SignedRawInvoice_signable_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
34380 /* @internal */
34381 export function SignedRawInvoice_signable_hash(this_arg: bigint): number {
34382         if(!isWasmInitialized) {
34383                 throw new Error("initializeWasm() must be awaited first!");
34384         }
34385         const nativeResponseValue = wasm.TS_SignedRawInvoice_signable_hash(this_arg);
34386         return nativeResponseValue;
34387 }
34388         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
34389 /* @internal */
34390 export function SignedRawInvoice_signature(this_arg: bigint): bigint {
34391         if(!isWasmInitialized) {
34392                 throw new Error("initializeWasm() must be awaited first!");
34393         }
34394         const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
34395         return nativeResponseValue;
34396 }
34397         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
34398 /* @internal */
34399 export function SignedRawInvoice_recover_payee_pub_key(this_arg: bigint): bigint {
34400         if(!isWasmInitialized) {
34401                 throw new Error("initializeWasm() must be awaited first!");
34402         }
34403         const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
34404         return nativeResponseValue;
34405 }
34406         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
34407 /* @internal */
34408 export function SignedRawInvoice_check_signature(this_arg: bigint): boolean {
34409         if(!isWasmInitialized) {
34410                 throw new Error("initializeWasm() must be awaited first!");
34411         }
34412         const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
34413         return nativeResponseValue;
34414 }
34415         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_signable_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34416 /* @internal */
34417 export function RawInvoice_signable_hash(this_arg: bigint): number {
34418         if(!isWasmInitialized) {
34419                 throw new Error("initializeWasm() must be awaited first!");
34420         }
34421         const nativeResponseValue = wasm.TS_RawInvoice_signable_hash(this_arg);
34422         return nativeResponseValue;
34423 }
34424         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34425 /* @internal */
34426 export function RawInvoice_payment_hash(this_arg: bigint): bigint {
34427         if(!isWasmInitialized) {
34428                 throw new Error("initializeWasm() must be awaited first!");
34429         }
34430         const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
34431         return nativeResponseValue;
34432 }
34433         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34434 /* @internal */
34435 export function RawInvoice_description(this_arg: bigint): bigint {
34436         if(!isWasmInitialized) {
34437                 throw new Error("initializeWasm() must be awaited first!");
34438         }
34439         const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
34440         return nativeResponseValue;
34441 }
34442         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34443 /* @internal */
34444 export function RawInvoice_payee_pub_key(this_arg: bigint): bigint {
34445         if(!isWasmInitialized) {
34446                 throw new Error("initializeWasm() must be awaited first!");
34447         }
34448         const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
34449         return nativeResponseValue;
34450 }
34451         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34452 /* @internal */
34453 export function RawInvoice_description_hash(this_arg: bigint): bigint {
34454         if(!isWasmInitialized) {
34455                 throw new Error("initializeWasm() must be awaited first!");
34456         }
34457         const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
34458         return nativeResponseValue;
34459 }
34460         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34461 /* @internal */
34462 export function RawInvoice_expiry_time(this_arg: bigint): bigint {
34463         if(!isWasmInitialized) {
34464                 throw new Error("initializeWasm() must be awaited first!");
34465         }
34466         const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
34467         return nativeResponseValue;
34468 }
34469         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34470 /* @internal */
34471 export function RawInvoice_min_final_cltv_expiry(this_arg: bigint): bigint {
34472         if(!isWasmInitialized) {
34473                 throw new Error("initializeWasm() must be awaited first!");
34474         }
34475         const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry(this_arg);
34476         return nativeResponseValue;
34477 }
34478         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34479 /* @internal */
34480 export function RawInvoice_payment_secret(this_arg: bigint): number {
34481         if(!isWasmInitialized) {
34482                 throw new Error("initializeWasm() must be awaited first!");
34483         }
34484         const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
34485         return nativeResponseValue;
34486 }
34487         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34488 /* @internal */
34489 export function RawInvoice_features(this_arg: bigint): bigint {
34490         if(!isWasmInitialized) {
34491                 throw new Error("initializeWasm() must be awaited first!");
34492         }
34493         const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
34494         return nativeResponseValue;
34495 }
34496         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34497 /* @internal */
34498 export function RawInvoice_private_routes(this_arg: bigint): number {
34499         if(!isWasmInitialized) {
34500                 throw new Error("initializeWasm() must be awaited first!");
34501         }
34502         const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
34503         return nativeResponseValue;
34504 }
34505         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34506 /* @internal */
34507 export function RawInvoice_amount_pico_btc(this_arg: bigint): bigint {
34508         if(!isWasmInitialized) {
34509                 throw new Error("initializeWasm() must be awaited first!");
34510         }
34511         const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
34512         return nativeResponseValue;
34513 }
34514         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
34515 /* @internal */
34516 export function RawInvoice_currency(this_arg: bigint): Currency {
34517         if(!isWasmInitialized) {
34518                 throw new Error("initializeWasm() must be awaited first!");
34519         }
34520         const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
34521         return nativeResponseValue;
34522 }
34523         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
34524 /* @internal */
34525 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): bigint {
34526         if(!isWasmInitialized) {
34527                 throw new Error("initializeWasm() must be awaited first!");
34528         }
34529         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
34530         return nativeResponseValue;
34531 }
34532         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
34533 /* @internal */
34534 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): bigint {
34535         if(!isWasmInitialized) {
34536                 throw new Error("initializeWasm() must be awaited first!");
34537         }
34538         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
34539         return nativeResponseValue;
34540 }
34541         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
34542 /* @internal */
34543 export function PositiveTimestamp_as_unix_timestamp(this_arg: bigint): bigint {
34544         if(!isWasmInitialized) {
34545                 throw new Error("initializeWasm() must be awaited first!");
34546         }
34547         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
34548         return nativeResponseValue;
34549 }
34550         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
34551 /* @internal */
34552 export function PositiveTimestamp_as_duration_since_epoch(this_arg: bigint): bigint {
34553         if(!isWasmInitialized) {
34554                 throw new Error("initializeWasm() must be awaited first!");
34555         }
34556         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
34557         return nativeResponseValue;
34558 }
34559         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
34560 /* @internal */
34561 export function Invoice_into_signed_raw(this_arg: bigint): bigint {
34562         if(!isWasmInitialized) {
34563                 throw new Error("initializeWasm() must be awaited first!");
34564         }
34565         const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
34566         return nativeResponseValue;
34567 }
34568         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
34569 /* @internal */
34570 export function Invoice_check_signature(this_arg: bigint): bigint {
34571         if(!isWasmInitialized) {
34572                 throw new Error("initializeWasm() must be awaited first!");
34573         }
34574         const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
34575         return nativeResponseValue;
34576 }
34577         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
34578 /* @internal */
34579 export function Invoice_from_signed(signed_invoice: bigint): bigint {
34580         if(!isWasmInitialized) {
34581                 throw new Error("initializeWasm() must be awaited first!");
34582         }
34583         const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
34584         return nativeResponseValue;
34585 }
34586         // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
34587 /* @internal */
34588 export function Invoice_duration_since_epoch(this_arg: bigint): bigint {
34589         if(!isWasmInitialized) {
34590                 throw new Error("initializeWasm() must be awaited first!");
34591         }
34592         const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
34593         return nativeResponseValue;
34594 }
34595         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
34596 /* @internal */
34597 export function Invoice_payment_hash(this_arg: bigint): number {
34598         if(!isWasmInitialized) {
34599                 throw new Error("initializeWasm() must be awaited first!");
34600         }
34601         const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
34602         return nativeResponseValue;
34603 }
34604         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
34605 /* @internal */
34606 export function Invoice_payee_pub_key(this_arg: bigint): number {
34607         if(!isWasmInitialized) {
34608                 throw new Error("initializeWasm() must be awaited first!");
34609         }
34610         const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
34611         return nativeResponseValue;
34612 }
34613         // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
34614 /* @internal */
34615 export function Invoice_payment_secret(this_arg: bigint): number {
34616         if(!isWasmInitialized) {
34617                 throw new Error("initializeWasm() must be awaited first!");
34618         }
34619         const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
34620         return nativeResponseValue;
34621 }
34622         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
34623 /* @internal */
34624 export function Invoice_features(this_arg: bigint): bigint {
34625         if(!isWasmInitialized) {
34626                 throw new Error("initializeWasm() must be awaited first!");
34627         }
34628         const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
34629         return nativeResponseValue;
34630 }
34631         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
34632 /* @internal */
34633 export function Invoice_recover_payee_pub_key(this_arg: bigint): number {
34634         if(!isWasmInitialized) {
34635                 throw new Error("initializeWasm() must be awaited first!");
34636         }
34637         const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
34638         return nativeResponseValue;
34639 }
34640         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
34641 /* @internal */
34642 export function Invoice_expiry_time(this_arg: bigint): bigint {
34643         if(!isWasmInitialized) {
34644                 throw new Error("initializeWasm() must be awaited first!");
34645         }
34646         const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
34647         return nativeResponseValue;
34648 }
34649         // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
34650 /* @internal */
34651 export function Invoice_would_expire(this_arg: bigint, at_time: bigint): boolean {
34652         if(!isWasmInitialized) {
34653                 throw new Error("initializeWasm() must be awaited first!");
34654         }
34655         const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
34656         return nativeResponseValue;
34657 }
34658         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
34659 /* @internal */
34660 export function Invoice_min_final_cltv_expiry(this_arg: bigint): bigint {
34661         if(!isWasmInitialized) {
34662                 throw new Error("initializeWasm() must be awaited first!");
34663         }
34664         const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry(this_arg);
34665         return nativeResponseValue;
34666 }
34667         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
34668 /* @internal */
34669 export function Invoice_private_routes(this_arg: bigint): number {
34670         if(!isWasmInitialized) {
34671                 throw new Error("initializeWasm() must be awaited first!");
34672         }
34673         const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
34674         return nativeResponseValue;
34675 }
34676         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
34677 /* @internal */
34678 export function Invoice_route_hints(this_arg: bigint): number {
34679         if(!isWasmInitialized) {
34680                 throw new Error("initializeWasm() must be awaited first!");
34681         }
34682         const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
34683         return nativeResponseValue;
34684 }
34685         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
34686 /* @internal */
34687 export function Invoice_currency(this_arg: bigint): Currency {
34688         if(!isWasmInitialized) {
34689                 throw new Error("initializeWasm() must be awaited first!");
34690         }
34691         const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
34692         return nativeResponseValue;
34693 }
34694         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
34695 /* @internal */
34696 export function Invoice_amount_milli_satoshis(this_arg: bigint): bigint {
34697         if(!isWasmInitialized) {
34698                 throw new Error("initializeWasm() must be awaited first!");
34699         }
34700         const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
34701         return nativeResponseValue;
34702 }
34703         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
34704 /* @internal */
34705 export function Description_new(description: number): bigint {
34706         if(!isWasmInitialized) {
34707                 throw new Error("initializeWasm() must be awaited first!");
34708         }
34709         const nativeResponseValue = wasm.TS_Description_new(description);
34710         return nativeResponseValue;
34711 }
34712         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
34713 /* @internal */
34714 export function Description_into_inner(this_arg: bigint): number {
34715         if(!isWasmInitialized) {
34716                 throw new Error("initializeWasm() must be awaited first!");
34717         }
34718         const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
34719         return nativeResponseValue;
34720 }
34721         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
34722 /* @internal */
34723 export function ExpiryTime_from_seconds(seconds: bigint): bigint {
34724         if(!isWasmInitialized) {
34725                 throw new Error("initializeWasm() must be awaited first!");
34726         }
34727         const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
34728         return nativeResponseValue;
34729 }
34730         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
34731 /* @internal */
34732 export function ExpiryTime_from_duration(duration: bigint): bigint {
34733         if(!isWasmInitialized) {
34734                 throw new Error("initializeWasm() must be awaited first!");
34735         }
34736         const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
34737         return nativeResponseValue;
34738 }
34739         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
34740 /* @internal */
34741 export function ExpiryTime_as_seconds(this_arg: bigint): bigint {
34742         if(!isWasmInitialized) {
34743                 throw new Error("initializeWasm() must be awaited first!");
34744         }
34745         const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
34746         return nativeResponseValue;
34747 }
34748         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
34749 /* @internal */
34750 export function ExpiryTime_as_duration(this_arg: bigint): bigint {
34751         if(!isWasmInitialized) {
34752                 throw new Error("initializeWasm() must be awaited first!");
34753         }
34754         const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
34755         return nativeResponseValue;
34756 }
34757         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
34758 /* @internal */
34759 export function PrivateRoute_new(hops: bigint): bigint {
34760         if(!isWasmInitialized) {
34761                 throw new Error("initializeWasm() must be awaited first!");
34762         }
34763         const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
34764         return nativeResponseValue;
34765 }
34766         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
34767 /* @internal */
34768 export function PrivateRoute_into_inner(this_arg: bigint): bigint {
34769         if(!isWasmInitialized) {
34770                 throw new Error("initializeWasm() must be awaited first!");
34771         }
34772         const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
34773         return nativeResponseValue;
34774 }
34775         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
34776 /* @internal */
34777 export function CreationError_clone(orig: bigint): CreationError {
34778         if(!isWasmInitialized) {
34779                 throw new Error("initializeWasm() must be awaited first!");
34780         }
34781         const nativeResponseValue = wasm.TS_CreationError_clone(orig);
34782         return nativeResponseValue;
34783 }
34784         // enum LDKCreationError CreationError_description_too_long(void);
34785 /* @internal */
34786 export function CreationError_description_too_long(): CreationError {
34787         if(!isWasmInitialized) {
34788                 throw new Error("initializeWasm() must be awaited first!");
34789         }
34790         const nativeResponseValue = wasm.TS_CreationError_description_too_long();
34791         return nativeResponseValue;
34792 }
34793         // enum LDKCreationError CreationError_route_too_long(void);
34794 /* @internal */
34795 export function CreationError_route_too_long(): CreationError {
34796         if(!isWasmInitialized) {
34797                 throw new Error("initializeWasm() must be awaited first!");
34798         }
34799         const nativeResponseValue = wasm.TS_CreationError_route_too_long();
34800         return nativeResponseValue;
34801 }
34802         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
34803 /* @internal */
34804 export function CreationError_timestamp_out_of_bounds(): CreationError {
34805         if(!isWasmInitialized) {
34806                 throw new Error("initializeWasm() must be awaited first!");
34807         }
34808         const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
34809         return nativeResponseValue;
34810 }
34811         // enum LDKCreationError CreationError_invalid_amount(void);
34812 /* @internal */
34813 export function CreationError_invalid_amount(): CreationError {
34814         if(!isWasmInitialized) {
34815                 throw new Error("initializeWasm() must be awaited first!");
34816         }
34817         const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
34818         return nativeResponseValue;
34819 }
34820         // enum LDKCreationError CreationError_missing_route_hints(void);
34821 /* @internal */
34822 export function CreationError_missing_route_hints(): CreationError {
34823         if(!isWasmInitialized) {
34824                 throw new Error("initializeWasm() must be awaited first!");
34825         }
34826         const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
34827         return nativeResponseValue;
34828 }
34829         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
34830 /* @internal */
34831 export function CreationError_eq(a: bigint, b: bigint): boolean {
34832         if(!isWasmInitialized) {
34833                 throw new Error("initializeWasm() must be awaited first!");
34834         }
34835         const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
34836         return nativeResponseValue;
34837 }
34838         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
34839 /* @internal */
34840 export function CreationError_to_str(o: bigint): number {
34841         if(!isWasmInitialized) {
34842                 throw new Error("initializeWasm() must be awaited first!");
34843         }
34844         const nativeResponseValue = wasm.TS_CreationError_to_str(o);
34845         return nativeResponseValue;
34846 }
34847         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
34848 /* @internal */
34849 export function SemanticError_clone(orig: bigint): SemanticError {
34850         if(!isWasmInitialized) {
34851                 throw new Error("initializeWasm() must be awaited first!");
34852         }
34853         const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
34854         return nativeResponseValue;
34855 }
34856         // enum LDKSemanticError SemanticError_no_payment_hash(void);
34857 /* @internal */
34858 export function SemanticError_no_payment_hash(): SemanticError {
34859         if(!isWasmInitialized) {
34860                 throw new Error("initializeWasm() must be awaited first!");
34861         }
34862         const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
34863         return nativeResponseValue;
34864 }
34865         // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
34866 /* @internal */
34867 export function SemanticError_multiple_payment_hashes(): SemanticError {
34868         if(!isWasmInitialized) {
34869                 throw new Error("initializeWasm() must be awaited first!");
34870         }
34871         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
34872         return nativeResponseValue;
34873 }
34874         // enum LDKSemanticError SemanticError_no_description(void);
34875 /* @internal */
34876 export function SemanticError_no_description(): SemanticError {
34877         if(!isWasmInitialized) {
34878                 throw new Error("initializeWasm() must be awaited first!");
34879         }
34880         const nativeResponseValue = wasm.TS_SemanticError_no_description();
34881         return nativeResponseValue;
34882 }
34883         // enum LDKSemanticError SemanticError_multiple_descriptions(void);
34884 /* @internal */
34885 export function SemanticError_multiple_descriptions(): SemanticError {
34886         if(!isWasmInitialized) {
34887                 throw new Error("initializeWasm() must be awaited first!");
34888         }
34889         const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
34890         return nativeResponseValue;
34891 }
34892         // enum LDKSemanticError SemanticError_no_payment_secret(void);
34893 /* @internal */
34894 export function SemanticError_no_payment_secret(): SemanticError {
34895         if(!isWasmInitialized) {
34896                 throw new Error("initializeWasm() must be awaited first!");
34897         }
34898         const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
34899         return nativeResponseValue;
34900 }
34901         // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
34902 /* @internal */
34903 export function SemanticError_multiple_payment_secrets(): SemanticError {
34904         if(!isWasmInitialized) {
34905                 throw new Error("initializeWasm() must be awaited first!");
34906         }
34907         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
34908         return nativeResponseValue;
34909 }
34910         // enum LDKSemanticError SemanticError_invalid_features(void);
34911 /* @internal */
34912 export function SemanticError_invalid_features(): SemanticError {
34913         if(!isWasmInitialized) {
34914                 throw new Error("initializeWasm() must be awaited first!");
34915         }
34916         const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
34917         return nativeResponseValue;
34918 }
34919         // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
34920 /* @internal */
34921 export function SemanticError_invalid_recovery_id(): SemanticError {
34922         if(!isWasmInitialized) {
34923                 throw new Error("initializeWasm() must be awaited first!");
34924         }
34925         const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
34926         return nativeResponseValue;
34927 }
34928         // enum LDKSemanticError SemanticError_invalid_signature(void);
34929 /* @internal */
34930 export function SemanticError_invalid_signature(): SemanticError {
34931         if(!isWasmInitialized) {
34932                 throw new Error("initializeWasm() must be awaited first!");
34933         }
34934         const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
34935         return nativeResponseValue;
34936 }
34937         // enum LDKSemanticError SemanticError_imprecise_amount(void);
34938 /* @internal */
34939 export function SemanticError_imprecise_amount(): SemanticError {
34940         if(!isWasmInitialized) {
34941                 throw new Error("initializeWasm() must be awaited first!");
34942         }
34943         const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
34944         return nativeResponseValue;
34945 }
34946         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
34947 /* @internal */
34948 export function SemanticError_eq(a: bigint, b: bigint): boolean {
34949         if(!isWasmInitialized) {
34950                 throw new Error("initializeWasm() must be awaited first!");
34951         }
34952         const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
34953         return nativeResponseValue;
34954 }
34955         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
34956 /* @internal */
34957 export function SemanticError_to_str(o: bigint): number {
34958         if(!isWasmInitialized) {
34959                 throw new Error("initializeWasm() must be awaited first!");
34960         }
34961         const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
34962         return nativeResponseValue;
34963 }
34964         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
34965 /* @internal */
34966 export function SignOrCreationError_free(this_ptr: bigint): void {
34967         if(!isWasmInitialized) {
34968                 throw new Error("initializeWasm() must be awaited first!");
34969         }
34970         const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
34971         // debug statements here
34972 }
34973         // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
34974 /* @internal */
34975 export function SignOrCreationError_clone_ptr(arg: bigint): bigint {
34976         if(!isWasmInitialized) {
34977                 throw new Error("initializeWasm() must be awaited first!");
34978         }
34979         const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
34980         return nativeResponseValue;
34981 }
34982         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
34983 /* @internal */
34984 export function SignOrCreationError_clone(orig: bigint): bigint {
34985         if(!isWasmInitialized) {
34986                 throw new Error("initializeWasm() must be awaited first!");
34987         }
34988         const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
34989         return nativeResponseValue;
34990 }
34991         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
34992 /* @internal */
34993 export function SignOrCreationError_sign_error(): bigint {
34994         if(!isWasmInitialized) {
34995                 throw new Error("initializeWasm() must be awaited first!");
34996         }
34997         const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
34998         return nativeResponseValue;
34999 }
35000         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
35001 /* @internal */
35002 export function SignOrCreationError_creation_error(a: CreationError): bigint {
35003         if(!isWasmInitialized) {
35004                 throw new Error("initializeWasm() must be awaited first!");
35005         }
35006         const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
35007         return nativeResponseValue;
35008 }
35009         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
35010 /* @internal */
35011 export function SignOrCreationError_eq(a: bigint, b: bigint): boolean {
35012         if(!isWasmInitialized) {
35013                 throw new Error("initializeWasm() must be awaited first!");
35014         }
35015         const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
35016         return nativeResponseValue;
35017 }
35018         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
35019 /* @internal */
35020 export function SignOrCreationError_to_str(o: bigint): number {
35021         if(!isWasmInitialized) {
35022                 throw new Error("initializeWasm() must be awaited first!");
35023         }
35024         const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
35025         return nativeResponseValue;
35026 }
35027         // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
35028 /* @internal */
35029 export function InvoicePayer_free(this_obj: bigint): void {
35030         if(!isWasmInitialized) {
35031                 throw new Error("initializeWasm() must be awaited first!");
35032         }
35033         const nativeResponseValue = wasm.TS_InvoicePayer_free(this_obj);
35034         // debug statements here
35035 }
35036         // void Payer_free(struct LDKPayer this_ptr);
35037 /* @internal */
35038 export function Payer_free(this_ptr: bigint): void {
35039         if(!isWasmInitialized) {
35040                 throw new Error("initializeWasm() must be awaited first!");
35041         }
35042         const nativeResponseValue = wasm.TS_Payer_free(this_ptr);
35043         // debug statements here
35044 }
35045         // void Router_free(struct LDKRouter this_ptr);
35046 /* @internal */
35047 export function Router_free(this_ptr: bigint): void {
35048         if(!isWasmInitialized) {
35049                 throw new Error("initializeWasm() must be awaited first!");
35050         }
35051         const nativeResponseValue = wasm.TS_Router_free(this_ptr);
35052         // debug statements here
35053 }
35054         // void Retry_free(struct LDKRetry this_ptr);
35055 /* @internal */
35056 export function Retry_free(this_ptr: bigint): void {
35057         if(!isWasmInitialized) {
35058                 throw new Error("initializeWasm() must be awaited first!");
35059         }
35060         const nativeResponseValue = wasm.TS_Retry_free(this_ptr);
35061         // debug statements here
35062 }
35063         // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
35064 /* @internal */
35065 export function Retry_clone_ptr(arg: bigint): bigint {
35066         if(!isWasmInitialized) {
35067                 throw new Error("initializeWasm() must be awaited first!");
35068         }
35069         const nativeResponseValue = wasm.TS_Retry_clone_ptr(arg);
35070         return nativeResponseValue;
35071 }
35072         // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
35073 /* @internal */
35074 export function Retry_clone(orig: bigint): bigint {
35075         if(!isWasmInitialized) {
35076                 throw new Error("initializeWasm() must be awaited first!");
35077         }
35078         const nativeResponseValue = wasm.TS_Retry_clone(orig);
35079         return nativeResponseValue;
35080 }
35081         // struct LDKRetry Retry_attempts(uintptr_t a);
35082 /* @internal */
35083 export function Retry_attempts(a: number): bigint {
35084         if(!isWasmInitialized) {
35085                 throw new Error("initializeWasm() must be awaited first!");
35086         }
35087         const nativeResponseValue = wasm.TS_Retry_attempts(a);
35088         return nativeResponseValue;
35089 }
35090         // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
35091 /* @internal */
35092 export function Retry_eq(a: bigint, b: bigint): boolean {
35093         if(!isWasmInitialized) {
35094                 throw new Error("initializeWasm() must be awaited first!");
35095         }
35096         const nativeResponseValue = wasm.TS_Retry_eq(a, b);
35097         return nativeResponseValue;
35098 }
35099         // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
35100 /* @internal */
35101 export function Retry_hash(o: bigint): bigint {
35102         if(!isWasmInitialized) {
35103                 throw new Error("initializeWasm() must be awaited first!");
35104         }
35105         const nativeResponseValue = wasm.TS_Retry_hash(o);
35106         return nativeResponseValue;
35107 }
35108         // void PaymentError_free(struct LDKPaymentError this_ptr);
35109 /* @internal */
35110 export function PaymentError_free(this_ptr: bigint): void {
35111         if(!isWasmInitialized) {
35112                 throw new Error("initializeWasm() must be awaited first!");
35113         }
35114         const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
35115         // debug statements here
35116 }
35117         // uint64_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
35118 /* @internal */
35119 export function PaymentError_clone_ptr(arg: bigint): bigint {
35120         if(!isWasmInitialized) {
35121                 throw new Error("initializeWasm() must be awaited first!");
35122         }
35123         const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
35124         return nativeResponseValue;
35125 }
35126         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
35127 /* @internal */
35128 export function PaymentError_clone(orig: bigint): bigint {
35129         if(!isWasmInitialized) {
35130                 throw new Error("initializeWasm() must be awaited first!");
35131         }
35132         const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
35133         return nativeResponseValue;
35134 }
35135         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
35136 /* @internal */
35137 export function PaymentError_invoice(a: number): bigint {
35138         if(!isWasmInitialized) {
35139                 throw new Error("initializeWasm() must be awaited first!");
35140         }
35141         const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
35142         return nativeResponseValue;
35143 }
35144         // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
35145 /* @internal */
35146 export function PaymentError_routing(a: bigint): bigint {
35147         if(!isWasmInitialized) {
35148                 throw new Error("initializeWasm() must be awaited first!");
35149         }
35150         const nativeResponseValue = wasm.TS_PaymentError_routing(a);
35151         return nativeResponseValue;
35152 }
35153         // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
35154 /* @internal */
35155 export function PaymentError_sending(a: bigint): bigint {
35156         if(!isWasmInitialized) {
35157                 throw new Error("initializeWasm() must be awaited first!");
35158         }
35159         const nativeResponseValue = wasm.TS_PaymentError_sending(a);
35160         return nativeResponseValue;
35161 }
35162         // MUST_USE_RES struct LDKInvoicePayer InvoicePayer_new(struct LDKPayer payer, struct LDKRouter router, struct LDKLogger logger, struct LDKEventHandler event_handler, struct LDKRetry retry);
35163 /* @internal */
35164 export function InvoicePayer_new(payer: bigint, router: bigint, logger: bigint, event_handler: bigint, retry: bigint): bigint {
35165         if(!isWasmInitialized) {
35166                 throw new Error("initializeWasm() must be awaited first!");
35167         }
35168         const nativeResponseValue = wasm.TS_InvoicePayer_new(payer, router, logger, event_handler, retry);
35169         return nativeResponseValue;
35170 }
35171         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
35172 /* @internal */
35173 export function InvoicePayer_pay_invoice(this_arg: bigint, invoice: bigint): bigint {
35174         if(!isWasmInitialized) {
35175                 throw new Error("initializeWasm() must be awaited first!");
35176         }
35177         const nativeResponseValue = wasm.TS_InvoicePayer_pay_invoice(this_arg, invoice);
35178         return nativeResponseValue;
35179 }
35180         // 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);
35181 /* @internal */
35182 export function InvoicePayer_pay_zero_value_invoice(this_arg: bigint, invoice: bigint, amount_msats: bigint): bigint {
35183         if(!isWasmInitialized) {
35184                 throw new Error("initializeWasm() must be awaited first!");
35185         }
35186         const nativeResponseValue = wasm.TS_InvoicePayer_pay_zero_value_invoice(this_arg, invoice, amount_msats);
35187         return nativeResponseValue;
35188 }
35189         // 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);
35190 /* @internal */
35191 export function InvoicePayer_pay_pubkey(this_arg: bigint, pubkey: number, payment_preimage: number, amount_msats: bigint, final_cltv_expiry_delta: number): bigint {
35192         if(!isWasmInitialized) {
35193                 throw new Error("initializeWasm() must be awaited first!");
35194         }
35195         const nativeResponseValue = wasm.TS_InvoicePayer_pay_pubkey(this_arg, pubkey, payment_preimage, amount_msats, final_cltv_expiry_delta);
35196         return nativeResponseValue;
35197 }
35198         // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
35199 /* @internal */
35200 export function InvoicePayer_remove_cached_payment(this_arg: bigint, payment_hash: number): void {
35201         if(!isWasmInitialized) {
35202                 throw new Error("initializeWasm() must be awaited first!");
35203         }
35204         const nativeResponseValue = wasm.TS_InvoicePayer_remove_cached_payment(this_arg, payment_hash);
35205         // debug statements here
35206 }
35207         // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
35208 /* @internal */
35209 export function InvoicePayer_as_EventHandler(this_arg: bigint): bigint {
35210         if(!isWasmInitialized) {
35211                 throw new Error("initializeWasm() must be awaited first!");
35212         }
35213         const nativeResponseValue = wasm.TS_InvoicePayer_as_EventHandler(this_arg);
35214         return nativeResponseValue;
35215 }
35216         // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
35217 /* @internal */
35218 export function InFlightHtlcs_free(this_obj: bigint): void {
35219         if(!isWasmInitialized) {
35220                 throw new Error("initializeWasm() must be awaited first!");
35221         }
35222         const nativeResponseValue = wasm.TS_InFlightHtlcs_free(this_obj);
35223         // debug statements here
35224 }
35225         // MUST_USE_RES struct LDKCOption_u64Z InFlightHtlcs_used_liquidity_msat(const struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid);
35226 /* @internal */
35227 export function InFlightHtlcs_used_liquidity_msat(this_arg: bigint, source: bigint, target: bigint, channel_scid: bigint): bigint {
35228         if(!isWasmInitialized) {
35229                 throw new Error("initializeWasm() must be awaited first!");
35230         }
35231         const nativeResponseValue = wasm.TS_InFlightHtlcs_used_liquidity_msat(this_arg, source, target, channel_scid);
35232         return nativeResponseValue;
35233 }
35234         // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
35235 /* @internal */
35236 export function InFlightHtlcs_write(obj: bigint): number {
35237         if(!isWasmInitialized) {
35238                 throw new Error("initializeWasm() must be awaited first!");
35239         }
35240         const nativeResponseValue = wasm.TS_InFlightHtlcs_write(obj);
35241         return nativeResponseValue;
35242 }
35243         // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
35244 /* @internal */
35245 export function InFlightHtlcs_read(ser: number): bigint {
35246         if(!isWasmInitialized) {
35247                 throw new Error("initializeWasm() must be awaited first!");
35248         }
35249         const nativeResponseValue = wasm.TS_InFlightHtlcs_read(ser);
35250         return nativeResponseValue;
35251 }
35252         // 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);
35253 /* @internal */
35254 export function create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(channelmanager: bigint, keys_manager: bigint, network: Currency, amt_msat: bigint, description_hash: bigint, duration_since_epoch: bigint, invoice_expiry_delta_secs: number): bigint {
35255         if(!isWasmInitialized) {
35256                 throw new Error("initializeWasm() must be awaited first!");
35257         }
35258         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);
35259         return nativeResponseValue;
35260 }
35261         // 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);
35262 /* @internal */
35263 export function create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager: bigint, keys_manager: bigint, network: Currency, amt_msat: bigint, description: number, duration_since_epoch: bigint, invoice_expiry_delta_secs: number): bigint {
35264         if(!isWasmInitialized) {
35265                 throw new Error("initializeWasm() must be awaited first!");
35266         }
35267         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);
35268         return nativeResponseValue;
35269 }
35270         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
35271 /* @internal */
35272 export function DefaultRouter_free(this_obj: bigint): void {
35273         if(!isWasmInitialized) {
35274                 throw new Error("initializeWasm() must be awaited first!");
35275         }
35276         const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
35277         // debug statements here
35278 }
35279         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes, struct LDKLockableScore scorer);
35280 /* @internal */
35281 export function DefaultRouter_new(network_graph: bigint, logger: bigint, random_seed_bytes: number, scorer: bigint): bigint {
35282         if(!isWasmInitialized) {
35283                 throw new Error("initializeWasm() must be awaited first!");
35284         }
35285         const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger, random_seed_bytes, scorer);
35286         return nativeResponseValue;
35287 }
35288         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
35289 /* @internal */
35290 export function DefaultRouter_as_Router(this_arg: bigint): bigint {
35291         if(!isWasmInitialized) {
35292                 throw new Error("initializeWasm() must be awaited first!");
35293         }
35294         const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
35295         return nativeResponseValue;
35296 }
35297         // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
35298 /* @internal */
35299 export function ChannelManager_as_Payer(this_arg: bigint): bigint {
35300         if(!isWasmInitialized) {
35301                 throw new Error("initializeWasm() must be awaited first!");
35302         }
35303         const nativeResponseValue = wasm.TS_ChannelManager_as_Payer(this_arg);
35304         return nativeResponseValue;
35305 }
35306         // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
35307 /* @internal */
35308 export function SiPrefix_from_str(s: number): bigint {
35309         if(!isWasmInitialized) {
35310                 throw new Error("initializeWasm() must be awaited first!");
35311         }
35312         const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
35313         return nativeResponseValue;
35314 }
35315         // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
35316 /* @internal */
35317 export function Invoice_from_str(s: number): bigint {
35318         if(!isWasmInitialized) {
35319                 throw new Error("initializeWasm() must be awaited first!");
35320         }
35321         const nativeResponseValue = wasm.TS_Invoice_from_str(s);
35322         return nativeResponseValue;
35323 }
35324         // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
35325 /* @internal */
35326 export function SignedRawInvoice_from_str(s: number): bigint {
35327         if(!isWasmInitialized) {
35328                 throw new Error("initializeWasm() must be awaited first!");
35329         }
35330         const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
35331         return nativeResponseValue;
35332 }
35333         // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
35334 /* @internal */
35335 export function ParseError_to_str(o: bigint): number {
35336         if(!isWasmInitialized) {
35337                 throw new Error("initializeWasm() must be awaited first!");
35338         }
35339         const nativeResponseValue = wasm.TS_ParseError_to_str(o);
35340         return nativeResponseValue;
35341 }
35342         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
35343 /* @internal */
35344 export function ParseOrSemanticError_to_str(o: bigint): number {
35345         if(!isWasmInitialized) {
35346                 throw new Error("initializeWasm() must be awaited first!");
35347         }
35348         const nativeResponseValue = wasm.TS_ParseOrSemanticError_to_str(o);
35349         return nativeResponseValue;
35350 }
35351         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
35352 /* @internal */
35353 export function Invoice_to_str(o: bigint): number {
35354         if(!isWasmInitialized) {
35355                 throw new Error("initializeWasm() must be awaited first!");
35356         }
35357         const nativeResponseValue = wasm.TS_Invoice_to_str(o);
35358         return nativeResponseValue;
35359 }
35360         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
35361 /* @internal */
35362 export function SignedRawInvoice_to_str(o: bigint): number {
35363         if(!isWasmInitialized) {
35364                 throw new Error("initializeWasm() must be awaited first!");
35365         }
35366         const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
35367         return nativeResponseValue;
35368 }
35369         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
35370 /* @internal */
35371 export function Currency_to_str(o: bigint): number {
35372         if(!isWasmInitialized) {
35373                 throw new Error("initializeWasm() must be awaited first!");
35374         }
35375         const nativeResponseValue = wasm.TS_Currency_to_str(o);
35376         return nativeResponseValue;
35377 }
35378         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
35379 /* @internal */
35380 export function SiPrefix_to_str(o: bigint): number {
35381         if(!isWasmInitialized) {
35382                 throw new Error("initializeWasm() must be awaited first!");
35383         }
35384         const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
35385         return nativeResponseValue;
35386 }
35387
35388
35389 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) {
35390         const weak: WeakRef<object> = js_objs[obj_ptr];
35391         if (weak == null || weak == undefined) {
35392                 console.error("Got function call on unknown/free'd JS object!");
35393                 throw new Error("Got function call on unknown/free'd JS object!");
35394         }
35395         const obj: object = weak.deref();
35396         if (obj == null || obj == undefined) {
35397                 console.error("Got function call on GC'd JS object!");
35398                 throw new Error("Got function call on GC'd JS object!");
35399         }
35400         var fn;
35401         switch (fn_id) {
35402                 case 0: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
35403                 case 1: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
35404                 case 2: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
35405                 case 3: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
35406                 case 4: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
35407                 case 5: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
35408                 case 6: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
35409                 case 7: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
35410                 case 8: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
35411                 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
35412                 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
35413                 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
35414                 case 12: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
35415                 case 13: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
35416                 case 14: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
35417                 case 15: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
35418                 case 16: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
35419                 case 17: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
35420                 case 18: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
35421                 case 19: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
35422                 case 20: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
35423                 case 21: fn = Object.getOwnPropertyDescriptor(obj, "ecdh"); break;
35424                 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
35425                 case 23: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
35426                 case 24: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
35427                 case 25: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
35428                 case 26: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
35429                 case 27: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
35430                 case 28: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
35431                 case 29: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
35432                 case 30: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
35433                 case 31: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
35434                 case 32: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
35435                 case 33: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
35436                 case 34: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
35437                 case 35: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
35438                 case 36: fn = Object.getOwnPropertyDescriptor(obj, "next_onion_message_for_peer"); break;
35439                 case 37: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
35440                 case 38: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
35441                 case 39: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
35442                 case 40: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
35443                 case 41: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
35444                 case 42: fn = Object.getOwnPropertyDescriptor(obj, "probe_failed"); break;
35445                 case 43: fn = Object.getOwnPropertyDescriptor(obj, "probe_successful"); break;
35446                 case 44: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
35447                 case 45: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
35448                 case 46: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
35449                 case 47: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break;
35450                 case 48: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break;
35451                 case 49: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break;
35452                 case 50: fn = Object.getOwnPropertyDescriptor(obj, "call"); break;
35453                 case 51: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break;
35454                 case 52: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
35455                 case 53: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
35456                 case 54: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
35457                 case 55: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
35458                 case 56: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
35459                 case 57: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
35460                 case 58: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
35461                 case 59: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
35462                 case 60: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
35463                 case 61: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
35464                 case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
35465                 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
35466                 case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break;
35467                 case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
35468                 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
35469                 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
35470                 case 68: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
35471                 case 69: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
35472                 case 70: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
35473                 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
35474                 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
35475                 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
35476                 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
35477                 case 75: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
35478                 case 76: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
35479                 case 77: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
35480                 case 78: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
35481                 case 79: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
35482                 case 80: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break;
35483                 case 81: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break;
35484                 case 82: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
35485                 case 83: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
35486                 case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
35487                 case 85: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcement"); break;
35488                 case 86: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcement"); break;
35489                 case 87: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
35490                 case 88: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
35491                 case 89: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
35492                 case 90: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
35493                 case 91: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
35494                 case 92: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break;
35495                 case 93: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break;
35496                 case 94: fn = Object.getOwnPropertyDescriptor(obj, "handle_onion_message"); break;
35497                 case 95: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
35498                 case 96: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
35499                 case 97: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break;
35500                 case 98: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break;
35501                 case 99: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
35502                 case 100: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
35503                 case 101: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
35504                 case 102: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
35505                 case 103: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
35506                 case 104: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
35507                 case 105: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
35508                 case 106: fn = Object.getOwnPropertyDescriptor(obj, "node_id"); break;
35509                 case 107: fn = Object.getOwnPropertyDescriptor(obj, "first_hops"); break;
35510                 case 108: fn = Object.getOwnPropertyDescriptor(obj, "send_payment"); break;
35511                 case 109: fn = Object.getOwnPropertyDescriptor(obj, "send_spontaneous_payment"); break;
35512                 case 110: fn = Object.getOwnPropertyDescriptor(obj, "retry_payment"); break;
35513                 case 111: fn = Object.getOwnPropertyDescriptor(obj, "abandon_payment"); break;
35514                 case 112: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
35515                 case 113: fn = Object.getOwnPropertyDescriptor(obj, "notify_payment_path_failed"); break;
35516                 case 114: fn = Object.getOwnPropertyDescriptor(obj, "notify_payment_path_successful"); break;
35517                 case 115: fn = Object.getOwnPropertyDescriptor(obj, "notify_payment_probe_successful"); break;
35518                 case 116: fn = Object.getOwnPropertyDescriptor(obj, "notify_payment_probe_failed"); break;
35519                 default:
35520                         console.error("Got unknown function call from C!");
35521                         throw new Error("Got unknown function call from C!");
35522         }
35523         if (fn == null || fn == undefined) {
35524                 console.error("Got function call on incorrect JS object!");
35525                 throw new Error("Got function call on incorrect JS object!");
35526         }
35527         const ret = fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
35528         if (ret === undefined || ret === null) return BigInt(0);
35529         return BigInt(ret);
35530 }