import type { FastifyInstance } from 'fastify'; /** * GET /whoami — authenticated bearer-verification probe (issue #129). * * `/health` and `/version` are public whenever the daemon is bound to * loopback (see `isLoopbackHost` in `src/server/app.ts`), so neither can be * used by `connect` flows to confirm a bearer token actually works on a * default (loopback) install. This route is never added to that public-path * exemption, so it always requires `Authorization: Bearer ` — on * every bind, loopback included. Reaching this handler at all means the * global `preHandler` hook (`app.ts`) already ran `safeBearerEqual` (FEAT-430 * constant-time compare) and accepted the token, so there is nothing to * re-check here. */ export declare function whoamiRoute(app: FastifyInstance): Promise;