import type { Draft } from 'immer'; import type { Correlation, Options as CorrelationOptions, Tolerance, Values as CorrelationValues } from 'nmr-correlation'; 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: Tolerance; }>; type SetCorrelationAction = ActionType<'SET_CORRELATION', { id: string; correlation: Correlation; options?: CorrelationOptions; }>; type SetCorrelationsAction = ActionType<'SET_CORRELATIONS', { correlations: CorrelationValues; options: CorrelationOptions; }>; type DeleteCorrelationAction = ActionType<'DELETE_CORRELATION', { correlation: Correlation; }>; export type CorrelationsActions = SetMFAction | SetToleranceAction | SetCorrelationAction | SetCorrelationsAction | DeleteCorrelationAction; declare function handleUpdateCorrelations(draft: Draft): 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