/**
 * Creates a Cloudflare Email Service binding for sending emails from Workers.
 *
 * Set `dev.remote` to `true` to use the real Cloudflare email binding while
 * running the Worker locally.
 *
 * @example
 * ```ts
 * const email = EmailSender({
 *   allowedSenderAddresses: ["noreply@example.com"],
 *   dev: { remote: true },
 * });
 * ```
 *
 * @see https://developers.cloudflare.com/email-service/api/send-emails/workers-api/
 */
export function EmailSender(props = {}) {
    return {
        type: "send_email",
        ...props,
    };
}
//# sourceMappingURL=email-sender.js.map