import { Errors } from '@open-rights-exchange/chain-js'; import { ChainFunctionCategory } from './models'; export declare const DefaultChainErrorRegExs: { [key: string]: string; }; export declare const BlockErrorRegExs: { [key: string]: string; }; export declare const ChainStateErrorRegExs: { [key: string]: string; }; export declare const ContractErrorRegExs: { [key: string]: string; }; export declare const TransactionErrorRegExs: { [key: string]: string; }; /** Maps a category of errors to a regex collection */ export declare const ChainFunctionCategoryMap: { [key: string]: any; }; /** Maps an Error object (thrown by a call to the chain) into a known set of errors */ export declare function mapChainError(error: Error, chainFunctionCategory?: ChainFunctionCategory): Errors.ChainError;