import { ChainErrorDetailCode, ChainErrorType } from './models'; /** Provides additional info related to a chain error * errorType - A ChainErrorType which is a common set of errors that span all chains * originalError - The original error object thrown by the chain * json - Additional data about the error (if provided by the chain) */ export declare class ChainError extends Error { errorType: ChainErrorType; /** json of additional chain error data - if available */ json: any; /** original error from which this ChainError was composed */ originalError: Error; constructor(errorType: ChainErrorType, message: string, json?: any, originalError?: Error); } export declare function throwNewError(message: string, code?: string, parentError?: Error): void; export declare function throwAndLogError(message: string, code?: string, parentError?: Error): void; /** * Resolves a promise (that was waiting for a transaction to confirm) */ export declare function resolveAwaitTransaction(resolve: any, transaction: any): void; /** * Rejects a promise (that was waiting for a transaction to confirm) * All errors are of ErrorType TxConfirmFailure - A more specfic cause of the error is passed via errorDetailCode param */ export declare function rejectAwaitTransaction(reject: any, errorDetailCode: ChainErrorDetailCode, errorMessage: string, originalError: Error): void;