import { AirPlayButtonInstance, AnyRecord, AudioGainSliderInstance, AudioTrack, CaptionButtonInstance, CaptionsInstance, Component, ControlsGroupInstance, ControlsInstance, DefaultLayoutTranslations, FileDownloadInfo, FullscreenButtonInstance, GestureInstance, GoogleCastButtonInstance, InferComponentCSSVars, InferComponentEvents, InferComponentProps, InferEventDetail, LiveButtonInstance, MediaAnnouncerInstance, MediaContext, MediaCrossOrigin, MediaPlayerInstance, MediaPlayerQuery, MediaProviderAdapter, MediaProviderInstance, MediaProviderLoader, MediaRemoteControl, MediaState, MediaType, MenuButtonInstance, MenuInstance, MenuItemInstance, MenuItemsInstance, MenuPortalInstance, MuteButtonInstance, PIPButtonInstance, PascalCase, PlayButtonInstance, PlayerSrc as PlayerSrc$1, PlyrControl, PlyrLayoutTranslations, PlyrLayoutWord, PlyrMarker, PosterInstance, QualitySliderInstance, RadioGroupInstance, RadioInstance, ReadSignal, Scope, SeekButtonInstance, SliderChaptersInstance, SliderInstance, SliderOrientation, SliderPreviewInstance, SliderState, SliderThumbnailInstance, SliderValueInstance, SliderVideoInstance, SpeedSliderInstance, Src, State, TextTrack, TextTrackInit, ThumbnailImage, ThumbnailInstance, ThumbnailSrc, TimeInstance, TimeSliderInstance, ToggleButtonInstance, TooltipContentInstance, TooltipInstance, TooltipPlacement, TooltipTriggerInstance, VTTContent, VideoQuality, VolumeSliderInstance, WriteSignal } from "./vidstack-instances.js"; import { CaptionsFileFormat, CaptionsParserFactory, VTTCue } from "media-captions"; import * as React from "react"; //#region ../vidstack/types/utils/time.d.ts interface FormatTimeOptions { padHrs?: boolean | null; padMins?: boolean | null; showHrs?: boolean; showMs?: boolean; } /** * Formats the given `duration` into a human readable form that can be displayed to the user. * * @param duration - The length of time to parse in seconds. * @param shouldPadHours - Whether to pad the hours to be length of 2. * @param shouldPadMinutes - Whether to pad the minutes to be length of 2. * @param shouldAlwaysShowHours - Whether to always show the hours unit. * @example `01:20 -> minutes:seconds` * @example `3:01:20 -> hours:minutes:seconds` * @example If `shouldPadHours` is `true` - `03:01:20` * @example If `shouldAlwaysShowHours` is `true` - `0:01:20` */ declare function formatTime(duration: number, { padHrs, padMins, showHrs, showMs }?: FormatTimeOptions): string; /** * Formats the given `duration` into human spoken form. * * @param duration - The length of time to parse in seconds. * @example `2 hour 3 min 4 sec` */ declare function formatSpokenTime(duration: number): string; //#endregion //#region ../vidstack/types/utils/mime.d.ts declare const AUDIO_EXTENSIONS: RegExp; declare const AUDIO_TYPES: Set; declare const VIDEO_EXTENSIONS: RegExp; declare const VIDEO_TYPES: Set; declare const HLS_VIDEO_EXTENSIONS: RegExp; declare const DASH_VIDEO_EXTENSIONS: RegExp; declare const HLS_VIDEO_TYPES: Set; declare const DASH_VIDEO_TYPES: Set; declare function isAudioSrc({ src, type }: Src): boolean; declare function isVideoSrc(src: Src): boolean; declare function isHLSSrc({ src, type }: Src): boolean; declare function isDASHSrc({ src, type }: Src): boolean; declare function canGoogleCastSrc(src: Src): boolean; declare function isMediaStream(src: unknown): src is MediaStream; //#endregion //#region ../vidstack/types/utils/support.d.ts /** * Checks if the ScreenOrientation API is available. * * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation} */ declare function canOrientScreen(): boolean; /** * Checks if the screen orientation can be changed. * * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation} */ declare function canRotateScreen(): boolean; /** * Checks if the native HTML5 video player can play HLS. */ declare function canPlayHLSNatively(video?: HTMLVideoElement | null): boolean; /** * Checks if the native HTML5 video player can enter picture-in-picture (PIP) mode when using * the Chrome browser. * * @see {@link https://developers.google.com/web/updates/2018/10/watch-video-using-picture-in-picture} */ declare function canUsePictureInPicture(video: HTMLVideoElement | null): boolean; /** * Checks if the native HTML5 video player can use the presentation API in Safari. * * @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1631913-webkitpresentationmode} */ declare function canUseVideoPresentation(video: HTMLVideoElement | null): boolean; declare function canChangeVolume(): Promise; //#endregion //#region types/react/src/providers/remotion/types.d.ts interface RemotionSrc { /** React component which is generally a Remotion video. */ src: React.ComponentType; /** Remotion source type. */ type: 'video/remotion'; /** * Pass props to the component that you have specified using the component prop. */ inputProps?: InputProps; /** * The width of the composition. * * @defaultValue 1920 */ compositionWidth?: number; /** * The height of the composition. * * @defaultValue 1080 */ compositionHeight?: number; /** * The frame rate of the video per second. * * @defaultValue 30 */ fps?: number; /** * The duration of the video in frames. Must be an integer and greater than 0. */ durationInFrames: number; /** * Start the playback from a specific frame. * * @defaultValue 0 */ initialFrame?: number; /** * Limit playback to only play after a certain frame. The video will start from this frame and * move to this position once it has ended. Must be an integer, not smaller than 0, not bigger * than `outFrame` and not bigger than `durationInFrames - 1`. * * @defaultValue 0 */ inFrame?: number | null; /** * Limit playback to only play before a certain frame. The video will end at this frame * and move to the beginning once it has ended. Must be an integer, not smaller than 1, not * smaller than `inFrame` and not bigger than `durationInFrames`. * * @defaultValue `durationInFrames` */ outFrame?: number; /** * If you use an `