import { Component, ComponentClass, ComponentLifecycle, ReactNode } from "react"; declare namespace createReactClass { interface Mixin
extends ComponentLifecycle
{
mixins?: Array extends Mixin {
render(): ReactNode;
[propertyName: string]: any;
}
interface ClassicComponent extends Component {
replaceState(nextState: S, callback?: () => void): void;
isMounted(): boolean;
getInitialState?(): S;
}
interface ClassicComponentClass extends Omit ;
getDefaultProps?(): P;
}
}
declare function createReactClass (
spec: createReactClass.ComponentSpec ,
): createReactClass.ClassicComponentClass ;
export as namespace createReactClass;
export = createReactClass;