/** * Lip-sync Generation Job Queue * * Async job processing for lip-sync video generation. */ import { SimpleQueue } from "./simple-queue.js"; import { lipSyncGenerateSchema } from "../tools/lipsync.js"; import type { ComfyUIClient } from "../comfyui-client.js"; import type { z } from "zod"; export interface LipsyncJobPayload { /** Lipsync 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 LipsyncJobResult { status: "complete" | "failed"; result?: { localPath: string; signedUrl?: string; }; error?: string; requestId?: string; } /** * Initialize the lipsync queue with the ComfyUI client. * Note: Lip-sync is GPU-intensive, so we use lower concurrency. */ export declare function initLipsyncQueue(client: ComfyUIClient): SimpleQueue; /** * Get the lipsync queue (must be initialized first). */ export declare function getLipsyncQueue(): SimpleQueue;