import { RpcError } from 'eosjs'; import { ChainError } from '@open-rights-exchange/chain-js'; /** subset of errors from EOS chain - https://github.com/EOSIO/eos/blob/master/libraries/chain/include/eosio/chain/exceptions.hpp * IMPORTANT: These are in order of importance * ... keep the Misc.. errors at the bottom - they catch the categories if not caught by a more specific error higher up */ export declare const ChainErrorRegExs: { [key: string]: string; }; /** Maps an Error object (thrown by a call to the chain) into a known set of errors * RpcError is an eosjs structure that includes the 'json' property that has error details */ export declare function mapChainError(error: RpcError | Error): ChainError;