import { IShippingQuote } from '../../Interfaces/Cart'; import Cart from '../Cart'; import Space from '../Space'; import { IExternalServices } from '../../Interfaces/Space/IExternalService'; export default class Shipment { private _shipmentService; private _shippingQuote; private _cart; constructor(cart: Cart, shipmentService: IExternalServices[]); private _getPriceByCurrency; getShippingQuotes: (space: Space, fromAddress?: any, fromServer?: boolean, doNotPackage?: boolean) => Promise; getServiceOfQuote: (quote: any) => IExternalServices; approveQuote: (quote?: any, fromServer?: boolean, canadaPostProps?: any) => Promise<{ readonly confirmed: boolean; readonly details: any; }>; cancelShipping: (orderId: string, fromServer?: boolean, deleteUrl?: string) => Promise<{ confirmed: boolean; error: undefined; } | { confirmed: boolean; error: string; }>; getLabel: (labelUrl: string, fromServer?: boolean) => Promise<{ confirmed: boolean; label: any; } | undefined>; }