import { SubAppOptions, SubAppDef, SubAppContainer } from "../subapp/index"; import { SubAppServerRenderPipeline } from "./server-render-pipeline"; export * from "../subapp/index"; export * from "./types"; export * from "./xarc-subapp-v2-node"; export * from "./render-page"; export { loadSubApp } from "./load-v2"; export { initContext } from "./init-context"; export { initSubApp } from "./init-v2"; export { startSubApp } from "./start-v2"; export { SSR_PIPELINES } from "./utils"; export { SubAppServerRenderPipeline }; export { ClientRenderPipeline } from "../subapp/client-render-pipeline"; /** * Get the subapp container * * @returns subapp container */ export declare function getContainer(): SubAppContainer; export declare function _clearContainer(): void; export declare function _setupEnvHooks(): void; /** * Declare a subapp. * * **NOTE**: A webpack plugin will statically analyze the code to extract the subapp info * so options must be a literal object in place. It cannot be a variable declared elsewhere. * * GOOD: * * ```js * export const subapp1 = declareSubApp({ * name: "Subapp1", * getModule: () => import("subapp1") * }) * ``` * * BAD: * * ```js * const subappInfo = { name: "Subapp1", getModule: () => import("subapp1")}; * export const subapp1 = declareSubApp(subappInfo); * ``` * * @param options - options * @returns subapp definition */ export declare function declareSubApp(options: SubAppOptions): SubAppDef; /** * boolean that indicate if app is running in the browser */ export declare const IS_BROWSER = false; /** * Refresh all subapps modules by setting its loaded module to null * which will cause them to be reloaded when subAppReady is called. * ie: renderPage from @xarc/react will check and call subAppReady. * */ export declare function refreshAllSubApps2(): void;