/** * binja Debug Panel * * Usage: * ```typescript * import { renderWithDebug } from 'binja/debug' * * // In development * const html = await renderWithDebug(env, 'page.html', context) * // HTML includes debug panel at the bottom * ``` */ import type { Environment } from '../index'; import { PanelOptions } from './panel'; export { DebugCollector, startDebugCollection, endDebugCollection, getDebugCollector } from './collector'; export type { DebugData, ContextValue, QueryInfo, QueryStats } from './collector'; export { generateDebugPanel } from './panel'; export type { PanelOptions } from './panel'; export { recordQuery, createPrismaMiddleware, setupPrismaLogging, createDrizzleLogger, wrapDrizzleQuery, wrapBunSQL, wrapQuery, createQueryWrapper, } from './integrations'; export interface DebugRenderOptions { /** Panel options */ panel?: PanelOptions; /** Only inject if response is HTML */ htmlOnly?: boolean; } /** * Render a template with debug panel injection */ export declare function renderWithDebug(env: Environment, templateName: string, context?: Record, options?: DebugRenderOptions): Promise; /** * Render a string template with debug panel */ export declare function renderStringWithDebug(env: Environment, source: string, context?: Record, options?: DebugRenderOptions): Promise; /** * Create debug-enabled render functions */ export declare function createDebugRenderer(env: Environment, options?: DebugRenderOptions): { render(templateName: string, context?: Record): Promise; renderString(source: string, context?: Record): Promise; }; /** * Middleware factory for web frameworks * Injects debug panel into HTML responses */ export declare function debugMiddleware(env: Environment, options?: DebugRenderOptions): { /** * Hono middleware */ hono(): (c: any, next: () => Promise) => Promise; /** * Express-style middleware */ express(): (req: any, res: any, next: () => void) => void; }; //# sourceMappingURL=index.d.ts.map