import type { FeeEstimation } from "@ledgerhq/coin-module-framework/api/types"; import type { BitcoinContext } from "../config"; import type { BitcoinIntent } from "./intent"; /** * Fee of the transaction an intent would produce, for a single-address account: the transaction * `planTransaction` plans, so the estimate prices exactly what `craftTransaction` builds. * * `customFeesParameters` may carry `feesStrategy` (`fast` | `medium` | `slow`, default `medium`, or * `custom`) and `feePerByte` (sat/vB): see `getFeeRate`. Under `custom` without a rate (the caller * imposes an absolute fee instead), the estimate is priced at the network's minimum relay rate and * returns no `feePerByte`. * Without a valid recipient yet, the fee is priced with an output of the sender's own type. * * The returned `parameters` describe the priced transaction: the rate, the network's minimum relay * rate and the virtual size (with which `validateIntent` refuses a fee below the relay minimum), the * number of inputs, the change, whether the outputs cover the intent (`sufficient`) and, for * `useAllAmount`, the exact `amount` the transaction sends. */ export declare function estimateFees(context: BitcoinContext, currencyId: string, intent: BitcoinIntent, customFeesParameters?: FeeEstimation["parameters"]): Promise; //# sourceMappingURL=estimateFees.d.ts.map