import * as React from 'react'; import { Source } from '../../types'; import Hls from '../../types/hls.js'; import DashJS from '../../types/dashjs'; export interface PlayerProps extends React.HTMLAttributes { sources: Source[]; hlsRef?: React.MutableRefObject; dashRef?: React.MutableRefObject; hlsConfig?: Hls['config']; changeSourceUrl?: (currentSourceUrl: string, source: Source) => string; onHlsInit?: (hls: Hls, currentSource: Source) => void; onDashInit?: (dash: DashJS.MediaPlayerClass, currentSource: Source) => void; onInit?: (videoEl: HTMLVideoElement) => void; autoPlay?: boolean; preferQuality?: (qualities: string[]) => string; hlsVersion?: string; dashVersion?: string; } declare const Player: React.ForwardRefExoticComponent>; export default Player;