import { create } from "zustand"; import { AVPlaybackStatus, Video } from "expo-av"; import { RefObject } from "react"; import { api, VideoDetail as ApiVideoDetail } from "@/services/api"; import { PlayRecordManager } from "@/services/storage"; interface Episode { url: string; title: string; } interface VideoDetail { videoInfo: ApiVideoDetail["videoInfo"]; episodes: Episode[]; } interface PlayerState { videoRef: RefObject