import type { TrackTags } from "@applets/core/types";

export type Artwork = {
  bytes: Uint8Array;
  mime: string;
};

export type ArtworkRequest<Tags = TrackTags> = {
  cacheId: string;
  mimeType?: string;
  stream?: ReadableStream;
  tags?: Tags;
  urls?: Urls;
};

export type State = {
  artwork: Record<string, Artwork[]>;
};

export type Urls = { get: string; head: string };
