+ const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
+ return nativeResponseValue;
+}
+ // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
+/* @internal */
+export function ProbabilisticScorer_write(obj: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
+ return nativeResponseValue;
+}
+ // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b);
+/* @internal */
+export function ProbabilisticScorer_read(ser: number, arg_a: number, arg_b: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b);
+ return nativeResponseValue;
+}
+ // void ParseError_free(struct LDKParseError this_ptr);
+/* @internal */
+export function ParseError_free(this_ptr: number): void {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
+ // debug statements here
+}
+ // uintptr_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
+/* @internal */
+export function ParseError_clone_ptr(arg: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
+/* @internal */
+export function ParseError_clone(orig: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_clone(orig);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
+/* @internal */
+export function ParseError_bech32_error(a: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
+/* @internal */
+export function ParseError_parse_amount_error(a: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
+/* @internal */
+export function ParseError_malformed_signature(a: Secp256k1Error): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_bad_prefix(void);
+/* @internal */
+export function ParseError_bad_prefix(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_unknown_currency(void);
+/* @internal */
+export function ParseError_unknown_currency(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_unknown_si_prefix(void);
+/* @internal */
+export function ParseError_unknown_si_prefix(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_malformed_hrp(void);
+/* @internal */
+export function ParseError_malformed_hrp(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_too_short_data_part(void);
+/* @internal */
+export function ParseError_too_short_data_part(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
+/* @internal */
+export function ParseError_unexpected_end_of_tagged_fields(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
+/* @internal */
+export function ParseError_description_decode_error(a: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_padding_error(void);
+/* @internal */
+export function ParseError_padding_error(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_padding_error();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_integer_overflow_error(void);
+/* @internal */
+export function ParseError_integer_overflow_error(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
+/* @internal */
+export function ParseError_invalid_seg_wit_program_length(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
+/* @internal */
+export function ParseError_invalid_pub_key_hash_length(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_invalid_script_hash_length(void);
+/* @internal */
+export function ParseError_invalid_script_hash_length(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_invalid_recovery_id(void);
+/* @internal */
+export function ParseError_invalid_recovery_id(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
+/* @internal */
+export function ParseError_invalid_slice_length(a: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
+ return nativeResponseValue;
+}
+ // struct LDKParseError ParseError_skip(void);
+/* @internal */
+export function ParseError_skip(): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseError_skip();
+ return nativeResponseValue;
+}
+ // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
+/* @internal */
+export function ParseOrSemanticError_free(this_ptr: number): void {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
+ // debug statements here
+}
+ // uintptr_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
+/* @internal */
+export function ParseOrSemanticError_clone_ptr(arg: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
+ return nativeResponseValue;
+}
+ // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
+/* @internal */
+export function ParseOrSemanticError_clone(orig: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
+ return nativeResponseValue;
+}
+ // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
+/* @internal */
+export function ParseOrSemanticError_parse_error(a: number): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
+ return nativeResponseValue;
+}
+ // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
+/* @internal */
+export function ParseOrSemanticError_semantic_error(a: SemanticError): number {
+ if(!isWasmInitialized) {
+ throw new Error("initializeWasm() must be awaited first!");
+ }
+ const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);