import type { ActionOptions, BasePlaylistItem, ComposedPlayerMethods, CurrentSubtitleSelection, IPlayer, IStreamSource, SidecarSubtitleInput, SubtitleStyle, SubtitleTrack } from '@nomercy-entertainment/nomercy-player-core'; import type { IVideoBackend, VideoBackendKind } from './adapters/video-backend/IVideoBackend.js'; import type { IVideoPlayer, SegmentOptions, Stretching, VideoEventMap, VideoPlayerConfig, VideoPlaylistItem, VideoRect } from './types.js'; import { EventEmitter } from '@nomercy-entertainment/nomercy-player-core'; import { NextItemWarmup } from './player/next-item-warmup.js'; import { FullscreenState, PipState, SubtitleState, TheaterState } from './types.js'; export type { IChapterSource } from './adapters/chapter-source/IChapterSource.js'; export { VttChapterSource } from './adapters/chapter-source/vtt-chapters.js'; export type { ISubtitleStyleStore } from './adapters/subtitle-style-store/ISubtitleStyleStore.js'; export { StorageBackedSubtitleStyleStore } from './adapters/subtitle-style-store/storage-backed.js'; export type { IThumbnailSource, ThumbnailFrame } from './adapters/thumbnail-source/IThumbnailSource.js'; export { VttSpriteThumbnailSource } from './adapters/thumbnail-source/vtt-sprite.js'; export { Html5VideoBackend } from './adapters/video-backend/html5.js'; export type { BackendEvent, BackendEventPayload, BackendLoaderState, BackendState, IVideoBackend, LiveSyncOptions, SubtitleCue, SubtitleCueChange, VideoBackendKind, } from './adapters/video-backend/IVideoBackend.js'; export { VideoPreloadStrategy } from './player/preload.js'; export { KeyHandlerPlugin } from './plugins/key-handler/index.js'; export { OctopusPlugin } from './plugins/octopus/index.js'; export { V1VideoCompatPlugin } from './plugins/v1-compat.js'; export type { AudioTrackRef, ChapterRef, FontTrackRef, HtmlPreloadMode, IVideoPlayer, SegmentBoundaryPayload, SegmentEndBehaviour, SegmentOptions, Stretching, SubtitleTrackRef, VideoBackendFactory, VideoEventMap, VideoPlayerConfig, VideoPlaylistItem, VideoRect, WatchProgress, } from './types.js'; export { containedRect, paintedRect } from './types.js'; export { AudioTrackState, FullscreenState, PipState, PlayState, QualityState, RepeatState, ShuffleState, SubtitleState, TheaterState, VolumeState, } from './types.js'; export type { QualityLevel } from './types.js'; export type { AudioTrack, Chapter, SidecarSubtitleInput, SubtitleTrack, } from '@nomercy-entertainment/nomercy-player-core'; export interface NMVideoPlayer extends ComposedPlayerMethods { } /** * Headless video player. Plugin-driven, event-driven, no UI in core. * * Shared player logic (lifecycle, transport, queue, state, volume, time, * plugins, i18n, cue parsers, baseUrl, audioContext, experimental override * surface) is composed onto the prototype from `playerCoreMethods` exported by * `@nomercy-entertainment/nomercy-player-core` — the LOGIC lives there, not * here. NMVideoPlayer adds only: * * - The per-library registry (own `_instances` Map) * - The three-form factory constructor + the `videoElement` field * - Library-typed method declarations (so consumers see `PlayState`, etc., * not the kit's internal string token — runtime impl comes from the mixin) * - Video-specific stubs (fullscreen, pip, theater, subtitle toggles, etc.) */ export declare class NMVideoPlayer extends EventEmitter> implements IPlayer>, IVideoPlayer { playerId: string; container: HTMLElement; videoElement: HTMLVideoElement | undefined; get id(): string; /** * Phantom brand — never assigned at runtime. Declared explicitly here so * `PlayerEventMap>` resolves to `VideoEventMap` without * TypeScript having to walk the `EventEmitter` inheritance chain (which * stalls in conditional-type inference for complex class hierarchies). */ readonly __eventMap__: VideoEventMap; options: VideoPlayerConfig; private _phase; private _playState; setup: (config: VideoPlayerConfig) => this; constructor(id?: string | number); readonly _nextItemWarmup: NextItemWarmup; private _languageMemoryInstance; /** * Carries the viewer's chosen audio / subtitle language across items. Built * on first use — `options` is not assigned yet when fields initialise. */ private get languageMemory(); private _wantedPoster; private _defaultQualityApplied; /** * Resolve a raw image URL to an absolute poster string and apply it. * * Sync first — the poster MUST be on the `