import { ChangeEvent } from 'react'; type LogLevel = 'debug' | 'error' | 'info' | 'warn'; type PlayerState = 'Buffering' | 'Ended' | 'Idle' | 'Playing' | 'Ready'; interface Quality { bitrate: number; codecs: string; name: string; height: number; width: number; } interface BufferRange { end: number; start: number; } export interface MediaPlayer { addEventListener: (name: string, fn: (payload: Event) => void) => void; attachHTMLVideoElement: (videoElement: HTMLVideoElement) => void; delete: () => void; getBufferDuration: () => number; getBuffered: () => BufferRange; getDisplayHeight: () => number; getDisplayWidth: () => number; getDuration: () => number; getHTMLVideoElement: () => HTMLVideoElement; getLiveLatency: () => number; getPlaybackRate: () => number; getPosition: () => number; getQualities: () => Quality[]; getQuality: () => Quality; getSessionId: () => string | undefined; getState: () => PlayerState; getVersion: () => string; getVolume: () => number; isAutoQualityMode: () => boolean; isAutoplay: () => boolean; isLiveLowLatency: () => boolean; isMuted: () => boolean; isPaused: () => boolean; load: (path: string, mediaType?: string) => void; pause: () => void; play: () => void; removeEventListener: (name: string, fn: (payload: Event) => void) => void; seekTo: (time: number) => void; setAutoMaxBitrate: (bitrate: number) => void; setAutoMaxQuality: (quality: Quality) => void; setAutoQualityMode: (enable: boolean) => void; setAutoplay: (enabled: boolean) => void; setLiveLowLatencyEnabled: (enable: boolean) => void; setLogLevel: (level: LogLevel) => void; setMuted: (mute: boolean) => void; setPlaybackRate: (rate: number) => void; setQuality: (quality: Quality, adaptive?: boolean) => void; setVolume: (volume: number) => void; } export interface HTMLVideoPicture { requestPictureInPicture(): void; onleavepictureinpicture(): void; webkitEnterFullscreen(): void; webkitExitFullScreen(): void; webkitDisplayingFullscreen: boolean; } export type StreamPlayerType = HTMLVideoPicture & HTMLVideoElement; export type Dimensions = { width: number; height: number; }; interface HighlightProps { detector: boolean; fullScreen: boolean; handleFullScreen: () => void; handleFullScreenMobile: () => void; } export type PlayerControls = { BUFFERING: string; firstTimeMuted: boolean; fullScreen: boolean; handleFullScreen: () => void; handleFullScreenMobile: () => void; handleMainButton: () => void; handleMobileOptions: () => void; handleMute: () => void; handleNothing: () => void; handlePictureAndPicture: () => void; handleVolume: (e: ChangeEvent) => void; IDLE: string; inactive: boolean; isVerticalLayout: boolean; muted: boolean; overlay: boolean; pictureInPicture: boolean; PLAYING: string; setInactive: React.Dispatch>; setOverlay: React.Dispatch>; showOptions: boolean; status: string; videoEl: React.RefObject; volume: number; progress: number; handleVideoProgress: (e: ChangeEvent) => void; handleOpenShare: () => void; isFinalized: boolean; setShowVariation: React.Dispatch>; transmitionType: string | undefined; isMobile: boolean; showCarouselChat: boolean | undefined; showSidebarProducts: boolean | undefined; collectionId?: string; isModalLive?: boolean | undefined; handleModalMobile?: () => void; isModalLiveFromServer?: boolean; showHoverOptions: boolean; setShowHoverOptions: React.Dispatch>; handleHideOnInactivity: (isPaused?: boolean) => void; handleBackTenSeconds: () => void; handleAdvanceTenSeconds: () => void; currentTime: string; duration: string; variationSelectorState: [ string, React.Dispatch> ]; highlightProps: HighlightProps; }; export type PlayerMobileHoverControls = { firstTimeMuted: boolean; handleNothing: () => void; status: string; isFinalized: boolean; isMobile: boolean; handleMainButton: () => void; showHoverOptions: boolean; handleAdvanceTenSeconds: () => void; handleBackTenSeconds: () => void; handleHideOnInactivity: (isPaused?: boolean) => void; setShowHoverOptions: React.Dispatch>; pictureInPicture: boolean; isVerticalLayout: boolean; }; export {};