import type { ServerAdapter, ServerConfig, ServerStatus, MangaFilters, MangaMeta, PaginatedResult, Page, DownloadItem, UpdateResult, } from '$lib/server-adapters/types'; import type {Manga, Chapter, Extension, Source, Tracker} from '$lib/types/index'; import type {TrackRecord} from '$lib/types/tracking'; function notImplemented(): never { throw new Error('MokuAdapter: not implemented'); } export class MokuAdapter implements ServerAdapter { async connect(_config: ServerConfig): Promise {notImplemented();} async getStatus(): Promise {return notImplemented();} async getManga(_id: string): Promise {return notImplemented();} async getMangaList(_filters: MangaFilters): Promise> {return notImplemented();} async searchManga(_query: string, _sourceId?: string): Promise {return notImplemented();} async addToLibrary(_mangaId: string): Promise {notImplemented();} async removeFromLibrary(_mangaId: string): Promise {notImplemented();} async updateMangaMeta(_id: string, _meta: Partial): Promise {notImplemented();} async getChapters(_mangaId: string): Promise {return notImplemented();} async getChapter(_id: string): Promise {return notImplemented();} async getChapterPages(_id: string): Promise {return notImplemented();} async markChapterRead(_id: string, _read: boolean): Promise {notImplemented();} async updateChapterProgress(_id: string, _lastPageRead: number, _read?: boolean): Promise {notImplemented();} async markChaptersRead(_ids: string[], _read: boolean): Promise {notImplemented();} async getDownloads(): Promise {return notImplemented();} async enqueueDownload(_chapterId: string): Promise {notImplemented();} async dequeueDownload(_chapterId: string): Promise {notImplemented();} async clearDownloads(): Promise {notImplemented();} async getExtensions(): Promise {return notImplemented();} async installExtension(_id: string): Promise {notImplemented();} async uninstallExtension(_id: string): Promise {notImplemented();} async updateExtension(_id: string): Promise {notImplemented();} async getSources(): Promise {return notImplemented();} async browseSource(_sourceId: string, _page: number): Promise> {return notImplemented();} async getTrackers(): Promise {return notImplemented();} async getTrackerRecords(): Promise {return notImplemented();} async loginTrackerOAuth(_trackerId: number, _callbackUrl: string): Promise {notImplemented();} async loginTrackerCredentials(_trackerId: number, _username: string, _password: string): Promise {notImplemented();} async logoutTracker(_trackerId: number): Promise {notImplemented();} async linkTracker(_mangaId: string, _trackerId: string, _remoteId: string): Promise {notImplemented();} async syncTracking(_mangaId: string): Promise {notImplemented();} async checkForUpdates(_mangaIds?: string[]): Promise {return notImplemented();} }