flibusta-api
Version:
> **Disclaimer**: This package is only created as an example of a search tool for Flibusta. If you like to read books - buy them legally.
7 lines (6 loc) • 472 B
TypeScript
import { Book, BookFile, BookFormat, BookInfo } from './dto';
export declare function searchBooks(text: string, limit?: number): Promise<Book[]>;
export declare function searchByAuthor(text: string, limit?: number): Promise<Book[]>;
export declare function getBookInfo(id: number): Promise<BookInfo | undefined>;
export declare function downBook(id: string, format?: BookFormat): Promise<BookFile>;
export declare function getUrl(id: string, format?: BookFormat): string;