import { EventData } from '../../../../types/event.js'; /** * Emails the customer when their order is canceled. Fires from `cancelOrder`, * which emits the dedicated `order_canceled` event carrying the cancellation * reason. * * Not for an order that was never placed (`placed_at` NULL): its payment was * abandoned or failed, the customer got no order confirmation either, and the * abandoned order crons (`cancelAbandonedOrder`) give its cart back, so "your * order is canceled" would only contradict an abandoned-cart reminder. The * admin still sees the cancellation on the order. */ export default function sendCancellationEmail(data: EventData<'order_canceled'>): Promise;