import { PoolClient } from '@evershop/postgres-query-builder'; import { Address } from '../../../types/customerAddress.js'; interface BillingAddress extends Address { /** * The ID of the billing address */ cart_address_id: number; } /** * Hookable wrapper for the addBillingAddress service. * This allows third-party extensions to hook into the billing address addition flow. */ export declare const addBillingAddress: (cartUUID: string, addressData: Address, context?: Record) => Promise; export declare function hookBeforeSaveBillingAddress(callback: (this: Record, ...args: [addressData: Address, connection: PoolClient]) => void | Promise, priority?: number): void; export declare function hookAfterSaveBillingAddress(callback: (this: Record, ...args: [addressData: Address, connection: PoolClient]) => void | Promise, priority?: number): void; export declare function hookBeforeUpdateCartWithBillingAddress(callback: (this: Record, ...args: [cartId: number, addressId: number, connection: PoolClient]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateCartWithBillingAddress(callback: (this: Record, ...args: [cartId: number, addressId: number, connection: PoolClient]) => void | Promise, priority?: number): void; export declare function hookBeforeAddBillingAddress(callback: (this: Record, ...args: [ cartUUID: string, addressData: Address, context: Record ]) => void | Promise, priority?: number): void; export declare function hookAfterAddBillingAddress(callback: (this: Record, ...args: [ cartUUID: string, addressData: Address, context: Record ]) => void | Promise, priority?: number): void; export {};