import type { OrderRow } from '../../../types/db/index.js'; /** * Registers the built-in zero-checkout payment method. Always enabled — no * setting, no config: its validator is purely "is the cart total 0". * Must be called from a module bootstrap (the registry locks afterwards). */ export declare function registerZeroCheckoutPaymentMethod(): void; /** * Placement-boundary guards. The `payment_method` cart-field resolver already * rejects every explicitly selected wrong method, but a cart whose * `payment_method` was never set carries no field error — these rules close * that bypass at `validateBeforeCreateOrder`, which both order-creation * endpoints funnel through. Scoped to zero-total carts on purpose: placing a * methodless order with a total above 0 is pre-existing platform behavior * and stays untouched. */ export declare function registerZeroCheckoutOrderValidation(): void; /** * Flips a freshly created zero-checkout order to `paid` and marks it placed, * in one transaction: status update, activity log, then `markOrderPlaced`, * so `order_placed` carries the paid order and exists only if the payment * status was saved. The `changePaymentStatus` after-hook recomputes * `order.status` from the PSO mapping on the same connection. */ export declare function completeZeroCheckoutOrder(orderId: number): Promise; /** * `hookAfter('createOrderFunc')` handler. Runs after the order transaction * has committed: a failure here must NOT surface as a failed checkout for an * order that already exists, so it logs and swallows — the order then stays * `pending` for manual review, the same failure class as a lost gateway * webhook. */ export declare function markZeroCheckoutOrderPaid(order: (Partial & Pick) | null | undefined, complete?: (orderId: number) => Promise): Promise;