import { Kernel } from "oly-core"; import { IKoaContext } from "oly-http"; export declare class ReactServerRenderer { /** * List of POST transformation of template. * You can see an example on {@see PixieServerProvider}. * * @type {Array} */ templateTransforms: Array<(template: string, context: Kernel) => string>; protected kernel: Kernel; /** * This is useless if you use ReactStatic or ReactProxy. * * @param prefix * @param mountId */ generateIndex(prefix: string, mountId: string): string; /** * Make the react rendering. * * @param ctx IKoaContext * @param template index.html * @param mountId */ render(ctx: IKoaContext, template: string, mountId: string): string; /** * In very few cases, SSR can failed. * * @param ctx Koa Context with Kernel * @param mountId * @param template App template with styles + scripts * @param error The holy error * @returns {string} */ renderError(ctx: IKoaContext, template: string, mountId: string, error: Error): string; /** * */ readonly rootElement: JSX.Element; }