1 | import * as React from 'react';
|
2 | import { DefaultRootState, StoreProp, GetProps, Matching, ConnectedComponent } from './types';
|
3 | export interface ConnectOptions {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | forwardRef?: boolean;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 | export interface ConnectProps {
|
15 | miniStoreForwardedRef: React.Ref<any>;
|
16 | }
|
17 | export interface ConnectedState<TStateProps = {}, Store = {}, TOwnProps = {}> {
|
18 | subscribed: TStateProps;
|
19 | store: Store;
|
20 | props: TOwnProps;
|
21 | }
|
22 | export declare function connect<TStateProps = {}, TOwnProps = {}, State = DefaultRootState>(mapStateToProps?: (state: State, ownProps: TOwnProps) => TStateProps, options?: ConnectOptions): <C extends React.ComponentType<Matching<TStateProps & StoreProp<State>, GetProps<C>>>>(WrappedComponent: C) => ConnectedComponent<C, TStateProps & StoreProp<State>, TOwnProps>;
|