import { ethers } from "ethers";
import { BaseError } from "viem";
export { isSolanaError } from "../arch/svm";
export var isError = function (error) { return error instanceof Error; };
export var isEthersError = function (error) {
    return (error === null || error === void 0 ? void 0 : error.code) in ethers.utils.Logger.errors;
};
export var isViemError = function (error) { return error instanceof BaseError; };
//# sourceMappingURL=error.js.map