import type { OrderInTransactionRepo, IOrderInTransaction } from '../../../repo/orderInTransaction'; import type { OrderNumberRepo } from '../../../repo/orderNumber'; import type { ProjectRepo } from '../../../repo/project'; import type { PlaceOrderRepo } from '../../../repo/transaction/placeOrder'; /** * 未発行であれば、注文番号を発行して取引に保管する */ declare function issueOrderNumberIfNotExist(params: { project: { id: string; }; /** * 取引ID */ id: string; object: { orderDate: Date; }; creatingOrderInTransaction: Pick; }, options: { saveOrderNumberInPlaceOrderInProgress: boolean; }): (repos: { project: ProjectRepo; placeOrder: PlaceOrderRepo; orderInTransaction: OrderInTransactionRepo; orderNumber: OrderNumberRepo; }) => Promise; export { issueOrderNumberIfNotExist };