/** * One request in, one answer out: which handler serves what. * * Everything this dispatches to lives beside it, so the router reads as a list * of what the page can ask for rather than as the implementation of all of it. * That is the whole reason it is its own file: the page grows a new question * every few days, and adding one should not mean opening the module that also * holds the thumbnailer, the child process and the board cache. * * A handler returns a `Response` rather than writing into one. The exception is * the live channel, which returns nothing at all: an upgraded request stops * being an exchange and becomes a socket the server writes to for as long as * the tab is open. */ import type { Server } from "bun"; export declare function handle(req: Request, server: Server): Promise;