import { HttpClient } from "@angular/common/http"; import { Injectable } from "@angular/core"; import { Observable } from "rxjs"; @Injectable({ providedIn: "root" }) export abstract class Parser { constructor(protected http: HttpClient) {} protected abstract url: string; abstract searchManga(query: string): Observable; abstract getDetails(slug_url: string): Observable; abstract getChapters(url: string): Observable; abstract getChapter(url: string, chapter: string, volume: string): Observable; abstract getPopular(): Observable; }