/** * Configuration options for the AudioPlayer */ export interface AudioPlayerOptions { /** * ID of the HTML container element for the audio player (without the # prefix) */ ContainerID: string; /** * Default audio source URL */ DefaultSource: string; } /** * AudioPlayer - A class for creating customizable audio players with playlist support */ export declare class AudioPlayer { /** * Player configuration options */ private _opts; /** * Reference to the audio container DOM element */ private _audioContainer; /** * Creates an instance of AudioPlayer. * Initializes the audio player with the specified container and default source. * * @param opts - Configuration options * @throws Error if the container or audio element cannot be found */ constructor(opts: AudioPlayerOptions); /** * Adds playlist functionality to the audio player. * Sets up click event listeners on playlist items to switch audio sources * and update audio player elements (cover image, title, date, summary). * * @param playlistID - The ID of the playlist container element (without the # prefix) * @throws Error if the playlist element cannot be found */ withPlaylist(playlistID: string): void; } /** * Factory function to create an AudioPlayer instance * * @param audioContainerID - ID of the container element (without the # prefix) * @param defaultSource - Optional default audio source URL * @returns A new AudioPlayer instance */ export declare const createAudioPlayer: (audioContainerID: string, defaultSource?: string) => AudioPlayer;