export declare function samplesToWav(samples: Float32Array, sampleRate: number): Blob;
/** Stop any audio currently playing via playAudioSamples(). No-op if nothing is playing. */
export declare function stopAudioPlayback(): void;
export declare function playAudioSamples(samples: Float32Array, sampleRate: number): Promise<void>;
/**
 * Decode a 16-bit PCM WAV ArrayBuffer into Float32 samples.
 * Returns null if the format is not supported.
 */
export declare function decodeWav(buffer: ArrayBuffer): {
    samples: Float32Array;
    sampleRate: number;
} | null;
/**
 * Fetch an audio file and decode it to Float32 samples.
 * Tries WAV decoding first, falls back to AudioContext.decodeAudioData.
 */
export declare function fetchAndDecodeAudio(url: string): Promise<{
    samples: Float32Array;
    sampleRate: number;
}>;
//# sourceMappingURL=audioUtils.d.ts.map