import type { ListenV1Response as DeepgramTranscriptionResponse } from "@deepgram/sdk"; import type OpenAI from "openai"; import type { Uploadable } from "openai/uploads"; import type { EncryptionKeys } from "../types"; type BaseAudioTranscriptionParams = OpenAI.Audio.TranscriptionCreateParamsNonStreaming; type DeepgramAudioTranscriptionParams = { file: Uploadable; model: `deepgram/${string}`; diarize?: boolean; }; interface AudioTranslationParams { file: Uploadable; model: string; prompt?: string; response_format?: "json" | "text" | "verbose_json"; temperature?: number; } export interface AudioTranscriptionsClient { create(body: DeepgramAudioTranscriptionParams): Promise; create(body: BaseAudioTranscriptionParams & { response_format: "verbose_json"; }): Promise; create(body: BaseAudioTranscriptionParams & { response_format?: "json" | "text"; }): Promise; create(body: BaseAudioTranscriptionParams): Promise; } export interface AudioTranslationsClient { create(body: AudioTranslationParams & { response_format: "verbose_json"; }): Promise; create(body: AudioTranslationParams & { response_format?: "json" | "text"; }): Promise; create(body: AudioTranslationParams): Promise; } export interface AudioClient { transcriptions: AudioTranscriptionsClient; translations: AudioTranslationsClient; } export declare function createAudioClient(apiKey: string, encryptionKeys: EncryptionKeys, requestTimeoutMs?: number, attest?: boolean): AudioClient; export {};