import type { Spectrum } from '@zakodium/nmrium-core'; import type { Draft } from 'immer'; import type { DatabaseNMREntry } from 'nmr-processing'; import type { State } from '../Reducer.js'; import type { ActionType } from '../types/ActionType.js'; interface BaseResurrectSpectrum { databaseEntry: DatabaseNMREntry; molfile?: string; } interface ResurrectSpectrumFromJCAMP extends BaseResurrectSpectrum { spectra: Spectrum[]; } type ResurrectSpectrumFromRangesOrSignalsAction = ActionType<'RESURRECTING_SPECTRUM_FROM_SIGNALS_OR_RANGES', BaseResurrectSpectrum>; type ResurrectSpectrumFromJCAMPAction = ActionType<'RESURRECTING_SPECTRUM_FROM_JCAMP', ResurrectSpectrumFromJCAMP>; export type DatabaseActions = ActionType<'TOGGLE_SIMILARITY_TREE'> | ResurrectSpectrumFromRangesOrSignalsAction | ResurrectSpectrumFromJCAMPAction; declare function handleResurrectSpectrumFromJCAMP(draft: Draft, action: ResurrectSpectrumFromJCAMPAction): void; declare function handleResurrectSpectrumFromRangesOrSignals(draft: Draft, action: ResurrectSpectrumFromRangesOrSignalsAction): void; declare function handleToggleSimilarityTree(draft: Draft): void; export { handleResurrectSpectrumFromJCAMP, handleResurrectSpectrumFromRangesOrSignals, handleToggleSimilarityTree, }; //# sourceMappingURL=DatabaseActions.d.ts.map