import type { BigNumber } from 'ethers'; declare type EthersError = { code?: string | number; message: string; error?: NestedEthersError; transaction?: { gasLimit: BigNumber; nonce: number; }; receipt?: { gasUsed: BigNumber; }; action?: string; reason?: string; }; declare type NestedEthersError = { code?: string | number; message?: string; data?: { message: string; }; error?: { error?: { code?: string | number; }; body?: string; }; }; declare const parseEthersError: (ethersError: EthersError) => string; export { parseEthersError }; export type { EthersError };