/**
* GET /dashboard
*
* Read-only HTML metrics dashboard. Auth accepts (in order):
* 1. `auth.devNoAuth` active (config true AND loopback bind) AND the
* request's Host header resolves to loopback — auth skipped entirely.
* Non-loopback Host under devNoAuth => 403 (DNS-rebinding defense).
* 2. Authorization: Bearer — same as every other route.
* 3. HttpOnly session cookie (set by the one-time bootstrap below).
* 4. ?token= — bootstrap ONLY: exchanged for the cookie via a 302
* redirect to the clean URL, so the bearer never persists in browser
* history and is not re-sent by the poll. Unreachable
* (and unnecessary) while devNoAuth is active.
* Returns 401 plain text on missing/wrong credentials; the 401 log strips the
* query string so wrong-token attempts don't persist candidate secrets.
*
* No JS, no external assets, with one deliberate exception: a small inline
* copy-to-clipboard script for the Recent activity / errors feed (clipboard
* access has no declarative equivalent) — see dashboard-html.ts's header and
* renderExpandable() for the reasoning. drives
* auto-poll.
*/
import type { FastifyInstance } from 'fastify';
import type { DB } from '../../storage/db.js';
import type { Config } from '../../config/config.js';
import type { HealthState } from '../health-state.js';
export declare function dashboardRoute(db: DB, config: Config, token: string, healthState?: HealthState, devNoAuthActive?: boolean): (app: FastifyInstance) => Promise;