import { ServerContext } from '../context'; import { StoreSet } from '../stores'; /** * Asynchronously build the HTML page to send to client. * * @param url - The requested URL. * @param csrfToken - The CSRF token calculated by the server. * @param nonce - The nonce to be used for the inline scripts and styles. * @param storeSet - The prepared store set. * @param serverContext - The server context. * @param asStream - True if the result should directly be a stream. * @returns The HTML page to send to client. */ export declare function buildPage(url: string, csrfToken: string, nonce: string, storeSet: StoreSet, serverContext: ServerContext, asStream?: false): Promise; /** * Build the HTML page to send to client, and output it as a stream. The stream will directly output a * string, not a buffer. * * @param url - The requested URL. * @param csrfToken - The CSRF token calculated by the server. * @param nonce - The nonce to be used for the inline scripts and styles. * @param storeSet - The prepared store set. * @param serverContext - The server context. * @param asStream - True if the result should directly be a stream. * @returns The HTML page to send to client. */ export declare function buildPage(url: string, csrfToken: string, nonce: string, storeSet: StoreSet, serverContext: ServerContext, asStream: true): NodeJS.ReadableStream;