/** * Portrait Generation Job Queue * * Async job processing for portrait generation. */ import { SimpleQueue } from "./simple-queue.js"; import { createPortraitSchema } from "../tools/avatar.js"; import type { ComfyUIClient } from "../comfyui-client.js"; import type { z } from "zod"; export interface PortraitJobPayload { /** Portrait 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 PortraitJobResult { status: "complete" | "failed"; result?: { localPath: string; signedUrl?: string; prompt: string; model: string; }; error?: string; requestId?: string; } /** * Initialize the portrait queue with the ComfyUI client. * Must be called before using the queue. */ export declare function initPortraitQueue(client: ComfyUIClient): SimpleQueue; /** * Get the portrait queue (must be initialized first). */ export declare function getPortraitQueue(): SimpleQueue;