import { Draft } from 'immer'; import { SetStateAction, Reducer } from 'react'; import { CreateSliceActions, CreateSliceProps, ReducerActionCreators, ThunkActions } from './types'; import { ComponentPropsType } from '../../connect/types'; declare const createSlice: , MT extends ThunkActions>, N extends string, S extends ComponentPropsType, A extends CreateSliceActions>(props: CreateSliceProps) => { initialState: S & MS; actions: ReducerActionCreators & { [x: string]: (state: Draft, payload?: any) => void | import('..').NoInfer | Draft>; } & MT; reducer: Reducer & { type: string; }) | SetStateAction | Partial>; addThunks: >>(getThunks: (thunksAction: ReducerActionCreators) => TA) => { initialState: S & MS; actions: ReducerActionCreators & TA & MT; reducer: Reducer & { type: string; }) | SetStateAction | Partial>; module: { initialState: S; actions: A; getThunks: (thunksAction: ReducerActionCreators) => TA; }; }; module: { initialState: S; actions: A; }; }; export default createSlice;