import { RenderContext } from "@xarc/render-context"; import { PageOptions } from "./types"; /** * Options for rendering a page for each request */ export type RenderOptions = { /** * Your HTTP framework's request object. Will be passed into UI components as is * through React context. */ request?: any; /** namespace to load the subapps */ namespace?: string; /** * Turn on/off server side rendering for the entire render, regardless if subapp * wants ssr. Setting this flag to `true` will not make a subapp that sets its * own `ssr` to `false` do SSR. */ ssr?: boolean; /** * If you only want to prepare data for when `ssr` is `true`, set this to `true`. * This will affect all subapps in this render */ prepareOnly?: boolean; }; /** * Renderer to render a page with xarc subapps on it */ export declare class PageRenderer { private _options; private _template; private _renderer; constructor(options: PageOptions); _getSSRSubAppNames(): string[]; /** * Render index.html with subapps * @params RenderOptions * @returns Promise */ render(options: RenderOptions): Promise; }