import React from 'react'; import type { History } from 'history'; import { ISidebarConfig } from '@alicloud/xconsole-rc-app-layout/lib/types/index'; import { AppConfig } from './AppConfig'; import { RouteConfig } from './RouteConfig'; export interface XConsoleAppProps { appConfig?: AppConfig; routeConfig?: RouteConfig; sidebar?: any; AppLayout?: any; } /** * Xconsole Render Options */ export interface XconsoleRenderOpts { selectorId: string; /** * React-Dom render callback */ callback?: () => void; /** * I18n Message for Apps */ intlMessages?: Record; /** * Xconsole Runtime Config * see https://xconsole.aliyun-inc.com/nexconsole/develop/bckgbg */ appConfig?: AppConfig | (() => AppConfig | Promise); routeConfig?: RouteConfig; sidebar?: ISidebarConfig; App?: React.ComponentType; consoleBase?: any; /** * Custom Entry for Xconsole */ customEntry?: (app: any, App: React.ComponentType, history: History) => React.ComponentType; }