import * as React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export interface YouTubeProps { videoId?: string; videoIds?: string[]; playlistId?: string; play?: boolean; loop?: boolean; fullscreen?: boolean; controls?: 1 | 2 | 3; showinfo?: boolean; modestbranding?: boolean; showFullscreenButton?: boolean; rel?: boolean; origin?: string; onError?: (event: any) => void; onReady?: (event: any) => void; onChangeState?: () => void; onChangeQuality?: () => void; onChangeFullscreen?: (event: any) => void; onProgress?: (event: any) => void; style?: StyleProp; } declare class YouTube extends React.Component { seekTo(seconds: number): void; nextVideo(): void; previousVideo(): void; playVideoAt(index: number): void; getVideosIndex(): Promise; getCurrentTime(): Promise; getDuration(): Promise; reloadIframe(): void; } export declare const YouTubeStandaloneIOS: { playVideo(videoId: string): Promise; }; export declare const YouTubeStandaloneAndroid: { playVideo(params: { apiKey: string; videoId: string; autoplay?: boolean; lightboxMode?: boolean; startTime?: number; }): Promise; playVideos(params: { apiKey: string; videoIds: string[]; autoplay?: boolean; lightboxMode?: boolean; startIndex?: number; startTime?: number; }): Promise; playPlaylist(params: { apiKey: string; playlistId: string[]; autoplay?: boolean; lightboxMode?: boolean; startIndex?: number; startTime?: number; }): Promise; }; export default YouTube;