import { ComponentClass } from 'react'; import { WrappedComponentWithDefaultProps, WrappedComponentWithMappedProps, DefaultStoreState, Id, UIStateBranchSelector, Props, StateProps, DispatchProps } from './utils'; export interface __IMPORT_FIX { UIStateBranchSelector: UIStateBranchSelector<{}>; } export declare type MapConnectUIStateProps = (props: StateProps & DispatchProps, ownProps: Readonly) => TTransformedProps; export declare const defaultMapper: (props: Props) => Props; /** * A higher order component responsible for injecting Redux UI State props (uiState and setUIState) into a Component * @param id A string or function that accepts component props and returns a string * @param mapProps A function that maps raw props into a nicer more contextually relevant shape */ export interface ConnectUIState { (id: Id): (Component: WrappedComponentWithDefaultProps) => ComponentClass; (id: Id, mapProps: MapConnectUIStateProps): (Component: WrappedComponentWithMappedProps) => ComponentClass; } /** * A higher order component factory that passes UI state related properties and functions to the wrapped component. * The first function should always be called only once during the life of an application as shown below, with the * result being a standard HOC. * * // utils.ts * const connectUIState = createConnectUIState(state => state.ui); * * // Counter.ts * ... * export default connectUIState('counter')(Counter); * * @param uiStateBranchSelector The function that selects the uiState branch from the store */ export declare const setupConnectUIState: (uiStateBranchSelector?: UIStateBranchSelector) => ConnectUIState; export declare const defaultConnectUIState: ConnectUIState;