import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; export declare class Scrape extends APIResource { /** * Get meta attributes like height, width, text and others of selected elements. */ create(params: ScrapeCreateParams, options?: Core.RequestOptions): Core.APIPromise; } export type ScrapeCreateResponse = Array; export declare namespace ScrapeCreateResponse { interface ScrapeCreateResponseItem { results: ScrapeCreateResponseItem.Results; /** * Selector */ selector: string; } namespace ScrapeCreateResponseItem { interface Results { attributes: Array; /** * Element height */ height: number; /** * Html content */ html: string; /** * Element left */ left: number; /** * Text content */ text: string; /** * Element top */ top: number; /** * Element width */ width: number; } namespace Results { interface Attribute { /** * Attribute name */ name: string; /** * Attribute value */ value: string; } } } } export interface ScrapeCreateParams { /** * Path param: Account ID. */ account_id: string; /** * Body param: */ elements: Array; /** * Query param: Cache TTL default is 5s. Set to 0 to disable. */ cacheTTL?: number; /** * Body param: The maximum duration allowed for the browser action to complete * after the page has loaded (such as taking screenshots, extracting content, or * generating PDFs). If this time limit is exceeded, the action stops and returns a * timeout error. */ actionTimeout?: number; /** * Body param: Adds a `