/** * API server start and WebSocket upgrade handler. * * Extracted from cli/commands/start.ts (Task 12 Part A). * Waits for port availability, starts the API server, sets up * the WebSocket upgrade handler (setup-ws local + /ws proxy to * embedding port), and enforces auth on non-localhost connections. */ import type { ApiServer } from '../../api/index.js'; /** Anything that can be stopped during shutdown. */ export type Stoppable = { stop: () => Promise | void; }; export interface StartServerParams { apiServer: ApiServer; gateways: Stoppable[]; } /** * Wait for the API port, start the server, set up WebSocket * upgrade handling, and push the server into the gateways array. */ export declare function startServer(params: StartServerParams): Promise; //# sourceMappingURL=server-start.d.ts.map