UNPKG

flibusta

Version:

Unofficial Flibusta API based on website search engine. If you like to read books - buy

17 lines (16 loc) 807 B
import { AxiosInstance } from 'axios'; import AuthorBooks from '@localTypes/authorsBook'; import FlibustaAPIHelper from '@src/flibustaApiHelper'; import { Nullable } from '@localTypes/generals'; import { PaginatedSearchResult } from '@localTypes/paginatedSearchResult'; declare class GetAuthors extends FlibustaAPIHelper { private static getAuthorTranslationsRegExp; axiosInstance: AxiosInstance; constructor(axiosInstance: AxiosInstance); private static generateGetBooksByNameURL; private fetchAuthorsFromFlibusta; private generateAuthorsListResponse; getAuthors(name: string): Promise<Nullable<Array<AuthorBooks>>>; getAuthorsPaginated(name: string, page?: number, limit?: number): Promise<Nullable<PaginatedSearchResult<Array<AuthorBooks>>>>; } export default GetAuthors;