import type { MangaCard, MangaDetail } from '$lib/api/mangas';
import type { Chapter } from '$lib/api/chapters';
import type { Bookmark } from '$lib/api/bookmarks';
import type { ReadProgressForManga } from '$lib/api/read_progress';
import type { Reaction } from '$lib/api/reactions';

/**
 * The manga detail bundle. Streamed from the loader (see +page.ts) and passed
 * to DetailView once resolved, so the page can render a skeleton while it
 * loads. Shape matches the loader's previous flat return.
 */
export type DetailData = {
    manga: MangaDetail;
    chapters: Chapter[];
    bookmarks: Bookmark[];
    readProgress: ReadProgressForManga | null;
    reaction: Reaction | null;
    similar: MangaCard[];
};
