import React from 'react'; import { ImageStyle, StyleProp } from 'react-native'; import type { VideoSource, VideoPlaybackRate } from './types'; interface NativeVideoPlayerProps { source: VideoSource; poster?: string; autoPlay?: boolean; loop?: boolean; muted?: boolean; volume?: number; playbackRate?: VideoPlaybackRate; onPlay?: () => void; onPause?: () => void; onTimeUpdate?: (time: number) => void; onDurationChange?: (duration: number) => void; onError?: (error: string) => void; onLoad?: () => void; onLoadStart?: () => void; onBuffer?: (buffering: boolean) => void; style?: StyleProp; accessibilityLabel?: string; } interface NativeVideoPlayerRef { play: () => void; pause: () => void; seek: (time: number) => void; setVolume: (volume: number) => void; setPlaybackRate: (rate: VideoPlaybackRate) => void; toggleFullscreen: () => void; getVideoElement: () => HTMLVideoElement | null; } export declare const NativeVideoPlayer: React.ForwardRefExoticComponent>; export {};