import * as React from "react"; export interface IAsyncComponentState { Component?: typeof React.Component; } export declare type IGetComponent = () => Promise; export default function asyncComponent(getComponent: IGetComponent): { new (props: any): { state: { Component?: typeof React.Component; }; componentWillMount(): void; render(): JSX.Element; context: any; setState(state: IAsyncComponentState | ((prevState: Readonly, props: null) => IAsyncComponentState | Pick) | Pick, callback?: () => void): void; forceUpdate(callBack?: () => void): void; readonly props: Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: null, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: null, prevState: Readonly): any; componentDidUpdate?(prevProps: null, prevState: Readonly, snapshot?: any): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: null, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: null, nextContext: any): void; componentWillUpdate?(nextProps: null, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: null, nextState: Readonly, nextContext: any): void; }; contextType?: React.Context; };