import { type PoolClient } from '@evershop/postgres-query-builder'; /** * `cart_email_added`: an open cart gets an email, or its email changes. This * is what an abandoned-cart sender (a Klaviyo extension, a job of your own, a * webhook) waits for: from then on the cart can be emailed, with a link from * `buildCartRecoveryUrl(cart_id)`. * * A trigger, so that every way a cart gets an email counts: a guest typing it * at checkout (`addCartContactInfo`), a customer signing in with a cart * (`[auth]addCustomerToCart`), a signed-in customer's new cart, the API, SQL. * `saveCart` writes every column on each save, so the email is compared: the * same email again writes nothing. A closed (ordered or restored) cart writes * nothing, nor does an import (`evershop.importing`, see Version-1.0.13). * * The payload names the cart by `cart_id`, not by its uuid, which opens the * cart through the public cart APIs: events are stored and sent to webhooks. */ declare const _default: (connection: PoolClient) => Promise; export default _default;