// Type definitions for react-side-effect v1.0.2
// Project: https://github.com/gaearon/react-side-effect
// Definitions by: Remo H. Jansen
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import React = require("react");
declare function withSideEffect(
reducePropsToState: (propsList: any[]) => any,
handleStateChangeOnClient: (state: any) => any,
mapStateOnServer?: (state: any) => any
): ClassDecorator;
declare class ElementClass extends React.Component {}
interface ClassDecorator {
(component:T): T;
}
declare namespace withSideEffect {} // https://github.com/Microsoft/TypeScript/issues/5073
export = withSideEffect;