import type { TextToSpeechResponse } from "./api/types/TextToSpeechResponse.js"; export type TextToSpeechLike = Pick; export interface PlayOptions { /** * - In Node: when true, uses `ffplay` (from ffmpeg). When false, throws (no built-in fallback). * - In browsers: ignored (uses HTMLAudioElement). */ useFfmpeg?: boolean; } export interface SaveOptions { /** * If provided, saves only a single element from `audios`. * If omitted, concatenates all `audios` like the Python helper. */ index?: number; } /** * Concatenates `TextToSpeechResponse.audios` WAV base64 chunks into a single WAV byte array * (matching the Python SDK helper). * * If `options.index` is provided, it decodes only that one entry (no concatenation). */ export declare function toWavBytes(audio: TextToSpeechLike | string[], options?: SaveOptions): Uint8Array; export declare function save(audio: TextToSpeechLike | string[], filename: string, options?: SaveOptions): Promise; export declare function play(audio: TextToSpeechLike | string[], options?: PlayOptions): Promise;