import { AbstractTTSClient } from "../core/abstract-tts.js"; import type { SpeakOptions, TTSCredentials, UnifiedVoice } from "../types.js"; export interface DeepgramTTSOptions extends SpeakOptions { model?: string; voice?: string; format?: "mp3" | "wav" | "ogg" | "opus" | "aac" | "flac" | "pcm"; outputDir?: string; outputFile?: string; returnWordBoundaries?: boolean; onEnd?: () => void; providerOptions?: Record; } export interface DeepgramTTSCredentials extends TTSCredentials { apiKey?: string; baseURL?: string; model?: string; properties?: Record | string; propertiesJson?: string; } export declare class DeepgramTTSClient extends AbstractTTSClient { private apiKey; private baseUrl; private model; static readonly VOICES: ({ id: string; name: string; gender: "Female"; language: string; } | { id: string; name: string; gender: "Male"; language: string; })[]; constructor(credentials?: DeepgramTTSCredentials); private applyCredentialProperties; private prepareText; setModel(model: string): void; setVoice(voiceId: string): void; getProperty(property: string): any; setProperty(property: string, value: any): void; checkCredentials(): Promise; protected getRequiredCredentials(): string[]; protected _getVoices(): Promise; protected _mapVoicesToUnified(rawVoices: any[]): Promise; synthToBytes(text: string, options?: DeepgramTTSOptions): Promise; synthToBytestream(text: string, options?: DeepgramTTSOptions): Promise<{ audioStream: ReadableStream; wordBoundaries: Array<{ text: string; offset: number; duration: number; }>; }>; }