//#region src/scan/parseHtml.d.ts /** * Tiny dependency-free HTML extraction helpers. * * The hosted backend audit relies on Cheerio + a real browser, but the CLI scan * must stay dependency-light. These regex-based helpers cover the handful of * head/anchor signals the score needs. They are intentionally forgiving: when a * tag can't be parsed it is simply skipped rather than throwing. */ /** Compute the UTF-8 byte length of a string in both Node and browser builds. */ export declare const byteLength: (text: string) => number; /** Extract the `lang` attribute of the `` element, if present. */ export declare const extractHtmlLang: (html: string) => string | undefined; /** Extract the `dir` attribute of the `` element, if present. */ export declare const extractHtmlDir: (html: string) => string | undefined; /** Extract the document `