/** * Built-in playlist-item normalizer — accepts the v1 / NoMercy server wire * format and reshapes it to the v2 canonical `VideoPlaylistItem`, per field * and idempotently: canonical input passes through untouched. Wired into the * kit's queue ingest pipeline via `normalizePlaylistItem`, so consumers hand * `setup({ playlist })` the raw server payload — exactly like v1 / JW / * video.js — and never reshape items themselves. App-specific concerns go in * the `transformPlaylistItem` config callback instead. */ import type { BasePlaylistItem } from '@nomercy-entertainment/nomercy-player-core'; import type { VideoPlaylistItem } from '../types.js'; export interface LegacyTrackEntry { id?: string | number; kind?: string; file?: string; label?: string; language?: string; type?: string; } /** * Normalize one playlist item from the loose v1 / server wire format to the * v2 canonical shape. Idempotent — already-canonical fields pass through. */ export declare function normalizeVideoPlaylistItem(item: BasePlaylistItem): VideoPlaylistItem;