import { EventEmitter } from 'events'; export interface ProgressData { value: number; max: number; node?: string | null; prompt_id?: string; } export interface ExecutingData { node: string | null; prompt_id: string; } export interface ExecutedData { node: string; output: any; prompt_id: string; } export declare class ComfyWebSocket extends EventEmitter { private ws; private clientId; private reconnectAttempts; private maxReconnectAttempts; constructor(clientId?: string); connect(): Promise; private handleMessage; disconnect(): void; isConnected(): boolean; getClientId(): string; } /** * 监听特定 prompt_id 的执行进度 */ export declare function monitorProgress(promptId: string, onProgress?: (current: number, total: number, message: string) => void, onComplete?: () => void): Promise; //# sourceMappingURL=websocket.d.ts.map