/**************************************************************************** * Copyright 2021 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ***************************************************************************/ export interface TemplatesState { attach: { name: string; atomid: number; bondid: number; }; lib: Array<{ struct: import('ketcher-core').Struct; props: { atomid?: string | number; bondid?: string | number; group?: string; [key: string]: string | number | undefined; }; }>; } export interface ModalState { form: { errors: Record; valid: boolean; result: Record; }; } export interface AnalyseValues { gross?: string; 'molecular-weight'?: number; 'monoisotopic-mass'?: number; 'mass-composition'?: string; [key: string]: string | number | undefined; } export interface AnalyseState { values: AnalyseValues | null; loading: boolean; roundWeight: number; roundMass: number; roundElAnalysis: number; } export interface OptionsState { analyse: AnalyseState; settings: Record; } export interface StoreState { templates: TemplatesState; modal: ModalState; options: OptionsState; }