import { z } from 'zod'; import { Readable } from 'stream'; declare const GenerateImageInputSchema: z.ZodObject<{ prompt: z.ZodString; width: z.ZodOptional; height: z.ZodOptional; guidance: z.ZodOptional; model_weight: z.ZodOptional; model_id: z.ZodString; webhook_url: z.ZodOptional; /** * Optional. Reference image URL for OpenAI image generation ("openai" model_type). * Will be sent as `reference_url` to the API if present. */ reference_image_url: z.ZodOptional; model_type: z.ZodOptional>>; workflow_type: z.ZodOptional>; strength_model: z.ZodDefault>; lora_low_name: z.ZodOptional; lora_low_strength: z.ZodOptional; lora_high_name: z.ZodOptional; lora_high_strength: z.ZodOptional; batch_size: z.ZodOptional; /** * Aspect ratio for the generated image. * - Gemini 2.5 text-to-image supported ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 * - Other models may support additional ratios */ aspect_ratio: z.ZodOptional>; seed: z.ZodOptional; negative_prompt: z.ZodOptional; num_images: z.ZodOptional; enable_prompt_expansion: z.ZodOptional; num_inference_steps: z.ZodOptional; lora_scale: z.ZodOptional; extra_lora_scales: z.ZodOptional>; webhook_events: z.ZodOptional, "many">>; /** * Array of reference image URLs for Gemini 3 Pro (supports up to 14 images). * Use this when providing multiple reference images instead of a single reference_image_url. */ reference_urls: z.ZodOptional>; /** * Output image size for Gemini 3 Pro. * - '1K': ~1024px on longest side * - '2K': ~2048px on longest side * - '4K': ~4096px on longest side */ image_size: z.ZodOptional>; /** * Whether to use Google Search for enhanced image generation context (Gemini 3 Pro only). */ use_google_search: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; model_id: string; strength_model: number; width?: number | undefined; height?: number | undefined; guidance?: number | undefined; model_weight?: number | undefined; webhook_url?: string | undefined; reference_image_url?: string | undefined; model_type?: "flux-dev" | "wan-image-2.1" | "wan-image-2.2" | "wan-image-2.5" | "flux-kontext-multi" | "flux-kontext-max" | "google-imagen4" | "openai" | "nanobanana" | "qwen-image-edit" | "qwen-image-lora" | "replicate-qwen-image-lora" | "gemini-2.5" | undefined; workflow_type?: "flux-dev" | "wan-image-2.1" | "wan-image-2.2" | "flux-kontext-multi" | "flux-kontext-max" | "google-imagen4" | "openai" | undefined; lora_low_name?: string | undefined; lora_low_strength?: number | undefined; lora_high_name?: string | undefined; lora_high_strength?: number | undefined; batch_size?: number | undefined; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | "match_input_image" | "5:3" | "6:10" | "16:10" | "16:12" | "16:14" | "16:16" | "16:17" | "16:18" | "16:19" | "16:20" | "16:21" | "16:22" | "16:23" | "16:24" | "16:25" | "16:26" | "16:27" | "16:28" | "16:29" | "16:30" | "16:31" | "16:32" | "16:33" | "16:34" | "16:35" | "16:36" | "16:37" | "16:38" | "16:39" | "16:40" | "16:41" | "16:42" | "16:43" | "16:44" | "16:45" | "16:46" | "16:47" | "16:48" | "16:49" | "16:50" | "16:51" | "16:52" | "16:53" | "16:54" | "16:55" | "16:56" | "16:57" | "16:58" | "16:59" | "16:60" | "16:61" | "16:62" | "16:63" | "16:64" | "16:65" | "16:66" | "16:67" | "16:68" | "16:69" | "16:70" | "16:71" | "16:72" | "16:73" | "16:74" | "16:75" | "16:76" | "16:77" | "16:78" | "16:79" | "16:80" | "16:81" | "16:82" | "16:83" | "16:84" | "16:85" | "16:86" | "16:87" | "16:88" | "16:89" | "16:90" | "16:91" | "16:92" | "16:93" | "16:94" | "16:95" | "16:96" | "16:97" | "16:98" | "16:100" | undefined; seed?: number | undefined; negative_prompt?: string | undefined; num_images?: number | undefined; enable_prompt_expansion?: boolean | undefined; num_inference_steps?: number | undefined; lora_scale?: number | undefined; extra_lora_scales?: number[] | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; reference_urls?: string[] | undefined; image_size?: "1K" | "2K" | "4K" | undefined; use_google_search?: boolean | undefined; }, { prompt: string; model_id: string; width?: number | undefined; height?: number | undefined; guidance?: number | undefined; model_weight?: number | undefined; webhook_url?: string | undefined; reference_image_url?: string | undefined; model_type?: "flux-dev" | "wan-image-2.1" | "wan-image-2.2" | "wan-image-2.5" | "flux-kontext-multi" | "flux-kontext-max" | "google-imagen4" | "openai" | "nanobanana" | "qwen-image-edit" | "qwen-image-lora" | "replicate-qwen-image-lora" | "gemini-2.5" | undefined; workflow_type?: "flux-dev" | "wan-image-2.1" | "wan-image-2.2" | "flux-kontext-multi" | "flux-kontext-max" | "google-imagen4" | "openai" | undefined; strength_model?: number | undefined; lora_low_name?: string | undefined; lora_low_strength?: number | undefined; lora_high_name?: string | undefined; lora_high_strength?: number | undefined; batch_size?: number | undefined; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | "match_input_image" | "5:3" | "6:10" | "16:10" | "16:12" | "16:14" | "16:16" | "16:17" | "16:18" | "16:19" | "16:20" | "16:21" | "16:22" | "16:23" | "16:24" | "16:25" | "16:26" | "16:27" | "16:28" | "16:29" | "16:30" | "16:31" | "16:32" | "16:33" | "16:34" | "16:35" | "16:36" | "16:37" | "16:38" | "16:39" | "16:40" | "16:41" | "16:42" | "16:43" | "16:44" | "16:45" | "16:46" | "16:47" | "16:48" | "16:49" | "16:50" | "16:51" | "16:52" | "16:53" | "16:54" | "16:55" | "16:56" | "16:57" | "16:58" | "16:59" | "16:60" | "16:61" | "16:62" | "16:63" | "16:64" | "16:65" | "16:66" | "16:67" | "16:68" | "16:69" | "16:70" | "16:71" | "16:72" | "16:73" | "16:74" | "16:75" | "16:76" | "16:77" | "16:78" | "16:79" | "16:80" | "16:81" | "16:82" | "16:83" | "16:84" | "16:85" | "16:86" | "16:87" | "16:88" | "16:89" | "16:90" | "16:91" | "16:92" | "16:93" | "16:94" | "16:95" | "16:96" | "16:97" | "16:98" | "16:100" | undefined; seed?: number | undefined; negative_prompt?: string | undefined; num_images?: number | undefined; enable_prompt_expansion?: boolean | undefined; num_inference_steps?: number | undefined; lora_scale?: number | undefined; extra_lora_scales?: number[] | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; reference_urls?: string[] | undefined; image_size?: "1K" | "2K" | "4K" | undefined; use_google_search?: boolean | undefined; }>; /** * Centralized model types for image generation. */ declare const MODEL_TYPES: { readonly FLUX_DEV: "flux-dev"; readonly WAN_IMAGE_2_1: "wan-image-2.1"; readonly WAN_IMAGE_2_2: "wan-image-2.2"; readonly WAN_IMAGE_2_5: "wan-image-2.5"; readonly FLUX_KONTEXT_MULTI: "flux-kontext-multi"; readonly FLUX_KONTEXT_MAX: "flux-kontext-max"; readonly GOOGLE_IMAGEN4: "google-imagen4"; readonly OPENAI: "openai"; readonly NANOBANANA: "nanobanana"; readonly QWEN_IMAGE_EDIT: "qwen-image-edit"; readonly QWEN_IMAGE_LORA: "qwen-image-lora"; readonly REPLICATE_QWEN_IMAGE_LORA: "replicate-qwen-image-lora"; readonly GEMINI_2_5: "gemini-2.5"; }; type ModelType = (typeof MODEL_TYPES)[keyof typeof MODEL_TYPES]; declare const EnhancePromptRequestSchema: z.ZodObject<{ prompt: z.ZodString; }, "strip", z.ZodTypeAny, { prompt: string; }, { prompt: string; }>; type EnhancePromptRequest = z.infer; declare const EnhancePromptResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ enhancedPrompt: z.ZodString; }, "strip", z.ZodTypeAny, { enhancedPrompt: string; }, { enhancedPrompt: string; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { enhancedPrompt: string; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { enhancedPrompt: string; }; code?: string | undefined; details?: any; }>; type EnhancePromptResponse = z.infer; declare const PromptSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; promptType: z.ZodString; promptText: z.ZodString; creativity: z.ZodNullable; isDefault: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }>; declare const ModelSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; comfyDeployId: z.ZodOptional; modelType: z.ZodDefault; isPublic: z.ZodDefault; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; accessType: z.ZodOptional>; prompts: z.ZodOptional; isDefault: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }>, "many">>; replicateModelId: z.ZodOptional; /** * JSON string representing an array of LoRA configurations for Replicate models. * Each LoRA should have: { url: string, scale?: number } * Example: '[{"url":"https://example.com/lora1.safetensors","scale":1.0},{"url":"https://example.com/lora2.safetensors","scale":0.8}]' * If scale is not provided, defaults to 1.0 */ replicateLoras: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }, { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }>; type TModel = z.infer; type TPrompt = z.infer; type TModelWithPrompts = TModel & { prompts: TPrompt[]; }; declare const ModelsResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ models: z.ZodArray; comfyDeployId: z.ZodOptional; modelType: z.ZodDefault; isPublic: z.ZodDefault; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; accessType: z.ZodOptional>; prompts: z.ZodOptional; isDefault: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }>, "many">>; replicateModelId: z.ZodOptional; /** * JSON string representing an array of LoRA configurations for Replicate models. * Each LoRA should have: { url: string, scale?: number } * Example: '[{"url":"https://example.com/lora1.safetensors","scale":1.0},{"url":"https://example.com/lora2.safetensors","scale":0.8}]' * If scale is not provided, defaults to 1.0 */ replicateLoras: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }, { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }>, "many">; meta: z.ZodObject<{ total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; next: z.ZodOptional; previous: z.ZodOptional; }, "strip", z.ZodTypeAny, { total: number; limit: number; offset: number; next?: string | undefined; previous?: string | undefined; }, { total: number; limit: number; offset: number; next?: string | undefined; previous?: string | undefined; }>; }, "strip", z.ZodTypeAny, { models: { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }[]; meta: { total: number; limit: number; offset: number; next?: string | undefined; previous?: string | undefined; }; }, { models: { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }[]; meta: { total: number; limit: number; offset: number; next?: string | undefined; previous?: string | undefined; }; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { models: { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }[]; meta: { total: number; limit: number; offset: number; next?: string | undefined; previous?: string | undefined; }; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { models: { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }[]; meta: { total: number; limit: number; offset: number; next?: string | undefined; previous?: string | undefined; }; }; code?: string | undefined; details?: any; }>; type ModelsResponse = z.infer; declare const SingleModelResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ model: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; comfyDeployId: z.ZodOptional; modelType: z.ZodDefault; isPublic: z.ZodDefault; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; accessType: z.ZodOptional>; prompts: z.ZodOptional; isDefault: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }, { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }>, "many">>; replicateModelId: z.ZodOptional; /** * JSON string representing an array of LoRA configurations for Replicate models. * Each LoRA should have: { url: string, scale?: number } * Example: '[{"url":"https://example.com/lora1.safetensors","scale":1.0},{"url":"https://example.com/lora2.safetensors","scale":0.8}]' * If scale is not provided, defaults to 1.0 */ replicateLoras: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }, { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }>; }, "strip", z.ZodTypeAny, { model: { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }; }, { model: { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { model: { id: string; name: string; modelType: string; isPublic: boolean; description?: string | undefined; comfyDeployId?: string | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { model: { id: string; name: string; description?: string | undefined; comfyDeployId?: string | undefined; modelType?: string | undefined; isPublic?: boolean | undefined; createdAt?: string | Date | undefined; updatedAt?: string | Date | undefined; accessType?: "direct" | "company" | "public" | undefined; prompts?: { id: string; name: string; promptType: string; promptText: string; creativity: number | null; isDefault: boolean | null; }[] | undefined; replicateModelId?: string | undefined; replicateLoras?: string | undefined; }; }; code?: string | undefined; details?: any; }>; type SingleModelResponse = z.infer; declare const DescribePredictionRequestSchema: z.ZodObject<{ run_id: z.ZodString; model: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { model: "gemini-2.5" | "clip" | "llava13b"; run_id: string; }, { run_id: string; model?: "gemini-2.5" | "clip" | "llava13b" | undefined; }>; type DescribePredictionRequest = z.infer; declare const DescribePredictionResponseSchema: z.ZodObject<{ replicate_output: z.ZodOptional; description: z.ZodOptional; reversePrompt: z.ZodOptional; model: z.ZodOptional; run_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { description?: string | undefined; model?: string | undefined; run_id?: string | undefined; replicate_output?: any; reversePrompt?: string | undefined; }, { description?: string | undefined; model?: string | undefined; run_id?: string | undefined; replicate_output?: any; reversePrompt?: string | undefined; }>; type DescribePredictionResponse = z.infer; declare const SmartTagRequestSchema: z.ZodEffects; image_url: z.ZodOptional; include_description: z.ZodOptional>; max_tags: z.ZodOptional>; confidence_threshold: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id?: string | undefined; image_url?: string | undefined; include_description?: boolean | undefined; max_tags?: number | undefined; confidence_threshold?: number | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; include_description?: boolean | undefined; max_tags?: number | undefined; confidence_threshold?: number | undefined; }>, { run_id?: string | undefined; image_url?: string | undefined; include_description?: boolean | undefined; max_tags?: number | undefined; confidence_threshold?: number | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; include_description?: boolean | undefined; max_tags?: number | undefined; confidence_threshold?: number | undefined; }>, { run_id?: string | undefined; image_url?: string | undefined; include_description?: boolean | undefined; max_tags?: number | undefined; confidence_threshold?: number | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; include_description?: boolean | undefined; max_tags?: number | undefined; confidence_threshold?: number | undefined; }>; type SmartTagRequest = z.infer; declare const TagSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; display_name: z.ZodOptional; category: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }, { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }>; type Tag = z.infer; declare const SmartTagResponseSchema: z.ZodObject<{ success: z.ZodBoolean; internal_code: z.ZodOptional; message: z.ZodOptional; data: z.ZodObject<{ success: z.ZodBoolean; data: z.ZodObject<{ run_id: z.ZodOptional; description: z.ZodOptional; tags: z.ZodArray; category: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }, { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }>, "many">; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { tags: { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }[]; description?: string | undefined; run_id?: string | undefined; metadata?: { model: string; processing_time_ms: number; total_tags_generated: number; tags_above_threshold: number; } | undefined; }, { tags: { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }[]; description?: string | undefined; run_id?: string | undefined; metadata?: { model: string; processing_time_ms: number; total_tags_generated: number; tags_above_threshold: number; } | undefined; }>; }, "strip", z.ZodTypeAny, { success: boolean; data: { tags: { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }[]; description?: string | undefined; run_id?: string | undefined; metadata?: { model: string; processing_time_ms: number; total_tags_generated: number; tags_above_threshold: number; } | undefined; }; }, { success: boolean; data: { tags: { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }[]; description?: string | undefined; run_id?: string | undefined; metadata?: { model: string; processing_time_ms: number; total_tags_generated: number; tags_above_threshold: number; } | undefined; }; }>; }, "strip", z.ZodTypeAny, { success: boolean; data: { success: boolean; data: { tags: { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }[]; description?: string | undefined; run_id?: string | undefined; metadata?: { model: string; processing_time_ms: number; total_tags_generated: number; tags_above_threshold: number; } | undefined; }; }; message?: string | undefined; internal_code?: string | undefined; }, { success: boolean; data: { success: boolean; data: { tags: { id: string; name: string; display_name?: string | undefined; category?: string | undefined; confidence?: number | undefined; }[]; description?: string | undefined; run_id?: string | undefined; metadata?: { model: string; processing_time_ms: number; total_tags_generated: number; tags_above_threshold: number; } | undefined; }; }; message?: string | undefined; internal_code?: string | undefined; }>; type SmartTagResponse = z.infer; type GenerateImageInput = z.infer; declare const JobStatusEnumSchema: z.ZodEnum<["pending", "processing", "completed", "failed"]>; type JobStatusEnum = z.infer; declare const JobTypeEnumSchema: z.ZodEnum<["magic_resize"]>; type JobTypeEnum = z.infer; declare const JobSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["magic_resize"]>; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; input: z.ZodAny; output: z.ZodOptional; error: z.ZodOptional>; run_id: z.ZodOptional>; created_at: z.ZodString; updated_at: z.ZodString; started_at: z.ZodOptional>; completed_at: z.ZodOptional>; progress: z.ZodOptional>; attempts: z.ZodOptional; max_attempts: z.ZodOptional; priority: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }>; type Job = z.infer; declare const RunStatusSchema: z.ZodEnum<["pending", "queued", "processing", "completed", "failed", "canceled", "succeeded", "canceled", "error"]>; type RunStatus = z.infer; declare const GenerateImageOutputSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; created_at: z.ZodOptional; updated_at: z.ZodOptional; status: z.ZodOptional>; progress: z.ZodOptional>; image_url: z.ZodOptional>; live_status: z.ZodOptional>; run_type: z.ZodOptional>; parent_run_id: z.ZodOptional>; inputs: z.ZodOptional>; thought_signatures: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | null | undefined; live_status?: string | null | undefined; run_type?: string | null | undefined; parent_run_id?: string | null | undefined; inputs?: { prompt: string; } | undefined; thought_signatures?: string[] | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | null | undefined; live_status?: string | null | undefined; run_type?: string | null | undefined; parent_run_id?: string | null | undefined; inputs?: { prompt: string; } | undefined; thought_signatures?: string[] | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | null | undefined; live_status?: string | null | undefined; run_type?: string | null | undefined; parent_run_id?: string | null | undefined; inputs?: { prompt: string; } | undefined; thought_signatures?: string[] | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | null | undefined; live_status?: string | null | undefined; run_type?: string | null | undefined; parent_run_id?: string | null | undefined; inputs?: { prompt: string; } | undefined; thought_signatures?: string[] | undefined; }; code?: string | undefined; details?: any; }>; type GenerateImageOutput = z.infer; declare const UpscaleImageInputSchema: z.ZodObject<{ original_run_id: z.ZodOptional; upscale_factor: z.ZodDefault>; creativity: z.ZodOptional; prompt: z.ZodOptional; edited_image_url: z.ZodOptional; model_id: z.ZodOptional; model_weight: z.ZodOptional; use_original_prompt: z.ZodDefault>; webhook_url: z.ZodOptional; webhook_events: z.ZodOptional, "many">>; seedvr2: z.ZodOptional; }, "strip", z.ZodTypeAny, { upscale_factor: number; use_original_prompt: boolean; prompt?: string | undefined; model_weight?: number | undefined; model_id?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; creativity?: number | undefined; original_run_id?: string | undefined; edited_image_url?: string | undefined; seedvr2?: boolean | undefined; }, { prompt?: string | undefined; model_weight?: number | undefined; model_id?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; creativity?: number | undefined; original_run_id?: string | undefined; upscale_factor?: number | undefined; edited_image_url?: string | undefined; use_original_prompt?: boolean | undefined; seedvr2?: boolean | undefined; }>; type UpscaleImageInput = z.infer; declare const Seedvr2UpscaleJsonRequestSchema: z.ZodEffects; run_id: z.ZodOptional; upscale_factor: z.ZodOptional; seed: z.ZodOptional; }, "strip", z.ZodTypeAny, { seed?: number | undefined; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: number | undefined; }, { seed?: number | undefined; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: number | undefined; }>, { seed?: number | undefined; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: number | undefined; }, { seed?: number | undefined; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: number | undefined; }>; type Seedvr2UpscaleJsonRequest = z.infer; declare const Seedvr2UpscaleFormRequestSchema: z.ZodObject<{ image_base64: z.ZodString; upscale_factor: z.ZodOptional; seed: z.ZodOptional; }, "strip", z.ZodTypeAny, { image_base64: string; seed?: number | undefined; upscale_factor?: number | undefined; }, { image_base64: string; seed?: number | undefined; upscale_factor?: number | undefined; }>; type Seedvr2UpscaleFormRequest = z.infer; declare const Seedvr2UpscaleResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; run_id: string; upscale_factor: number; max_factor?: number | undefined; }, { status: string; run_id: string; upscale_factor: number; max_factor?: number | undefined; }>>; error: z.ZodOptional; height: z.ZodOptional; requested_factor: z.ZodOptional; max_factor: z.ZodOptional; }, "strip", z.ZodTypeAny, { width?: number | undefined; height?: number | undefined; max_factor?: number | undefined; requested_factor?: number | undefined; }, { width?: number | undefined; height?: number | undefined; max_factor?: number | undefined; requested_factor?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { message: string; internalCode: number; details?: { width?: number | undefined; height?: number | undefined; max_factor?: number | undefined; requested_factor?: number | undefined; } | undefined; }, { message: string; internalCode: number; details?: { width?: number | undefined; height?: number | undefined; max_factor?: number | undefined; requested_factor?: number | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data?: { status: string; run_id: string; upscale_factor: number; max_factor?: number | undefined; } | undefined; error?: { message: string; internalCode: number; details?: { width?: number | undefined; height?: number | undefined; max_factor?: number | undefined; requested_factor?: number | undefined; } | undefined; } | undefined; }, { message: string; success: boolean; data?: { status: string; run_id: string; upscale_factor: number; max_factor?: number | undefined; } | undefined; error?: { message: string; internalCode: number; details?: { width?: number | undefined; height?: number | undefined; max_factor?: number | undefined; requested_factor?: number | undefined; } | undefined; } | undefined; }>; type Seedvr2UpscaleResponse = z.infer; declare const InpaintImageInputSchema: z.ZodEffects; image_url: z.ZodOptional; composite_image_id: z.ZodOptional; mask_image_url: z.ZodString; prompt: z.ZodOptional; creativity: z.ZodOptional; model_id: z.ZodOptional; model_weight: z.ZodOptional; webhook_url: z.ZodOptional; override_original_prompt: z.ZodOptional; webhook_events: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { mask_image_url: string; prompt?: string | undefined; model_weight?: number | undefined; model_id?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded")[] | undefined; creativity?: number | undefined; image_url?: string | undefined; original_run_id?: string | undefined; composite_image_id?: string | undefined; override_original_prompt?: boolean | undefined; }, { mask_image_url: string; prompt?: string | undefined; model_weight?: number | undefined; model_id?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded")[] | undefined; creativity?: number | undefined; image_url?: string | undefined; original_run_id?: string | undefined; composite_image_id?: string | undefined; override_original_prompt?: boolean | undefined; }>, { mask_image_url: string; prompt?: string | undefined; model_weight?: number | undefined; model_id?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded")[] | undefined; creativity?: number | undefined; image_url?: string | undefined; original_run_id?: string | undefined; composite_image_id?: string | undefined; override_original_prompt?: boolean | undefined; }, { mask_image_url: string; prompt?: string | undefined; model_weight?: number | undefined; model_id?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded")[] | undefined; creativity?: number | undefined; image_url?: string | undefined; original_run_id?: string | undefined; composite_image_id?: string | undefined; override_original_prompt?: boolean | undefined; }>; type InpaintImageInput = z.infer; declare const ApiErrorSchema: z.ZodObject<{ message: z.ZodString; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; code?: string | undefined; details?: any; }, { message: string; code?: string | undefined; details?: any; }>; type ApiError = z.infer; declare const CombineImageInputSchema: z.ZodEffects>; reference_urls: z.ZodOptional>; run_ids: z.ZodOptional>; input_image_1: z.ZodOptional; input_image_2: z.ZodOptional; run_id_1: z.ZodOptional; run_id_2: z.ZodOptional; model: z.ZodDefault>>; /** * Aspect ratio for the generated image. * - Required for flux-kontext-multi * - Optional for Gemini 2.5 (defaults to matching input images) * - Gemini 2.5 supported ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 */ aspect_ratio: z.ZodOptional>; seed: z.ZodOptional; parent_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; model: "flux-kontext-multi" | "nanobanana" | "gemini-2.5" | "gpt-image-1"; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | undefined; seed?: number | undefined; reference_urls?: string[] | undefined; files?: any[] | undefined; run_ids?: string[] | undefined; input_image_1?: string | undefined; input_image_2?: string | undefined; run_id_1?: string | undefined; run_id_2?: string | undefined; parent_id?: string | undefined; }, { prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | undefined; seed?: number | undefined; reference_urls?: string[] | undefined; model?: "flux-kontext-multi" | "nanobanana" | "gemini-2.5" | "gpt-image-1" | undefined; files?: any[] | undefined; run_ids?: string[] | undefined; input_image_1?: string | undefined; input_image_2?: string | undefined; run_id_1?: string | undefined; run_id_2?: string | undefined; parent_id?: string | undefined; }>, { prompt: string; model: "flux-kontext-multi" | "nanobanana" | "gemini-2.5" | "gpt-image-1"; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | undefined; seed?: number | undefined; reference_urls?: string[] | undefined; files?: any[] | undefined; run_ids?: string[] | undefined; input_image_1?: string | undefined; input_image_2?: string | undefined; run_id_1?: string | undefined; run_id_2?: string | undefined; parent_id?: string | undefined; }, { prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | undefined; seed?: number | undefined; reference_urls?: string[] | undefined; model?: "flux-kontext-multi" | "nanobanana" | "gemini-2.5" | "gpt-image-1" | undefined; files?: any[] | undefined; run_ids?: string[] | undefined; input_image_1?: string | undefined; input_image_2?: string | undefined; run_id_1?: string | undefined; run_id_2?: string | undefined; parent_id?: string | undefined; }>, { prompt: string; model: "flux-kontext-multi" | "nanobanana" | "gemini-2.5" | "gpt-image-1"; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | undefined; seed?: number | undefined; reference_urls?: string[] | undefined; files?: any[] | undefined; run_ids?: string[] | undefined; input_image_1?: string | undefined; input_image_2?: string | undefined; run_id_1?: string | undefined; run_id_2?: string | undefined; parent_id?: string | undefined; }, { prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | undefined; seed?: number | undefined; reference_urls?: string[] | undefined; model?: "flux-kontext-multi" | "nanobanana" | "gemini-2.5" | "gpt-image-1" | undefined; files?: any[] | undefined; run_ids?: string[] | undefined; input_image_1?: string | undefined; input_image_2?: string | undefined; run_id_1?: string | undefined; run_id_2?: string | undefined; parent_id?: string | undefined; }>; type CombineImageInput = z.infer; /** * Supported file types for upload in browser and Node.js */ /** * Enum for supported upload file kinds */ declare enum UploadFileKind { BrowserFile = "BrowserFile", BrowserBlob = "BrowserBlob", NodeBuffer = "NodeBuffer", NodeReadable = "NodeReadable", NodeFile = "NodeFile", NodeBlob = "NodeBlob" } type UploadFileType = File | Blob | Buffer | Readable | any; interface UploadImageRequest { file: UploadFileType; description?: string; parent_id?: string; } declare function isNodeBuffer(f: unknown): f is Buffer; declare function isNodeReadable(f: unknown): f is Readable; declare function isBrowserFile(f: unknown): f is File; declare function isBrowserBlob(f: unknown): f is Blob; type UploadImageResponse = { success: boolean; message: string; data: { id: string; image_url: string; run_id: string; created_at: string; parent_id?: string; }; }; type ImagineoAIClientAuthOptions = { apiKey: string; } | { getToken: () => Promise; }; type ImagineoAIClientOptions = { debug: boolean; }; interface Prompt { id: string; name: string; promptType: string; promptText: string; creativity?: number; userId?: string; companyId?: string; accessType?: "public" | "company" | "private"; isDefault?: boolean; createdAt?: string; updatedAt?: string; } interface ListPromptsResponse { prompts: Prompt[]; } interface GetPromptResponse { prompt: Prompt; } interface UpdatePromptRequest { name?: string; promptType?: string; promptText?: string; creativity?: number; isDefault?: boolean; } interface UpdatePromptResponse { prompt: Prompt; } interface DeletePromptResponse { success: boolean; } declare const runFlatSchema: z.ZodObject<{ run_id: z.ZodString; user_id: z.ZodString; created_at: z.ZodString; image_url: z.ZodNullable; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>; declare const LayerSchema: z.ZodObject<{ layer_id: z.ZodString; run_id: z.ZodString; user_id: z.ZodString; image_url: z.ZodString; mask_url: z.ZodNullable; name: z.ZodNullable; description: z.ZodNullable; opacity: z.ZodNumber; visible: z.ZodBoolean; z_index: z.ZodNumber; blend_mode: z.ZodString; locked: z.ZodBoolean; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }>; declare const runChildrenArraySchema: z.ZodArray; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>, "many">; declare const runParentsArraySchema: z.ZodArray; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>, "many">; declare const runWithRelationsFlatSchema: z.ZodObject; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, { children: z.ZodArray; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>, "many">; parents: z.ZodArray; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>, "many">; jobs: z.ZodOptional; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; input: z.ZodAny; output: z.ZodOptional; error: z.ZodOptional>; run_id: z.ZodOptional>; created_at: z.ZodString; updated_at: z.ZodString; started_at: z.ZodOptional>; completed_at: z.ZodOptional>; progress: z.ZodOptional>; attempts: z.ZodOptional; max_attempts: z.ZodOptional; priority: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }>, "many">>; layers: z.ZodOptional; name: z.ZodNullable; description: z.ZodNullable; opacity: z.ZodNumber; visible: z.ZodBoolean; z_index: z.ZodNumber; blend_mode: z.ZodString; locked: z.ZodBoolean; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }>, "many">>; tags: z.ZodOptional>; source: z.ZodOptional>; created_at: z.ZodOptional>; tag: z.ZodOptional>; category: z.ZodOptional>; usage_count: z.ZodOptional>; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; }, { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }, { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }>, "many">>; }>, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; children: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; parents: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; tags?: { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }[] | undefined; inputs?: any; jobs?: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[] | undefined; layers?: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[] | undefined; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; children: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; parents: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; tags?: { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }[] | undefined; inputs?: any; jobs?: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[] | undefined; layers?: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[] | undefined; }>; type RunWithRelationsFlat = z.infer; type RunChildrenArray = z.infer; type RunParentsArray = z.infer; type RunChild = z.infer; type RunParent = z.infer; declare const RunJobsListResponseSchema: z.ZodObject<{ jobs: z.ZodArray; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; input: z.ZodAny; output: z.ZodOptional; error: z.ZodOptional>; run_id: z.ZodOptional>; created_at: z.ZodString; updated_at: z.ZodString; started_at: z.ZodOptional>; completed_at: z.ZodOptional>; progress: z.ZodOptional>; attempts: z.ZodOptional; max_attempts: z.ZodOptional; priority: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { jobs: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[]; }, { jobs: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[]; }>; type RunJobsListResponse = z.infer; /** * @property {string} [parent_run_id] - ID of the parent run if applicable. */ declare const ImageOperationSchema: z.ZodObject<{ type: z.ZodString; params: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: string; params?: Record | undefined; }, { type: string; params?: Record | undefined; }>; type ImageOperation = z.infer; declare const ImageEditRequestSchema: z.ZodObject<{ run_id: z.ZodOptional; prompt: z.ZodOptional; image_url: z.ZodOptional; mask_url: z.ZodOptional; bw_mask_url: z.ZodOptional; operations: z.ZodArray>; }, "strip", z.ZodTypeAny, { type: string; params?: Record | undefined; }, { type: string; params?: Record | undefined; }>, "many">; webhook_url: z.ZodOptional; webhook_events: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { operations: { type: string; params?: Record | undefined; }[]; prompt?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; run_id?: string | undefined; image_url?: string | undefined; mask_url?: string | undefined; bw_mask_url?: string | undefined; }, { operations: { type: string; params?: Record | undefined; }[]; prompt?: string | undefined; webhook_url?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; run_id?: string | undefined; image_url?: string | undefined; mask_url?: string | undefined; bw_mask_url?: string | undefined; }>; type ImageEditRequest = z.infer; interface ImageEditFormDataRequest { run_id?: string; prompt?: string; image: File | Buffer; mask?: File | Buffer; bw_mask?: File | Buffer; operations: string; webhook_url?: string; webhook_events?: Array<"started" | "processing" | "completed" | "failed" | "canceled">; } declare const ImageEditResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; image_url: z.ZodNullable>; status: z.ZodOptional; }, "strip", z.ZodTypeAny, { run_id: string; status?: string | undefined; image_url?: string | null | undefined; }, { run_id: string; status?: string | undefined; image_url?: string | null | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { run_id: string; status?: string | undefined; image_url?: string | null | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { run_id: string; status?: string | undefined; image_url?: string | null | undefined; }; code?: string | undefined; details?: any; }>; type ImageEditResponse = z.infer; declare const FluxKontextEditRequestSchema: z.ZodObject<{ original_run_id: z.ZodString; prompt: z.ZodString; aspect_ratio: z.ZodDefault>>; seed: z.ZodOptional; model: z.ZodDefault>; sync: z.ZodDefault>; }, "strip", z.ZodTypeAny, { prompt: string; aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | "match_input_image"; model: "flux-kontext-max"; original_run_id: string; sync: boolean; seed?: number | undefined; }, { prompt: string; original_run_id: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | "match_input_image" | undefined; seed?: number | undefined; model?: "flux-kontext-max" | undefined; sync?: boolean | undefined; }>; type FluxKontextEditRequest = z.infer; interface FluxKontextEditFormDataRequest { original_run_id: string; prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "2:1" | "1:2" | "match_input_image"; seed?: number; model?: "flux-kontext-max"; sync?: boolean; } declare const FluxKontextEditResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; user_id: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; image_url: z.ZodNullable; inputs: z.ZodAny; live_status: z.ZodNullable; status: z.ZodString; progress: z.ZodNumber; run_type: z.ZodString; parent_run_id: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: string; run_id: string; image_url: string | null; created_at: string; updated_at: string; progress: number; live_status: string | null; run_type: string; user_id: string; parent_run_id?: string | null | undefined; inputs?: any; }, { status: string; run_id: string; image_url: string | null; created_at: string; updated_at: string; progress: number; live_status: string | null; run_type: string; user_id: string; parent_run_id?: string | null | undefined; inputs?: any; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { status: string; run_id: string; image_url: string | null; created_at: string; updated_at: string; progress: number; live_status: string | null; run_type: string; user_id: string; parent_run_id?: string | null | undefined; inputs?: any; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { status: string; run_id: string; image_url: string | null; created_at: string; updated_at: string; progress: number; live_status: string | null; run_type: string; user_id: string; parent_run_id?: string | null | undefined; inputs?: any; }; code?: string | undefined; details?: any; }>; type FluxKontextEditResponse = z.infer; declare const GetRelatedRunRequestSchema: z.ZodObject<{ runId: z.ZodString; }, "strip", z.ZodTypeAny, { runId: string; }, { runId: string; }>; type GetRelatedRunRequest = z.infer; declare const RunRelatedResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, { children: z.ZodArray; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>, "many">; parents: z.ZodArray; inputs: z.ZodNullable; live_status: z.ZodNullable; progress: z.ZodNullable; parent_run_id: z.ZodNullable; upscale_factor: z.ZodNullable; run_type: z.ZodNullable; run_type_id: z.ZodNullable; }, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }>, "many">; jobs: z.ZodOptional; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; input: z.ZodAny; output: z.ZodOptional; error: z.ZodOptional>; run_id: z.ZodOptional>; created_at: z.ZodString; updated_at: z.ZodString; started_at: z.ZodOptional>; completed_at: z.ZodOptional>; progress: z.ZodOptional>; attempts: z.ZodOptional; max_attempts: z.ZodOptional; priority: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }, { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }>, "many">>; layers: z.ZodOptional; name: z.ZodNullable; description: z.ZodNullable; opacity: z.ZodNumber; visible: z.ZodBoolean; z_index: z.ZodNumber; blend_mode: z.ZodString; locked: z.ZodBoolean; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }>, "many">>; tags: z.ZodOptional>; source: z.ZodOptional>; created_at: z.ZodOptional>; tag: z.ZodOptional>; category: z.ZodOptional>; usage_count: z.ZodOptional>; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; }, { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }, { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }>, "many">>; }>, "strip", z.ZodTypeAny, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; children: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; parents: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; tags?: { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }[] | undefined; inputs?: any; jobs?: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[] | undefined; layers?: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[] | undefined; }, { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; children: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; parents: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; tags?: { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }[] | undefined; inputs?: any; jobs?: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[] | undefined; layers?: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[] | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; children: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; parents: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; tags?: { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }[] | undefined; inputs?: any; jobs?: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[] | undefined; layers?: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[] | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; children: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; parents: { run_id: string; image_url: string | null; created_at: string; progress: number | null; live_status: string | null; run_type: string | null; parent_run_id: string | null; upscale_factor: number | null; user_id: string; run_type_id: string | null; inputs?: any; }[]; tags?: { run_id: string; tag_id: string; confidence?: number | null | undefined; created_at?: string | null | undefined; source?: string | null | undefined; tag?: { id: string; name: string; display_name?: string | null | undefined; category?: string | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; usage_count?: number | null | undefined; } | null | undefined; }[] | undefined; inputs?: any; jobs?: { type: "magic_resize"; status: "processing" | "completed" | "failed" | "pending"; id: string; created_at: string; updated_at: string; run_id?: string | null | undefined; input?: any; output?: any; error?: string | null | undefined; started_at?: string | null | undefined; completed_at?: string | null | undefined; progress?: number | null | undefined; attempts?: number | undefined; max_attempts?: number | undefined; priority?: number | undefined; }[] | undefined; layers?: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[] | undefined; }; code?: string | undefined; details?: any; }>; type RunRelatedResponse = z.infer; /** * @property {string} [parent_run_id] - ID of the parent run if applicable. */ declare const GetLayersRequestSchema: z.ZodObject<{ run_id: z.ZodString; }, "strip", z.ZodTypeAny, { run_id: string; }, { run_id: string; }>; type GetLayersRequest = z.infer; type Layer = z.infer; declare const GetLayersResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ layers: z.ZodArray; name: z.ZodNullable; description: z.ZodNullable; opacity: z.ZodNumber; visible: z.ZodBoolean; z_index: z.ZodNumber; blend_mode: z.ZodString; locked: z.ZodBoolean; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }, { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }>, "many">; }, "strip", z.ZodTypeAny, { layers: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[]; }, { layers: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[]; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { layers: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[]; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { layers: { name: string | null; description: string | null; run_id: string; image_url: string; created_at: string; updated_at: string; user_id: string; layer_id: string; mask_url: string | null; opacity: number; visible: boolean; z_index: number; blend_mode: string; locked: boolean; }[]; }; code?: string | undefined; details?: any; }>; type GetLayersResponse = z.infer; declare const RemoveBackgroundJsonPayloadSchema: z.ZodUnion<[z.ZodObject<{ imageUrl: z.ZodString; run_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { imageUrl: string; run_id?: undefined; }, { imageUrl: string; run_id?: undefined; }>, z.ZodObject<{ run_id: z.ZodString; imageUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { run_id: string; imageUrl?: undefined; }, { run_id: string; imageUrl?: undefined; }>]>; type RemoveBackgroundJsonPayload = z.infer; declare const SegmentImageJsonPayloadSchema: z.ZodUnion<[z.ZodObject<{ imageUrl: z.ZodString; run_id: z.ZodOptional; prompt: z.ZodString; }, "strip", z.ZodTypeAny, { prompt: string; imageUrl: string; run_id?: undefined; }, { prompt: string; imageUrl: string; run_id?: undefined; }>, z.ZodObject<{ run_id: z.ZodString; imageUrl: z.ZodOptional; prompt: z.ZodString; }, "strip", z.ZodTypeAny, { prompt: string; run_id: string; imageUrl?: undefined; }, { prompt: string; run_id: string; imageUrl?: undefined; }>]>; type SegmentImageJsonPayload = z.infer; declare const GenerateVideoPayloadSchema: z.ZodEffects; image_url: z.ZodOptional; source_run_id: z.ZodOptional; aspect_ratio: z.ZodEnum<["1:1", "16:9", "9:16"]>; duration: z.ZodNumber; webhook_url: z.ZodOptional; webhook_events: z.ZodOptional, "many">>; model: z.ZodOptional>; end_image_url: z.ZodOptional; generate_audio: z.ZodOptional; negative_prompt: z.ZodOptional; cfg_scale: z.ZodOptional; multi_prompt: z.ZodOptional, "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15", unknown>; }, "strip", z.ZodTypeAny, { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }, { prompt: string; duration?: unknown; }>, "many">>; shot_type: z.ZodOptional>; elements: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; webhook_url?: string | undefined; negative_prompt?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; }, { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; webhook_url?: string | undefined; negative_prompt?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration?: unknown; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; }>, { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; webhook_url?: string | undefined; negative_prompt?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; }, { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; webhook_url?: string | undefined; negative_prompt?: string | undefined; webhook_events?: ("started" | "processing" | "completed" | "failed" | "canceled")[] | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration?: unknown; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; }>; type GenerateVideoPayload = z.infer; declare const GenerateVideoResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; status: z.ZodOptional>; live_status: z.ZodOptional; progress: z.ZodOptional; image_url: z.ZodNullable>; video_url: z.ZodNullable>; inputs: z.ZodOptional; image_url: z.ZodOptional; source_run_id: z.ZodOptional; aspect_ratio: z.ZodEnum<["1:1", "16:9", "9:16"]>; duration: z.ZodNumber; webhook_url: z.ZodOptional; webhook_events: z.ZodOptional, "many">>; model: z.ZodOptional>; end_image_url: z.ZodOptional; generate_audio: z.ZodOptional; negative_prompt: z.ZodOptional; cfg_scale: z.ZodOptional; multi_prompt: z.ZodOptional, "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15", unknown>; }, "strip", z.ZodTypeAny, { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }, { prompt: string; duration?: unknown; }>, "many">>; shot_type: z.ZodOptional>; elements: z.ZodOptional, "many">>; }, "webhook_url" | "webhook_events">, "strip", z.ZodTypeAny, { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; negative_prompt?: string | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; }, { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; negative_prompt?: string | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration?: unknown; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; }>>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; progress?: number | undefined; live_status?: string | undefined; inputs?: { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; negative_prompt?: string | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; } | undefined; video_url?: string | null | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; progress?: number | undefined; live_status?: string | undefined; inputs?: { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; negative_prompt?: string | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration?: unknown; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; } | undefined; video_url?: string | null | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; progress?: number | undefined; live_status?: string | undefined; inputs?: { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; negative_prompt?: string | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration: "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15"; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; } | undefined; video_url?: string | null | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; progress?: number | undefined; live_status?: string | undefined; inputs?: { aspect_ratio: "1:1" | "16:9" | "9:16"; duration: number; prompt?: string | undefined; negative_prompt?: string | undefined; model?: "seedance" | "kling3-standard" | "kling3-pro" | undefined; image_url?: string | undefined; source_run_id?: string | undefined; end_image_url?: string | undefined; generate_audio?: boolean | undefined; cfg_scale?: number | undefined; multi_prompt?: { prompt: string; duration?: unknown; }[] | undefined; shot_type?: "customize" | undefined; elements?: { name: string; image_url: string; }[] | undefined; } | undefined; video_url?: string | null | undefined; }; code?: string | undefined; details?: any; }>; type GenerateVideoResponse = z.infer; interface VideoCostInfo { run_type_id: string; cost_in_credits: number; unit_type: string; } interface VideoCostsResponse { costs: VideoCostInfo[]; } declare const InspireMeCategoryEnum: z.ZodEnum<["Cinematic", "Dreamlike", "Fantasy", "Sci-Fi", "Emotional", "Action", "Gaming", "Nature", "Abstract", "Narrative", "Loop", "Metaphorical", "Ad", "Game", "TikTok", "Instagram Reel", "Facebook", "Twitter"]>; declare const InspireMeRequestSchema: z.ZodEffects; image_url: z.ZodOptional; prompt_category: z.ZodOptional>; user_prompt: z.ZodOptional; duration: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id?: string | undefined; image_url?: string | undefined; duration?: string | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; duration?: string | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; }>, { run_id?: string | undefined; image_url?: string | undefined; duration?: string | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; duration?: string | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; }>; type InspireMeRequest = z.infer; declare const InspireMeResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ inspired_prompt: z.ZodString; original_image_url: z.ZodString; }, "strip", z.ZodTypeAny, { inspired_prompt: string; original_image_url: string; }, { inspired_prompt: string; original_image_url: string; }>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { inspired_prompt: string; original_image_url: string; }; }, { message: string; success: boolean; data: { inspired_prompt: string; original_image_url: string; }; }>; type InspireMeResponse = z.infer; declare const VideoPromptCategoriesResponseSchema: z.ZodArray, "many">; type VideoPromptCategoriesResponse = z.infer; declare const InspireStoryModeEnum: z.ZodEnum<["all_at_once", "next_shot"]>; declare const InspireStoryElementSchema: z.ZodObject<{ name: z.ZodString; image_url: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; image_url: string; }, { name: string; image_url: string; }>; declare const InspireStoryShotSchema: z.ZodObject<{ prompt: z.ZodString; duration: z.ZodNumber; }, "strip", z.ZodTypeAny, { prompt: string; duration: number; }, { prompt: string; duration: number; }>; declare const InspireStoryRequestSchema: z.ZodEffects; image_url: z.ZodOptional; end_image_url: z.ZodOptional; prompt_category: z.ZodOptional>; user_prompt: z.ZodOptional; num_shots: z.ZodNumber; total_duration: z.ZodNumber; elements: z.ZodOptional, "many">>; mode: z.ZodDefault>; previous_shots: z.ZodOptional, "many">>; }, "strip", z.ZodTypeAny, { num_shots: number; total_duration: number; mode: "all_at_once" | "next_shot"; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }, { num_shots: number; total_duration: number; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; mode?: "all_at_once" | "next_shot" | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }>, { num_shots: number; total_duration: number; mode: "all_at_once" | "next_shot"; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }, { num_shots: number; total_duration: number; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; mode?: "all_at_once" | "next_shot" | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }>, { num_shots: number; total_duration: number; mode: "all_at_once" | "next_shot"; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }, { num_shots: number; total_duration: number; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; mode?: "all_at_once" | "next_shot" | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }>, { num_shots: number; total_duration: number; mode: "all_at_once" | "next_shot"; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }, { num_shots: number; total_duration: number; run_id?: string | undefined; image_url?: string | undefined; end_image_url?: string | undefined; elements?: { name: string; image_url: string; }[] | undefined; prompt_category?: "Cinematic" | "Dreamlike" | "Fantasy" | "Sci-Fi" | "Emotional" | "Action" | "Gaming" | "Nature" | "Abstract" | "Narrative" | "Loop" | "Metaphorical" | "Ad" | "Game" | "TikTok" | "Instagram Reel" | "Facebook" | "Twitter" | undefined; user_prompt?: string | undefined; mode?: "all_at_once" | "next_shot" | undefined; previous_shots?: { prompt: string; duration: number; }[] | undefined; }>; type InspireStoryRequest = z.infer; declare const InspireStoryResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ shots: z.ZodArray, "many">; story_summary: z.ZodString; element_suggestions: z.ZodOptional>; original_image_url: z.ZodString; }, "strip", z.ZodTypeAny, { original_image_url: string; shots: { prompt: string; duration: number; }[]; story_summary: string; element_suggestions?: string[] | undefined; }, { original_image_url: string; shots: { prompt: string; duration: number; }[]; story_summary: string; element_suggestions?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { original_image_url: string; shots: { prompt: string; duration: number; }[]; story_summary: string; element_suggestions?: string[] | undefined; }; }, { message: string; success: boolean; data: { original_image_url: string; shots: { prompt: string; duration: number; }[]; story_summary: string; element_suggestions?: string[] | undefined; }; }>; type InspireStoryResponse = z.infer; declare const GetUserRunsQuerySchema: z.ZodObject<{ page: z.ZodOptional; limit: z.ZodOptional; status: z.ZodOptional>; run_type: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; limit?: number | undefined; run_type?: string | undefined; page?: number | undefined; }, { status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; limit?: number | undefined; run_type?: string | undefined; page?: number | undefined; }>; type GetUserRunsQuery = z.infer; declare const UserRunItemSchema: z.ZodObject<{ run_id: z.ZodString; status: z.ZodOptional>; live_status: z.ZodOptional; progress: z.ZodNullable>; image_url: z.ZodNullable>; video_url: z.ZodNullable>; inputs: z.ZodNullable>; run_type: z.ZodNullable>; created_at: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }>; type UserRunItem = z.infer; declare const GetUserRunsResponseDataSchema: z.ZodObject<{ runs: z.ZodArray>; live_status: z.ZodOptional; progress: z.ZodNullable>; image_url: z.ZodNullable>; video_url: z.ZodNullable>; inputs: z.ZodNullable>; run_type: z.ZodNullable>; created_at: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }>, "many">; totalItems: z.ZodNumber; totalPages: z.ZodNumber; currentPage: z.ZodNumber; }, "strip", z.ZodTypeAny, { runs: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }, { runs: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }>; declare const GetUserRunsResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodOptional; data: z.ZodObject<{ runs: z.ZodArray>; live_status: z.ZodOptional; progress: z.ZodNullable>; image_url: z.ZodNullable>; video_url: z.ZodNullable>; inputs: z.ZodNullable>; run_type: z.ZodNullable>; created_at: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }>, "many">; totalItems: z.ZodNumber; totalPages: z.ZodNumber; currentPage: z.ZodNumber; }, "strip", z.ZodTypeAny, { runs: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }, { runs: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; data: { runs: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }; code?: string | undefined; message?: string | undefined; details?: any; }, { success: boolean; data: { runs: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | Date | undefined; progress?: number | null | undefined; live_status?: string | undefined; run_type?: string | null | undefined; inputs?: any; video_url?: string | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }; code?: string | undefined; message?: string | undefined; details?: any; }>; type GetUserRunsResponse = z.infer; declare const GetUserJobsQuerySchema: z.ZodObject<{ page: z.ZodOptional; limit: z.ZodOptional; }, "strip", z.ZodTypeAny, { limit?: number | undefined; page?: number | undefined; }, { limit?: number | undefined; page?: number | undefined; }>; type GetUserJobsQuery = z.infer; declare const UserJobItemSchema: z.ZodObject<{ id: z.ZodString; run_id: z.ZodNullable; type: z.ZodString; status: z.ZodString; input: z.ZodNullable; output: z.ZodNullable; error: z.ZodNullable; created_at: z.ZodUnion<[z.ZodString, z.ZodDate]>; updated_at: z.ZodUnion<[z.ZodString, z.ZodDate]>; started_at: z.ZodOptional>>; completed_at: z.ZodOptional>>; progress: z.ZodOptional>; attempts: z.ZodNumber; max_attempts: z.ZodNumber; priority: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }, { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }>; type UserJobItem = z.infer; declare const GetUserJobsResponseDataSchema: z.ZodObject<{ jobs: z.ZodArray; type: z.ZodString; status: z.ZodString; input: z.ZodNullable; output: z.ZodNullable; error: z.ZodNullable; created_at: z.ZodUnion<[z.ZodString, z.ZodDate]>; updated_at: z.ZodUnion<[z.ZodString, z.ZodDate]>; started_at: z.ZodOptional>>; completed_at: z.ZodOptional>>; progress: z.ZodOptional>; attempts: z.ZodNumber; max_attempts: z.ZodNumber; priority: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }, { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }>, "many">; totalItems: z.ZodNumber; totalPages: z.ZodNumber; currentPage: z.ZodNumber; }, "strip", z.ZodTypeAny, { jobs: { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }, { jobs: { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }>; declare const GetUserJobsResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodOptional; data: z.ZodObject<{ jobs: z.ZodArray; type: z.ZodString; status: z.ZodString; input: z.ZodNullable; output: z.ZodNullable; error: z.ZodNullable; created_at: z.ZodUnion<[z.ZodString, z.ZodDate]>; updated_at: z.ZodUnion<[z.ZodString, z.ZodDate]>; started_at: z.ZodOptional>>; completed_at: z.ZodOptional>>; progress: z.ZodOptional>; attempts: z.ZodNumber; max_attempts: z.ZodNumber; priority: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }, { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }>, "many">; totalItems: z.ZodNumber; totalPages: z.ZodNumber; currentPage: z.ZodNumber; }, "strip", z.ZodTypeAny, { jobs: { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }, { jobs: { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; data: { jobs: { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }; code?: string | undefined; message?: string | undefined; details?: any; }, { success: boolean; data: { jobs: { type: string; status: string; id: string; run_id: string | null; created_at: string | Date; updated_at: string | Date; attempts: number; max_attempts: number; priority: number; input?: any; output?: any; error?: any; started_at?: string | Date | null | undefined; completed_at?: string | Date | null | undefined; progress?: number | null | undefined; }[]; totalItems: number; totalPages: number; currentPage: number; }; code?: string | undefined; message?: string | undefined; details?: any; }>; type GetUserJobsResponse = z.infer; declare const CharacterGenerationRequestSchema: z.ZodObject<{ prompt: z.ZodString; character_reference_image: z.ZodOptional; character_reference_file: z.ZodOptional; character_reference_run_id: z.ZodOptional; rendering_speed: z.ZodDefault>>; style_type: z.ZodDefault>>; magic_prompt_option: z.ZodDefault>>; aspect_ratio: z.ZodDefault>>; resolution: z.ZodDefault>>; seed: z.ZodOptional; image: z.ZodOptional; mask: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3"; rendering_speed: "Default" | "Turbo" | "Quality"; style_type: "Auto" | "Fiction" | "Realistic"; magic_prompt_option: "Auto" | "On" | "Off"; resolution: "auto" | "720" | "1024" | "1280" | "2048"; seed?: number | undefined; character_reference_image?: string | undefined; character_reference_file?: any; character_reference_run_id?: string | undefined; image?: string | undefined; mask?: string | undefined; }, { prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | undefined; seed?: number | undefined; character_reference_image?: string | undefined; character_reference_file?: any; character_reference_run_id?: string | undefined; rendering_speed?: "Default" | "Turbo" | "Quality" | undefined; style_type?: "Auto" | "Fiction" | "Realistic" | undefined; magic_prompt_option?: "Auto" | "On" | "Off" | undefined; resolution?: "auto" | "720" | "1024" | "1280" | "2048" | undefined; image?: string | undefined; mask?: string | undefined; }>; type CharacterGenerationRequest = z.infer; interface CharacterGenerationFormDataRequest { prompt: string; character_reference_file?: File | Buffer; character_reference_image?: string; character_reference_run_id?: string; rendering_speed?: "Default" | "Turbo" | "Quality"; style_type?: "Auto" | "Fiction" | "Realistic"; magic_prompt_option?: "On" | "Off" | "Auto"; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3"; resolution?: "auto" | "720" | "1024" | "1280" | "2048"; seed?: number; image?: string; mask?: string; } declare const CharacterGenerationResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; status: z.ZodOptional>; live_status: z.ZodOptional; progress: z.ZodOptional; image_url: z.ZodNullable>; created_at: z.ZodOptional; updated_at: z.ZodOptional; run_type: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "character-generation" | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "character-generation" | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "character-generation" | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "character-generation" | undefined; }; code?: string | undefined; details?: any; }>; type CharacterGenerationResponse = z.infer; declare const ReferenceImageSchema: z.ZodObject<{ image_reference: z.ZodString; tag: z.ZodString; }, "strip", z.ZodTypeAny, { tag: string; image_reference: string; }, { tag: string; image_reference: string; }>; type ReferenceImage = z.infer; declare const ReferenceGenerationRequestSchema: z.ZodObject<{ prompt: z.ZodString; images: z.ZodArray, "many">; aspect_ratio: z.ZodDefault>>; resolution: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { prompt: string; aspect_ratio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9"; resolution: "720p" | "1080p"; images: { tag: string; image_reference: string; }[]; }, { prompt: string; images: { tag: string; image_reference: string; }[]; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | undefined; resolution?: "720p" | "1080p" | undefined; }>; type ReferenceGenerationRequest = z.infer; interface ReferenceGenerationFormDataRequest { prompt: string; images: string; aspect_ratio?: "16:9" | "9:16" | "4:3" | "3:4" | "1:1" | "21:9"; resolution?: "720p" | "1080p"; } declare const ReferenceGenerationResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; status: z.ZodOptional>; live_status: z.ZodOptional; progress: z.ZodOptional; image_url: z.ZodNullable>; created_at: z.ZodOptional; updated_at: z.ZodOptional; run_type: z.ZodOptional>; }, "strip", z.ZodTypeAny, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "reference-generation" | undefined; }, { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "reference-generation" | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "reference-generation" | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { run_id: string; status?: "processing" | "completed" | "failed" | "canceled" | "pending" | "error" | "queued" | "succeeded" | undefined; image_url?: string | null | undefined; created_at?: string | undefined; updated_at?: string | undefined; progress?: number | undefined; live_status?: string | undefined; run_type?: "reference-generation" | undefined; }; code?: string | undefined; details?: any; }>; type ReferenceGenerationResponse = z.infer; declare const GenerativeRemoveRequestSchema: z.ZodObject<{ image_url: z.ZodOptional; run_id: z.ZodOptional; prompt: z.ZodString; remove_shadow: z.ZodDefault>; multiple: z.ZodDefault>; }, "strip", z.ZodTypeAny, { prompt: string; remove_shadow: boolean; multiple: boolean; run_id?: string | undefined; image_url?: string | undefined; }, { prompt: string; run_id?: string | undefined; image_url?: string | undefined; remove_shadow?: boolean | undefined; multiple?: boolean | undefined; }>; type GenerativeRemoveRequest = z.infer; declare const GenerativeRemoveResponseSchema: z.ZodObject<{ url: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; }, "strip", z.ZodTypeAny, { runId: string; url: string; parentRunId?: string | undefined; }, { runId: string; url: string; parentRunId?: string | undefined; }>; type GenerativeRemoveResponse = z.infer; declare const BackgroundRemoveRequestSchema: z.ZodObject<{ image_url: z.ZodOptional; run_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { run_id?: string | undefined; image_url?: string | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; }>; type BackgroundRemoveRequest = z.infer; declare const BackgroundRemoveResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; code: z.ZodOptional; data: z.ZodObject<{ url: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; }, "strip", z.ZodTypeAny, { runId: string; url: string; parentRunId?: string | undefined; }, { runId: string; url: string; parentRunId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { runId: string; url: string; parentRunId?: string | undefined; }; code?: string | undefined; }, { message: string; success: boolean; data: { runId: string; url: string; parentRunId?: string | undefined; }; code?: string | undefined; }>; type BackgroundRemoveResponse = z.infer; declare const ExtractRequestSchema: z.ZodObject<{ image_url: z.ZodOptional; run_id: z.ZodOptional; prompt: z.ZodString; mode: z.ZodDefault>>; preserve_alpha: z.ZodDefault>; multiple: z.ZodDefault>; invert: z.ZodDefault>; }, "strip", z.ZodTypeAny, { prompt: string; mode: "mask" | "content"; multiple: boolean; preserve_alpha: boolean; invert: boolean; run_id?: string | undefined; image_url?: string | undefined; }, { prompt: string; run_id?: string | undefined; image_url?: string | undefined; mode?: "mask" | "content" | undefined; multiple?: boolean | undefined; preserve_alpha?: boolean | undefined; invert?: boolean | undefined; }>; type ExtractRequest = z.infer; declare const ExtractResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; code: z.ZodOptional; data: z.ZodObject<{ url: z.ZodString; runId: z.ZodString; parentRunId: z.ZodOptional; }, "strip", z.ZodTypeAny, { runId: string; url: string; parentRunId?: string | undefined; }, { runId: string; url: string; parentRunId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { runId: string; url: string; parentRunId?: string | undefined; }; code?: string | undefined; }, { message: string; success: boolean; data: { runId: string; url: string; parentRunId?: string | undefined; }; code?: string | undefined; }>; type ExtractResponse = z.infer; declare const ReframeAspectRatioSchema: z.ZodEnum<["1:1", "3:4", "4:3", "9:16", "16:9", "9:21", "21:9"]>; type ReframeAspectRatio = z.infer; declare const ReframeModelSchema: z.ZodEnum<["photon-flash-1", "photon-1"]>; type ReframeModel = z.infer; declare const ReframeRequestSchema: z.ZodEffects; run_id: z.ZodOptional; aspect_ratio: z.ZodOptional>; model: z.ZodDefault>>; grid_position_x: z.ZodOptional; grid_position_y: z.ZodOptional; x_start: z.ZodOptional; x_end: z.ZodOptional; y_start: z.ZodOptional; y_end: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; model: "photon-flash-1" | "photon-1"; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21" | undefined; run_id?: string | undefined; image_url?: string | undefined; grid_position_x?: number | undefined; grid_position_y?: number | undefined; x_start?: number | undefined; x_end?: number | undefined; y_start?: number | undefined; y_end?: number | undefined; }, { prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21" | undefined; model?: "photon-flash-1" | "photon-1" | undefined; run_id?: string | undefined; image_url?: string | undefined; grid_position_x?: number | undefined; grid_position_y?: number | undefined; x_start?: number | undefined; x_end?: number | undefined; y_start?: number | undefined; y_end?: number | undefined; }>, { prompt: string; model: "photon-flash-1" | "photon-1"; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21" | undefined; run_id?: string | undefined; image_url?: string | undefined; grid_position_x?: number | undefined; grid_position_y?: number | undefined; x_start?: number | undefined; x_end?: number | undefined; y_start?: number | undefined; y_end?: number | undefined; }, { prompt: string; aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21" | undefined; model?: "photon-flash-1" | "photon-1" | undefined; run_id?: string | undefined; image_url?: string | undefined; grid_position_x?: number | undefined; grid_position_y?: number | undefined; x_start?: number | undefined; x_end?: number | undefined; y_start?: number | undefined; y_end?: number | undefined; }>; type ReframeRequest = z.infer; interface ReframeFormDataRequest { prompt: string; image_file?: File | Buffer; image_url?: string; run_id?: string; aspect_ratio?: ReframeAspectRatio; model?: ReframeModel; grid_position_x?: number; grid_position_y?: number; x_start?: number; x_end?: number; y_start?: number; y_end?: number; } declare const ReframeResponseSchema: z.ZodObject<{ success: z.ZodBoolean; run_id: z.ZodString; prediction_id: z.ZodString; status: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; status: string; success: boolean; run_id: string; prediction_id: string; }, { message: string; status: string; success: boolean; run_id: string; prediction_id: string; }>; type ReframeResponse = z.infer; declare const SmartResizeRequestSchema: z.ZodEffects; image_file: z.ZodOptional; run_id: z.ZodOptional; target_width: z.ZodOptional; target_height: z.ZodOptional; preset: z.ZodOptional; quality: z.ZodDefault>>; face_enhancement: z.ZodDefault>; subject_detection: z.ZodDefault>>; enhance_model: z.ZodOptional>; upscale_factor: z.ZodOptional>; face_enhancement_strength: z.ZodDefault>; auto_model_selection: z.ZodDefault>; face_enhancement_creativity: z.ZodOptional; auto_prompt: z.ZodDefault>; custom_prompt: z.ZodOptional; skip_upscale: z.ZodDefault>; skip_final_resize: z.ZodDefault>; fit: z.ZodDefault>>; background: z.ZodOptional; allow_heavy_crop: z.ZodDefault>; }, "strip", z.ZodTypeAny, { quality: "normal" | "high" | "ultra"; face_enhancement: boolean; subject_detection: "None" | "All" | "Foreground" | "Background"; face_enhancement_strength: number; auto_model_selection: boolean; auto_prompt: boolean; skip_upscale: boolean; skip_final_resize: boolean; fit: "cover" | "contain" | "pad"; allow_heavy_crop: boolean; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: "2x" | "4x" | "6x" | undefined; image_file?: any; target_width?: number | undefined; target_height?: number | undefined; preset?: string | undefined; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine" | undefined; face_enhancement_creativity?: number | undefined; custom_prompt?: string | undefined; background?: string | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: "2x" | "4x" | "6x" | undefined; image_file?: any; target_width?: number | undefined; target_height?: number | undefined; preset?: string | undefined; quality?: "normal" | "high" | "ultra" | undefined; face_enhancement?: boolean | undefined; subject_detection?: "None" | "All" | "Foreground" | "Background" | undefined; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine" | undefined; face_enhancement_strength?: number | undefined; auto_model_selection?: boolean | undefined; face_enhancement_creativity?: number | undefined; auto_prompt?: boolean | undefined; custom_prompt?: string | undefined; skip_upscale?: boolean | undefined; skip_final_resize?: boolean | undefined; fit?: "cover" | "contain" | "pad" | undefined; background?: string | undefined; allow_heavy_crop?: boolean | undefined; }>, { quality: "normal" | "high" | "ultra"; face_enhancement: boolean; subject_detection: "None" | "All" | "Foreground" | "Background"; face_enhancement_strength: number; auto_model_selection: boolean; auto_prompt: boolean; skip_upscale: boolean; skip_final_resize: boolean; fit: "cover" | "contain" | "pad"; allow_heavy_crop: boolean; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: "2x" | "4x" | "6x" | undefined; image_file?: any; target_width?: number | undefined; target_height?: number | undefined; preset?: string | undefined; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine" | undefined; face_enhancement_creativity?: number | undefined; custom_prompt?: string | undefined; background?: string | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: "2x" | "4x" | "6x" | undefined; image_file?: any; target_width?: number | undefined; target_height?: number | undefined; preset?: string | undefined; quality?: "normal" | "high" | "ultra" | undefined; face_enhancement?: boolean | undefined; subject_detection?: "None" | "All" | "Foreground" | "Background" | undefined; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine" | undefined; face_enhancement_strength?: number | undefined; auto_model_selection?: boolean | undefined; face_enhancement_creativity?: number | undefined; auto_prompt?: boolean | undefined; custom_prompt?: string | undefined; skip_upscale?: boolean | undefined; skip_final_resize?: boolean | undefined; fit?: "cover" | "contain" | "pad" | undefined; background?: string | undefined; allow_heavy_crop?: boolean | undefined; }>, { quality: "normal" | "high" | "ultra"; face_enhancement: boolean; subject_detection: "None" | "All" | "Foreground" | "Background"; face_enhancement_strength: number; auto_model_selection: boolean; auto_prompt: boolean; skip_upscale: boolean; skip_final_resize: boolean; fit: "cover" | "contain" | "pad"; allow_heavy_crop: boolean; run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: "2x" | "4x" | "6x" | undefined; image_file?: any; target_width?: number | undefined; target_height?: number | undefined; preset?: string | undefined; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine" | undefined; face_enhancement_creativity?: number | undefined; custom_prompt?: string | undefined; background?: string | undefined; }, { run_id?: string | undefined; image_url?: string | undefined; upscale_factor?: "2x" | "4x" | "6x" | undefined; image_file?: any; target_width?: number | undefined; target_height?: number | undefined; preset?: string | undefined; quality?: "normal" | "high" | "ultra" | undefined; face_enhancement?: boolean | undefined; subject_detection?: "None" | "All" | "Foreground" | "Background" | undefined; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine" | undefined; face_enhancement_strength?: number | undefined; auto_model_selection?: boolean | undefined; face_enhancement_creativity?: number | undefined; auto_prompt?: boolean | undefined; custom_prompt?: string | undefined; skip_upscale?: boolean | undefined; skip_final_resize?: boolean | undefined; fit?: "cover" | "contain" | "pad" | undefined; background?: string | undefined; allow_heavy_crop?: boolean | undefined; }>; type SmartResizeRequest = z.infer; interface SmartResizeFormDataRequest { image_file?: File | Blob; image_url?: string; run_id?: string; target_width?: number; target_height?: number; preset?: string; quality?: "normal" | "high" | "ultra"; face_enhancement?: boolean; subject_detection?: "None" | "All" | "Foreground" | "Background"; enhance_model?: "Standard V2" | "Low Resolution V2" | "CGI" | "High Fidelity V2" | "Text Refine"; upscale_factor?: "2x" | "4x" | "6x"; face_enhancement_strength?: number; auto_model_selection?: boolean; face_enhancement_creativity?: number; auto_prompt?: boolean; custom_prompt?: string; skip_upscale?: boolean; skip_final_resize?: boolean; fit?: "cover" | "contain" | "pad"; background?: string; allow_heavy_crop?: boolean; } declare const SmartResizeResponseSchema: z.ZodObject<{ success: z.ZodBoolean; internalCode: z.ZodNumber; message: z.ZodString; data: z.ZodObject<{ run_id: z.ZodString; status: z.ZodString; progress: z.ZodNumber; steps: z.ZodOptional; status: z.ZodString; image_url: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; run_id?: string | undefined; image_url?: string | undefined; }, { status: string; run_id?: string | undefined; image_url?: string | undefined; }>>; reframe: z.ZodOptional; status: z.ZodString; image_url: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; run_id?: string | undefined; image_url?: string | undefined; }, { status: string; run_id?: string | undefined; image_url?: string | undefined; }>>; resize: z.ZodOptional; status: z.ZodString; image_url: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; run_id?: string | undefined; image_url?: string | undefined; }, { status: string; run_id?: string | undefined; image_url?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { upscale?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; reframe?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; resize?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; }, { upscale?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; reframe?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; resize?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; }>>; final_image_url: z.ZodOptional; dimensions: z.ZodOptional; target: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { width: number; height: number; }, { width: number; height: number; }>; final: z.ZodOptional>; }, "strip", z.ZodTypeAny, { original: { width: number; height: number; }; target: { width: number; height: number; }; final?: { width: number; height: number; } | undefined; }, { original: { width: number; height: number; }; target: { width: number; height: number; }; final?: { width: number; height: number; } | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; run_id: string; progress: number; steps?: { upscale?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; reframe?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; resize?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; } | undefined; final_image_url?: string | undefined; dimensions?: { original: { width: number; height: number; }; target: { width: number; height: number; }; final?: { width: number; height: number; } | undefined; } | undefined; }, { status: string; run_id: string; progress: number; steps?: { upscale?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; reframe?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; resize?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; } | undefined; final_image_url?: string | undefined; dimensions?: { original: { width: number; height: number; }; target: { width: number; height: number; }; final?: { width: number; height: number; } | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { status: string; run_id: string; progress: number; steps?: { upscale?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; reframe?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; resize?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; } | undefined; final_image_url?: string | undefined; dimensions?: { original: { width: number; height: number; }; target: { width: number; height: number; }; final?: { width: number; height: number; } | undefined; } | undefined; }; internalCode: number; }, { message: string; success: boolean; data: { status: string; run_id: string; progress: number; steps?: { upscale?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; reframe?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; resize?: { status: string; run_id?: string | undefined; image_url?: string | undefined; } | undefined; } | undefined; final_image_url?: string | undefined; dimensions?: { original: { width: number; height: number; }; target: { width: number; height: number; }; final?: { width: number; height: number; } | undefined; } | undefined; }; internalCode: number; }>; type SmartResizeResponse = z.infer; declare const ResizePresetSchema: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; name: z.ZodString; category: z.ZodEnum<["social", "ads", "web", "blog"]>; }, "strip", z.ZodTypeAny, { width: number; height: number; name: string; category: "social" | "ads" | "web" | "blog"; }, { width: number; height: number; name: string; category: "social" | "ads" | "web" | "blog"; }>; declare const ResizePresetsResponseSchema: z.ZodObject<{ presets: z.ZodRecord; }, "strip", z.ZodTypeAny, { width: number; height: number; name: string; category: "social" | "ads" | "web" | "blog"; }, { width: number; height: number; name: string; category: "social" | "ads" | "web" | "blog"; }>>; }, "strip", z.ZodTypeAny, { presets: Record; }, { presets: Record; }>; type ResizePresetsResponse = z.infer; declare const TargetDimensionSchema: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { width: number; height: number; }, { width: number; height: number; }>; type TargetDimension = z.infer; declare const MagicResizeAutomateRequestSchema: z.ZodObject<{ run_id: z.ZodString; targets: z.ZodArray, "many">; webhook: z.ZodOptional; }, "strip", z.ZodTypeAny, { run_id: string; targets: { width: number; height: number; }[]; webhook?: string | undefined; }, { run_id: string; targets: { width: number; height: number; }[]; webhook?: string | undefined; }>; type MagicResizeAutomateRequest = z.infer; declare const MagicResizeAutomateResponseDataSchema: z.ZodObject<{ job_id: z.ZodString; run_id: z.ZodOptional; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; job_id: string; run_id?: string | undefined; }, { message: string; job_id: string; run_id?: string | undefined; }>; declare const MagicResizeAutomateResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; data: z.ZodObject<{ job_id: z.ZodString; run_id: z.ZodOptional; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; job_id: string; run_id?: string | undefined; }, { message: string; job_id: string; run_id?: string | undefined; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { message: string; job_id: string; run_id?: string | undefined; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { message: string; job_id: string; run_id?: string | undefined; }; code?: string | undefined; details?: any; }>; type MagicResizeAutomateResponse = z.infer; declare const SmartBatchRequestSchema: z.ZodEffects; image_url: z.ZodOptional; image_id: z.ZodOptional; prompt: z.ZodOptional; enhance_prompt: z.ZodDefault>; style: z.ZodOptional; scene: z.ZodOptional; talent: z.ZodOptional; variation_count: z.ZodDefault; aspect_ratio: z.ZodOptional; }, "strip", z.ZodTypeAny, { enhance_prompt: boolean; variation_count: number; prompt?: string | undefined; aspect_ratio?: string | undefined; image_url?: string | undefined; image?: any; image_id?: string | undefined; style?: string | undefined; scene?: string | undefined; talent?: string | undefined; }, { prompt?: string | undefined; aspect_ratio?: string | undefined; image_url?: string | undefined; image?: any; image_id?: string | undefined; enhance_prompt?: boolean | undefined; style?: string | undefined; scene?: string | undefined; talent?: string | undefined; variation_count?: number | undefined; }>, { enhance_prompt: boolean; variation_count: number; prompt?: string | undefined; aspect_ratio?: string | undefined; image_url?: string | undefined; image?: any; image_id?: string | undefined; style?: string | undefined; scene?: string | undefined; talent?: string | undefined; }, { prompt?: string | undefined; aspect_ratio?: string | undefined; image_url?: string | undefined; image?: any; image_id?: string | undefined; enhance_prompt?: boolean | undefined; style?: string | undefined; scene?: string | undefined; talent?: string | undefined; variation_count?: number | undefined; }>, { enhance_prompt: boolean; variation_count: number; prompt?: string | undefined; aspect_ratio?: string | undefined; image_url?: string | undefined; image?: any; image_id?: string | undefined; style?: string | undefined; scene?: string | undefined; talent?: string | undefined; }, { prompt?: string | undefined; aspect_ratio?: string | undefined; image_url?: string | undefined; image?: any; image_id?: string | undefined; enhance_prompt?: boolean | undefined; style?: string | undefined; scene?: string | undefined; talent?: string | undefined; variation_count?: number | undefined; }>; type SmartBatchRequest = z.infer; interface SmartBatchFormDataRequest { image?: File | Buffer; image_url?: string; image_id?: string; prompt?: string; enhance_prompt?: boolean; style?: string; scene?: string; talent?: string; variation_count?: number; aspect_ratio?: string; } declare const SmartBatchVariationSchema: z.ZodObject<{ run_id: z.ZodString; image_url: z.ZodNullable; prompt: z.ZodString; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; error: z.ZodOptional; order: z.ZodNumber; }, "strip", z.ZodTypeAny, { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }, { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }>; type SmartBatchVariation = z.infer; declare const SmartBatchResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; code: z.ZodOptional; details: z.ZodOptional; data: z.ZodObject<{ batch_id: z.ZodString; original_run_id: z.ZodString; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; total_variations: z.ZodNumber; completed_variations: z.ZodNumber; failed_variations: z.ZodNumber; variations: z.ZodArray; prompt: z.ZodString; status: z.ZodEnum<["pending", "processing", "completed", "failed"]>; error: z.ZodOptional; order: z.ZodNumber; }, "strip", z.ZodTypeAny, { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }, { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }>, "many">; analysis: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "processing" | "completed" | "failed" | "pending"; original_run_id: string; batch_id: string; total_variations: number; completed_variations: number; failed_variations: number; variations: { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }[]; analysis?: any; }, { status: "processing" | "completed" | "failed" | "pending"; original_run_id: string; batch_id: string; total_variations: number; completed_variations: number; failed_variations: number; variations: { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }[]; analysis?: any; }>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; data: { status: "processing" | "completed" | "failed" | "pending"; original_run_id: string; batch_id: string; total_variations: number; completed_variations: number; failed_variations: number; variations: { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }[]; analysis?: any; }; code?: string | undefined; details?: any; }, { message: string; success: boolean; data: { status: "processing" | "completed" | "failed" | "pending"; original_run_id: string; batch_id: string; total_variations: number; completed_variations: number; failed_variations: number; variations: { prompt: string; status: "processing" | "completed" | "failed" | "pending"; run_id: string; image_url: string | null; order: number; error?: string | undefined; }[]; analysis?: any; }; code?: string | undefined; details?: any; }>; type SmartBatchResponse = z.infer; declare const SmartBatchStatusRequestSchema: z.ZodObject<{ batch_id: z.ZodString; }, "strip", z.ZodTypeAny, { batch_id: string; }, { batch_id: string; }>; type SmartBatchStatusRequest = z.infer; declare const GenerativeCombineRequestSchema: z.ZodObject<{ prompt: z.ZodString; base_images: z.ZodArray; generation_prompt: z.ZodOptional; model_id: z.ZodString; width: z.ZodDefault>; height: z.ZodDefault>; webhook_url: z.ZodOptional; }, "strip", z.ZodTypeAny, { prompt: string; width: number; height: number; model_id: string; base_images: string[]; webhook_url?: string | undefined; generation_prompt?: string | undefined; }, { prompt: string; model_id: string; base_images: string[]; width?: number | undefined; height?: number | undefined; webhook_url?: string | undefined; generation_prompt?: string | undefined; }>; type GenerativeCombineRequest = z.infer; declare const GenerativeCombineResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodOptional; data: z.ZodObject<{ run_id: z.ZodString; status: z.ZodString; stage: z.ZodEnum<["generating", "combining", "completed"]>; }, "strip", z.ZodTypeAny, { status: string; run_id: string; stage: "completed" | "generating" | "combining"; }, { status: string; run_id: string; stage: "completed" | "generating" | "combining"; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; data: { status: string; run_id: string; stage: "completed" | "generating" | "combining"; }; code?: string | undefined; message?: string | undefined; details?: any; }, { success: boolean; data: { status: string; run_id: string; stage: "completed" | "generating" | "combining"; }; code?: string | undefined; message?: string | undefined; details?: any; }>; type GenerativeCombineResponse = z.infer; declare const GenerativeCombineStatusResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodOptional; data: z.ZodObject<{ run_id: z.ZodString; status: z.ZodString; progress: z.ZodNumber; stage: z.ZodEnum<["generating", "combining", "completed"]>; image_url: z.ZodNullable; created_at: z.ZodString; metadata: z.ZodObject<{ original_prompt: z.ZodString; base_image_run_ids: z.ZodArray; generated_image_url: z.ZodOptional; }, "strip", z.ZodTypeAny, { original_prompt: string; base_image_run_ids: string[]; generated_image_url?: string | undefined; }, { original_prompt: string; base_image_run_ids: string[]; generated_image_url?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: string; run_id: string; image_url: string | null; metadata: { original_prompt: string; base_image_run_ids: string[]; generated_image_url?: string | undefined; }; created_at: string; progress: number; stage: "completed" | "generating" | "combining"; }, { status: string; run_id: string; image_url: string | null; metadata: { original_prompt: string; base_image_run_ids: string[]; generated_image_url?: string | undefined; }; created_at: string; progress: number; stage: "completed" | "generating" | "combining"; }>; code: z.ZodOptional; details: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; data: { status: string; run_id: string; image_url: string | null; metadata: { original_prompt: string; base_image_run_ids: string[]; generated_image_url?: string | undefined; }; created_at: string; progress: number; stage: "completed" | "generating" | "combining"; }; code?: string | undefined; message?: string | undefined; details?: any; }, { success: boolean; data: { status: string; run_id: string; image_url: string | null; metadata: { original_prompt: string; base_image_run_ids: string[]; generated_image_url?: string | undefined; }; created_at: string; progress: number; stage: "completed" | "generating" | "combining"; }; code?: string | undefined; message?: string | undefined; details?: any; }>; type GenerativeCombineStatusResponse = z.infer; interface BillingPrice { id: string; currency: string; unitAmount: number; recurringInterval: 'month' | 'year' | null; trialPeriodDays?: number | null; } interface BillingProduct { id: string; name: string; slug: string; description?: string | null; tierLevel: number; isFree: boolean; isEnterprise: boolean; monthlyCredits: number; features?: BillingPlanFeatures | null; sortOrder: number; prices: BillingPrice[]; } interface BillingPlanFeatures { api_access?: boolean; priority_generation?: boolean; custom_models?: boolean; team_members_limit?: number; concurrent_generations?: number; [key: string]: any; } interface BillingSubscription { id: string; companyId: string; billingPlanId: string | null; status: string; currentPeriodStart: string | null; currentPeriodEnd: string | null; cancelAtPeriodEnd: boolean; plan: { name: string; slug: string; monthlyCredits: number; features?: BillingPlanFeatures | null; } | null; } interface BillingUsageSummary { plan: { name: string; billingPlanId: string | null; billingStatus: string; accountManager?: string | null; enterprisePaymentMethod?: 'invoice' | 'stripe_auto_pay' | null; }; usage: { totalCreditsUsed: number; totalCreditsLimit: number; percentUsed: number; categoryBreakdown: Record; resetDate: string; billingCycleDay?: number | null; periodStart?: string | null; periodEnd?: string | null; }; } interface BillingCheckoutRequest { priceId: string; companyId: string; successUrl: string; cancelUrl: string; } interface BillingCheckoutResponse { checkoutUrl: string; } interface BillingPortalRequest { companyId: string; returnUrl: string; } interface BillingPortalResponse { portalUrl: string; } interface BillingInvoice { id: string; status: string; amount_due: number; amount_paid: number; amount_remaining: number; currency: string; period_start: string | null; period_end: string | null; invoice_url: string | null; invoice_pdf: string | null; paid_at: string | null; } interface BillingNotification { id: string; company_id: string; notification_type: string; channel: string; subject: string | null; body: string | null; read_at: string | null; created_at: string; } interface TrackActivityRequest { activityType: 'chat_message' | 'rag_query'; credits: number; metadata?: Record; idempotencyKey?: string; } interface TrackActivityResponse { success: boolean; activityType: string; creditsDeducted: number; alreadyTracked?: boolean; metadata?: Record; idempotencyKey?: string; } interface ShareRequest { shareType: 'image' | 'folder'; resourceIds: string[]; recipients: { emails?: string[]; userIds?: string[]; companyId?: string; }; permission: 'view' | 'download' | 'edit'; message?: string; } interface ShareResponse { shared: number; invited: number; } interface SharedWithMeResponse { images: any[]; shares: any[]; folders: any[]; folderShares: any[]; filters: { sharers: Array<{ userId: string; name: string; }>; permissions: string[]; }; } interface SharedByMeResponse { images: any[]; shares: any[]; folderShares: any[]; pendingInvitations: any[]; filters: { recipients: Array<{ userId: string; name: string; email: string; }>; }; } interface OrgMembersResponse { members: Array<{ userId: string; email: string; firstName: string | null; lastName: string | null; role: string; }>; } interface OrgMemberLimitResponse { orgId: string | null; memberLimit: number | null; currentMembers: number; pendingInvitations: number; availableSeats: number | null; isAtLimit: boolean; billingPlanId: string | null; billingStatus: string | null; planName: string | null; source: 'none' | 'plan' | 'enterprise_override' | 'company_override'; } interface ShareUpdateResponse { updated: boolean; revokedReshares?: number; revokedInvitations?: number; } interface ShareRevokeResponse { revoked: boolean; revokedReshares?: number; revokedInvitations?: number; } interface ResolveInvitationsResponse { resolved: number; invalidated?: number; } type SDKRequestError = Error & { status?: number; code?: string; requiresUpgrade?: boolean; details?: unknown; }; declare class ImagineoAIClient { images: { upload: (input: UploadImageRequest) => Promise; uploadMask: (input: UploadImageRequest) => Promise; generate: (inputs: GenerateImageInput) => Promise; upscale: (input: UpscaleImageInput) => Promise; inpaint: (input: InpaintImageInput) => Promise; outpaint: (input: unknown) => Promise; describe: (input: DescribePredictionRequest) => Promise; smartTag: (input: SmartTagRequest) => Promise; combine: { (input: CombineImageInput): Promise; nanobanana: { json: (input: { prompt: string; image_urls?: string[]; run_ids?: string[]; }) => Promise; formData: (input: { prompt: string; files?: (File | Blob)[]; image_urls?: string[]; run_ids?: string[]; }) => Promise; }; gemini25: { json: (input: { prompt: string; image_urls?: string[]; run_ids?: string[]; aspect_ratio?: string; }) => Promise; formData: (input: { prompt: string; files?: (File | Blob)[]; image_urls?: string[]; run_ids?: string[]; aspect_ratio?: string; }) => Promise; }; }; upscaleSeedvr2: { json: (input: Seedvr2UpscaleJsonRequest) => Promise; form: (input: Seedvr2UpscaleFormRequest) => Promise; }; related: (runId: string) => Promise; getRun: (runId: string) => Promise; getRunJobs: (runId: string) => Promise; edit: { openai: { json: (input: ImageEditRequest) => Promise; formData: (input: ImageEditFormDataRequest) => Promise; }; fluxKontext: { json: (input: FluxKontextEditRequest) => Promise; formData: (input: FluxKontextEditFormDataRequest) => Promise; }; nanobanana: { json: (input: { prompt: string; image_url?: string; original_run_id?: string; }) => Promise; formData: (input: { prompt: string; file?: File | Blob; image_url?: string; original_run_id?: string; }) => Promise; }; gemini25: { json: (input: { prompt: string; image_url?: string; original_run_id?: string; mask_url?: string; aspect_ratio?: string; }) => Promise; formData: (input: { prompt: string; file?: File | Blob; mask?: File | Blob; image_url?: string; original_run_id?: string; mask_url?: string; aspect_ratio?: string; }) => Promise; }; }; removeBackground: { json: (payload: RemoveBackgroundJsonPayload) => Promise; formData: (payload: FormData) => Promise; }; segmentImage: { json: (payload: SegmentImageJsonPayload) => Promise; formData: (payload: FormData) => Promise; }; generateVideo: (payload: GenerateVideoPayload) => Promise; getVideoCosts: () => Promise; character: { json: (input: CharacterGenerationRequest) => Promise; formData: (input: CharacterGenerationFormDataRequest) => Promise; }; reference: { json: (input: ReferenceGenerationRequest) => Promise; formData: (input: ReferenceGenerationFormDataRequest) => Promise; }; genRemove: (input: GenerativeRemoveRequest) => Promise; backgroundRemove: (input: BackgroundRemoveRequest) => Promise; extract: (input: ExtractRequest) => Promise; smartBatch: { json: (input: SmartBatchRequest) => Promise; formData: (input: SmartBatchFormDataRequest) => Promise; getStatus: (batchId: string) => Promise; }; smartResize: { json: (input: SmartResizeRequest) => Promise; formData: (input: SmartResizeFormDataRequest) => Promise; getStatus: (runId: string) => Promise; getPresets: () => Promise; }; generativeCombine: { json: (input: GenerativeCombineRequest) => Promise; getStatus: (runId: string) => Promise; }; reframe: { json: (input: ReframeRequest) => Promise; formData: (input: ReframeFormDataRequest) => Promise; }; }; models: { list: () => Promise; getById: (modelId: string) => Promise; }; prompts: { enhance: (input: EnhancePromptRequest) => Promise; list: () => Promise; get: (_id: string) => Promise; update: (_id: string, _input: UpdatePromptRequest) => Promise; delete: (_id: string) => Promise; }; inspire: { video: (input: InspireMeRequest) => Promise; videoStory: (input: InspireStoryRequest) => Promise; getVideoPromptCategories: () => Promise; }; edit: { maskImage: (originalImageUrl: string, maskImageUrl: string, editServerUrl?: string) => Promise; getLayers: (runId: string) => Promise; }; me: { getUserRuns: (query?: GetUserRunsQuery) => Promise; getUserJobs: (query?: GetUserJobsQuery) => Promise; }; automate: { magicResize: (payload: MagicResizeAutomateRequest) => Promise; }; billing: { getProducts: () => Promise; createCheckout: (params: BillingCheckoutRequest) => Promise; createPortal: (params: BillingPortalRequest) => Promise; getSubscription: (companyId: string) => Promise; getUsage: (companyId?: string) => Promise; getInvoices: (companyId: string) => Promise; getNotifications: (companyId: string) => Promise; }; usageLimits: { trackActivity: (params: TrackActivityRequest) => Promise; }; sharing: { share: (params: ShareRequest) => Promise; getSharedWithMe: (params?: Record) => Promise; getSharedByMe: (params?: Record) => Promise; getOrgMembers: (orgId?: string) => Promise; getOrgMemberLimit: (orgId?: string) => Promise; updatePermission: (shareId: string, permission: string) => Promise; revoke: (shareId: string) => Promise; resolveInvitations: () => Promise; }; private apiUrl; private authOptions; private options; constructor(apiUrl: string | null, authOptions?: ImagineoAIClientAuthOptions, options?: { debug: boolean; }); } export { type ApiError, ApiErrorSchema, type BackgroundRemoveRequest, BackgroundRemoveRequestSchema, type BackgroundRemoveResponse, BackgroundRemoveResponseSchema, type BillingCheckoutRequest, type BillingCheckoutResponse, type BillingInvoice, type BillingNotification, type BillingPlanFeatures, type BillingPortalRequest, type BillingPortalResponse, type BillingPrice, type BillingProduct, type BillingSubscription, type BillingUsageSummary, type CharacterGenerationFormDataRequest, type CharacterGenerationRequest, CharacterGenerationRequestSchema, type CharacterGenerationResponse, CharacterGenerationResponseSchema, type CombineImageInput, CombineImageInputSchema, type DeletePromptResponse, type DescribePredictionRequest, DescribePredictionRequestSchema, type DescribePredictionResponse, DescribePredictionResponseSchema, type EnhancePromptRequest, EnhancePromptRequestSchema, type EnhancePromptResponse, EnhancePromptResponseSchema, type ExtractRequest, ExtractRequestSchema, type ExtractResponse, ExtractResponseSchema, type FluxKontextEditFormDataRequest, type FluxKontextEditRequest, FluxKontextEditRequestSchema, type FluxKontextEditResponse, FluxKontextEditResponseSchema, type GenerateImageInput, GenerateImageInputSchema, type GenerateImageOutput, GenerateImageOutputSchema, type GenerateVideoPayload, GenerateVideoPayloadSchema, type GenerateVideoResponse, GenerateVideoResponseSchema, type GenerativeCombineRequest, GenerativeCombineRequestSchema, type GenerativeCombineResponse, GenerativeCombineResponseSchema, type GenerativeCombineStatusResponse, GenerativeCombineStatusResponseSchema, type GenerativeRemoveRequest, GenerativeRemoveRequestSchema, type GenerativeRemoveResponse, GenerativeRemoveResponseSchema, type GetLayersRequest, GetLayersRequestSchema, type GetLayersResponse, GetLayersResponseSchema, type GetPromptResponse, type GetRelatedRunRequest, GetRelatedRunRequestSchema, type GetUserJobsQuery, GetUserJobsQuerySchema, type GetUserJobsResponse, GetUserJobsResponseDataSchema, GetUserJobsResponseSchema, type GetUserRunsQuery, GetUserRunsQuerySchema, type GetUserRunsResponse, GetUserRunsResponseDataSchema, GetUserRunsResponseSchema, type ImageEditFormDataRequest, type ImageEditRequest, ImageEditRequestSchema, type ImageEditResponse, ImageEditResponseSchema, type ImageOperation, ImageOperationSchema, ImagineoAIClient, type ImagineoAIClientAuthOptions, type ImagineoAIClientOptions, type InpaintImageInput, InpaintImageInputSchema, InspireMeCategoryEnum, type InspireMeRequest, InspireMeRequestSchema, type InspireMeResponse, InspireMeResponseSchema, InspireStoryElementSchema, InspireStoryModeEnum, type InspireStoryRequest, InspireStoryRequestSchema, type InspireStoryResponse, InspireStoryResponseSchema, InspireStoryShotSchema, type Job, JobSchema, type JobStatusEnum, JobStatusEnumSchema, type JobTypeEnum, JobTypeEnumSchema, type Layer, LayerSchema, type ListPromptsResponse, MODEL_TYPES, type MagicResizeAutomateRequest, MagicResizeAutomateRequestSchema, type MagicResizeAutomateResponse, MagicResizeAutomateResponseDataSchema, MagicResizeAutomateResponseSchema, ModelSchema, type ModelType, type ModelsResponse, ModelsResponseSchema, type OrgMemberLimitResponse, type OrgMembersResponse, type Prompt, PromptSchema, type ReferenceGenerationFormDataRequest, type ReferenceGenerationRequest, ReferenceGenerationRequestSchema, type ReferenceGenerationResponse, ReferenceGenerationResponseSchema, type ReferenceImage, ReferenceImageSchema, type ReframeAspectRatio, ReframeAspectRatioSchema, type ReframeFormDataRequest, type ReframeModel, ReframeModelSchema, type ReframeRequest, ReframeRequestSchema, type ReframeResponse, ReframeResponseSchema, type RemoveBackgroundJsonPayload, RemoveBackgroundJsonPayloadSchema, ResizePresetSchema, type ResizePresetsResponse, ResizePresetsResponseSchema, type ResolveInvitationsResponse, type RunChild, type RunChildrenArray, type RunJobsListResponse, RunJobsListResponseSchema, type RunParent, type RunParentsArray, type RunRelatedResponse, RunRelatedResponseSchema, type RunStatus, RunStatusSchema, type RunWithRelationsFlat, type SDKRequestError, type Seedvr2UpscaleFormRequest, Seedvr2UpscaleFormRequestSchema, type Seedvr2UpscaleJsonRequest, Seedvr2UpscaleJsonRequestSchema, type Seedvr2UpscaleResponse, Seedvr2UpscaleResponseSchema, type SegmentImageJsonPayload, SegmentImageJsonPayloadSchema, type ShareRequest, type ShareResponse, type ShareRevokeResponse, type ShareUpdateResponse, type SharedByMeResponse, type SharedWithMeResponse, type SingleModelResponse, SingleModelResponseSchema, type SmartBatchFormDataRequest, type SmartBatchRequest, SmartBatchRequestSchema, type SmartBatchResponse, SmartBatchResponseSchema, type SmartBatchStatusRequest, SmartBatchStatusRequestSchema, type SmartBatchVariation, SmartBatchVariationSchema, type SmartResizeFormDataRequest, type SmartResizeRequest, SmartResizeRequestSchema, type SmartResizeResponse, SmartResizeResponseSchema, type SmartTagRequest, SmartTagRequestSchema, type SmartTagResponse, SmartTagResponseSchema, type TModel, type TModelWithPrompts, type TPrompt, type Tag, TagSchema, type TargetDimension, TargetDimensionSchema, type TrackActivityRequest, type TrackActivityResponse, type UpdatePromptRequest, type UpdatePromptResponse, UploadFileKind, type UploadFileType, type UploadImageRequest, type UploadImageResponse, type UpscaleImageInput, UpscaleImageInputSchema, type UserJobItem, UserJobItemSchema, type UserRunItem, UserRunItemSchema, type VideoCostInfo, type VideoCostsResponse, type VideoPromptCategoriesResponse, VideoPromptCategoriesResponseSchema, isBrowserBlob, isBrowserFile, isNodeBuffer, isNodeReadable };