import { type PoolClient } from '@evershop/postgres-query-builder'; import { pool } from '../../../lib/postgres/connection.js'; import type { ShipmentRow } from '../../../types/db/index.js'; import type { ShipmentPhase } from '../types/shipmentPhase.js'; export declare function getPhaseOf(statusCode: string): ShipmentPhase; interface UpdateContext { shipment: ShipmentRow; fromStatus: string; toStatus: string; fromPhase: ShipmentPhase; toPhase: ShipmentPhase; } export declare const updateShipmentStatus: (shipmentUuid: string, status: string, conn?: PoolClient) => Promise; export declare function hookBeforeUpdateShipmentStatus(callback: (this: Record, ...args: [shipmentUuid: string, status: string, conn?: PoolClient]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateShipmentStatus(callback: (this: Record, ...args: [shipmentUuid: string, status: string, conn?: PoolClient]) => void | Promise, priority?: number): void; export declare function hookBeforeValidateShipmentStatusBeforeUpdate(callback: (this: { shipmentUuid: string; }, ...args: [status: string]) => void | Promise, priority?: number): void; export declare function hookAfterValidateShipmentStatusBeforeUpdate(callback: (this: { shipmentUuid: string; }, ...args: [status: string]) => void | Promise, priority?: number): void; export declare function hookBeforeChangeShipmentStatusForShipment(callback: (this: UpdateContext, ...args: [ shipmentUuid: string, status: string, phase: ShipmentPhase, connection: PoolClient | typeof pool ]) => void | Promise, priority?: number): void; export declare function hookAfterChangeShipmentStatusForShipment(callback: (this: UpdateContext, ...args: [ shipmentUuid: string, status: string, phase: ShipmentPhase, connection: PoolClient | typeof pool ]) => void | Promise, priority?: number): void; export {};