import React from 'react'; import RemoteModule from '../../types/module'; type RemoteViewProp = { id?: string className?: string, style?: React.CSSProperties, disabled?: boolean, bodyStyle?: React.CSSProperties, scopeStyle?: boolean|'always', scopePrefix?: string, classPrefix?: string, transfromHtmlBodyTagClass?: boolean, shadow?: boolean, tag?: string, src?: string, module?: RemoteModule, moduleName?: string, exportName?: string, props?: Record, externals?: Record, onViewLoading?: (loading: boolean) => void onViewError?: (ex: Error) => void } type RemoteViewState = { loading: boolean, viewSrc: string, view: any } declare class RemoteView

extends React.Component { componentDidMount(): Promise; componentWillUnmount(): void; componentDidUpdate(prevProps: Readonly

, prevState: Readonly, snapshot?: SS): void; reload(): void; _destoryView(viewScopeName: string): void; _loadView(): void; render(): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | React.FunctionComponentElement | null; } export default RemoteView;