/** * Hono Adapter for binja * Seamless integration with Hono framework * * @example * ```typescript * import { Hono } from 'hono' * import { binja } from 'binja/hono' * * const app = new Hono() * * app.use(binja({ root: './views' })) * * app.get('/', (c) => c.render('index', { title: 'Home' })) * ``` */ import type { MiddlewareHandler } from 'hono'; export interface BinjaHonoOptions { /** Root directory for templates (default: './views') */ root?: string; /** Default file extension (default: '.html') */ extension?: string; /** Template engine: 'jinja2' | 'handlebars' | 'liquid' | 'twig' (default: 'jinja2') */ engine?: 'jinja2' | 'handlebars' | 'liquid' | 'twig'; /** Enable debug panel (default: false) */ debug?: boolean; /** Cache compiled templates (default: true in production) */ cache?: boolean; /** Global context data available in all templates */ globals?: Record; /** Layout template name (optional) */ layout?: string; /** Content variable name in layout (default: 'content') */ contentVar?: string; } declare module 'hono' { interface ContextRenderer { (template: string, context?: Record): Response | Promise; } } /** * Create binja middleware for Hono */ export declare function binja(options?: BinjaHonoOptions): MiddlewareHandler; /** * Clear template cache */ export declare function clearCache(): void; /** * Get cache stats */ export declare function getCacheStats(): { size: number; keys: string[]; }; export default binja; //# sourceMappingURL=hono.d.ts.map