import * as React from 'react'; /** * The configuration for an asynchronous component. */ export interface Configuration
{
resolve: () => Promise }>;
LoadingComponent?: (props: P) => JSX.Element;
ErrorComponent?: (props: P & { error: Error }) => JSX.Element;
name?: string;
autoResolveES2015Default?: boolean;
env?: 'node' | 'browser';
serverMode?: 'resolve' | 'defer' | 'boundary';
}
/**
* A wrapper to provide the asynchronous component resolving in a React tree.
*/
export class AsyncComponentProvider extends React.Component (config: Configuration ): React.ComponentType ;
/**
* Create a context for the asynchronous component resolving module.
*/
export function createAsyncContext(): Context;