/**
 * Speaks the text using the local koroko speech at localhost:3000
 * @param text
 * @param volume
 */
export declare const speakText: (text: string, volume: number, mp3Url?: string) => Promise<void>;
/**
 * Speaks the given text, canceling any currently playing speech first
 * @param text The text to speak
 * @returns A promise that resolves when speech is finished
 */
export declare const speakTextFallback: (text: string, volume: number, mp3Url?: string) => Promise<void>;
/**
 * Immediately stops any ongoing speech synthesis or audio playback
 */
export declare const stopSpeaking: () => void;
/**
 * Checks if speech synthesis is currently active
 * @returns True if something is being spoken, false otherwise
 */
export declare const isSpeaking: () => boolean;
export declare const playAudio: (url: string) => Promise<void>;
export declare const fetchAudioAsDataURL: (url: string) => Promise<string>;
