import { type TranscribeClientParams, type RPCOptions, type TranscribeSegment, type TranscribeStreamClientParams, type TranscribeStreamSession, type TranscribeStreamMetadataSession, type TranscribeStreamConversationSession } from "../../schemas/index"; /** * Transcribe audio and return the complete text. Accepts either a file * path or an audio buffer. * * @param params - Transcription parameters. * @param params.modelId - The identifier of the transcription model to use * @param params.audioChunk - Audio input as either a file path (string) or audio buffer * @param params.prompt - Optional initial prompt to guide the transcription * @param params.metadata - When true, resolves to an array of transcript * segments (`{ text, startMs, endMs, append, id }`) * instead of joined text. Whisper engine only. * @param options - Optional RPC options including per-call profiling * @returns A promise (decorated with `requestId`) resolving to the * complete transcribed text, or — when `metadata` is true — * the list of transcript segments in emission order. The * `requestId` is reachable synchronously so callers can target * this in-flight transcription with `cancel({ requestId })` * before `await` resolves. */ export declare function transcribe(params: TranscribeClientParams & { metadata: true; }, options?: RPCOptions): Promise & { requestId: string; }; export declare function transcribe(params: TranscribeClientParams, options?: RPCOptions): Promise & { requestId: string; }; /** * @deprecated Pass audio via `transcribe()` instead. This overload will be * removed in the next major version. * * Streaming transcription with upfront audio: sends full audio, yields text * chunks as they arrive. * * @overloadLabel "Upfront audio (deprecated)" * @param params - Transcription parameters including audio source. * @param options - Optional RPC options including per-call profiling. * @returns An async generator yielding text chunks as they become available. */ export declare function transcribeStream(params: TranscribeClientParams & { metadata: true; }, options?: RPCOptions): AsyncGenerator; export declare function transcribeStream(params: TranscribeClientParams, options?: RPCOptions): AsyncGenerator; /** * Opens a bidirectional streaming transcription session. Audio is streamed * in via `write()`, and transcription text is yielded as the model's VAD * detects complete speech segments. * * The returned session is single-use. Attempting to iterate a second * time will throw a `TranscriptionFailedError`. * * @overloadLabel "Bidirectional session" * @param params - Streaming transcription parameters. * @param params.modelId - The loaded transcription model to use * @param params.prompt - Optional initial prompt to guide transcription * @param params.metadata - When true, the session yields transcript segment * objects (`{ text, startMs, endMs, append, id }`) * instead of plain text. Whisper engine only. * @param options - Optional RPC options including per-call profiling. * @returns A session object: call `write(audioChunk)` with a `Uint8Array` * (Node `Buffer` is a `Uint8Array` subtype) to feed audio, * iterate with `for await (...)` to receive transcription, and * `end()` to signal end of audio. */ export declare function transcribeStream(params: TranscribeStreamClientParams & { emitVadEvents: true; }, options?: RPCOptions): Promise; export declare function transcribeStream(params: TranscribeStreamClientParams & { parakeetStreamingConfig: NonNullable; }, options?: RPCOptions): Promise; export declare function transcribeStream(params: TranscribeStreamClientParams & { metadata: true; }, options?: RPCOptions): Promise; export declare function transcribeStream(params: TranscribeStreamClientParams, options?: RPCOptions): Promise; //# sourceMappingURL=transcribe.d.ts.map