export interface ComfyUIConfig { url: string; outputDir?: string; /** ComfyUI input directory for control images */ inputDir?: string; /** Generation timeout in milliseconds (default: 10 minutes) */ timeout?: number; } export interface QueuePromptResponse { prompt_id: string; number: number; } export interface HistoryItem { prompt: any; outputs: Record; }>; status: { status_str: string; completed: boolean; messages: any[]; }; } export interface QueueStatus { queue_running: any[]; queue_pending: any[]; } export interface SystemStats { system: { os: string; python_version: string; embedded_python: boolean; comfyui_version?: string; }; devices: Array<{ name: string; type: string; index: number; vram_total: number; vram_free: number; torch_vram_total: number; torch_vram_free: number; }>; } export declare class ComfyUIClient { private baseUrl; private wsUrl; outputDir: string; inputDir: string; private timeout; constructor(config: ComfyUIConfig); /** Get the ComfyUI input directory for control images */ getInputDir(): string; queuePrompt(workflow: any, clientId?: string): Promise; getHistory(promptId: string): Promise; getObjectInfo(): Promise>; getQueueStatus(): Promise; getSystemStats(): Promise; getModels(): Promise; getSamplers(): Promise; getSchedulers(): Promise; waitForCompletion(promptId: string, onProgress?: (value: number, max: number) => void): Promise; private pollForCompletion; getImage(filename: string, subfolder: string, type: string): Promise; getAudio(filename: string, subfolder: string, type: string): Promise; getVideo(filename: string, subfolder: string, type: string): Promise; }