/** * This function will be executed automatically after either shipment status or payment status is updated. */ import { PoolClient } from '@evershop/postgres-query-builder'; import { OrderRow } from '../../../types/db/index.js'; export declare function resolveOrderStatus(paymentStatus: string, shipmentStatus: string): string; export declare function changeOrderStatus(orderId: number, status: string, conn?: PoolClient): Promise; export declare function hookBeforeUpdateOrderStatus(callback: (this: { order: OrderRow; status: string; }, ...args: [ orderId: number, status: string, connection: PoolClient, ...args: any[] ]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateOrderStatus(callback: (this: { order: OrderRow; status: string; }, ...args: [ orderId: number, status: string, connection: PoolClient, ...args: any[] ]) => void | Promise, priority?: number): void; export declare function hookBeforeAddOrderStatusChangeEvents(callback: (this: { order: OrderRow; status: string; }, ...args: [ orderId: number, before: string, after: string, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookAfterAddOrderStatusChangeEvents(callback: (this: { order: OrderRow; status: string; }, ...args: [ orderId: number, before: string, after: string, connection: PoolClient ]) => void | Promise, priority?: number): void;