import { PoolClient } from '@evershop/postgres-query-builder'; /** * Cancels an order by its UUID and adds a cancellation reason. * @param uuid - The UUID of the order to cancel. * @param reason - The reason for cancellation. * @returns A promise that resolves when the order is canceled. */ declare const _default: (uuid: string, reason: string | undefined) => Promise; export default _default; export declare function hookBeforeValidateStatus(callback: (this: { order: Record; }, ...args: [ paymentStatus: string, shipmentStatus: string ]) => void | Promise, priority?: number): void; export declare function hookAfterValidateStatus(callback: (this: { order: Record; }, ...args: [ paymentStatus: string, shipmentStatus: string ]) => void | Promise, priority?: number): void; export declare function hookBeforeUpdatePaymentStatusToCancel(callback: (this: { order: Record; }, ...args: [ orderID: number, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookAfterUpdatePaymentStatusToCancel(callback: (this: { order: Record; }, ...args: [ orderID: number, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookBeforeUpdateShipmentStatusToCancel(callback: (this: { order: Record; }, ...args: [ orderID: number, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateShipmentStatusToCancel(callback: (this: { order: Record; }, ...args: [ orderID: number, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookBeforeReStockAfterCancel(callback: (this: { order: Record; }, ...args: [ orderID: number, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookAfterReStockAfterCancel(callback: (this: { order: Record; }, ...args: [ orderID: number, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookBeforeCancelOrder(callback: (this: { uuid: string; }, ...args: [ uuid: string, reason: string | undefined ]) => void | Promise, priority?: number): void; export declare function hookAfterCancelOrder(callback: (this: { uuid: string; }, ...args: [ uuid: string, reason: string | undefined ]) => void | Promise, priority?: number): void;