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>;
|
|
|
|
|
}
|
|
|
|
|
/**
|
2026-02-10 20:30:43 +00:00
|
|
|
* DKIM verifier — delegates to the Rust security bridge.
|
2026-02-10 15:54:09 +00:00
|
|
|
*/
|
|
|
|
|
export declare class DKIMVerifier {
|
|
|
|
|
constructor();
|
|
|
|
|
/**
|
2026-02-10 20:30:43 +00:00
|
|
|
* 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>;
|
2026-02-10 20:30:43 +00:00
|
|
|
/** No-op — Rust bridge handles its own caching */
|
2026-02-10 15:54:09 +00:00
|
|
|
clearCache(): void;
|
2026-02-10 20:30:43 +00:00
|
|
|
/** Always 0 — cache is managed by the Rust side */
|
2026-02-10 15:54:09 +00:00
|
|
|
getCacheSize(): number;
|
|
|
|
|
}
|