/** * Play a short sound effect. * @param src - The source of the audio file. * @param volume - The volume of the audio (default is 1). */ export declare function playSfx(src: string, volume?: number, speed?: number): HTMLAudioElement | undefined | null; export declare const beep: () => void; /** * Play or loop background music. * @param src - The source of the audio file. * @param volume - The volume of the audio (default is 1). * @param loop - Whether the audio should loop (default is true). */ export declare function playBackgroundMusic(src: string, volume: number | undefined, loop: boolean | undefined, eventName: string): void; export declare function toggleBackgroundMusic(): void; /** * Stop the background music. */ export declare function stopBackgroundMusic(): void; /** * Set the playback position of the background music. * @param time - The time (in seconds) to set the playback position to. */ export declare function setBackgroundMusicPosition(time: number): void; export declare function fadeOut(): void;