/**
* GET /dashboard/logs — recent daemon log lines, readable in the browser.
*
* Mirrors dashboard-jobs-html.ts's structure (route factory + shared
* checkDashboardAuth). Zero JS, per the dashboard convention (app.ts:80) —
* auto-refresh via , not polling.
*
* Log source resolution (CLAUDE.md "MCP transport" / service-mode notes):
* - Service mode: ASTRA_LOG_DIR set, the in-process service log stream
* (src/log/logger.ts createServiceLogStream — replaced pino-roll after the
* 2026-07-15 thread-stream freeze incident) writes JSON lines to
* `/daemon.live.log`, rotating to `daemon.live..log`.
* Legacy pino-roll `daemon..log` files may also remain on disk. All of
* these match the discovery below; we pick the NEWEST by mtime, which is
* always the actively-written live file.
* - Foreground / no ASTRA_LOG_DIR: nothing rotated lands here, but the
* shim's launcher (service/shim.ts) still captures raw stdout to
* `/daemon-stdout.log` when running under the service shim. We
* fall back to that file when no `daemon.*.log` exists.
* - Neither present (e.g. `serve` run directly, no service, no log dir
* yet): empty state, never throws.
*
* Only the last ~64KB of the chosen file is read (readTail pattern from
* service/shim.ts) — the file can be up to 10MB (pino-roll's rotation size),
* and this route must never load a whole rotated log into memory.
*/
import type { FastifyInstance } from 'fastify';
export declare function dashboardLogsRoute(dataDir: string, token: string, devNoAuthActive?: boolean): (app: FastifyInstance) => Promise;