/** * # Top * * #### For more info visit https://jikan.docs.apiary.io * * To get top info you need to create top object and select type of entry, like so: * ```ts * let top = Jikan.top().anime(); * // .manga() * // .people() * // .characters() * ``` * And then you can use top object multiple times to get desired information. * * ### Functions That You Can Use With All Types * ```ts * top.all(page?); * ``` * ### Anime Specific Functions * ```ts * top.airing(page?); * top.upcoming(page?); * top.tv(page?); * top.movie(page?); * top.ova(page?); * top.special(page?); * ``` * ### Manga Specific Functions * ```ts * top.manga(page?); * top.novels(page?); * top.oneshots(page?); * top.doujin(page?); * top.manhwa(page?); * top.manhua(page?); * ``` * ### Manga & Anime Specific Functions * ```ts * top.byPopularity(page?); * top.favorite(page?); * ``` * Each of those functions returns promise * ## Examples * ```ts * Jikan.top().anime().all() * .then(res => res.data) * .then(topJson => {}); * Jikan.top().anime().movie() * .then(res => res.data) * .then(topJson => {}); * ``` */ export declare class Top { /** @ignore */ private baseUrl; constructor(); anime(): TopAnime; manga(): TopManga; people(): TopSimple; characters(): TopSimple; } export declare class TopSimple { private baseUrl; private type; constructor(baseUrl: string, type: string); private topGet; all(p?: number): Promise; } export declare class TopAnime { private baseUrl; constructor(baseUrl: string); private topGet; all(p?: number): Promise; airing(p?: number): Promise; upcoming(p?: number): Promise; tv(p?: number): Promise; movie(p?: number): Promise; ova(p?: number): Promise; special(p?: number): Promise; byPopularity(p?: number): Promise; favorite(p?: number): Promise; } export declare class TopManga { private baseUrl; constructor(baseUrl: string); private topGet; all(p?: number): Promise; manga(p?: number): Promise; novels(p?: number): Promise; oneshots(p?: number): Promise; doujin(p?: number): Promise; manhwa(p?: number): Promise; manhua(p?: number): Promise; byPopularity(p?: number): Promise; favorite(p?: number): Promise; } export declare function top(): Top;