/// <reference types="vite/client" />

interface ImportMetaEnv {
  readonly VITE_TMDB_API_KEY?: string
  readonly VITE_FANART_API_KEY?: string
}

interface ImportMeta {
  readonly env: ImportMetaEnv
}

declare module 'react' {
  interface CSSProperties {
    WebkitUserSelect?: string
  }
}

/* ── Extended Jellyfin item with synthetic TMDB fields ── */

import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models'

type SyntheticBaseItemDto = BaseItemDto & {
  _tmdbPoster?: string
  _tmdbBackdrop?: string
  _inLibrary?: boolean
  _tmdbId?: string
  _kind?: string
}

declare module '@jellyfin/sdk/lib/generated-client/models' {
  interface BaseItemDto {
    _tmdbPoster?: string
    _tmdbBackdrop?: string
    _inLibrary?: boolean
    _tmdbId?: string
    _kind?: string
  }
}
