import type { FetchImpl, Usage } from "@oh-my-pi/pi-catalog/types"; import type { ApiKey } from "../auth-retry.js"; export declare const SPEECH_FORMATS: readonly ["mp3", "wav", "pcm", "opus", "aac", "flac"]; export type SpeechFormat = (typeof SPEECH_FORMATS)[number]; export declare const SPEECH_FORMAT_MIME_TYPES: Record; export interface SpeechRequest { text: string; voice?: string; format: SpeechFormat; speed?: number; sampleRate?: number; bitRate?: number; instructions?: string; } export interface SpeechResult { audio: Uint8Array; mimeType: string; usage: Usage; } export interface SpeechOptions { apiKey: ApiKey; fetch?: FetchImpl; signal?: AbortSignal; }