import type { Draft } from 'immer'; import type { Correlation, CorrelationBuildOptions, CorrelationTolerance, CorrelationValues } from 'nmr-processing'; import type { State } from '../Reducer.js'; import type { ActionType } from '../types/ActionType.js'; type SetMFAction = ActionType<'SET_CORRELATIONS_MF', { mf: string; }>; type SetToleranceAction = ActionType<'SET_CORRELATIONS_TOLERANCE', { tolerance: CorrelationTolerance; }>; type SetCorrelationAction = ActionType<'SET_CORRELATION', { id: string; correlation: Correlation; options?: CorrelationBuildOptions; }>; type SetCorrelationsAction = ActionType<'SET_CORRELATIONS', { correlations: CorrelationValues; options: CorrelationBuildOptions; }>; type DeleteCorrelationAction = ActionType<'DELETE_CORRELATION', { correlation: Correlation; }>; export type CorrelationsActions = SetMFAction | SetToleranceAction | SetCorrelationAction | SetCorrelationsAction | DeleteCorrelationAction; declare function handleUpdateCorrelations(draft: Draft, options?: CorrelationBuildOptions): void; declare function handleSetMF(draft: Draft, action: SetMFAction): void; declare function handleSetTolerance(draft: Draft, action: SetToleranceAction): void; declare function handleSetCorrelation(draft: Draft, action: SetCorrelationAction): void; declare function handleSetCorrelations(draft: Draft, action: SetCorrelationsAction): void; declare function handleDeleteCorrelation(draft: Draft, action: DeleteCorrelationAction): void; export { handleDeleteCorrelation, handleSetCorrelation, handleSetCorrelations, handleSetMF, handleSetTolerance, handleUpdateCorrelations, }; //# sourceMappingURL=CorrelationsActions.d.ts.map