import { MxProviderInfo } from '@visulima/email-provider-mx'; export { type MxProviderInfo, classifyMx, classifyMxRecords, isSecureEmailGateway } from '@visulima/email-provider-mx'; import { c as MxRecord, b as MxCheckResult, C as Cache } from "../packem_shared/mx.d-HxIDdxvR.js"; /** * The enriched provider details for an email address. */ interface ProviderDetails { /** True when the resolving MX is a Secure Email Gateway (Proofpoint, Mimecast, …). */ isSecureEmailGateway: boolean; /** The MX records the classification was derived from. */ mxRecords: MxRecord[]; /** The classified provider, or `undefined` when no MX matched a known provider. */ provider?: MxProviderInfo; } /** * Options for provider enrichment. */ interface ProviderEnrichOptions { cache?: Cache; ttl?: number; } /** * Resolves an email address's mailbox/SEG provider from its MX records. * * Looks up the domain's MX records, then classifies the highest-priority host * via `@visulima/email-provider-mx` — emailable's "SMTP Provider Details" plus * Secure-Email-Gateway detection. * @param email The email address to enrich. * @param options Caching options for the MX lookup. * @returns The provider details, including the MX records used. * @example * ```ts * import { enrichProvider } from "@visulima/email-verifier/enrich/provider"; * * const details = await enrichProvider("user@gmail.com"); * console.log(details.provider?.display); // "Google" * ``` */ declare const enrichProvider: (email: string, options?: ProviderEnrichOptions) => Promise; export { type ProviderDetails, type ProviderEnrichOptions, enrichProvider as default, enrichProvider };