import React, { PureComponent } from 'react'; import { NativeSyntheticEvent, HostComponent } from 'react-native'; import type { DurationChangeEvent, ErrorEvent, LoadedMetadataEvent, ReadyStateChangeEvent, THEOplayerViewComponent, THEOplayerViewProps, TimeUpdateEvent, ProgressEvent, PlayerError, SegmentNotFoundEvent, TextTrackListEvent, TextTrackEvent, AdEvent, AdsAPI, MediaTrackEvent, MediaTrackListEvent, CastAPI, CastEvent } from '@wouterds/react-native-theoplayer'; import type { SourceDescription } from '@wouterds/react-native-theoplayer'; interface THEOplayerRCTViewProps extends THEOplayerViewProps { ref: React.RefObject; src: SourceDescription; seek?: number; onNativeSourceChange: () => void; onNativeLoadStart: () => void; onNativeLoadedData: () => void; onNativeLoadedMetadata: (event: NativeSyntheticEvent) => void; onNativeReadyStateChange?: (event: NativeSyntheticEvent) => void; onNativeError: (event: NativeSyntheticEvent) => void; onNativeProgress: (event: NativeSyntheticEvent) => void; onNativePlay: () => void; onNativePlaying: () => void; onNativePause: () => void; onNativeSeeking: () => void; onNativeSeeked: () => void; onNativeEnded: () => void; onNativeTimeUpdate: (event: NativeSyntheticEvent) => void; onNativeDurationChange: (event: NativeSyntheticEvent) => void; onNativeSegmentNotFound: (event: NativeSyntheticEvent) => void; onNativeTextTrackListEvent: (event: NativeSyntheticEvent) => void; onNativeTextTrackEvent: (event: NativeSyntheticEvent) => void; onNativeMediaTrackListEvent: (event: NativeSyntheticEvent) => void; onNativeMediaTrackEvent: (event: NativeSyntheticEvent) => void; onNativeAdEvent: (event: NativeSyntheticEvent) => void; onNativeCastEvent: (event: NativeSyntheticEvent) => void; onNativeFullscreenPlayerWillPresent?: () => void; onNativeFullscreenPlayerDidPresent?: () => void; onNativeFullscreenPlayerWillDismiss?: () => void; onNativeFullscreenPlayerDidDismiss?: () => void; } interface THEOplayerRCTViewState { isBuffering: boolean; error?: PlayerError; } interface THEOplayerViewNativeComponent extends THEOplayerViewComponent, HostComponent { setNativeProps: (props: Partial) => void; } export declare class THEOplayerView extends PureComponent implements THEOplayerViewComponent { private readonly _root; private readonly _adsApi; private readonly _castApi; private static initialState; constructor(props: THEOplayerRCTViewProps); componentWillUnmount(): void; private destroyTheoPlayer; seek(time: number): void; get nativeHandle(): number | null; get ads(): AdsAPI; get cast(): CastAPI; private reset; private setNativeProps; private maybeChangeBufferingState; private _onSourceChange; private _onLoadStart; private _onLoadedData; private _onLoadedMetadata; private _onError; private _onProgress; private _onPlay; private _onPlaying; private _onPause; private _onSeeking; private _onSeeked; private _onEnded; private _onReadStateChange; private _onTimeUpdate; private _onDurationChange; private _onSegmentNotFound; private _onTextTrackListEvent; private _onTextTrackEvent; private _onMediaTrackListEvent; private _onMediaTrackEvent; private _onAdEvent; private _onCastEvent; private _onFullscreenPlayerWillPresent; private _onFullscreenPlayerDidPresent; private _onFullscreenPlayerWillDismiss; private _onFullscreenPlayerDidDismiss; private buildWrapperProps; render(): JSX.Element; } export {};