import type { SmallestAITTSModel } from './models.js'; import { TTS } from '../../agents/providers.js'; /** Options for {@link SmallestAITTS}. */ export type SmallestAITTSOptions = { /** Smallest AI API key. Defaults to the `SMALLESTAI_API_KEY` environment variable. */ apiKey?: string; /** Voice name for synthesis (e.g. `'magnus'`, `'lauren'`). Takes precedence over `voiceId`. Default `'magnus'`. */ voice?: string; /** Voice id; compatibility alias for `voice`. Ignored when `voice` is also set. */ voiceId?: string; /** TTS model id. Default `'lightning_v3.1'`. */ model?: SmallestAITTSModel | string; /** Output audio sample rate in Hz. Default `24000`. */ sampleRate?: number; /** ISO 639-1 language code for the target voice. Default `'en'`. */ language?: string; /** Speaking rate multiplier; `null` uses the model default. Default `null`. */ speed?: number | null; /** Stream audio from the model. Default `true`. */ stream?: boolean; }; declare class SmallestAITTSImpl extends TTS { static readonly displayName = "SmallestAITTS"; _providerName: string; apiKey?: string; voiceId: string; voice: string; model: string; language: string; speed: number | null; ttsStream: boolean; constructor(opts?: SmallestAITTSOptions); getRuntimeConfig(): Record; } export type SmallestAITTS = SmallestAITTSImpl; /** Smallest AI text-to-speech (TTS) synthesizer. */ export declare const SmallestAITTS: (opts?: SmallestAITTSOptions) => SmallestAITTS; export {};