UNPKG

flibusta

Version:

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

15 lines (14 loc) 821 B
import { AxiosInstance } from 'axios'; import FlibustaAPIHelper from '@src/flibustaApiHelper'; import { Nullable } from '@localTypes/generals'; import { SearchBooksByNameOpdsResult } from '@localTypes/searchBooksByNameOpdsResult'; import { SearchOpdsPaginatedResult } from '@localTypes/searchOpdsResult'; declare class GetBooksByAuthorOpds extends FlibustaAPIHelper { axiosInstance: AxiosInstance; constructor(axiosInstance: AxiosInstance); private static generateGetAuthorsFromOpdsURL; private fetchAuthorsFromOpds; getAuthorsFromOpds(id: number): Promise<Nullable<Array<SearchBooksByNameOpdsResult>>>; getAuthorsFromOpdsPaginated(id: number, page?: number, limit?: number): Promise<Nullable<SearchOpdsPaginatedResult<Array<SearchBooksByNameOpdsResult>>>>; } export default GetBooksByAuthorOpds;