import { EVENTS } from 'griffith-message'; import React from 'react'; import { LocaleCode, PartialLocaleConfigMap } from '../constants/locales'; import { MessageContextValue } from '../contexts/MessageContext'; import { ObjectFit } from '../contexts/ObjectFitContext'; import { PlaybackRate, PlaySourceMap, ProgressDot, RealQuality, QualityOrder } from '../types'; type InnerPlayerProps = { children?: React.ReactNode; standalone?: boolean; enableCrossWindowMessage?: boolean; error?: { message?: string; }; title?: string; cover?: string; duration?: number; progressDots?: ProgressDot[]; onBeforePlay?: (currentSrc: string) => Promise; autoplay?: boolean; loop?: boolean; muted?: boolean; useMSE?: boolean; useAutoQuality?: boolean; alwaysShowVolumeButton?: boolean; disablePictureInPicture?: boolean; hiddenPlayButton?: boolean; hiddenTimeline?: boolean; hiddenTime?: boolean; hiddenQualityMenu?: boolean; hiddenVolume?: boolean; hiddenFullScreenButton?: boolean; hiddenPlaybackRateItem?: boolean; shouldShowPageFullScreenButton?: boolean; hideMobileControls?: boolean; hideCover?: boolean; noWriteDocTitle?: boolean; layerContent?: React.ReactNode; crossOrigin?: string | undefined; }; type OuterPlayerProps = { id: string; sources: PlaySourceMap; /** It's recommended to use `useMessageContextRef()` for better type annotation */ dispatchRef?: React.MutableRefObject; /** It's recommended to use `useMessageContextRef()` for better type annotation */ onEvent?: (name: EVENTS, data?: unknown) => void; messageContextRef?: React.MutableRefObject; initialObjectFit?: ObjectFit; defaultQuality?: RealQuality; defaultQualityOrder?: QualityOrder; playbackRates?: PlaybackRate[]; defaultPlaybackRate?: PlaybackRate; shouldObserveResize?: boolean; locale?: LocaleCode; localeConfig?: PartialLocaleConfigMap; }; export type PlayerProps = InnerPlayerProps & OuterPlayerProps; declare const _default: React.NamedExoticComponent; export default _default;