UNPKG

lunify.js

Version:

A basic api wrapper for the spotify api covering the oauth routes.

26 lines (25 loc) 844 B
import { PlayerDevice } from "./Device"; import type { ApiEpisode } from "../../../interfaces/episode"; import type { ApiPlaybackState, CurrentlyPlayingType, PlayerContextType } from "../../../interfaces/player"; import type { Lunify } from "../.."; import { Track } from "../.."; import type { Player } from "."; export declare class CurrentPlayback { client: Lunify; player: Player; device: PlayerDevice; repeat: "track" | "context" | false; shuffle: boolean; context?: { type: PlayerContextType; url: string; externalUrls: Record<string, string>; uri: string; }; timestamp: number; progress: number; playing: boolean; item: Track | ApiEpisode | null; playingType: CurrentlyPlayingType; constructor(client: Lunify, player: Player, data: ApiPlaybackState); }