import * as React from "react"; declare class Component extends React.Component, State> { static defaultProps: { getInitialState: () => void; getRefs: () => {}; }; state: State; _refs: Refs; _setState: React.Component, State>["setState"]; _forceUpdate: React.Component, State>["forceUpdate"]; getArgs(): { state: State; props: any; refs: Refs; setState: (state: State | ((prevState: Readonly, props: Readonly>) => State | Pick | null) | Pick | null, callback?: (() => void) | undefined) => void; forceUpdate: (callback?: (() => void) | undefined) => void; }; componentDidMount(): void; shouldComponentUpdate(nextProps: ComponentProps, nextState: State): boolean; componentWillUnmount(): void; componentDidUpdate(prevProps: ComponentProps, prevState: State, snapshot: any): void; getSnapshotBeforeUpdate(prevProps: ComponentProps, prevState: State): any; render(): any; } export { Component }; export default Component; interface ComponentProps { [key: string]: any; initialState?: State; getInitialState?: (props: ComponentProps) => State; refs?: Refs; getRefs?: (...args: any[]) => Refs; didMount?: (...args: any[]) => void; didUpdate?: (...args: any[]) => void; willUnmount?: (...args: any[]) => void; getSnapshotBeforeUpdate?: (...args: any[]) => any; shouldUpdate?: (args: { props: ComponentProps; state: State; nextProps: ComponentProps; nextState: State; }) => boolean; render?: (...args: any[]) => React.ReactElement | null; children?: ((...args: any[]) => React.ReactElement | null) | React.ReactNode | React.ReactElement | Element | null; }