import { Store } from '@ngrx/store'; import { CancellationRequestEntryInputList, Order, OrderHistoryList, RoutingService, StateWithProcess, UserIdService } from '@spartacus/core'; import { ConsignmentTracking, OrderFacade } from '@spartacus/order/root'; import { Observable } from 'rxjs'; import { StateWithOrder } from '../store/order-state'; import * as i0 from "@angular/core"; export declare class OrderService implements OrderFacade { protected store: Store; protected processStateStore: Store>; protected userIdService: UserIdService; protected routingService: RoutingService; constructor(store: Store, processStateStore: Store>, userIdService: UserIdService, routingService: RoutingService); /** * Returns an order's detail */ getOrderDetails(): Observable; /** * Retrieves order's details * * @param orderCode an order code */ loadOrderDetails(orderCode: string): void; /** * Clears order's details */ clearOrderDetails(): void; /** * Returns order history list */ getOrderHistoryList(pageSize: number): Observable; /** * Returns a loaded flag for order history list */ getOrderHistoryListLoaded(): Observable; /** * Retrieves an order list * @param pageSize page size * @param currentPage current page * @param sort sort */ loadOrderList(pageSize: number, currentPage?: number, sort?: string): void; /** * Cleaning order list */ clearOrderList(): void; /** * Returns a consignment tracking detail */ getConsignmentTracking(): Observable; /** * Retrieves consignment tracking details * @param orderCode an order code * @param consignmentCode a consignment code */ loadConsignmentTracking(orderCode: string, consignmentCode: string): void; /** * Cleaning consignment tracking */ clearConsignmentTracking(): void; cancelOrder(orderCode: string, cancelRequestInput: CancellationRequestEntryInputList): void; /** * Returns the cancel order loading flag */ getCancelOrderLoading(): Observable; /** * Returns the cancel order success flag */ getCancelOrderSuccess(): Observable; /** * Resets the cancel order process flags */ resetCancelOrderProcessState(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }