UNPKG

nekosapi

Version:

Async wrapper for NekosAPI

23 lines 1.1 kB
import Base from "../base"; import { CustomProxy } from "../Proxy"; import { Artist, Category, Character } from "./Interfaces"; import NekosImage from "./NekosImage"; export declare class NekosAPI extends Base { private readonly token; private readonly baseUrl; static lastRequest: Date; constructor(token?: string, proxy?: CustomProxy); getImages(limit?: number, offset?: number): Promise<NekosImage[]>; getRandomImages(categories?: string | string[], limit?: number): Promise<NekosImage[]>; getRandomImage(categories?: string | string[]): Promise<NekosImage>; private _getRandomImages; getImageByID(id: string): Promise<NekosImage>; getArtistByID(id: string): Promise<Artist>; getImagesByArtistID(id: string, limit?: number, offset?: number): Promise<NekosImage[]>; getCharacterByID(id: string): Promise<Character>; getCategories(limit?: number, offset?: number): Promise<Category[]>; getCategoryByID(categoryID: string): Promise<Category>; private static validateToken; private static tokenRegex; } //# sourceMappingURL=NekosAPI.d.ts.map