import type { EmailAddress, EmailAddressInput } from "./types.mjs"; /** * Normalize any accepted address input to an array of `EmailAddress` — * drivers should not re-implement this parsing. * * Accepts: * - `"ada@acme.com"` * - `"Ada Lovelace "` * - `{ email, name? }` * - arrays of the above (mixed) */ export declare function normalizeAddresses(input: EmailAddressInput | undefined): EmailAddress[]; /** Parse `"Name "` or a bare `"email@x"` into an `EmailAddress`. */ export declare function parseAddress(value: string): EmailAddress; /** Format an `EmailAddress` back into its canonical header form. */ export declare function formatAddress(addr: EmailAddress): string; /** Basic RFC-5322-ish address syntax validator. Strict enough to catch * typos but not so strict that it rejects RFC-valid edge cases. */ export declare function isValidEmail(value: string): boolean;