import type { MoleculeView, NmriumState, SpectraColors } from '@zakodium/nmrium-core'; import { FileCollection } from 'file-collection'; import type { Draft } from 'immer'; import type { ParseResult } from 'papaparse'; import type { UsedColors } from '../../../types/UsedColors.js'; import type { State } from '../Reducer.js'; import type { ActionType } from '../types/ActionType.js'; interface InitiateProps { nmriumState: Partial; aggregator: FileCollection; } interface InputProps extends InitiateProps { containsNmrium?: boolean; usedColors?: UsedColors; parseMetaFileResult?: ParseResult | null; resetSourceObject?: boolean; spectraColors?: SpectraColors; defaultMoleculeSettings?: MoleculeView; } type SetIsLoadingAction = ActionType<'SET_LOADING_FLAG', { isLoading: boolean; }>; type LoadDropFilesAction = ActionType<'LOAD_DROP_FILES', InputProps>; type InitiateAction = ActionType<'INITIATE', InitiateProps>; export type LoadAction = SetIsLoadingAction | LoadDropFilesAction | InitiateAction; declare function handleSetIsLoading(draft: Draft, action: SetIsLoadingAction): void; declare function handleInitiate(draft: Draft, action: InitiateAction): State | undefined; declare function handleLoadDropFiles(draft: Draft, action: LoadDropFilesAction): State | undefined; export declare const LoadActions: { readonly handleInitiate: typeof handleInitiate; readonly handleLoadDropFiles: typeof handleLoadDropFiles; readonly handleSetIsLoading: typeof handleSetIsLoading; }; export {}; //# sourceMappingURL=LoadAction.d.ts.map