import type { Spectrum1D } 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 { source: 'jcamp'; spectrum: Spectrum1D; } interface ResurrectSpectrumFromRangesOrSignals extends BaseResurrectSpectrum { source: 'rangesOrSignals'; } type ResurrectSpectrum = ResurrectSpectrumFromJCAMP | ResurrectSpectrumFromRangesOrSignals; type ResurrectSpectrumAction = ActionType<'RESURRECTING_SPECTRUM', ResurrectSpectrum>; export type DatabaseActions = ActionType<'TOGGLE_SIMILARITY_TREE'> | ResurrectSpectrumAction; declare function handleResurrectSpectrum(draft: Draft, action: ResurrectSpectrumAction): void; declare function handleToggleSimilarityTree(draft: Draft): void; export { handleResurrectSpectrum, handleToggleSimilarityTree }; //# sourceMappingURL=DatabaseActions.d.ts.map