import { Component } from 'react'; import { ViewStyle, StyleProp } from 'react-native'; export interface VideoItem { uri: string; title?: string; } export type LoopMode = 'none' | 'one' | 'all'; export type ResizeMode = 'contain' | 'cover' | 'stretch' | 'none'; export interface VideoPlayerProps { data: VideoItem[]; defaultVideoIndex?: number; autoPlay?: boolean; autoPlayNextVideo?: boolean; loop?: LoopMode; rate?: number; resizeMode?: ResizeMode; controlTimeout?: number; showBottomBar?: boolean; style?: StyleProp; onBack?: () => void; onEnd?: () => void; onLoad?: (data: any) => void; onLoadStart?: () => void; onPause?: () => void; onPlay?: () => void; onError?: (error: any) => void; } export interface VideoPlayerRef { play: () => void; pause: () => void; seek: (seconds: number) => void; next: () => void; previous: () => void; } declare const VideoPlayer: React.ForwardRefExoticComponent< VideoPlayerProps & React.RefAttributes >; export default VideoPlayer;