openchemlib 9.16.1 → 9.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3047,8 +3047,25 @@ export interface DepictorOptions {
3047
3047
  noAtomCustomLabels?: boolean;
3048
3048
  }
3049
3049
 
3050
+ interface ToRxnOptions {
3051
+ /**
3052
+ * Should we add th idCode of the reaction as a comment line in the RXN
3053
+ * @default false
3054
+ */
3055
+ keepIdCode?: boolean;
3056
+ /**
3057
+ * Program name to include in the RXN file header
3058
+ * @default ''
3059
+ */
3060
+ programName?: string;
3061
+ }
3062
+
3050
3063
  export declare class Reaction {
3051
- private constructor();
3064
+ /**
3065
+ * Create a new empty reaction.
3066
+ * @param name - Initial name.
3067
+ */
3068
+ constructor(name?: string | null);
3052
3069
 
3053
3070
  /**
3054
3071
  * Create a new empty `Reaction`.
@@ -3084,12 +3101,12 @@ export declare class Reaction {
3084
3101
  /**
3085
3102
  * Serialize the `Reaction` to a MDL V2000 Reaction file.
3086
3103
  */
3087
- toRxn(programName?: string): string;
3104
+ toRxn(options?: ToRxnOptions): string;
3088
3105
 
3089
3106
  /**
3090
3107
  * Serialize the `Reaction` to a MDL V3000 Reaction file.
3091
3108
  */
3092
- toRxnV3(programName?: string): string;
3109
+ toRxnV3(options?: ToRxnOptions): string;
3093
3110
 
3094
3111
  /**
3095
3112
  * Returns a new copy of the `Reaction`.