UNPKG

flibusta

Version:

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

18 lines (17 loc) 960 B
import { AxiosInstance } from 'axios'; import FlibustaAPIHelper from '@src/flibustaApiHelper'; import { Nullable } from '@localTypes/generals'; import { SearchBooksByNameOpdsResult } from '@localTypes/searchBooksByNameOpdsResult'; import { PaginatedSearchResult } from '@localTypes/paginatedSearchResult'; declare class GetBooksByNameOpds extends FlibustaAPIHelper { private static ITEMS_PER_PAGE; axiosInstance: AxiosInstance; constructor(axiosInstance: AxiosInstance); private static generateGetBooksByNameFromOpdsURL; private static hasSearchOpdsNextPage; private fetchBooksByNameFromOpds; private getCurrentSearchOpdsPageInformation; getBooksByNameFromOpds(name: string): Promise<Nullable<Array<SearchBooksByNameOpdsResult>>>; getBooksByNameFromOpdsPaginated(name: string, page?: number, limit?: number): Promise<Nullable<PaginatedSearchResult<Array<SearchBooksByNameOpdsResult>>>>; } export default GetBooksByNameOpds;