/** Same-origin route that probes, starts, stops, and restarts the local ComfyUI server. */ import type { IncomingMessage, ServerResponse } from 'node:http'; import type { ComfyUIServerStatus } from './shared.js'; export interface ComfyUIServerRouteDeps { status(): Promise; start(): Promise; stop(): Promise; restart(): Promise; } export declare function serveComfyUIServer(req: IncomingMessage, res: ServerResponse, deps: ComfyUIServerRouteDeps): Promise;