/** * TTS Generation Job Queue * * Async job processing for text-to-speech with voice cloning. */ import { SimpleQueue } from "./simple-queue.js"; import { ttsGenerateSchema } from "../tools/tts.js"; import type { ComfyUIClient } from "../comfyui-client.js"; import type { z } from "zod"; export interface TTSJobPayload { /** TTS generation parameters */ params: z.infer; /** Optional webhook URL to notify on completion */ callbackUrl?: string; /** User ID for tracking */ userId?: string; /** Request ID for correlation */ requestId?: string; } export interface TTSJobResult { status: "complete" | "failed"; result?: { localPath: string; signedUrl?: string; }; error?: string; requestId?: string; } /** * Initialize the TTS queue with the ComfyUI client. */ export declare function initTTSQueue(client: ComfyUIClient): SimpleQueue; /** * Get the TTS queue (must be initialized first). */ export declare function getTTSQueue(): SimpleQueue;