import type { AccountConfig } from "../accounts.js"; import type { SenderAuth } from "../providers/interface.js"; import { strictAddress } from "../providers/headers.js"; export interface TaintInfo { sender: string; tool: string; at: string; } /** What a tool knows about one rendered message: its From header and the receiving server's authentication evidence, if any. */ export interface SenderEvidence { from: string; auth?: SenderAuth; } export declare const senderAddress: typeof strictAddress; export declare function isTainted(account: string): TaintInfo | undefined; export declare function clearTaint(account?: string): void; export declare function markTainted(account: string, config: AccountConfig | undefined, tool: string, sender: string): void; export declare function authservIdFor(config: AccountConfig): string | undefined; export declare function dmarcPasses(results: string[] | undefined, address: string, authservId: string | undefined): boolean; export declare function isTrustedSender(config: AccountConfig | undefined, evidence: SenderEvidence): boolean; export declare function noteSenders(account: string, config: AccountConfig | undefined, tool: string, evidence: SenderEvidence[]): void;