import { z } from 'zod'; export declare const sdcppConfigSchema: z.ZodObject<{ mode: z.ZodDefault>; threads: z.ZodOptional; device: z.ZodOptional>; 'main-gpu': z.ZodOptional]>>; prediction: z.ZodOptional>; type: z.ZodOptional>; rng: z.ZodOptional>; sampler_rng: z.ZodOptional>; vae_auto_cpu_fallback: z.ZodOptional; vae_auto_cpu_fallback_memory_ratio: z.ZodOptional; vae_tiling: z.ZodOptional; offload_to_cpu: z.ZodOptional; control_net_cpu: z.ZodOptional>; clip_on_cpu: z.ZodOptional>; vae_on_cpu: z.ZodOptional>; backend: z.ZodOptional; params_backend: z.ZodOptional; max_vram: z.ZodOptional>; stream_layers: z.ZodOptional; flash_attn: z.ZodOptional; diffusion_fa: z.ZodOptional; lora_apply_mode: z.ZodOptional>; verbosity: z.ZodOptional; clipLModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; clipGModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; t5XxlModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; llmModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; vaeModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; highNoiseDiffusionModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; uncondModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; clipVisionModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; audioVaeModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; embeddingsConnectorsModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; taehvModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; sceneSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; world: z.ZodOptional; threads: z.ZodOptional, z.ZodNumber]>>; backend: z.ZodOptional; numFramePerBlock: z.ZodOptional; localAttnSize: z.ZodOptional; offloadParamsToCpu: z.ZodOptional; paramsBackend: z.ZodOptional; maxVram: z.ZodOptional>; streamLayers: z.ZodOptional; verbosity: z.ZodOptional, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>; frameJpegQuality: z.ZodOptional; kvCache: z.ZodOptional; profile: z.ZodOptional; }, z.core.$strict>>; upscaler: z.ZodOptional>; model_src: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; tile_size: z.ZodOptional; direct: z.ZodOptional; offload_params_to_cpu: z.ZodOptional; threads: z.ZodOptional, z.ZodNumber]>>; }, z.core.$strict>>; }, z.core.$strip>; export type SdcppConfig = Omit, 'control_net_cpu' | 'clip_on_cpu' | 'vae_on_cpu'>; export declare const diffusionStatsSchema: z.ZodObject<{ modelLoadMs: z.ZodOptional; generationMs: z.ZodOptional; conditionerMs: z.ZodOptional; denoiseMs: z.ZodOptional; vaeMs: z.ZodOptional; postProcessMs: z.ZodOptional; stepsPerSecond: z.ZodOptional; totalGenerationMs: z.ZodOptional; totalWallMs: z.ZodOptional; totalSteps: z.ZodOptional; totalGenerations: z.ZodOptional; totalImages: z.ZodOptional; totalPixels: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; seed: z.ZodOptional; }, z.core.$strip>; export type DiffusionStats = z.infer; export declare const videoStatsSchema: z.ZodObject<{ seed: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; modelLoadMs: z.ZodOptional; generationMs: z.ZodOptional; conditionerMs: z.ZodOptional; denoiseMs: z.ZodOptional; vaeMs: z.ZodOptional; postProcessMs: z.ZodOptional; stepsPerSecond: z.ZodOptional; totalGenerationMs: z.ZodOptional; totalWallMs: z.ZodOptional; totalSteps: z.ZodOptional; totalGenerations: z.ZodOptional; totalImages: z.ZodOptional; totalPixels: z.ZodOptional; totalVideos: z.ZodOptional; totalVideoFrames: z.ZodOptional; videoFrames: z.ZodOptional; fps: z.ZodOptional; hasAudio: z.ZodOptional; audioSampleRate: z.ZodOptional; }, z.core.$strip>; export type VideoStats = z.infer; export declare const diffusionStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"diffusionStream">; step: z.ZodOptional; totalSteps: z.ZodOptional; elapsedMs: z.ZodOptional; data: z.ZodOptional; outputIndex: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; generationMs: z.ZodOptional; conditionerMs: z.ZodOptional; denoiseMs: z.ZodOptional; vaeMs: z.ZodOptional; postProcessMs: z.ZodOptional; stepsPerSecond: z.ZodOptional; totalGenerationMs: z.ZodOptional; totalWallMs: z.ZodOptional; totalSteps: z.ZodOptional; totalGenerations: z.ZodOptional; totalImages: z.ZodOptional; totalPixels: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; seed: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type DiffusionStreamResponse = z.infer; export declare const videoStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"videoStream">; step: z.ZodOptional; totalSteps: z.ZodOptional; elapsedMs: z.ZodOptional; data: z.ZodOptional; outputIndex: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; modelLoadMs: z.ZodOptional; generationMs: z.ZodOptional; conditionerMs: z.ZodOptional; denoiseMs: z.ZodOptional; vaeMs: z.ZodOptional; postProcessMs: z.ZodOptional; stepsPerSecond: z.ZodOptional; totalGenerationMs: z.ZodOptional; totalWallMs: z.ZodOptional; totalSteps: z.ZodOptional; totalGenerations: z.ZodOptional; totalImages: z.ZodOptional; totalPixels: z.ZodOptional; totalVideos: z.ZodOptional; totalVideoFrames: z.ZodOptional; videoFrames: z.ZodOptional; fps: z.ZodOptional; hasAudio: z.ZodOptional; audioSampleRate: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type VideoStreamResponse = z.infer; export declare const diffusionRequestSchema: z.ZodObject<{ modelId: z.ZodString; prompt: z.ZodString; negative_prompt: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; steps: z.ZodOptional; cfg_scale: z.ZodOptional; img_cfg_scale: z.ZodDefault; guidance: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; seed: z.ZodOptional; batch_count: z.ZodOptional; vae_tiling: z.ZodOptional; cache_preset: z.ZodOptional; init_image: z.ZodOptional; init_images: z.ZodOptional>; increase_ref_index: z.ZodOptional; auto_resize_ref_image: z.ZodOptional; lora: z.ZodOptional; strength: z.ZodOptional; upscale: z.ZodOptional; }, z.core.$strict>]>>; }, z.core.$strip>; export type DiffusionRequest = z.input; export declare const diffusionStreamRequestSchema: z.ZodObject<{ modelId: z.ZodString; prompt: z.ZodString; negative_prompt: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; steps: z.ZodOptional; cfg_scale: z.ZodOptional; img_cfg_scale: z.ZodDefault; guidance: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; seed: z.ZodOptional; batch_count: z.ZodOptional; vae_tiling: z.ZodOptional; cache_preset: z.ZodOptional; init_image: z.ZodOptional; init_images: z.ZodOptional>; increase_ref_index: z.ZodOptional; auto_resize_ref_image: z.ZodOptional; lora: z.ZodOptional; strength: z.ZodOptional; upscale: z.ZodOptional; }, z.core.$strict>]>>; type: z.ZodLiteral<"diffusionStream">; }, z.core.$strip>; export type DiffusionStreamRequest = z.input; type DiffusionClientParamsBase = Omit; export type DiffusionClientParams = DiffusionClientParamsBase & ({ init_image?: Uint8Array; init_images?: never; } | { init_image?: never; init_images?: Uint8Array[]; }); export declare const videoRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; negative_prompt: z.ZodOptional; lora: z.ZodOptional; lora_strength: z.ZodOptional; stg_scale: z.ZodOptional; stg_block: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; video_frames: z.ZodOptional; fps: z.ZodOptional; seed: z.ZodOptional; steps: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; cfg_scale: z.ZodOptional; flow_shift: z.ZodOptional; high_noise_steps: z.ZodOptional; high_noise_sampler: z.ZodOptional>; high_noise_scheduler: z.ZodOptional>; high_noise_cfg_scale: z.ZodOptional; high_noise_flow_shift: z.ZodOptional; moe_boundary: z.ZodOptional; vace_strength: z.ZodOptional; control_frames: z.ZodOptional>; vae_tiling: z.ZodOptional; vae_tile_size: z.ZodOptional>; vae_tile_overlap: z.ZodOptional; temporal_tiling: z.ZodOptional; cache_mode: z.ZodOptional>; cache_preset: z.ZodOptional; cache_threshold: z.ZodOptional; mode: z.ZodEnum<{ txt2vid: "txt2vid"; img2vid: "img2vid"; }>; init_image: z.ZodOptional; strength: z.ZodOptional; reference_images: z.ZodOptional>; reference_attention_strength: z.ZodOptional; reference_downscale_factor: z.ZodOptional>; }, z.core.$strip>; export declare const ltxVideoRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; negative_prompt: z.ZodOptional; lora: z.ZodOptional; lora_strength: z.ZodOptional; stg_scale: z.ZodOptional; stg_block: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; video_frames: z.ZodOptional; fps: z.ZodOptional; seed: z.ZodOptional; steps: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; cfg_scale: z.ZodOptional; flow_shift: z.ZodOptional; high_noise_steps: z.ZodOptional; high_noise_sampler: z.ZodOptional>; high_noise_scheduler: z.ZodOptional>; high_noise_cfg_scale: z.ZodOptional; high_noise_flow_shift: z.ZodOptional; moe_boundary: z.ZodOptional; vace_strength: z.ZodOptional; control_frames: z.ZodOptional>; vae_tiling: z.ZodOptional; vae_tile_size: z.ZodOptional>; vae_tile_overlap: z.ZodOptional; temporal_tiling: z.ZodOptional; cache_mode: z.ZodOptional>; cache_preset: z.ZodOptional; cache_threshold: z.ZodOptional; mode: z.ZodEnum<{ txt2vid: "txt2vid"; img2vid: "img2vid"; }>; init_image: z.ZodOptional; strength: z.ZodOptional; reference_images: z.ZodOptional>; reference_attention_strength: z.ZodOptional; reference_downscale_factor: z.ZodOptional>; }, z.core.$strip>; export declare const wanVideoRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; negative_prompt: z.ZodOptional; lora: z.ZodOptional; lora_strength: z.ZodOptional; stg_scale: z.ZodOptional; stg_block: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; video_frames: z.ZodOptional; fps: z.ZodOptional; seed: z.ZodOptional; steps: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; cfg_scale: z.ZodOptional; flow_shift: z.ZodOptional; high_noise_steps: z.ZodOptional; high_noise_sampler: z.ZodOptional>; high_noise_scheduler: z.ZodOptional>; high_noise_cfg_scale: z.ZodOptional; high_noise_flow_shift: z.ZodOptional; moe_boundary: z.ZodOptional; vace_strength: z.ZodOptional; control_frames: z.ZodOptional>; vae_tiling: z.ZodOptional; vae_tile_size: z.ZodOptional>; vae_tile_overlap: z.ZodOptional; temporal_tiling: z.ZodOptional; cache_mode: z.ZodOptional>; cache_preset: z.ZodOptional; cache_threshold: z.ZodOptional; mode: z.ZodEnum<{ txt2vid: "txt2vid"; img2vid: "img2vid"; }>; init_image: z.ZodOptional; strength: z.ZodOptional; reference_images: z.ZodOptional>; reference_attention_strength: z.ZodOptional; reference_downscale_factor: z.ZodOptional>; }, z.core.$strip>; export declare const h3VideoRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; negative_prompt: z.ZodOptional; lora: z.ZodOptional; lora_strength: z.ZodOptional; stg_scale: z.ZodOptional; stg_block: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; video_frames: z.ZodOptional; fps: z.ZodOptional; seed: z.ZodOptional; steps: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; cfg_scale: z.ZodOptional; flow_shift: z.ZodOptional; high_noise_steps: z.ZodOptional; high_noise_sampler: z.ZodOptional>; high_noise_scheduler: z.ZodOptional>; high_noise_cfg_scale: z.ZodOptional; high_noise_flow_shift: z.ZodOptional; moe_boundary: z.ZodOptional; vace_strength: z.ZodOptional; control_frames: z.ZodOptional>; vae_tiling: z.ZodOptional; vae_tile_size: z.ZodOptional>; vae_tile_overlap: z.ZodOptional; temporal_tiling: z.ZodOptional; cache_mode: z.ZodOptional>; cache_preset: z.ZodOptional; cache_threshold: z.ZodOptional; mode: z.ZodEnum<{ txt2vid: "txt2vid"; img2vid: "img2vid"; }>; init_image: z.ZodOptional; strength: z.ZodOptional; reference_images: z.ZodOptional>; reference_attention_strength: z.ZodOptional; reference_downscale_factor: z.ZodOptional>; }, z.core.$strip>; export declare const nonLtxVideoRequestSchema: z.ZodObject<{ lora: z.ZodOptional; scheduler: z.ZodOptional>; lora_strength: z.ZodOptional; stg_scale: z.ZodOptional; stg_block: z.ZodOptional; reference_images: z.ZodOptional>; reference_attention_strength: z.ZodOptional; reference_downscale_factor: z.ZodOptional>; }, z.core.$strip>; export declare const singleExpertVideoRequestSchema: z.ZodObject<{ high_noise_steps: z.ZodOptional; high_noise_sampler: z.ZodOptional>; high_noise_scheduler: z.ZodOptional>; high_noise_cfg_scale: z.ZodOptional; high_noise_flow_shift: z.ZodOptional; moe_boundary: z.ZodOptional; }, z.core.$strip>; export type VideoRequest = z.input; export declare const videoStreamRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; negative_prompt: z.ZodOptional; lora: z.ZodOptional; lora_strength: z.ZodOptional; stg_scale: z.ZodOptional; stg_block: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; video_frames: z.ZodOptional; fps: z.ZodOptional; seed: z.ZodOptional; steps: z.ZodOptional; sampling_method: z.ZodOptional>; scheduler: z.ZodOptional>; cfg_scale: z.ZodOptional; flow_shift: z.ZodOptional; high_noise_steps: z.ZodOptional; high_noise_sampler: z.ZodOptional>; high_noise_scheduler: z.ZodOptional>; high_noise_cfg_scale: z.ZodOptional; high_noise_flow_shift: z.ZodOptional; moe_boundary: z.ZodOptional; vace_strength: z.ZodOptional; control_frames: z.ZodOptional>; vae_tiling: z.ZodOptional; vae_tile_size: z.ZodOptional>; vae_tile_overlap: z.ZodOptional; temporal_tiling: z.ZodOptional; cache_mode: z.ZodOptional>; cache_preset: z.ZodOptional; cache_threshold: z.ZodOptional; mode: z.ZodEnum<{ txt2vid: "txt2vid"; img2vid: "img2vid"; }>; init_image: z.ZodOptional; strength: z.ZodOptional; reference_images: z.ZodOptional>; reference_attention_strength: z.ZodOptional; reference_downscale_factor: z.ZodOptional>; type: z.ZodLiteral<"videoStream">; }, z.core.$strip>; export type VideoStreamRequest = z.input; type VideoClientParamsCommon = Omit & { control_frames?: Uint8Array[]; }; type VideoClientLoraParams = { lora?: never; lora_strength?: never; } | { lora: string; lora_strength?: number; }; export type VideoTxt2vidClientParams = (VideoClientParamsCommon & VideoClientLoraParams & { mode: 'txt2vid'; init_image?: never; strength?: never; reference_images?: never; reference_attention_strength?: never; reference_downscale_factor?: never; }) | (VideoClientParamsCommon & { mode: 'txt2vid'; init_image?: never; strength?: never; lora: string; lora_strength?: number; reference_images: readonly [Uint8Array]; video_frames: number; reference_attention_strength?: number; reference_downscale_factor?: 1; }); export type VideoImg2vidClientParams = VideoClientParamsCommon & VideoClientLoraParams & { mode: 'img2vid'; init_image: Uint8Array; strength?: number; reference_images?: never; reference_attention_strength?: never; reference_downscale_factor?: never; }; export type VideoClientParams = VideoTxt2vidClientParams | VideoImg2vidClientParams; export declare const upscaleStatsSchema: z.ZodObject<{ modelLoadMs: z.ZodOptional; upscaleMs: z.ZodOptional; totalUpscaleMs: z.ZodOptional; totalWallMs: z.ZodOptional; totalUpscales: z.ZodOptional; totalImages: z.ZodOptional; totalPixels: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; repeats: z.ZodOptional; backendDevice: z.ZodOptional>; }, z.core.$strip>; export type UpscaleStats = z.infer; export declare const upscaleRequestSchema: z.ZodObject<{ modelId: z.ZodString; image: z.ZodString; repeats: z.ZodOptional; }, z.core.$strip>; export type UpscaleRequest = z.input; export declare const upscaleStreamRequestSchema: z.ZodObject<{ modelId: z.ZodString; image: z.ZodString; repeats: z.ZodOptional; type: z.ZodLiteral<"upscaleStream">; }, z.core.$strip>; export type UpscaleStreamRequest = z.input; export declare const upscaleStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"upscaleStream">; data: z.ZodOptional; outputIndex: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; upscaleMs: z.ZodOptional; totalUpscaleMs: z.ZodOptional; totalWallMs: z.ZodOptional; totalUpscales: z.ZodOptional; totalImages: z.ZodOptional; totalPixels: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; repeats: z.ZodOptional; backendDevice: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export type UpscaleStreamResponse = z.infer; export type UpscaleClientParams = Omit & { image: Uint8Array; }; export declare const walkKeySchema: z.ZodEnum<{ W: "W"; A: "A"; S: "S"; D: "D"; I: "I"; J: "J"; K: "K"; L: "L"; }>; export type WalkKey = z.infer; /** * Keys held for one block, as accepted by the client helpers: an array * (`['W', 'J']`), a keys object (`{ W: true }`), or a raw 8-bit mask * (bit 0..7 = W,A,S,D,I,J,K,L). All three normalize to the array form * before the request goes on the wire. */ export type WalkKeysInput = number | readonly string[] | Readonly>; export declare const worldStepStatsSchema: z.ZodObject<{ modelLoadMs: z.ZodOptional; stepMs: z.ZodOptional; totalStepMs: z.ZodOptional; totalSteps: z.ZodOptional; totalFrames: z.ZodOptional; frames: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; actionMask: z.ZodOptional; }, z.core.$strip>; export type WorldStepStats = z.infer; export declare const worldSceneStatsSchema: z.ZodObject<{ sceneCreateMs: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; }, z.core.$strip>; export type WorldSceneStats = z.infer; export declare const worldStepRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; keys: z.ZodOptional>>; }, z.core.$strip>; export type WorldStepRequest = z.input; export declare const worldStepStreamRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; keys: z.ZodOptional>>; type: z.ZodLiteral<"worldStepStream">; }, z.core.$strip>; export type WorldStepStreamRequest = z.input; export declare const worldStepStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"worldStepStream">; step: z.ZodOptional; totalSteps: z.ZodOptional; elapsedMs: z.ZodOptional; data: z.ZodOptional; frameIndex: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; stepMs: z.ZodOptional; totalStepMs: z.ZodOptional; totalSteps: z.ZodOptional; totalFrames: z.ZodOptional; frames: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; actionMask: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type WorldStepStreamResponse = z.infer; /** * Per-axis ceiling for a generated world. Neither the SDK nor the addon bounded * these before: the addon checks only "positive multiple of 32", and the pack * ceiling in ops/world.ts runs after native generation has already allocated the * GPU buffers and written the file, so it cannot prevent the OOM. */ export declare const MAX_SCENE_DIMENSION = 4096; /** * Total pixel budget, ~1080p rounded onto the 32 grid. Bounds the product as * well as each axis, so 4096x4096 is refused even though both axes pass. The * validated 832x480 tier sits 5x under it. */ export declare const MAX_SCENE_PIXELS: number; /** * Ceiling on the ENCODED first frame — what crosses the wire, not what the * decoder allocates. Those differ by orders of magnitude for a compressed * format, so this is not the decompression-bomb guard; the declared-dimension * check in `ops/world.ts` is. This one keeps a multi-megabyte base64 string off * the worker in the first place. * * 3 MB is generous for a frame that ends up at most 1920x1088 — and it is also * the largest value this can be *enforced* at today. `BASE64_PATTERN` is a * starred quad group that both engines give up on a little above this ceiling, * but differently, and the difference matters: measured at 4.8M characters, JSC * (Bun) returns `false`, while **V8 — which is what Bare runs — THROWS * `RangeError: Maximum call stack size exceeded`**. Since Zod runs every string * check regardless of order, a larger image reaches the pattern even after * `.max()` fails, so `safeParse` throws instead of reporting `too_big`. * 3 MB decodes to 4194304 characters, inside the range that still matches on * both. The client guards the raw byte length before encoding for the same * reason (see `createWorldSceneResult`). The pattern is shared with the * diffusion, upscale and VLA image fields, so fixing it belongs in its own * change. */ export declare const MAX_SCENE_IMAGE_BYTES: number; /** * Base64 characters for `MAX_SCENE_IMAGE_BYTES`, four per three bytes. The * ceiling is enforced on the encoded length rather than the decoded one so it * costs a string compare instead of a decode — and, since padding only ever * shortens the payload, a string within this many characters can never exceed * `MAX_SCENE_IMAGE_BYTES` once decoded. */ export declare const MAX_SCENE_IMAGE_BASE64_CHARS: number; /** * Cross-field ceilings for a scene request. Kept as a named function because * both the plain and the stream request schema have to enforce it, and because * the pixel budget is a contract worth testing directly. */ export declare function refineWorldSceneBudget(value: { width?: number | undefined; height?: number | undefined; }, ctx: z.RefinementCtx): void; export declare const worldSceneRequestSchema: z.ZodObject<{ modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; image: z.ZodString; width: z.ZodOptional; height: z.ZodOptional; returnPack: z.ZodOptional; }, z.core.$strip>; export type WorldSceneRequest = z.input; export declare const worldSceneStreamRequestSchema: z.ZodObject<{ type: z.ZodLiteral<"worldSceneStream">; modelId: z.ZodString; requestId: z.ZodOptional; prompt: z.ZodString; image: z.ZodString; width: z.ZodOptional; height: z.ZodOptional; returnPack: z.ZodOptional; }, z.core.$strip>; export type WorldSceneStreamRequest = z.input; export declare const worldSceneStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"worldSceneStream">; data: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type WorldSceneStreamResponse = z.infer; export type WorldStepClientParams = Omit & { keys?: WalkKeysInput; }; export type WorldSceneClientParams = Omit & { image: Uint8Array; }; export {};