/** * Terminal Server - Routes and WebSocket setup for PTY management */ import { FastifyInstance } from 'fastify'; import { WebSocketServer } from 'ws'; import { Server as HttpServer } from 'http'; /** * Setup terminal REST routes as a Fastify plugin */ export declare function setupTerminalRoutes(fastify: FastifyInstance): Promise; /** * Setup terminal WebSocket server with noServer mode * Returns the WSS so the upgrade can be handled externally */ export declare function setupTerminalWebSocket(server: HttpServer): WebSocketServer; /** * Cleanup all terminals (call on shutdown) */ export declare function cleanupTerminals(): void;