/// import * as React from 'react'; import * as PropTypes from 'prop-types'; import 'rxjs/add/operator/filter'; import 'rxjs/add/operator/map'; import * as t from 'tcomb'; import { TransitionFunction } from './transition'; import { StateT as ST } from './StateT'; export declare type StringOmit = ({ [P in L1]: P; } & { [P in L2]: never; } & { [key: string]: never; })[L1]; export declare type ObjectOmit = Pick>; export declare const ConnectContextTypes: { transition: PropTypes.Validator; state: PropTypes.Validator; }; export declare type ConnectConfig = { pure?: boolean; filterValid?: boolean; killProps?: string[]; }; export declare type ConnectedComponentProps

= ObjectOmit; export declare type ConnectedComponent

= React.ComponentType>; export declare type DecoratedComponent = React.ComponentType

; }>; export declare type ConnectDecorator =

(C: DecoratedComponent) => ConnectedComponent; export declare type ConnectDeclaration = ConnectDecorator & ({ Type: { [k in Decl]: t.Type; } & { transition: t.Function1; }; }); export declare type Connect = (decl: Decl[], config?: ConnectConfig) => ConnectDeclaration; export default function makeConnect(stateType: t.Interface): Connect;