import type { NonceLock, Transaction as NonceTrackerTransaction } from '@metamask/nonce-tracker'; import type { TransactionMeta, TransactionStatus } from '../types.js'; /** * Determine the next nonce to be used for a transaction. * * @param txMeta - The transaction metadata. * @param getNonceLock - An anonymous function that acquires the nonce lock for an address * @returns The next hexadecimal nonce to be used for the given transaction, and optionally a function to release the nonce lock. */ export declare function getNextNonce(txMeta: TransactionMeta, getNonceLock: (address: string) => Promise): Promise<[string | undefined, (() => void) | undefined]>; /** * Filter and format transactions for the nonce tracker. * * Includes the outer transaction nonce when `txParams.from` matches, and EIP-7702 * authorization nonces only when their recovered authority matches `fromAddress`. * This keeps foreign authorizations (e.g. Money Account upgrades on a same-chain * pay batch) out of the payer's nonce history. * * @param currentChainId - Chain ID of the current network. * @param fromAddress - Address of the account from which the transactions to filter from are sent. * @param transactionStatuses - Status of the transactions for which to filter. * @param transactions - Array of transactionMeta objects that have been prefiltered. * @returns Array of transactions formatted for the nonce tracker. */ export declare function getAndFormatTransactionsForNonceTracker(currentChainId: string, fromAddress: string, transactionStatuses: TransactionStatus[], transactions: TransactionMeta[]): NonceTrackerTransaction[]; //# sourceMappingURL=nonce.d.ts.map