/** * Pluggable per-framework SSR contract. * * `renderToString` takes whatever shape the framework's JSX pragma * produces (Preact's VNode, React's element, etc.) and returns a string * of HTML. The runtime treats both the input and the return value as * opaque — it neither inspects the vnode nor escapes the output. */ export interface FrameworkAdapter { /** * Render a JSX vnode to an HTML string. Must be synchronous; SSR * happens inside a Hono request handler that resolves the response * body in one step. */ renderToString: (vnode: unknown) => string; }