/*! * Ported from https://github.com/expressjs/express/blob/master/lib/view.js * express * Copyright(c) 2009-2013 TJ Holowaychuk * Copyright(c) 2013 Roman Shtylman * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ import type { TemplateEngine, TemplateEngineOptions } from './types.js'; /** * Initialize a new `View` with the given `name`. * * Options: * * - `defaultEngine` the default template engine name * - `engines` template engine require() cache * - `root` root path for view lookup * * @param name * @param options * @public */ export declare class View { #private; ext?: string; defaultEngine?: string; name: string; engine: TemplateEngine; path: string; root: string | string[]; constructor(name: string, opts?: Partial<{ defaultEngine: string; root: string | string[]; engines: Record>; }>); render(options: RenderOptions, data: Record, cb: (err: Error | null, html: unknown) => void): void; } //# sourceMappingURL=view.d.ts.map