Files
seanime-docker/seanime-2.9.10/internal/extension_repo/goja_manga_test/manga-provider.d.ts
2025-09-20 14:08:38 +01:00

44 lines
852 B
TypeScript

declare type SearchResult = {
id: string
title: string
synonyms?: string[]
year?: number
image?: string
}
declare type ChapterDetails = {
id: string
url: string
title: string
chapter: string
index: number
scanlator?: string
language?: string
rating?: number
updatedAt?: string
}
declare type ChapterPage = {
url: string
index: number
headers: { [key: string]: string }
}
declare type QueryOptions = {
query: string
year?: number
}
declare type Settings = {
supportsMultiLanguage?: boolean
supportsMultiScanlator?: boolean
}
declare abstract class MangaProvider {
search(opts: QueryOptions): Promise<SearchResult[]>
findChapters(id: string): Promise<ChapterDetails[]>
findChapterPages(id: string): Promise<ChapterPage[]>
getSettings(): Settings
}