import { z } from "zod"; export declare const audioInputSchema: 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">; export declare const transcribeParamsSchema: z.ZodObject<{ modelId: z.ZodString; prompt: z.ZodOptional; metadata: z.ZodOptional; audioChunk: 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">; }, z.core.$strip>; export declare const transcribeStatsSchema: z.ZodObject<{ audioDuration: z.ZodOptional; realTimeFactor: z.ZodOptional; tokensPerSecond: z.ZodOptional; totalTokens: z.ZodOptional; totalSegments: z.ZodOptional; whisperEncodeTime: z.ZodOptional; whisperDecodeTime: z.ZodOptional; encoderTime: z.ZodOptional; decoderTime: z.ZodOptional; melSpecTime: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; gpuMemTotalMb: z.ZodOptional; gpuMemFreeMb: z.ZodOptional; }, z.core.$strip>; export declare const transcribeSegmentSchema: z.ZodObject<{ text: z.ZodString; startMs: z.ZodNumber; endMs: z.ZodNumber; append: z.ZodBoolean; id: z.ZodNumber; }, z.core.$strip>; export declare const vadStateEventSchema: z.ZodObject<{ speaking: z.ZodBoolean; probability: z.ZodNumber; }, z.core.$strip>; export declare const whisperEndOfTurnEventSchema: z.ZodObject<{ source: z.ZodLiteral<"whisper">; silenceDurationMs: z.ZodNumber; }, z.core.$strip>; export declare const parakeetEndOfTurnEventSchema: z.ZodObject<{ source: z.ZodLiteral<"parakeet">; }, z.core.$strip>; export declare const endOfTurnEventSchema: z.ZodPreprocess; silenceDurationMs: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ source: z.ZodLiteral<"parakeet">; }, z.core.$strip>], "source">>; export declare const transcribeRequestSchema: z.ZodObject<{ modelId: z.ZodString; prompt: z.ZodOptional; metadata: z.ZodOptional; audioChunk: 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<"transcribe">; requestId: z.ZodOptional; }, z.core.$strip>; export declare const transcribeResponseSchema: z.ZodObject<{ text: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; realTimeFactor: z.ZodOptional; tokensPerSecond: z.ZodOptional; totalTokens: z.ZodOptional; totalSegments: z.ZodOptional; whisperEncodeTime: z.ZodOptional; whisperDecodeTime: z.ZodOptional; encoderTime: z.ZodOptional; decoderTime: z.ZodOptional; melSpecTime: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; gpuMemTotalMb: z.ZodOptional; gpuMemFreeMb: z.ZodOptional; }, z.core.$strip>>; error: z.ZodOptional; segment: z.ZodOptional>; vad: z.ZodOptional>; endOfTurn: z.ZodOptional; silenceDurationMs: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ source: z.ZodLiteral<"parakeet">; }, z.core.$strip>], "source">>>; type: z.ZodLiteral<"transcribe">; }, z.core.$strip>; export type AudioInput = z.infer; export type TranscribeParams = z.infer; export type TranscribeSegment = z.infer; export type TranscribeClientParams = { modelId: string; audioChunk: string | Buffer; prompt?: string; metadata?: boolean; }; export type TranscribeRequest = z.infer; export type TranscribeResponse = z.infer; /** * Per-call overrides for parakeet's duplex streaming session. * * Each field maps to its `streaming*`-prefixed counterpart in * `parakeetConfig` (see `parakeetRuntimeConfigSchema`). The `streaming` * prefix is intentionally dropped here because every field on this * object is already namespaced under the `parakeetStreamingConfig` * field of `transcribeStream({ ... })`. Any field omitted falls back * to the load-time value. */ export declare const parakeetStreamingRunConfigSchema: z.ZodObject<{ chunkMs: z.ZodOptional; historyMs: z.ZodOptional; leftContextMs: z.ZodOptional; rightLookaheadMs: z.ZodOptional; emitPartials: z.ZodOptional; emitEnergyVad: z.ZodOptional; spkCacheEnable: z.ZodOptional; spkCacheLen: z.ZodOptional; fifoLen: z.ZodOptional; chunkLeftContextMs: z.ZodOptional; chunkRightContextMs: z.ZodOptional; spkCacheUpdatePeriod: z.ZodOptional; }, z.core.$strip>; export type ParakeetStreamingRunConfig = z.infer; export declare const transcribeStreamRequestSchema: z.ZodObject<{ modelId: z.ZodString; prompt: z.ZodOptional; metadata: z.ZodOptional; type: z.ZodLiteral<"transcribeStream">; emitVadEvents: z.ZodOptional; endOfTurnSilenceMs: z.ZodOptional; vadRunIntervalMs: z.ZodOptional; parakeetStreamingConfig: z.ZodOptional; historyMs: z.ZodOptional; leftContextMs: z.ZodOptional; rightLookaheadMs: z.ZodOptional; emitPartials: z.ZodOptional; emitEnergyVad: z.ZodOptional; spkCacheEnable: z.ZodOptional; spkCacheLen: z.ZodOptional; fifoLen: z.ZodOptional; chunkLeftContextMs: z.ZodOptional; chunkRightContextMs: z.ZodOptional; spkCacheUpdatePeriod: z.ZodOptional; }, z.core.$strip>>; requestId: z.ZodOptional; }, z.core.$strip>; export declare const transcribeStreamResponseSchema: z.ZodObject<{ text: z.ZodOptional; done: z.ZodOptional; stats: z.ZodOptional; realTimeFactor: z.ZodOptional; tokensPerSecond: z.ZodOptional; totalTokens: z.ZodOptional; totalSegments: z.ZodOptional; whisperEncodeTime: z.ZodOptional; whisperDecodeTime: z.ZodOptional; encoderTime: z.ZodOptional; decoderTime: z.ZodOptional; melSpecTime: z.ZodOptional; backendDevice: z.ZodOptional; backendId: z.ZodOptional; gpuMemTotalMb: z.ZodOptional; gpuMemFreeMb: z.ZodOptional; }, z.core.$strip>>; error: z.ZodOptional; segment: z.ZodOptional>; vad: z.ZodOptional>; endOfTurn: z.ZodOptional; silenceDurationMs: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ source: z.ZodLiteral<"parakeet">; }, z.core.$strip>], "source">>>; type: z.ZodLiteral<"transcribeStream">; }, z.core.$strip>; export type TranscribeStreamRequest = z.infer; export type TranscribeStreamResponse = z.infer; export type TranscribeStreamClientParams = { modelId: string; prompt?: string; metadata?: boolean; emitVadEvents?: boolean; endOfTurnSilenceMs?: number; vadRunIntervalMs?: number; parakeetStreamingConfig?: ParakeetStreamingRunConfig; }; export interface TranscribeStreamSession { write(audioChunk: Uint8Array): void; end(): void; destroy(): void; [Symbol.asyncIterator](): AsyncIterator; } export interface TranscribeStreamMetadataSession { write(audioChunk: Uint8Array): void; end(): void; destroy(): void; [Symbol.asyncIterator](): AsyncIterator; } export type VadStateEvent = z.infer; export type WhisperEndOfTurnEvent = z.infer; export type ParakeetEndOfTurnEvent = z.infer; export type EndOfTurnEvent = z.infer; export type TranscribeStreamEvent = { type: "text"; text: string; } | { type: "segment"; segment: TranscribeSegment; } | ({ type: "vad"; } & VadStateEvent) | ({ type: "endOfTurn"; } & EndOfTurnEvent); export interface TranscribeStreamConversationSession { write(audioChunk: Uint8Array): void; end(): void; destroy(): void; [Symbol.asyncIterator](): AsyncIterator; } export type TranscribeStats = z.infer; //# sourceMappingURL=transcription.d.ts.map