declare module 'manytoon.com' { export class Parser { baseURL: string; /** * **Get popular doujins** * @returns {Promise} */ getPopularUpdates(): Promise; /** * **Get doujins from given page** * @return {Promise>} */ getHomepage(): Promise>; /** * **Get page from "target"** * @param {string} target * @return {Promise>} */ search(target: string): Promise>; /** * **Get doujin from URL** * @param {string} url * @returns {Promise} */ getDoujin(url: string): Promise; } export class Doujin { /** * Doujin * @param {string} html HTML * @param {string} url * @param {number} statusCode */ constructor(html: string, url: string, statusCode: number); readonly statusCode: number; readonly name: string; readonly rating: string; readonly totalVotes: string; readonly rank: string; readonly montlyViews: string; readonly status: string; readonly releaseYear: string; readonly genres: string[]; readonly url: string; readonly img: string; /** * **Returns a first chapter** * @returns {Promise} */ getFirstChapter(): Promise; /** * **Returns a last chapter** * @returns {Promise} */ getLastChapter(): Promise; /** * **Returns an all chapters** * @returns {Promise} */ getAllChapters(): Promise; #private; } export class Page extends Array { /** * Setting data */ constructor(options: { isHome: boolean; lastPage: number; target?: string; doujins: Array; }); /** * **Getting page** */ to(page: number): Promise>; /** * **Go to the next page** */ next(): Promise>; /** * **Go to the previous page** */ prev(): Promise>; /** * **Returns number of last page** */ getLastPageNumber(): number; /** * **Returns number of current page** */ getCurrentPageNumber(): number; #private; } }