import type { Integral } from '@zakodium/nmr-types'; import type { IntegralsViewState } from '@zakodium/nmrium-core'; import type { Draft } from 'immer'; import type { SetSumOptions } from '../../../data/data1d/Spectrum1D/SumManager.js'; import type { FilterType } from '../../utility/filterType.js'; import type { State } from '../Reducer.js'; import type { ActionType } from '../types/ActionType.js'; type ChangeIntegralSumAction = ActionType<'CHANGE_INTEGRAL_SUM', { options: SetSumOptions; }>; type AddIntegralAction = ActionType<'ADD_INTEGRAL', { startX: number; endX: number; }>; type DeleteIntegralAction = ActionType<'DELETE_INTEGRAL', { id?: string; spectrumKey?: string; }>; type ChangeIntegralAction = ActionType<'CHANGE_INTEGRAL' | 'RESIZE_INTEGRAL', { integral: Integral; spectrumKey?: string; }>; type ChangeIntegralRelativeValueAction = ActionType<'CHANGE_INTEGRAL_RELATIVE', { id: string; value: number; }>; type CutIntegralAction = ActionType<'CUT_INTEGRAL', { cutValue: number; }>; type ToggleIntegralsViewAction = ActionType<'TOGGLE_INTEGRALS_VIEW_PROPERTY', { key: keyof FilterType; }>; export type IntegralsActions = ChangeIntegralSumAction | AddIntegralAction | DeleteIntegralAction | ChangeIntegralAction | ChangeIntegralRelativeValueAction | CutIntegralAction | ToggleIntegralsViewAction | ActionType<'CHANGE_INTEGRALS_SUM_FLAG'>; declare function handleChangeIntegralSum(draft: Draft, action: ChangeIntegralSumAction): void; declare function handleAddIntegral(draft: Draft, action: AddIntegralAction): void; declare function handleDeleteIntegral(draft: Draft, action: DeleteIntegralAction): void; declare function handleChangeIntegral(draft: Draft, action: ChangeIntegralAction): void; declare function handleChangeIntegralsRelativeValue(draft: Draft, action: ChangeIntegralRelativeValueAction): void; declare function handleChangeIntegralsSumFlag(draft: Draft): void; declare function handleCutIntegral(draft: Draft, action: CutIntegralAction): void; declare function handleToggleIntegralsViewProperty(draft: Draft, action: ToggleIntegralsViewAction): void; export { handleAddIntegral, handleChangeIntegral, handleChangeIntegralSum, handleChangeIntegralsRelativeValue, handleChangeIntegralsSumFlag, handleCutIntegral, handleDeleteIntegral, handleToggleIntegralsViewProperty, }; //# sourceMappingURL=IntegralsActions.d.ts.map