/** A failure translated into copy the transaction screens can render directly. */ type TransactionErrorDetails = { title: string; message: string; action?: string; }; type ErrorClass = abstract new (...args: never[]) => Error; /** * True when `error`, or anything in its `cause` chain, is an instance of one of * `classes`. * * viem and the SDK both nest the original failure under `cause` — an RPC * rejection surfaces as a `TransactionExecutionError` wrapping a * `UserRejectedRequestError` — so only a walk of the whole chain classifies * reliably. */ export declare function matchesErrorClass(error: unknown, classes: readonly ErrorClass[]): boolean; /** * Turns a transaction failure into user-facing copy. * * The raw message is never surfaced: RPC errors leak node internals and revert * data that mean nothing to the person who pressed "Send". */ export declare function parseTransactionError(error: unknown): TransactionErrorDetails; export {};