UNPKG

@tuplo/fletcher

Version:

Web scraping HTTP request library

16 lines (15 loc) 747 B
import * as $ from "cheerio"; import { type IFletcherUserOptions } from "../fletcher.d"; declare function html(url: string, options?: Partial<IFletcherUserOptions>): Promise<$.Cheerio<$.Document>>; declare function json<T>(pageUrl: string, requestUrl: RegExp | string, options?: Partial<IFletcherUserOptions>): Promise<any>; declare function script<T>(url: string, options: Partial<IFletcherUserOptions>): Promise<T>; declare function jsonld<T>(url: string, options: Partial<IFletcherUserOptions>): Promise<$.Cheerio<T | {}>>; declare function close(): Promise<void>; declare const _default: { close: typeof close; html: typeof html; json: typeof json; jsonld: typeof jsonld; script: typeof script; }; export default _default;