import { RequestContext } from '../../../api/common/request-context'; import { Order } from '../../../entity/order/order.entity'; import { OrderService } from '../../services/order.service'; import { SessionService } from '../../services/session.service'; export declare class ActiveOrderService { private sessionService; private orderService; constructor(sessionService: SessionService, orderService: OrderService); /** * @description * Gets the active Order object from the current Session. Optionally can create a new Order if * no active Order exists. * * Intended to be used at the Resolver layer for those resolvers that depend upon an active Order * being present. */ getOrderFromContext(ctx: RequestContext): Promise; getOrderFromContext(ctx: RequestContext, createIfNotExists: true): Promise; }