import React from 'react'; import { ActionCreatorsMapObject } from 'redux'; import { ComponentProps } from './types'; import { Feature } from './features/utilities/types'; /** * @deprecated * @remarks * Use from {@link ./features/utilities/types | features util} instead. */ export { Feature }; /** * The interface the props of a component with a feature * @public * */ export interface FeatureProps extends ComponentProps { /** actions for the feature*/ actions: LocalActions; /** the local store for the feature*/ store: LocalStore; } /** * A higher order component that takes a feature and make its actions and reducer available * @public * @returns a component which has access to the feature actions and local state */ export default function withFeature(feature: Feature): (WrappedComponent: React.ComponentType) => React.ComponentType>;