/** * Page-level AEO (Answer Engine Optimisation) heuristics. Eight checks * run against raw HTML; each returns a status and, when the check fails, * one concrete rewrite suggestion the operator can apply. * * The HTML parser is a deliberate single-pass regex scanner: AEO audits * run on pages the platform itself renders, so we know they are * server-side-generated, well-formed enough for regex inspection, and * not gated on script-injected content. Bringing in a full DOM parser * (jsdom, cheerio) would dwarf the rest of the plugin and pull in * Node-version-coupled native deps. If we later need to audit * third-party arbitrary HTML, swap the parser then. */ export type HeuristicStatus = "pass" | "warn" | "fail"; export interface HeuristicResult { name: HeuristicName; status: HeuristicStatus; detail: string; suggestion?: string; } export type HeuristicName = "h1-present" | "jsonld-present" | "structured-answer" | "faq-section" | "meta-description" | "canonical-url" | "og-tags" | "heading-hierarchy"; export interface AuditResult { score: number; heuristics: HeuristicResult[]; } export declare function auditHtml(html: string): AuditResult; //# sourceMappingURL=audit-heuristics.d.ts.map