import type { Response } from '@sitevision/api/common/router'; /** * Creates a HTML string for passing props to the app. * @deprecated Use `createAppProps(props, res)` instead. * @example * // Before: * res.send(createAppProps(props)); * * // After: * createAppProps(props, res); * @param {Record} props Props to be passed to the app. * @returns {string} HTML string to make props available to the app. */ export function createAppProps>(props: TProps): string; /** * Creates app props that can be passed to the app. * @param {Record} props Props to be passed to the app. * @param {Response} res Response from \@sitevision/common/router. */ export function createAppProps>(props: TProps, res: Response): void; /** * Creates a HTML string for passing data to the app. * @param {Record} data Data to be passed to the app. * @deprecated Use `createAppProps` instead. * @example * // Before: * res.send(createAppData(data)); * * // After: * createAppProps(data, res); * @returns {string} HTML string to make data available to the config app. */ export function createAppData(data: Record): string; /** * Creates app context global variable. * @param {Response} res Response from \@sitevision/common/router. */ export function createAppContext(res: Response): void;