/** * Typings for otakudesu */ import { ResolvedReleaseDate } from './util'; export interface Genre { name: string; url: string; } export interface Anime { name: string; image: string; meta: Record; url: string; /** used for getting anime information and download(s) url */ slug: string; extra: () => Promise; } export declare type AnimeListItem = Omit & { _index: number; }; export interface Episode { title: string; url: string; date: string; } export interface DownloadLink { name: string; url: string; } export interface Download { resolution: string; links: DownloadLink[]; title?: string; } export declare type OngoingAnime = Omit & { releaseAt: ResolvedReleaseDate; episode: number; }; export declare type ExtraAnime = Omit & { synopsis: string; details: Record; episodes: Episode[]; }; export declare type HomeAnimeUpdate = OngoingAnime;