import React from 'react'; import { WebConfig } from '../app'; import { ConfigStore } from './../config'; import { ReactAddon, ReactControl } from './base'; import { Router } from './router'; export declare const ClientGlobalConfig: WebConfig; /** * 应用程序配置状态 */ export interface ClientAppConfigState { /** 应用程序配置 */ appConfig?: RouteApplication; /** 配置服务 */ configService?: ConfigStore; /** 客户端应用程序 */ app?: React.ReactElement; } export declare const ClientAppConfig: ClientAppConfigState; export declare class RouteApplication extends ReactAddon { routers?: ReactControl[]; onStartApplication?: () => void; onCreateDefaultRouters?: () => React.ReactNode; onRender?: (() => JSX.Element) | undefined; } export declare const RouteApplicationControl: any; /** * 加载配置并启动 * @param props 参数 */ export declare function loadConfigAndCreateApp(appFileName?: string, defaultRouters?: ReactControl[]): JSX.Element;