@xlink-network/xlink-sdk
Version:
13 lines (10 loc) • 917 B
text/typescript
import { UTXOBasic, UTXOSpendable, UTXOConfirmed } from './bitcoinHelpers.mjs';
import { ReselectSpendableUTXOsFn } from './prepareTransaction.mjs';
import './createTransaction.mjs';
import '@c4/btc-utils';
import '@scure/btc-signer';
type GetConfirmedSpendableUTXOFn = (utxo: UTXOBasic) => Promise<undefined | (UTXOSpendable & UTXOConfirmed)>;
declare const reselectSpendableUTXOsFactory: (availableUTXOs: UTXOBasic[], getUTXOSpendable: GetConfirmedSpendableUTXOFn) => ReselectSpendableUTXOsFn;
declare const reselectSpendableUTXOsWithSafePadFactory: (availableUTXOs: UTXOBasic[], getUTXOSpendable: GetConfirmedSpendableUTXOFn) => ReselectSpendableUTXOsFn;
declare function selectUTXOs<T extends UTXOConfirmed>(satsToSend: bigint, selectedUTXOs: T[], otherAvailableUTXOs: T[]): T[];
export { type GetConfirmedSpendableUTXOFn, reselectSpendableUTXOsFactory, reselectSpendableUTXOsWithSafePadFactory, selectUTXOs };