/** * This module provides functions for calculating & validating * transaction fees. */ import { FeeValidationError } from "./types"; /** * Provide a readable message from a FeeValidationError for user display. */ export declare function getFeeErrorMessage(error: FeeValidationError | null): string; /** * Validate the given transaction fee and input sats. Returns a fee * validation error type if invalid. Returns null if valid. */ export declare function checkFeeError(feeSats: any, inputsTotalSats: any): FeeValidationError.FEE_CANNOT_BE_NEGATIVE | FeeValidationError.FEE_TOO_HIGH | FeeValidationError.INPUT_AMOUNT_MUST_BE_POSITIVE | FeeValidationError.INVALID_FEE | FeeValidationError.INVALID_INPUT_AMOUNT | null; /** * Validate the given transaction fee rate (sats/vByte). Returns a fee * validation error type if invalid. Returns null if valid. */ export declare function checkFeeRateError(feeRateSatsPerVbyte: any): FeeValidationError.FEE_RATE_CANNOT_BE_NEGATIVE | FeeValidationError.FEE_RATE_TOO_HIGH | FeeValidationError.INVALID_FEE_RATE | null; /** * Validate the given transaction fee rate (in Satoshis/vbyte). Returns an * error message if invalid. Returns empty string if valid. * * - Must be parseable as a number. * * - Cannot be negative (zero is OK). * * - Cannot be greater than the limit set by * `MAX_FEE_RATE_SATS_PER_VBYTE`. */ export declare function validateFeeRate(feeRateSatsPerVbyte: any): string; /** * Validate the given transaction fee (in Satoshis). * * - Must be a parseable as a number. * * - Cannot be negative (zero is OK). * * - Cannot exceed the total input amount. * * - Cannot be higher than the limit set by `MAX_FEE_SATS`. */ export declare function validateFee(feeSats: any, inputsTotalSats: any): string; /** * Estimate transaction fee rate based on actual fee and address type, number of inputs and number of outputs. */ export declare function estimateMultisigTransactionFeeRate(config: any): string | null; /** * Estimate transaction fee based on fee rate, address type, number of inputs and outputs. */ export declare function estimateMultisigTransactionFee(config: any): string | null;