/** Same-origin route for live ComfyUI job snapshots, previews, and cancellation. */ import type { IncomingMessage, ServerResponse } from 'node:http'; import type { ComfyUIJobSnapshot, ComfyUIPreview } from './comfyui-progress.js'; export interface ComfyUIProgressRouteDeps { snapshot(jobId: string): ComfyUIJobSnapshot | undefined; subscribe(jobId: string, listener: () => void): () => void; preview(jobId: string): ComfyUIPreview | undefined; cancel(jobId: string): Promise; } export declare function serveComfyUIProgress(req: IncomingMessage, res: ServerResponse, deps: ComfyUIProgressRouteDeps, pathname: string): Promise;