import { ethers } from "ethers";
import { BaseError } from "viem";
export { isSolanaError } from "../arch/svm";
export const isError = (error) => error instanceof Error;
export const isEthersError = (error) => error?.code in ethers.utils.Logger.errors;
export const isViemError = (error) => error instanceof BaseError;
//# sourceMappingURL=error.js.map