/** * Minimal DMARC aggregate (RUA) XML report parser. Zero-dep — we only * need the narrow RUA schema Google/Yahoo/Microsoft emit. Input can be * raw XML, gzipped bytes, or a fetch Response body. * * @module */ export interface DmarcReport { orgName?: string; email?: string; reportId?: string; domain?: string; dateRange?: { begin: Date; end: Date; }; policy?: { p?: "none" | "quarantine" | "reject"; sp?: "none" | "quarantine" | "reject"; adkim?: "r" | "s"; aspf?: "r" | "s"; pct?: number; }; records: ReadonlyArray; } export interface DmarcRecord { sourceIp?: string; count: number; disposition?: "none" | "quarantine" | "reject"; dkim?: "pass" | "fail"; spf?: "pass" | "fail"; headerFrom?: string; } /** Parse a DMARC aggregate report. Accepts a plain XML string or a * gzipped Uint8Array (detected via magic bytes). */ export declare function parseDmarcAggregate(input: string | Uint8Array): Promise;