import { AppConfig } from '../../types/config.js'; import { Psbt } from 'bitcoinjs-lib'; import { BitcoinInputUTXO, BitcoinOutputUTXO } from '@avalabs/core-wallets-sdk'; /** * Bitcoin to Avalanche * @param changeAddress: The user's C-chain derived BTC address. Change UTXO will be sent to this address. * @param config: Configuration file for the bridge. * @param utxos: The available UTXOs to consume. * @param amount: The amount to wrap in satoshis. Must cover the `bridgeFee`. * @param feeRate: Fee rate given in satoshis per byte. * @throws when the transaction cannot be created */ declare function getBtcTransaction(config: AppConfig, changeAddress: string, utxos: BitcoinInputUTXO[], amount: number, feeRate: number): { /** The total fee (bridge fee + tx fee) */ fee: number; tx: Psbt; bridgeFee: number; receiveAmount: number; inputs: BitcoinInputUTXO[]; outputs: BitcoinOutputUTXO[]; }; export { getBtcTransaction };