Files
smartmta/dist_ts/mail/security/classes.dkimverifier.d.ts

30 lines
776 B
TypeScript
Raw Normal View History

2026-02-10 15:54:09 +00:00
/**
* Result of a DKIM verification
*/
export interface IDkimVerificationResult {
isValid: boolean;
domain?: string;
selector?: string;
status?: string;
details?: any;
errorMessage?: string;
signatureFields?: Record<string, string>;
}
/**
* DKIM verifier delegates to the Rust security bridge.
2026-02-10 15:54:09 +00:00
*/
export declare class DKIMVerifier {
constructor();
/**
* Verify DKIM signature for an email via Rust bridge
2026-02-10 15:54:09 +00:00
*/
verify(emailData: string, options?: {
useCache?: boolean;
returnDetails?: boolean;
}): Promise<IDkimVerificationResult>;
/** No-op — Rust bridge handles its own caching */
2026-02-10 15:54:09 +00:00
clearCache(): void;
/** Always 0 — cache is managed by the Rust side */
2026-02-10 15:54:09 +00:00
getCacheSize(): number;
}