import type { CryptoCurrency } from "@ledgerhq/ledger-wallet-framework/types"; import type { Account } from "@ledgerhq/types-live"; import type { Transaction } from "./types"; import type { BitcoinCoinConfig } from "./config"; import type { Logger } from "@ledgerhq/coin-module-framework/config"; /** * An LRU cache whose TTL is resolved from the arguments of each call (e.g. from a coin config): * one cache per TTL value, so a remote change of the TTL applies on the next call. */ export declare function makeLRUCacheWithTtlOf(f: (...args: A) => Promise, keyExtractor: (...args: A) => string, ttlOf: (...args: A) => number): ((...args: A) => Promise) & { reset: () => void; }; export declare const calculateFees: ((config: BitcoinCoinConfig, _logger: Logger, params: { account: Account; transaction: Transaction; }) => Promise<{ fees: import("bignumber.js").BigNumber; txInputs: import("./types").BitcoinInput[]; txOutputs: import("./types").BitcoinOutput[]; }>) & { reset: () => void; }; export declare const validateRecipient: (currency: CryptoCurrency, recipient: string | null | undefined, changeAddress?: string | undefined) => Promise<{ recipientError: Error | null | undefined; recipientWarning: Error | null | undefined; changeAddressError: Error | null | undefined; changeAddressWarning: Error | null | undefined; }>; export declare const isTaprootRecipient: (currency: CryptoCurrency, recipient: string) => Promise; //# sourceMappingURL=cache.d.ts.map