import { DSVRowArray } from "d3-dsv"; /** * Returns the data from an HTML table as an array of objects. * * @param url The URL of the page containing the HTML table. * @param options Optional parameters to specify the table selector and index. * @param options.selector A CSS selector to identify the table. * @param options.index The index of the table if multiple tables match the selector. * * @example * Basic usage * ```js * // This would parse the data from the fourth * // table with the class name data-table. * const data = await getHtmlTable("your-url-here", { * selector: ".data-table", * index: 3 * }) * ``` * * @category Web scraping */ export default function getHtmlTable(url: string, options?: { selector?: string; index?: number; }): Promise>;