declare var YT: any; interface MepYoutubeLoadObject { videoId: string; startSeconds?: number; endSeconds?: number; } interface MepYoutubePlayerVars { autoplay?: number; startSeconds?: number; endSeconds?: number; } interface MepYoutubeContent { videoId: string; playerVars?: MepYoutubePlayerVars; width?: number; height?: number; } /** * Class representing a YouTube player. */ declare class mep_youtube { #private; static youtube_api_loaded: number; static youtube_api_promise: (() => void)[]; player: HTMLElement; autoplay: number; startSeconds: number; endSeconds: number; el: HTMLElement; YT_player: any; use_nocookie: boolean; /** * Create a new YouTube player instance. */ constructor(replacing_element: string | HTMLElement, content: MepYoutubeContent, player_set_event_function?: (player: HTMLElement) => void); /** * Play the video. */ playVideo(): void; /** * Pause the video. */ pauseVideo(): void; /** * Get the current time of the video. */ getCurrentTime(): number; /** * Get the duration of the video. */ getDuration(): number; /** * Get the actual duration between the start and end times. */ getRealDulation(): number; /** * Seek to a specific time in the video. */ seekTo(time: number): void; /** * Set the volume of the player. */ setVolume(volume: number): void; /** * Mute the player. */ mute(): void; /** * Unmute the player. */ unMute(): void; /** * Check if the player is muted. */ isMuted(): boolean; /** * Get the current volume of the player. */ getVolume(): number; /** * Get the current state of the player. */ getPlayerState(): number; /** * Get the title of the currently loaded video. */ getTitle(): string; /** * Load a new video by ID. */ loadVideoById(content: MepYoutubeLoadObject | string, startSeconds?: number): void; /** * Cue a new video by ID. */ cueVideoById(content: MepYoutubeLoadObject | string, startSeconds?: number): void; } //# sourceMappingURL=youtube.d.ts.map