/** * Cleaner - strips scripts, styles, ads and noise from raw HTML. * Uses cheerio (server-side jQuery-like API) for DOM manipulation. */ import * as cheerio from "cheerio"; export interface CleanerOptions { /** Extra CSS selectors to remove. */ extraSelectors?: string[]; /** Extra regex patterns applied to the final text. */ extraPatterns?: RegExp[]; } export declare class Cleaner { private readonly extraSelectors; private readonly extraPatterns; constructor(opts?: CleanerOptions); /** * Parse the HTML and strip all noisy elements. * Returns a cheerio root for further processing. */ clean(html: string): cheerio.CheerioAPI; /** Clean the HTML and return normalised plain text. */ cleanToText(html: string): string; /** Clean the HTML and return simplified HTML string. */ cleanToHtml(html: string): string; private normaliseText; } //# sourceMappingURL=index.d.ts.map