import React from 'react'; import { RemoteModule } from '../../types'; interface RemoteAppViewProp extends React.HTMLAttributes { [key: string]: any } type RemoteAppViewState = { } declare class RemoteAppView

extends React.Component { readonly root: HTMLElement readonly __import_remote_app__: true componentDidMount(): Promise; componentWillUnmount(): void; componentDidUpdate(prevProps: Readonly

, prevState: Readonly, snapshot?: SS): void; _getAppProps(): { id?: string className?: string, style?: React.CSSProperties, otherProps: Record, } render(): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.FunctionComponentElement | null; } type RemoteAppOptions = { shadow?: boolean, [key: string]: any } type AppView

, O = Record> = { inheritAttrs?: boolean, bootstrap?(props: P, options: O); mounted?(root: HTMLElement, props: P); init?(root: HTMLElement, props: P); forceInit?(root: HTMLElement, props: P); update?(root: HTMLElement, newProps: Partial

, oldProps: Partial

); unmount?(root: HTMLElement); destroy?(root: HTMLElement); destory?(root: HTMLElement); } declare function createAppView( view: AppView | React.ComponentType, options?: RemoteAppOptions ): RemoteAppView | React.ComponentType; declare function requireApp( url: string, options?: RemoteAppOptions ): RemoteAppView; interface RemoteAppProps extends React.HTMLAttributes { src?: string, module?: RemoteModule, moduleName?: string, exportName?: string, hoc?: (Component: React.ComponentType | React.ForwardRefExoticComponent, error?: any) => React.ComponentType | React.ForwardRefExoticComponent, children?: React.ReactNode, clearWhenError?: boolean, props?: Record [key: string]: any } declare const RemoteApp: React.ForwardRefExoticComponent< Pick & React.RefAttributes >; declare function createModuleApp

(remoteModule: RemoteModule): React.ForwardRefExoticComponent

; export { createAppView, createModuleApp, RemoteApp, RemoteAppProps } export default requireApp;