import { c as EmailAddress } from "../packem_shared/types.d-CyiC9uRC.js"; import 'node:buffer'; /** * Parses a string representation of an email address into an EmailAddress object. * Supports formats: "email@example.com", "Name <email@example.com>", "<email@example.com>". * @example Parsing an address with a name * ```ts * const address = parseAddress("John Doe "); * // { name: "John Doe", email: "john@example.com" } * ``` * @example Parsing an address without a name * ```ts * const address = parseAddress("jane@example.com"); * // { email: "jane@example.com" } * ``` * @param address The string representation of the address to parse. * @returns An EmailAddress object if parsing is successful, or undefined if invalid. */ declare const parseAddress: (address: string) => EmailAddress | undefined; export { parseAddress as default };