import { Compiler, CompileResult, ExecuteContext } from './compiler'; import * as nunjucks from 'nunjucks'; import { Pagination, DataResult } from '../../models/index'; import { BuildTimeCompilerEnvironment, RuntimeCompilerEnvironment } from './compiler-environment'; export declare class NunjucksCompiler implements Compiler { name: string; private runtimeEnv; private compileTimeEnv; constructor(runtimeEnv: RuntimeCompilerEnvironment, compileTimeEnv: BuildTimeCompilerEnvironment); compile(template: string): Promise; generateAst(template: string): { ast: nunjucks.nodes.Node; metadata: Record; }; execute(templateName: string, data: ExecuteContext, pagination?: Pagination): Promise; /** Process the AST tree before compiling */ private preProcess; private renderAndGetMainBuilder; }