import { z } from 'zod'; import { type InferenceBackendDiagnostics } from './system-resources.js'; export declare const AUDIOGEN_ENGINES: readonly ["acestep", "minimax"]; export declare const audioGenEngineSchema: z.ZodEnum<{ acestep: "acestep"; minimax: "minimax"; }>; /** Sample rate the ACE-Step engine expects for reference and source audio. */ export declare const AUDIOGEN_INPUT_SAMPLE_RATE = 48000; /** Channel count (interleaved stereo) the ACE-Step engine expects for input audio. */ export declare const AUDIOGEN_INPUT_CHANNELS = 2; /** * Longest reference/source clip the SDK accepts (10 minutes). Bounds the PCM * the server materializes per input — a 48 kHz stereo Float32 clip weighs * 384 KB per second — so a request cannot exhaust the inference process. */ export declare const AUDIOGEN_INPUT_MAX_SECONDS = 600; /** Longest `audioCodes` array the SDK accepts (600 s at 5 codes per second). */ export declare const AUDIOGEN_MAX_AUDIO_CODES: number; /** * Operations `audioEdit()` chains over a source recording, in the vocabulary * of `@qvac/audiogen-ggml`'s `AudioEditOperationType` (ACE-Step only): * `flow-edit` re-conditions the whole clip from a source prompt to a target * prompt, `repaint` regenerates a time range against a new prompt. */ export declare const AUDIOGEN_EDIT_OPERATIONS: readonly ["flow-edit", "repaint"]; export declare const audioGenEditOperationTypeSchema: z.ZodEnum<{ "flow-edit": "flow-edit"; repaint: "repaint"; }>; /** Repaint preservation modes; `balanced` is the default and honours `strength`. */ export declare const AUDIOGEN_REPAINT_MODES: readonly ["conservative", "balanced", "aggressive"]; export declare const audioGenRepaintModeSchema: z.ZodEnum<{ conservative: "conservative"; balanced: "balanced"; aggressive: "aggressive"; }>; /** * ACE-Step task discriminators reachable through the SDK. `text2music` is the * default caption-driven generation; `cover-nofsq` re-renders `sourceAudio` * with a new caption while keeping its structure; `lego` regenerates a single * instrument layer of `sourceAudio`, named by `track`. The engine also * reserves an FSQ-roundtrip `cover` task that is not implemented yet, so it is * not offered here. */ export declare const AUDIOGEN_TASK_TYPES: readonly ["text2music", "cover-nofsq", "lego"]; export declare const audioGenTaskTypeSchema: z.ZodEnum<{ text2music: "text2music"; "cover-nofsq": "cover-nofsq"; lego: "lego"; }>; /** Instrument layers the `lego` task can target, in the engine's vocabulary. */ export declare const AUDIOGEN_TRACKS: readonly ["vocals", "backing_vocals", "drums", "bass", "guitar", "keyboard", "percussion", "strings", "synth", "fx", "brass", "woodwinds"]; export declare const audioGenTrackSchema: z.ZodEnum<{ vocals: "vocals"; backing_vocals: "backing_vocals"; drums: "drums"; bass: "bass"; guitar: "guitar"; keyboard: "keyboard"; percussion: "percussion"; strings: "strings"; synth: "synth"; fx: "fx"; brass: "brass"; woodwinds: "woodwinds"; }>; declare const acestepAudioGenRuntimeConfigSchema: z.ZodObject<{ inferenceSteps: z.ZodOptional; shift: z.ZodOptional; nGpuLayers: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodOptional>; }, z.core.$strict>; declare const minimaxAudioGenRuntimeConfigSchema: z.ZodObject<{ device: z.ZodOptional>; inferenceSteps: z.ZodOptional; cfgScale: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodLiteral<"minimax">; }, z.core.$strict>; export declare const audioGenRuntimeConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ inferenceSteps: z.ZodOptional; shift: z.ZodOptional; nGpuLayers: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ device: z.ZodOptional>; inferenceSteps: z.ZodOptional; cfgScale: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodLiteral<"minimax">; }, z.core.$strict>], "engine">; declare const acestepAudioGenConfigSchema: z.ZodObject<{ inferenceSteps: z.ZodOptional; shift: z.ZodOptional; nGpuLayers: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodOptional>; textEncModelSrc: z.ZodUnion; 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>]>; lmModelSrc: z.ZodUnion; 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>]>; ditModelSrc: z.ZodUnion; 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.ZodUnion; 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>]>; }, z.core.$strict>; declare const minimaxAudioGenConfigSchema: z.ZodObject<{ lmModelSrc: z.ZodUnion; 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>]>; synthModelSrc: z.ZodUnion; 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>]>; device: z.ZodOptional>; inferenceSteps: z.ZodOptional; cfgScale: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodLiteral<"minimax">; }, z.core.$strict>; export declare const audioGenConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ inferenceSteps: z.ZodOptional; shift: z.ZodOptional; nGpuLayers: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodOptional>; textEncModelSrc: z.ZodUnion; 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>]>; lmModelSrc: z.ZodUnion; 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>]>; ditModelSrc: z.ZodUnion; 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.ZodUnion; 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>]>; }, z.core.$strict>, z.ZodObject<{ lmModelSrc: z.ZodUnion; 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>]>; synthModelSrc: z.ZodUnion; 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>]>; device: z.ZodOptional>; inferenceSteps: z.ZodOptional; cfgScale: z.ZodOptional; useGPU: z.ZodOptional; threads: z.ZodOptional; backendsDir: z.ZodOptional; engine: z.ZodLiteral<"minimax">; }, z.core.$strict>], "engine">; /** * Wire form of a reference/source audio input. `filePath` inputs are decoded * server-side (any format the SDK's audio decoder supports, plus raw PCM); * `base64` inputs must already be interleaved stereo 48 kHz Float32 LE PCM. */ export declare const audioGenAudioInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">; /** * Client form of a reference/source audio input: a file path, or raw * interleaved stereo 48 kHz Float32 LE PCM bytes. Normalized to the wire form. */ export declare const audioGenClientAudioInputSchema: z.ZodPipe>]>, z.ZodTransform<{ type: "base64"; value: string; } | { type: "filePath"; value: string; }, string | Uint8Array>>; /** * Client form of `audioCodes`: the `Int32Array` the addon works with, or a * plain number array. Normalized to the wire form. */ export declare const audioGenClientAudioCodesSchema: z.ZodPipe>, z.ZodTransform>>, z.ZodArray]>, z.ZodArray>; export declare const audioGenClientParamsSchema: z.ZodObject<{ audioCodes: z.ZodOptional>, z.ZodTransform>>, z.ZodArray]>, z.ZodArray>>; referenceAudio: z.ZodOptional>]>, z.ZodTransform<{ type: "base64"; value: string; } | { type: "filePath"; value: string; }, string | Uint8Array>>>; sourceAudio: z.ZodOptional>]>, z.ZodTransform<{ type: "base64"; value: string; } | { type: "filePath"; value: string; }, string | Uint8Array>>>; modelId: z.ZodString; caption: z.ZodString; lyrics: z.ZodOptional; seed: z.ZodOptional; vocalLanguage: z.ZodOptional; bpm: z.ZodOptional; keyscale: z.ZodOptional; timesignature: z.ZodOptional; augmentCaptionWithMetadata: z.ZodOptional; simpleMode: z.ZodOptional; rewriteQuery: z.ZodOptional; generateLrc: z.ZodOptional; computeQualityScore: z.ZodOptional; normalizeLoudness: z.ZodOptional; guidanceScale: z.ZodOptional; track: z.ZodOptional>; duration: z.ZodOptional; maxFrames: z.ZodOptional; inferenceSteps: z.ZodOptional; shift: z.ZodOptional; cfgScale: z.ZodOptional; lmTemperature: z.ZodOptional; lmTopP: z.ZodOptional; lmTopK: z.ZodOptional; lmCfgScale: z.ZodOptional; lmPhase1: z.ZodOptional; dcwEnabled: z.ZodOptional; dcwScaler: z.ZodOptional; dcwHighScaler: z.ZodOptional; taskType: z.ZodOptional>; audioCoverStrength: z.ZodOptional; coverNoiseStrength: z.ZodOptional; }, z.core.$strict>; export declare const audioGenStreamRequestSchema: z.ZodObject<{ type: z.ZodLiteral<"audioGenStream">; requestId: z.ZodOptional; audioCodes: z.ZodOptional>; referenceAudio: z.ZodOptional; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">>; sourceAudio: z.ZodOptional; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">>; modelId: z.ZodString; caption: z.ZodString; lyrics: z.ZodOptional; seed: z.ZodOptional; vocalLanguage: z.ZodOptional; bpm: z.ZodOptional; keyscale: z.ZodOptional; timesignature: z.ZodOptional; augmentCaptionWithMetadata: z.ZodOptional; simpleMode: z.ZodOptional; rewriteQuery: z.ZodOptional; generateLrc: z.ZodOptional; computeQualityScore: z.ZodOptional; normalizeLoudness: z.ZodOptional; guidanceScale: z.ZodOptional; track: z.ZodOptional>; duration: z.ZodOptional; maxFrames: z.ZodOptional; inferenceSteps: z.ZodOptional; shift: z.ZodOptional; cfgScale: z.ZodOptional; lmTemperature: z.ZodOptional; lmTopP: z.ZodOptional; lmTopK: z.ZodOptional; lmCfgScale: z.ZodOptional; lmPhase1: z.ZodOptional; dcwEnabled: z.ZodOptional; dcwScaler: z.ZodOptional; dcwHighScaler: z.ZodOptional; taskType: z.ZodOptional>; audioCoverStrength: z.ZodOptional; coverNoiseStrength: z.ZodOptional; }, z.core.$strict>; declare const audioEditPromptSchema: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; export declare const audioEditFlowEditOperationSchema: z.ZodObject<{ type: z.ZodLiteral<"flow-edit">; from: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; to: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; nMin: z.ZodOptional; nMax: z.ZodOptional; nAvg: z.ZodOptional; }, z.core.$strict>; export declare const audioEditRepaintOperationSchema: z.ZodObject<{ type: z.ZodLiteral<"repaint">; caption: z.ZodString; lyrics: z.ZodOptional; start: z.ZodNumber; end: z.ZodOptional; mode: z.ZodOptional>; strength: z.ZodOptional; }, z.core.$strict>; export declare const audioEditOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"flow-edit">; from: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; to: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; nMin: z.ZodOptional; nMax: z.ZodOptional; nAvg: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"repaint">; caption: z.ZodString; lyrics: z.ZodOptional; start: z.ZodNumber; end: z.ZodOptional; mode: z.ZodOptional>; strength: z.ZodOptional; }, z.core.$strict>], "type">; export declare const audioEditClientParamsSchema: z.ZodObject<{ sourceAudio: z.ZodPipe>]>, z.ZodTransform<{ type: "base64"; value: string; } | { type: "filePath"; value: string; }, string | Uint8Array>>; referenceAudio: z.ZodOptional>]>, z.ZodTransform<{ type: "base64"; value: string; } | { type: "filePath"; value: string; }, string | Uint8Array>>>; modelId: z.ZodString; operations: z.ZodArray; from: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; to: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; nMin: z.ZodOptional; nMax: z.ZodOptional; nAvg: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"repaint">; caption: z.ZodString; lyrics: z.ZodOptional; start: z.ZodNumber; end: z.ZodOptional; mode: z.ZodOptional>; strength: z.ZodOptional; }, z.core.$strict>], "type">>; seed: z.ZodOptional; vocalLanguage: z.ZodOptional; bpm: z.ZodOptional; keyscale: z.ZodOptional; timesignature: z.ZodOptional; augmentCaptionWithMetadata: z.ZodOptional; dcwEnabled: z.ZodOptional; dcwScaler: z.ZodOptional; dcwHighScaler: z.ZodOptional; inferenceSteps: z.ZodOptional; shift: z.ZodOptional; }, z.core.$strict>; export declare const audioEditStreamRequestSchema: z.ZodObject<{ sourceAudio: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">; referenceAudio: z.ZodOptional; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">>; type: z.ZodLiteral<"audioEditStream">; requestId: z.ZodOptional; modelId: z.ZodString; operations: z.ZodArray; from: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; to: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodOptional; }, z.core.$strict>; nMin: z.ZodOptional; nMax: z.ZodOptional; nAvg: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"repaint">; caption: z.ZodString; lyrics: z.ZodOptional; start: z.ZodNumber; end: z.ZodOptional; mode: z.ZodOptional>; strength: z.ZodOptional; }, z.core.$strict>], "type">>; seed: z.ZodOptional; vocalLanguage: z.ZodOptional; bpm: z.ZodOptional; keyscale: z.ZodOptional; timesignature: z.ZodOptional; augmentCaptionWithMetadata: z.ZodOptional; dcwEnabled: z.ZodOptional; dcwScaler: z.ZodOptional; dcwHighScaler: z.ZodOptional; inferenceSteps: z.ZodOptional; shift: z.ZodOptional; }, z.core.$strict>; export type AudioGenProgress = { stage: string; step: number; /** * Total number of steps when greater than zero. Values less than or equal to zero mean * indeterminate progress and must not be rendered as a `step / total` determinate progress value. */ total: number; }; export declare const audioGenProgressSchema: z.ZodObject<{ stage: z.ZodString; step: z.ZodNumber; total: z.ZodNumber; }, z.core.$strip>; /** * The LM's description of a clip, returned by `audioUnderstand()`. `audioCodes` * are the recovered FSQ codes, reusable as a generation's `audioCodes` input. */ export declare const audioGenUnderstandResultSchema: z.ZodObject<{ caption: z.ZodString; bpm: z.ZodNumber; duration: z.ZodNumber; keyscale: z.ZodString; timesignature: z.ZodString; vocalLanguage: z.ZodString; audioCodes: z.ZodArray; seed: z.ZodNumber; }, z.core.$strip>; /** * What an ACE-Step run rendered, after the LM filled in what the caller left * unset (Phase 1, Simple Mode, Query Rewriting). An edit reports its base seed * and the prompt metadata it was given, with an empty caption and no code * frames. MiniMax runs report none. */ export declare const audioGenGenerationMetadataSchema: z.ZodObject<{ caption: z.ZodString; lyrics: z.ZodString; bpm: z.ZodNumber; keyscale: z.ZodString; beatsPerBar: z.ZodNumber; vocalLanguage: z.ZodString; seed: z.ZodNumber; codeFrames: z.ZodNumber; qualityReport: z.ZodOptional; }, z.core.$strip>; export declare const audioGenStatsSchema: z.ZodObject<{ audioDurationMs: z.ZodOptional; totalTimeMs: z.ZodOptional; realTimeFactor: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; emittedFrames: z.ZodOptional; arMs: z.ZodOptional; conditionMs: z.ZodOptional; flowMs: z.ZodOptional; vocoderMs: z.ZodOptional; metadata: z.ZodOptional; }, z.core.$strip>>; lyricsScore: z.ZodOptional; lrc: z.ZodOptional; qualityScore: z.ZodOptional; understand: z.ZodOptional; seed: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; export declare const audioUnderstandClientParamsSchema: z.ZodObject<{ sourceAudio: z.ZodPipe>]>, z.ZodTransform<{ type: "base64"; value: string; } | { type: "filePath"; value: string; }, string | Uint8Array>>; modelId: z.ZodString; seed: z.ZodOptional; vocalLanguage: z.ZodOptional; lmTemperature: z.ZodOptional; lmTopP: z.ZodOptional; lmTopK: z.ZodOptional; }, z.core.$strict>; export declare const audioUnderstandRequestSchema: z.ZodObject<{ sourceAudio: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">; type: z.ZodLiteral<"audioUnderstand">; requestId: z.ZodOptional; modelId: z.ZodString; seed: z.ZodOptional; vocalLanguage: z.ZodOptional; lmTemperature: z.ZodOptional; lmTopP: z.ZodOptional; lmTopK: z.ZodOptional; }, z.core.$strict>; export declare const audioUnderstandResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"audioUnderstand">; progress: z.ZodOptional>; understand: z.ZodOptional; seed: z.ZodNumber; }, z.core.$strip>>; done: z.ZodDefault; stopReason: z.ZodOptional>; stats: z.ZodOptional; totalTimeMs: z.ZodOptional; realTimeFactor: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; emittedFrames: z.ZodOptional; arMs: z.ZodOptional; conditionMs: z.ZodOptional; flowMs: z.ZodOptional; vocoderMs: z.ZodOptional; metadata: z.ZodOptional; }, z.core.$strip>>; lyricsScore: z.ZodOptional; lrc: z.ZodOptional; qualityScore: z.ZodOptional; understand: z.ZodOptional; seed: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; diagnostics: z.ZodOptional; graphicsApi: z.ZodOptional>; driver: z.ZodOptional; }, z.core.$strip>>; gpuId: z.ZodOptional; fallback: z.ZodOptional; requestedDevice: z.ZodOptional>; reason: z.ZodString; }, z.core.$strip>>; probe: z.ZodOptional; backend: z.ZodString; reason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strict>; export declare const audioGenStreamResponseSchema: z.ZodObject<{ progress: z.ZodOptional>; data: z.ZodOptional; sampleRate: z.ZodOptional; channels: z.ZodOptional; bitsPerSample: z.ZodOptional; done: z.ZodDefault; stopReason: z.ZodOptional>; stats: z.ZodOptional; totalTimeMs: z.ZodOptional; realTimeFactor: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; emittedFrames: z.ZodOptional; arMs: z.ZodOptional; conditionMs: z.ZodOptional; flowMs: z.ZodOptional; vocoderMs: z.ZodOptional; metadata: z.ZodOptional; }, z.core.$strip>>; lyricsScore: z.ZodOptional; lrc: z.ZodOptional; qualityScore: z.ZodOptional; understand: z.ZodOptional; seed: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; diagnostics: z.ZodOptional; graphicsApi: z.ZodOptional>; driver: z.ZodOptional; }, z.core.$strip>>; gpuId: z.ZodOptional; fallback: z.ZodOptional; requestedDevice: z.ZodOptional>; reason: z.ZodString; }, z.core.$strip>>; probe: z.ZodOptional; backend: z.ZodString; reason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; type: z.ZodLiteral<"audioGenStream">; }, z.core.$strict>; export declare const audioEditStreamResponseSchema: z.ZodObject<{ progress: z.ZodOptional>; data: z.ZodOptional; sampleRate: z.ZodOptional; channels: z.ZodOptional; bitsPerSample: z.ZodOptional; done: z.ZodDefault; stopReason: z.ZodOptional>; stats: z.ZodOptional; totalTimeMs: z.ZodOptional; realTimeFactor: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; emittedFrames: z.ZodOptional; arMs: z.ZodOptional; conditionMs: z.ZodOptional; flowMs: z.ZodOptional; vocoderMs: z.ZodOptional; metadata: z.ZodOptional; }, z.core.$strip>>; lyricsScore: z.ZodOptional; lrc: z.ZodOptional; qualityScore: z.ZodOptional; understand: z.ZodOptional; seed: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; diagnostics: z.ZodOptional; graphicsApi: z.ZodOptional>; driver: z.ZodOptional; }, z.core.$strip>>; gpuId: z.ZodOptional; fallback: z.ZodOptional; requestedDevice: z.ZodOptional>; reason: z.ZodString; }, z.core.$strip>>; probe: z.ZodOptional; backend: z.ZodString; reason: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; type: z.ZodLiteral<"audioEditStream">; }, z.core.$strict>; export type AudioGenTaskType = z.infer; export type AudioGenEditOperationType = z.infer; export type AudioGenRepaintMode = z.infer; export type AudioEditPrompt = z.infer; export type AudioEditFlowEditOperation = z.infer; export type AudioEditRepaintOperation = z.infer; export type AudioEditOperation = z.infer; export type AudioEditClientParams = z.input; export type AudioEditStreamRequest = z.infer; export type AudioEditStreamResponse = z.infer; export type AudioGenEngine = z.infer; export type AudioGenAudioInput = z.infer; export type AcestepAudioGenRuntimeConfig = z.infer; export type MinimaxAudioGenRuntimeConfig = z.infer; export type AudioGenRuntimeConfig = z.infer; export type AcestepAudioGenConfig = z.infer; export type MinimaxAudioGenConfig = z.infer; export type AudioGenConfig = z.infer; export type AudioGenClientParams = z.input; export type AudioGenStreamRequest = z.infer; export type AudioGenStats = z.infer; export type AudioGenGenerationMetadata = z.infer; export type AudioGenStreamResponse = z.infer; export type AudioGenTrack = z.infer; export type AudioGenUnderstandResult = z.infer; export type AudioUnderstandClientParams = z.input; export type AudioUnderstandRequest = z.infer; export type AudioUnderstandResponse = z.infer; export interface AudioGenAudio { pcm: Uint8Array; sampleRate: number; channels: number; bitsPerSample: number; } export interface AudioGenResult { requestId: string; progressStream: AsyncGenerator; audio: Promise; stats: Promise; diagnostics: Promise; } /** * An `audioUnderstand()` run. Shaped like `AudioGenResult`, except the run * produces a description rather than audio. */ export interface AudioUnderstandResult { requestId: string; progressStream: AsyncGenerator; description: Promise; stats: Promise; diagnostics: Promise; } export {};