import { Response } from "puppeteer"; import { IPuppeteerInstance } from "./types"; export declare class Scraper { protected puppeteer: IPuppeteerInstance; constructor(puppeteer: IPuppeteerInstance); close: () => void; /** * Safer version of $eval that does not crash when the element is missing */ $eval: (selector: string, callback: (element: Element) => T | Promise) => Promise>; /** * Navigate to a page and retry up to X * times if the page returns a non-success status code. * * @param {string} url * @param {number} retries * @returns {Promise} */ protected goto: (url: string, retries?: number) => Promise; }