import TurndownService from 'turndown';
import { Table } from "./table.js";
import { TableParser } from "./tableParser.js";
import { TableRenderer } from "./tableRenderer.js";
/** changes the behavior of HTMLTableParser */
export declare enum HTMLTableParserMode {
    /** uses only text (`Cheerio.text()`) */
    StripHTMLElements = 0,
    /** uses the HTML code (`Cheerio.html()`) without any converting */
    PreserveHTMLElements = 1,
    /** uses the HTML code (`Cheerio.html()`) and converts to Markdown using Turndown if possible (default) */
    ConvertHTMLElements = 2
}
export declare class HTMLTableParser implements TableParser {
    mode: HTMLTableParserMode;
    turndownService: TurndownService;
    constructor(mode?: HTMLTableParserMode, turndownService?: TurndownService);
    parse(table: string): Table;
    private parseSection;
    private parseCell;
}
export declare class HTMLTableRenderer implements TableRenderer {
    prettify: boolean;
    indent: string;
    renderOutsideTable: boolean;
    constructor(prettify?: boolean, indent?: string, renderOutsideTable?: boolean);
    render(table: Table): string;
    private renderRow;
    private renderCell;
    private indentString;
}
