import type { Context } from 'react'; import type { Action as BasicAction, AnyAction, Store } from 'redux'; import type { ReactReduxContextValue } from '../components/Context'; /** * Hook factory, which creates a `useStore` hook bound to a given context. * * @param {React.Context} [context=ReactReduxContext] Context passed to your ``. * @returns {Function} A `useStore` hook bound to the specified context. */ export declare function createStoreHook(context?: Context>): = A>() => Store; /** * A hook to access the redux store. * * @returns {any} the redux store * * @example * * import React from 'react' * import { useStore } from 'react-redux' * * export const ExampleComponent = () => { * const store = useStore() * return
{store.getState()}
* } */ export declare const useStore: = AnyAction>() => Store;