/** * NAT/DDNS HTTP routes — thin adapters around `NatHandlers` * (`createNatHandlers(service)`). Side-effects (settings change, reachability * re-test, DDNS reconfiguration, a manual forward) emit a `connectivity-changed` * bus event. The service's own change listener covers the changes that happen * on their own (a mapping completing after a spawn, an IP change) — see * `server/index.ts`. * * Mount path: `/nat/*` — matches the existing CLI (cadre-host nat ...). */ import type { FastifyInstance } from 'fastify'; import type { NatHandlers, NatStatusSnapshot } from '../../nat/types.js'; import type { EventBus } from '../events/bus.js'; export interface NatRoutesOptions { handlers: NatHandlers; events: EventBus; } export declare function registerNatRoutes(app: FastifyInstance, opts: NatRoutesOptions): void; export declare function publishConnectivity(events: EventBus, snap: NatStatusSnapshot): void;