import type { BasePlaylistItem } from '@nomercy-entertainment/nomercy-player-core'; import type { SpriteFetchers } from '../../plugins/desktop-ui/helpers/sprite.js'; import type { IThumbnailSource, ThumbnailFrame } from './IThumbnailSource.js'; /** * Default thumbnail source. Fetches a WebVTT sprite manifest from * `item.previewSpriteUrl`, parses the cue list, preloads the sprite image, * and exposes synchronous `lookup(time)` for progress-bar hover rendering. * * The VTT cue body format expected is: * `sprite.webp#xywh=x,y,w,h` * * This is the format produced by NoMercy's media-server sprite generator * and is compatible with industry-standard tooling (ffmpeg tileify filters, * JW Player sprite format). */ export declare class VttSpriteThumbnailSource implements IThumbnailSource { private _cache; private _fetchers; /** Call with `fetchers` when the sprite server needs auth; without them the VTT is fetched with no token. */ useFetchers(fetchers: SpriteFetchers): void; load(item: BasePlaylistItem): Promise; lookup(timeSeconds: number): ThumbnailFrame | null; unload(): void; private _resolveSpriteUrl; }