import { type Processor } from '../processor.js'; import type { Compiler } from '../compiler.js'; /** * Renders a given template with it's shared state */ export declare class EdgeRenderer { #private; constructor(compiler: Compiler, asyncCompiler: Compiler, processor: Processor, globals: Record); /** * Clone renderer instance with shared data */ clone(): EdgeRenderer; /** * Share local variables with the template. They will overwrite the * globals */ share(data: Record): this; /** * Retrieves the local and global variables, used for testing things that * share variables */ getState(): Record; /** * Render the template */ render(templatePath: string, state?: Record): Promise; /** * Render the template */ renderSync(templatePath: string, state?: Record): string; /** * Render the template from a raw string */ renderRaw(contents: string, state?: Record, templatePath?: string): Promise; /** * Render the template from a raw string */ renderRawSync(contents: string, state?: Record, templatePath?: string): string; }