import { BundleChunkInput, BundleContentAnalysis, ScanEvent } from "./types.js"; import { Anchor } from "./parseHtml.js"; //#region src/scan/checks.d.ts /** Format a byte count as a human-readable size. */ export declare const formatSize: (bytes: number) => string; /** * Check the `` element attributes (`lang`, `dir`) and the resulting * current-locale signal. Returns the detected language tag. */ export declare const checkHtmlAttributes: (html: string, targetUrl: string, events: ScanEvent[]) => { langTag: string | undefined; }; /** Check the presence of a canonical link. */ export declare const checkCanonical: (html: string, targetUrl: string, events: ScanEvent[]) => void; /** * Check the page's hreflang structure and collect discovered locales into * `localesSet`. */ export declare const checkLinguisticStructure: (html: string, targetUrl: string, localesSet: Set, events: ScanEvent[]) => void; /** * Check whether internal links carry a locale segment, mirroring the hosted * audit's URL-structure analysis but operating on parsed anchors instead of a * live DOM. */ export declare const checkUrlStructure: (anchors: Anchor[], origin: string, targetUrl: string, events: ScanEvent[]) => void; /** * Analyze the JavaScript bundles for unused locale content and emit the * corresponding event. Returns the analysis so callers can report on it. */ export declare const checkBundleContent: (chunks: BundleChunkInput[], html: string, currentLocale: string | undefined, targetUrl: string, totalPageSize: number, events: ScanEvent[]) => BundleContentAnalysis | undefined; /** Fetch and check `robots.txt`, emitting robots-related events. */ export declare const checkRobots: (origin: string, discoveredLocales: Set, userAgent: string, events: ScanEvent[]) => Promise; /** Fetch and check `sitemap.xml`, emitting sitemap-related events. */ export declare const checkSitemap: (origin: string, discoveredLocales: Set, userAgent: string, events: ScanEvent[]) => Promise; //#endregion //# sourceMappingURL=checks.d.ts.map