import type { IssuerRepo } from '../../../repo/issuer'; import type { MemberRepo } from '../../../repo/member'; import type { MemberProgramRepo } from '../../../repo/memberProgram'; import type { OrderInTransactionRepo } from '../../../repo/orderInTransaction'; import type { OrderNumberRepo } from '../../../repo/orderNumber'; import type { PassportRepo } from '../../../repo/passport'; import type { ProjectRepo } from '../../../repo/project'; import type { ProjectMakesOfferRepo } from '../../../repo/projectMakesOffer'; import type { SellerRepo } from '../../../repo/seller'; import type { IStartedPlaceOrder, PlaceOrderRepo } from '../../../repo/transaction/placeOrder'; import { IStartPlaceOrderParams } from './start/factory'; export interface IStartOperationRepos { issuer: IssuerRepo; member: MemberRepo; memberProgram: MemberProgramRepo; passport: PassportRepo; projectMakesOffer: ProjectMakesOfferRepo; seller: SellerRepo; placeOrder: PlaceOrderRepo; orderInTransaction: OrderInTransactionRepo; project: ProjectRepo; orderNumber: OrderNumberRepo; } type IStartOperation = (repos: IStartOperationRepos) => Promise; /** * 取引開始 */ declare function start(params: IStartPlaceOrderParams, options: { saveOrderNumberInPlaceOrderInProgress: boolean; }): IStartOperation; export { start, IStartPlaceOrderParams };