import { type AnyAction } from 'redux'; import type { ThunkAction } from 'redux-thunk'; /** * Memoizes the action received and binds the dispatch. * * @param action - Action to be wrapped by a dispatch. * * @returns Memoized version of the action, with a dispatch. */ declare const useAction: ThunkAction | AnyAction>(action: ActionCreator) => ReturnType extends ThunkAction ? (...args: Parameters) => ReturnType> : ActionCreator; export default useAction;