import { factory } from '../../factory'; import type { AcceptedOfferRepo } from '../../repo/acceptedOffer'; import type { AuthorizationRepo } from '../../repo/authorization'; import type { OrderRepo } from '../../repo/order'; import type { ReservationRepo } from '../../repo/reservation'; type IReservationResult = Pick & { reservedTicket: { ticketType: Pick & { name: { ja?: string; }; }; }; }; declare function findByCode(params: { /** * 予約ID */ id: string; project: { id: string; }; /** * 注文コード */ code: string; seller?: { id?: string; }; }): (repos: { acceptedOffer: AcceptedOfferRepo; authorization: AuthorizationRepo; order: OrderRepo; reservation: ReservationRepo; }) => Promise<{ reservation: IReservationResult; }>; export { findByCode };