import { Dispatch, SetStateAction } from 'react'; import { ReducerActionCreators } from './createSlice/types'; import { Thunk, ActionCreatorWithPayload, PayloadActionCreator } from '../types'; import { ComponentPropsType } from '../connect/types'; declare const createContextWithName: >(displayName: string, initialState: S) => { StateContext: import('use-context-selector').Context; useSelector: >(mapStateToSelector: (state: S, props?: Props | undefined) => SelectedState, props?: Props | undefined) => SelectedState; DispatchContext: import('use-context-selector').Context | PayloadActionCreator | { type: string; payload: any; } | Thunk | SetStateAction | Partial>>; useDispatch: () => Dispatch | PayloadActionCreator | { type: string; payload: any; } | Thunk | SetStateAction | Partial>; }; export default createContextWithName;