import { ForwardRefExoticComponent, RefAttributes } from 'react'; import { PropsWithClassName } from '../../types'; export interface YouTubeProps extends PropsWithClassName { src?: string; title?: string; loading?: 'eager' | 'lazy'; videoId?: string; autoplay?: boolean; loop?: boolean; subtitle?: boolean; subtitleLanguage?: string; privacyEnhancedMode?: boolean; start?: number; end?: number; width?: number | string; height?: number | string; } /** * **JSON-format type: video** * * Attributes: * * `src` (optional) The URL of the YouTube video. * * `title` (optional) The title of the video. * * `loading` (default: "lazy") The loading strategy for the video, either "eager" or "lazy". * * `videoId` (optional) The ID of the YouTube video. * * `autoplay` (default: false) Determines if the video should automatically start. * * `loop` (default: false) Determines if the video should loop. * * `subtitle` (default: false) Determines if subtitles should be displayed. * * `subtitleLanguage` (optional) The language of the subtitles. * * `privacyEnhancedMode` (optional) Enables privacy-enhanced mode for the video. * * `start` (optional) The start time of the video in seconds. * * `end` (optional) The end time of the video in seconds. * * `width` (optional) The width of the video player. * * `height` (optional) The height of the video player. * * @constructor */ declare const YouTube: ForwardRefExoticComponent>; export { YouTube };