import type { BitcoinCoinConfig } from "../config"; import type { ExplorerUtxo } from "../network/types"; /** * Outputs a single-address transaction may spend, each once: the confirmed unspent outputs, and the * change of the address's own unconfirmed transactions, minus every output an unconfirmed * transaction already spends. * * This is the bridge's rule (`ledger-live-common/src/families/bitcoin/docs/RBF.md`, wallet-btc * `estimateAccountMaxSpendable`): an unconfirmed payment from someone else is not spent, since its * sender can still replace it; the account's own change is, since only the account can replace the * transaction that creates it. With a single address, change returns to the sender, so an * unconfirmed output is the account's change exactly when its transaction spends one of the * address's outputs: one the explorer lists as spent in the mempool. * * Spending a confirmed output that a mempool transaction already spends would build a conflicting * transaction, which the node would refuse. */ export declare function getSpendableUtxos(config: BitcoinCoinConfig, address: string): Promise; //# sourceMappingURL=getSpendableUtxos.d.ts.map