/**
 * @fileoverview System, config, settings, subagent, and debug routes.
 * Covers status, stats, config CRUD, settings, subagent monitoring,
 * debug/memory, lifecycle logs, screenshots, and various persistence endpoints.
 */
import { FastifyInstance } from 'fastify';
import type { SessionPort, EventPort, ConfigPort, InfraPort, AuthPort } from '../ports/index.js';
/**
 * Build the URL the spanning browser window should open, pinned to localhost.
 * Takes only a digits-only port from the (untrusted) Host header so nothing
 * attacker-controllable reaches the launched browser; falls back to the default
 * port when the header is absent/odd. Exported for unit testing.
 */
export declare function resolveSpanUrl(hostHeader: string | undefined, fallbackPort?: string): string;
export declare function registerSystemRoutes(app: FastifyInstance, ctx: SessionPort & EventPort & ConfigPort & InfraPort & AuthPort): void;
//# sourceMappingURL=system-routes.d.ts.map