export type SeoIssueSeverity = "error" | "warning" | "info"; export type SeoAuditIssue = { id: string; severity: SeoIssueSeverity; message: string; }; export type SeoAuditMeta = { title: string | null; description: string | null; canonical: string | null; h1Count: number; h1Text: string | null; hasViewport: boolean; hasOgTitle: boolean; hasOgDescription: boolean; hasOgImage: boolean; lang: string | null; imagesMissingAlt: number; linkCount: number; }; export type SeoAuditPayload = { type: "audit"; siteKey: string; ts: number; visitorId: string; path: string; url: string; seoScore: number; uiScore: number; issues: SeoAuditIssue[]; meta: SeoAuditMeta; /** JPEG/PNG data URL — trimmed server-side if huge */ snapshot?: string; userAgent?: string; clientIp?: string; }; export type SeoConfig = { siteKey: string; endpoint?: string; debug?: boolean; collectSecret?: string; requireConsent?: boolean; /** Capture viewport snapshot on each audit (adds payload size) */ captureSnapshot?: boolean; }; export type SeoAuditResult = Omit; export declare function auditCurrentPage(doc?: Document, win?: Window): SeoAuditResult; export declare function captureViewportSnapshot(maxWidth?: number): Promise; //# sourceMappingURL=audit.d.ts.map