export = CrawlingAPI; /** * A node class that acts as wrapper for Crawlbase Crawling API. * * Read Crawlbase Crawling API documentation https://crawlbase.com/docs/crawling-api * * Copyright Crawlbase * Licensed under the Apache License 2.0 */ declare class CrawlingAPI extends BaseAPI { /** * Makes a GET request to the Crawling API. * @param {string} url The url to load. * @param {object} [options={}] Any of the available Crawling API parameters. * @returns {Promise} */ get(url: string, options?: object): Promise; /** * Makes a POST request to the Crawling API. * @param {string} url The url to load. * @param {(object|string)} data The data that you want to send via POST. * @param {object} [options={}] Any of the available Crawling API parameters. * @param {string} [options.postType] If 'json', the data will be sent as JSON * @returns {Promise} */ post(url: string, data: (object | string), options?: { postType?: string; }): Promise; /** * Makes a PUT request to the Crawling API. * @param {string} url The url to load. * @param {(object|string)} data The data that you want to send via POST. * @param {object} [options={}] Any of the available Crawling API parameters. * @param {string} [options.postType] If 'json', the data will be sent as JSON * @returns {Promise} */ put(url: string, data: (object | string), options?: { postType?: string; }): Promise; } import BaseAPI = require("./base-api.js");