///
/**
* Audio buffer cache manager
* Avoids re-loading and re-decoding the same audio files
*
* Benefits:
* - Multiple Howl instances for the same sound share one AudioBuffer
* - Avoids redundant network requests and CPU-intensive decoding
* - Particularly important for frequently played sounds (like beeps)
*
* @private
*/
declare class AudioCache {
private cache;
/**
* Get a cached audio buffer promise
* @param src Audio source URL (data URI or file path)
* @returns Promise if cached, undefined otherwise
*/
get(src: string): Promise | undefined;
/**
* Cache an audio buffer promise
* @param src Audio source URL
* @param promise Promise that resolves to decoded AudioBuffer
*/
set(src: string, promise: Promise): void;
/**
* Clear all cached buffers (useful for cleanup or testing)
*/
clear(): void;
/**
* Get cache size (for monitoring)
*/
size(): number;
}
export { AudioCache };