import { Scraper } from "./scraper"; import { IShow, IVideo, IEpisode, ILink, IShowDetails } from "./types"; export declare class Anime extends Scraper { /** * Returns a list of shows based on the search query * * @param {string} show The name of the anime we want to search for * @returns {Promise} */ search: (show: string) => Promise; /** * Returns all the details for the specified show * * @param {string} showUrl * @returns {Promise} */ getShowDetails: (showUrl: string) => Promise; /** * Returns a list of episodes for the specified show/season. * * @param {string} showUrl * @returns {Promise} */ getEpisodes: (showUrl: string) => Promise; /** * Returns a video url for the specified episode. * * @param {string} episodeUrl * @param {object} options * @returns {Promise} */ getVideo: (episodeUrl: string, options?: { onlyGetIframeUrl: boolean; }) => Promise; /** * Scrape all the shows on the a-z page. * This will take a long time to finish! * * This method is intended for private use so * the api could change at any time! * * @param {number} pageNumber * @param {Array} initialLinks */ scrapeAllShows: (pageNumber?: number, initialLinks?: ILink[]) => any; private _getShowIdFromUrl; private _getEpisodeIdFromUrl; private _getEpisodeHTMLFromUrl; }