// 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
///
declare module "react-side-effect" {
import React = __React;
function withSideEffect(
reducePropsToState: (propsList: any[]) => any,
handleStateChangeOnClient: (state: any) => any,
mapStateOnServer?: (state: any) => any
): ClassDecorator;
class ElementClass extends React.Component {}
interface ClassDecorator {
(component:T): T;
}
namespace withSideEffect {} // https://github.com/Microsoft/TypeScript/issues/5073
export = withSideEffect;
}