import type { CraftedTransaction, FeeEstimation } from "@ledgerhq/coin-module-framework/api/types"; import type { BitcoinContext } from "../config"; import type { BitcoinIntent } from "./intent"; /** Sequence of a final input: no replace-by-fee signalling. */ export declare const FINAL_SEQUENCE = 4294967295; /** Sequence of an input that signals replace-by-fee (BIP 125), with no relative locktime meaning. */ export declare const RBF_SEQUENCE = 4294967293; /** * Crafts the unsigned transaction of a native transfer from a single address: the transaction * `planTransaction` plans (the same `estimateFees` prices), serialized. * * Currencies with Bitcoin serialization get a PSBT (BIP 174, base64). The formats carrying an * expiry height (`transaction.expiryHeight` in the config: Komodo's Sapling transactions, Decred's) * are not Bitcoin serialization: the Ledger app builds them itself, from a {@link SigningRequest} * (JSON), as the bridge has it build every transaction. * As the bridge builds them, from the currency's config (`transaction`): inputs signal * replace-by-fee where the currency's transactions do (bitcoin and its test networks), and the * transaction version is the one the currency's Ledger app builds (2 for app-bitcoin-new, 1 * otherwise). * * `customFees.parameters.feePerByte` imposes a rate (a custom rate under `feesStrategy: "custom"`, * used as given); otherwise a positive `customFees.value` imposes the absolute fee (Ledger Live's * custom fee). A zero `value` imposes nothing: the rate follows `feesStrategy`. Without * `customFees`, the medium explorer rate is used. * * Crafting refuses only what it cannot build: an intent other than a native transfer, a recipient * or sender that is not an address of the currency, outputs that do not cover the intent * (`NotEnoughBalance`). Whether the fee meets the relay minimum and the amount the dust threshold is * `validateIntent`'s to report; the node refuses such a transaction at `broadcast`. */ export declare function craftTransaction(context: BitcoinContext, currencyId: string, intent: BitcoinIntent, customFees?: FeeEstimation): Promise; //# sourceMappingURL=craftTransaction.d.ts.map