interface ErrorResponse {
    code: number;
    message: string;
    errorBody: Record<string, unknown>;
}
interface ErrorDetails {
    reason: string;
    message: string;
    method: string;
    code: string | number;
    errorBody?: object;
}
/**
 * Extracts error code and message from a JSON-RPC error response.
 *
 * @param {unknown} error - The error object
 * @return {ErrorResponse} - An object with the error code, message, and body.
 */
export declare function extractCodeAndMessageFromJsonRpcError(error: unknown): ErrorResponse;
/**
 * Parses an error message string to extract 'reason', 'method', and 'code' details.
 *
 * @return {ErrorDetails} - An object containing the extracted details.
 * @param _error
 */
export declare function extractErrorDetails(_error: unknown): ErrorDetails;
/**
 *
 * Ensures that nested errors are ignored.
 *
 * @param _error
 */
export declare function shallowExtractErrorDetails(_error: unknown): ErrorDetails;
export declare function shallowExtractErrorDetailsJSON(error: unknown): string;
export declare function extractExecutionRevertedError(input: string): string | null;
export {};
//# sourceMappingURL=error.d.ts.map