///
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { Action } from './store';
export interface Props {
observeState: () => void;
getCurrentState: () => any;
dispatch: (action: Action) => void;
children: JSX.Element | JSX.Element[];
}
export default class StateProvider extends React.Component {
static childContextTypes: {
observeState: PropTypes.Validator;
getCurrentState: PropTypes.Validator;
dispatch: PropTypes.Validator;
};
constructor(props: Props, context: any);
getChildContext(): {
observeState: () => void;
getCurrentState: () => any;
dispatch: (action: Action) => void;
};
render(): JSX.Element | JSX.Element[] | (string & JSX.Element) | (string & JSX.Element[]) | (number & JSX.Element) | (number & JSX.Element[]) | (true & JSX.Element) | (true & JSX.Element[]) | (false & JSX.Element) | (false & JSX.Element[]) | (React.ReactElement & JSX.Element) | (React.ReactElement & JSX.Element[]) | ((string | number | boolean | any[] | React.ReactElement)[] & JSX.Element) | ((string | number | boolean | any[] | React.ReactElement)[] & JSX.Element[]) | (React.ReactPortal & JSX.Element) | (React.ReactPortal & JSX.Element[]);
}