// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate. // Trust me, you don't want to mess with it! /* tslint:disable */ /* eslint-disable */ // @ts-nocheck import { type StructuralEquality as UniffiStructuralEquality, type UniffiForeignFuture as RuntimeUniffiForeignFuture, type UniffiRustCallStatus, type UniffiGcObject, type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback, type UniffiResult, } from "uniffi-bindgen-react-native"; interface NativeModuleInterface { ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length( string: string, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer( string: string, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string( buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): string; ubrn_uniffi_bark_ffi_fn_clone_notificationholder( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_free_notificationholder( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_method_notificationholder_cancel_next_notification_wait( ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_method_notificationholder_next_notification( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_clone_customonchainwalletcallbacks( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_free_customonchainwalletcallbacks( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_init_callback_vtable_customonchainwalletcallbacks( vtable: UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks ): void; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_balance( ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_tx( ptr: bigint, destinations: Uint8Array, feeRateSatPerVb: bigint, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_prepare_drain_tx( ptr: bigint, address: Uint8Array, feeRateSatPerVb: bigint, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_finish_psbt( ptr: bigint, psbtBase64: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx( ptr: bigint, txid: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block( ptr: bigint, txid: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_get_spending_tx( ptr: bigint, outpoint: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_make_signed_p2a_cpfp( ptr: bigint, params: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_customonchainwalletcallbacks_store_signed_p2a_cpfp( ptr: bigint, txHex: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_clone_barklogger( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_free_barklogger( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_init_callback_vtable_barklogger( vtable: UniffiVTableCallbackInterfaceBarkLogger ): void; ubrn_uniffi_bark_ffi_fn_method_barklogger_log( ptr: bigint, level: Uint8Array, target: Uint8Array, message: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_clone_onchainwallet( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_free_onchainwallet( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_custom( callbacks: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_constructor_onchainwallet_default( mnemonic: Uint8Array, config: Uint8Array, datadir: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_onchainwallet_balance(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_onchainwallet_new_address(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_onchainwallet_send( ptr: bigint, address: Uint8Array, amountSats: bigint, feeRateSatPerVb: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_onchainwallet_sync(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_clone_wallet( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_free_wallet( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_fn_constructor_wallet_create( mnemonic: Uint8Array, config: Uint8Array, datadir: Uint8Array, forceRescan: number ): bigint; ubrn_uniffi_bark_ffi_fn_constructor_wallet_create_with_onchain( mnemonic: Uint8Array, config: Uint8Array, datadir: Uint8Array, onchainWallet: bigint, forceRescan: number ): bigint; ubrn_uniffi_bark_ffi_fn_constructor_wallet_open( mnemonic: Uint8Array, config: Uint8Array, datadir: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_daemon( mnemonic: Uint8Array, config: Uint8Array, datadir: Uint8Array, onchainWallet: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_constructor_wallet_open_with_onchain( mnemonic: Uint8Array, config: Uint8Array, datadir: Uint8Array, onchainWallet: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_all_exits_claimable_at_height( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_all_vtxos(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_allow_lightning_send_to_exit( ptr: bigint, paymentHash: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_ark_info(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_attempt_lightning_receive_exit( ptr: bigint, paymentHash: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_balance(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_board_all( ptr: bigint, onchainWallet: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_board_amount( ptr: bigint, onchainWallet: bigint, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_bolt11_invoice( ptr: bigint, amountSats: bigint, description: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_broadcast_tx( ptr: bigint, txHex: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_all_pending_rounds( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_lightning_receive( ptr: bigint, paymentHash: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_cancel_pending_round( ptr: bigint, roundId: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_check_lightning_payment( ptr: bigint, paymentHash: Uint8Array, wait: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_claimable_lightning_receive_balance_sats( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_config(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_drain_exits( ptr: bigint, vtxoIds: Uint8Array, address: Uint8Array, feeRateSatPerVb: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_arkoor_payment_fee( ptr: bigint, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_board_fee( ptr: bigint, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_receive_fee( ptr: bigint, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_lightning_send_fee( ptr: bigint, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_all_fee( ptr: bigint, address: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_offboard_fee( ptr: bigint, address: Uint8Array, vtxoIds: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_refresh_fee( ptr: bigint, vtxoIds: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_estimate_send_onchain_fee( ptr: bigint, address: Uint8Array, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_fingerprint( ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_status( ptr: bigint, vtxoId: Uint8Array, includeHistory: number, includeTransactions: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_get_exit_vtxos(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_get_expiring_vtxos( ptr: bigint, thresholdBlocks: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_get_first_expiring_vtxo_blockheight( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_get_next_required_refresh_blockheight( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxo_by_id( ptr: bigint, vtxoId: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_get_vtxos_to_refresh( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_has_pending_exits(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_history(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_history_by_payment_method( ptr: bigint, paymentMethodType: Uint8Array, paymentMethodValue: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_import_vtxo( ptr: bigint, vtxoBase64: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_is_invoice_paid( ptr: bigint, paymentHash: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_receive_status( ptr: bigint, paymentHash: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_lightning_send_state( ptr: bigint, paymentHash: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_list_claimable_exits( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_authorization( ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_wallet_mailbox_identifier( ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_delegated( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_refresh( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain( ptr: bigint, onchainWallet: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_maintenance_with_onchain_delegated( ptr: bigint, onchainWallet: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_maybe_schedule_maintenance_refresh( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_network(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_new_address(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_new_address_with_index( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_next_round_start_time( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_notifications( ptr: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_all( ptr: bigint, bitcoinAddress: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_offboard_vtxos( ptr: bigint, vtxoIds: Uint8Array, bitcoinAddress: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_address( ptr: bigint, lightningAddress: Uint8Array, amountSats: bigint, comment: Uint8Array, wait: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_invoice( ptr: bigint, invoice: Uint8Array, amountSats: Uint8Array, wait: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pay_lightning_offer( ptr: bigint, offer: Uint8Array, amountSats: Uint8Array, wait: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_peek_address( ptr: bigint, index: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_board_vtxos( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_boards(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_exits_total_sats( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_receives( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_send_vtxos( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_lightning_sends( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_input_vtxos( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_pending_round_states( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_progress_exits( ptr: bigint, onchainWallet: bigint, feeRateSatPerVb: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_progress_pending_rounds( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_properties(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_server(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos( ptr: bigint, vtxoIds: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_refresh_vtxos_delegated( ptr: bigint, vtxoIds: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_run_daemon( ptr: bigint, onchainWallet: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_send_arkoor_payment( ptr: bigint, arkAddress: Uint8Array, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_send_onchain( ptr: bigint, address: Uint8Array, amountSats: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_sign_exit_claim_inputs( ptr: bigint, psbtBase64: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_spendable_vtxos(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_entire_wallet( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_start_exit_for_vtxos( ptr: bigint, vtxoIds: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_stop_daemon(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_stuck_failed_lightning_sends( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_sync(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_sync_exits( ptr: bigint, onchainWallet: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_sync_pending_boards( ptr: bigint ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_all_lightning_receives( ptr: bigint, wait: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_try_claim_lightning_receive( ptr: bigint, paymentHash: Uint8Array, wait: number ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_validate_arkoor_address( ptr: bigint, address: Uint8Array ): bigint; ubrn_uniffi_bark_ffi_fn_method_wallet_vtxos(ptr: bigint): bigint; ubrn_uniffi_bark_ffi_fn_func_extract_tx_from_psbt( psbtBase64: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_func_generate_mnemonic( uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_uniffi_bark_ffi_fn_func_validate_ark_address( address: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_uniffi_bark_ffi_fn_func_validate_mnemonic( mnemonic: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_uniffi_bark_ffi_fn_func_set_logger( logger: bigint, maxLevel: Uint8Array, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_ffi_bark_ffi_rust_future_poll_u8( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_u8(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_u8(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_u8( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_i8( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_i8(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_i8(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_i8( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_u16( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_u16(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_u16(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_u16( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_i16( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_i16(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_i16(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_i16( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_u32( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_u32(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_u32(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_u32( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_i32( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_i32(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_i32(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_i32( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_u64( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_u64(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_u64(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_u64( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_ffi_bark_ffi_rust_future_poll_i64( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_i64(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_i64(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_i64( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): bigint; ubrn_ffi_bark_ffi_rust_future_poll_f32( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_f32(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_f32(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_f32( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_f64( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_f64(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_f64(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_f64( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): number; ubrn_ffi_bark_ffi_rust_future_poll_rust_buffer( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_rust_buffer(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_rust_buffer(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_rust_buffer( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): Uint8Array; ubrn_ffi_bark_ffi_rust_future_poll_void( handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint ): void; ubrn_ffi_bark_ffi_rust_future_cancel_void(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_free_void(handle: bigint): void; ubrn_ffi_bark_ffi_rust_future_complete_void( handle: bigint, uniffi_out_err: UniffiRustCallStatus ): void; ubrn_uniffi_bark_ffi_checksum_func_extract_tx_from_psbt(): number; ubrn_uniffi_bark_ffi_checksum_func_generate_mnemonic(): number; ubrn_uniffi_bark_ffi_checksum_func_validate_ark_address(): number; ubrn_uniffi_bark_ffi_checksum_func_validate_mnemonic(): number; ubrn_uniffi_bark_ffi_checksum_func_set_logger(): number; ubrn_uniffi_bark_ffi_checksum_method_notificationholder_cancel_next_notification_wait(): number; ubrn_uniffi_bark_ffi_checksum_method_notificationholder_next_notification(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_balance(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_tx(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_prepare_drain_tx(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_finish_psbt(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_wallet_tx_confirmed_block(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_get_spending_tx(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_make_signed_p2a_cpfp(): number; ubrn_uniffi_bark_ffi_checksum_method_customonchainwalletcallbacks_store_signed_p2a_cpfp(): number; ubrn_uniffi_bark_ffi_checksum_method_barklogger_log(): number; ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_balance(): number; ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_new_address(): number; ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_send(): number; ubrn_uniffi_bark_ffi_checksum_method_onchainwallet_sync(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_all_exits_claimable_at_height(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_all_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_allow_lightning_send_to_exit(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_ark_info(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_attempt_lightning_receive_exit(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_balance(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_board_all(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_board_amount(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_bolt11_invoice(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_broadcast_tx(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_all_pending_rounds(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_lightning_receive(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_cancel_pending_round(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_check_lightning_payment(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_claimable_lightning_receive_balance_sats(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_config(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_drain_exits(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_arkoor_payment_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_board_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_receive_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_lightning_send_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_all_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_offboard_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_refresh_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_estimate_send_onchain_fee(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_fingerprint(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_status(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_exit_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_expiring_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_first_expiring_vtxo_blockheight(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_next_required_refresh_blockheight(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxo_by_id(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_get_vtxos_to_refresh(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_has_pending_exits(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_history(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_history_by_payment_method(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_import_vtxo(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_is_invoice_paid(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_receive_status(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_lightning_send_state(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_list_claimable_exits(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_authorization(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_mailbox_identifier(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_delegated(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_refresh(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_maintenance_with_onchain_delegated(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_maybe_schedule_maintenance_refresh(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_network(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_new_address_with_index(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_next_round_start_time(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_notifications(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_all(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_offboard_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_address(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_invoice(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pay_lightning_offer(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_peek_address(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_board_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_boards(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_exits_total_sats(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_receives(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_send_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_lightning_sends(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_input_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_pending_round_states(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_exits(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_progress_pending_rounds(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_properties(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_server(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_refresh_vtxos_delegated(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_run_daemon(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_send_arkoor_payment(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_send_onchain(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_sign_exit_claim_inputs(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_spendable_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_entire_wallet(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_start_exit_for_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_stop_daemon(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_stuck_failed_lightning_sends(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_sync(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_exits(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_sync_pending_boards(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_all_lightning_receives(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_try_claim_lightning_receive(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_validate_arkoor_address(): number; ubrn_uniffi_bark_ffi_checksum_method_wallet_vtxos(): number; ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_custom(): number; ubrn_uniffi_bark_ffi_checksum_constructor_onchainwallet_default(): number; ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create(): number; ubrn_uniffi_bark_ffi_checksum_constructor_wallet_create_with_onchain(): number; ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open(): number; ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_daemon(): number; ubrn_uniffi_bark_ffi_checksum_constructor_wallet_open_with_onchain(): number; ubrn_ffi_bark_ffi_uniffi_contract_version(): number; ubrn_uniffi_internal_fn_method_notificationholder_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiGcObject; ubrn_uniffi_internal_fn_method_customonchainwalletcallbacks_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiGcObject; ubrn_uniffi_internal_fn_method_barklogger_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiGcObject; ubrn_uniffi_internal_fn_method_onchainwallet_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiGcObject; ubrn_uniffi_internal_fn_method_wallet_ffi__bless_pointer( pointer: bigint, uniffi_out_err: UniffiRustCallStatus ): UniffiGcObject; } // Casting globalThis to any allows us to look for `NativeBark` // if it was added via JSI. // // We use a getter here rather than simply `globalThis.NativeBark` so that // if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached. const getter: () => NativeModuleInterface = () => (globalThis as any).NativeBark; export default getter; // Structs and function types for calling back into Typescript from Rust. export type UniffiRustFutureContinuationCallback = ( data: bigint, pollResult: number ) => void; export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void; type UniffiCallbackInterfaceFree = (handle: bigint) => void; type UniffiCallbackInterfaceClone = (handle: bigint) => UniffiResult; export type UniffiForeignFutureDroppedCallbackStruct = { handle: bigint; free: UniffiForeignFutureDroppedCallback; }; export type UniffiForeignFutureResultU8 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteU8 = ( callbackData: bigint, result: UniffiForeignFutureResultU8 ) => void; export type UniffiForeignFutureResultI8 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteI8 = ( callbackData: bigint, result: UniffiForeignFutureResultI8 ) => void; export type UniffiForeignFutureResultU16 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteU16 = ( callbackData: bigint, result: UniffiForeignFutureResultU16 ) => void; export type UniffiForeignFutureResultI16 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteI16 = ( callbackData: bigint, result: UniffiForeignFutureResultI16 ) => void; export type UniffiForeignFutureResultU32 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteU32 = ( callbackData: bigint, result: UniffiForeignFutureResultU32 ) => void; export type UniffiForeignFutureResultI32 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteI32 = ( callbackData: bigint, result: UniffiForeignFutureResultI32 ) => void; export type UniffiForeignFutureResultU64 = { returnValue: bigint; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteU64 = ( callbackData: bigint, result: UniffiForeignFutureResultU64 ) => void; export type UniffiForeignFutureResultI64 = { returnValue: bigint; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteI64 = ( callbackData: bigint, result: UniffiForeignFutureResultI64 ) => void; export type UniffiForeignFutureResultF32 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteF32 = ( callbackData: bigint, result: UniffiForeignFutureResultF32 ) => void; export type UniffiForeignFutureResultF64 = { returnValue: number; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteF64 = ( callbackData: bigint, result: UniffiForeignFutureResultF64 ) => void; export type UniffiForeignFutureResultRustBuffer = { returnValue: Uint8Array; callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteRustBuffer = ( callbackData: bigint, result: UniffiForeignFutureResultRustBuffer ) => void; export type UniffiForeignFutureResultVoid = { callStatus: UniffiRustCallStatus; }; export type UniffiForeignFutureCompleteVoid = ( callbackData: bigint, result: UniffiForeignFutureResultVoid ) => void; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0 = ( uniffiHandle: bigint ) => bigint; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1 = ( uniffiHandle: bigint, destinations: Uint8Array, feeRateSatPerVb: bigint ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2 = ( uniffiHandle: bigint, address: Uint8Array, feeRateSatPerVb: bigint ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3 = ( uniffiHandle: bigint, psbtBase64: Uint8Array ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4 = ( uniffiHandle: bigint, txid: Uint8Array ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5 = ( uniffiHandle: bigint, txid: Uint8Array ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6 = ( uniffiHandle: bigint, outpoint: Uint8Array ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7 = ( uniffiHandle: bigint, params: Uint8Array ) => Uint8Array; type UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8 = ( uniffiHandle: bigint, txHex: Uint8Array ) => UniffiResult; type UniffiCallbackInterfaceBarkLoggerMethod0 = ( uniffiHandle: bigint, level: Uint8Array, target: Uint8Array, message: Uint8Array ) => UniffiResult; export type UniffiVTableCallbackInterfaceCustomOnchainWalletCallbacks = { uniffiFree: UniffiCallbackInterfaceFree; uniffiClone: UniffiCallbackInterfaceClone; getBalance: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod0; prepareTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod1; prepareDrainTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod2; finishPsbt: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod3; getWalletTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod4; getWalletTxConfirmedBlock: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod5; getSpendingTx: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod6; makeSignedP2aCpfp: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod7; storeSignedP2aCpfp: UniffiCallbackInterfaceCustomOnchainWalletCallbacksMethod8; }; export type UniffiVTableCallbackInterfaceBarkLogger = { uniffiFree: UniffiCallbackInterfaceFree; uniffiClone: UniffiCallbackInterfaceClone; log: UniffiCallbackInterfaceBarkLoggerMethod0; }; // UniffiRustFutureContinuationCallback is generated as part of the component interface's // ffi_definitions. However, we need it in the runtime. // We could: // (a) do some complicated template logic to ensure the declaration is not generated here (possible) // (b) import the generated declaration into the runtime (m a y b e) or… // (c) generate the declaration anyway, and use a different declaration in the runtime. // // We chose (c) here as the simplest. In addition, we perform a compile time check that // the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent. // // If you see the error: // ``` // Type 'true' is not assignable to type 'false'.(2322) // ``` // Then a new version of uniffi has changed the signature of the callback. Most likely, code in // `typescript/src/async-rust-call.ts` will need to be changed. // // If you see the error: // ``` // Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552) // ``` // then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks. // You should not generate this if that is the case. // // ('You' being the bindings generator maintainer). const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality< RuntimeUniffiRustFutureContinuationCallback, UniffiRustFutureContinuationCallback > = true; const isUniffiForeignFutureTypeCompatible: UniffiStructuralEquality< RuntimeUniffiForeignFuture, UniffiForeignFuture > = true;