import type { NMRRange } from '@zakodium/nmr-types'; import type { ContourLevel, Display1D, Display2D, SpectraColors, Spectrum } from '@zakodium/nmrium-core'; import type { Draft } from 'immer'; import type { SpectrumSimulationOptions } from '../../../data/data1d/spectrumSimulation.js'; import type { State } from '../Reducer.js'; import type { ActionType } from '../types/ActionType.js'; import type { SetDomainOptions } from './DomainActions.js'; type ChangeSpectrumVisibilityByIdAction = ActionType<'CHANGE_SPECTRUM_VISIBILITY', { id: string; key: 'isVisible' | 'isPositiveVisible' | 'isNegativeVisible'; }>; export type SpectraSelectedMode = 'selected' | 'all' | 'selectedOnly'; type ChangeSpectraVisibilityByNucleusAction = ActionType<'CHANGE_SPECTRA_VISIBILITY_BY_NUCLEUS', { nucleus: string; flag: boolean; mode?: SpectraSelectedMode; }>; type ChangeActiveSpectrumAction = ActionType<'CHANGE_ACTIVE_SPECTRUM', { modifier?: 'shift[false]_ctrl[true]' | 'shift[true]_ctrl[false]' | 'shift[true]_ctrl[true]' | (string & {}); id?: string; sortedSpectra?: Spectrum[]; }>; type ChangeSpectrumSettingAction = ActionType<'CHANGE_SPECTRUM_SETTING', { id: string; display: Display1D | Display2D; } | { id: string; display: Display2D; contourOptions: ContourLevel; }>; type DeleteSpectraAction = ActionType<'DELETE_SPECTRA', { ids?: string[]; domainOptions?: SetDomainOptions; }>; type AddMissingProjectionAction = ActionType<'ADD_MISSING_PROJECTION', { nucleus: string[]; }>; type AlignSpectraAction = ActionType<'ALIGN_SPECTRA', { from: number; to: number; nbPeaks: number; targetX: number; }>; type GenerateSpectrumFromPublicationStringAction = ActionType<'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING', { ranges: NMRRange[]; info: { nucleus: string; solvent: string; frequency: number; name: string; }; }>; type ImportSpectraMetaInfoAction = ActionType<'IMPORT_SPECTRA_META_INFO', { spectraMeta: Record>; }>; type ReColorSpectraBasedOnDistinctValueAction = ActionType<'RECOLOR_SPECTRA_COLOR', { jpath?: string[]; customColors?: SpectraColors; }>; type SimulateSpectrumAction = ActionType<'SIMULATE_SPECTRUM', { keepSpectrum?: boolean; spinSystem: string; } & SpectrumSimulationOptions>; type UpdateSpectrumMetaAction = ActionType<'UPDATE_SPECTRUM_META', { meta: Record; }>; export type SpectrumActions = ActionType<'TOGGLE_SPECTRA_LEGEND'> | ChangeSpectrumVisibilityByIdAction | ChangeSpectraVisibilityByNucleusAction | ChangeActiveSpectrumAction | ChangeSpectrumSettingAction | DeleteSpectraAction | AddMissingProjectionAction | AlignSpectraAction | GenerateSpectrumFromPublicationStringAction | ImportSpectraMetaInfoAction | ReColorSpectraBasedOnDistinctValueAction | SimulateSpectrumAction | UpdateSpectrumMetaAction; declare function setSpectraMetaInfo(draft: Draft, spectraMetaInfo: Record>): void; declare function handleChangeSpectrumVisibilityById(draft: Draft, action: ChangeSpectrumVisibilityByIdAction): void; declare function handleChangeSpectraVisibilityByNucleus(draft: Draft, action: ChangeSpectraVisibilityByNucleusAction): void; declare function handleChangeActiveSpectrum(draft: Draft, action: ChangeActiveSpectrumAction): void; declare function handleChangeSpectrumSetting(draft: Draft, action: ChangeSpectrumSettingAction): void; declare function handleDeleteSpectra(draft: Draft, action: DeleteSpectraAction): void; declare function handleAddMissingProjectionHandler(draft: any, action: AddMissingProjectionAction): void; declare function handleAlignSpectraHandler(draft: Draft, action: AlignSpectraAction): void; declare function handleGenerateSpectrumFromPublicationStringHandler(draft: Draft, action: GenerateSpectrumFromPublicationStringAction): void; declare function handleImportSpectraMetaInfo(draft: Draft, action: ImportSpectraMetaInfoAction): void; declare function handleToggleSpectraLegend(draft: Draft): void; declare function handleRecolorSpectraBasedOnDistinctValue(draft: Draft, action: ReColorSpectraBasedOnDistinctValueAction): void; declare function handleSimulateSpectrum(draft: Draft, simulateSpectrumOptions: SimulateSpectrumAction): void; declare function handleUpdateSpectrumMeta(draft: Draft, action: UpdateSpectrumMetaAction): void; export { handleAddMissingProjectionHandler, handleAlignSpectraHandler, handleChangeActiveSpectrum, handleChangeSpectraVisibilityByNucleus, handleChangeSpectrumSetting, handleChangeSpectrumVisibilityById, handleDeleteSpectra, handleGenerateSpectrumFromPublicationStringHandler, handleImportSpectraMetaInfo, handleRecolorSpectraBasedOnDistinctValue, handleSimulateSpectrum, handleToggleSpectraLegend, handleUpdateSpectrumMeta, setSpectraMetaInfo, }; //# sourceMappingURL=SpectraActions.d.ts.map