/** * Waybill service for Nova Poshta API * Handles all waybill-related operations */ import type { ClientContext } from '../core/client'; import type { CreateWaybillRequest, CreateWaybillWithOptionsRequest, CreatePoshtomatWaybillRequest, UpdateWaybillRequest, DeleteWaybillRequest, CreateWaybillResponse, UpdateWaybillResponse, DeleteWaybillResponse, DeliveryDateRequest, DeliveryDateResponse, PriceCalculationRequest, PriceCalculationResponse } from '../types/waybill'; /** * Service for managing waybills (express documents) */ export declare class WaybillService { readonly namespace: "waybill"; private transport; private apiKey?; attach(ctx: ClientContext): void; /** * Create a standard waybill */ create(request: CreateWaybillRequest): Promise; /** * Create a waybill with additional options and services */ createWithOptions(request: CreateWaybillWithOptionsRequest): Promise; /** * Create a postomat waybill (with restrictions) */ createForPostomat(request: CreatePoshtomatWaybillRequest): Promise; /** * Update an existing waybill */ update(request: UpdateWaybillRequest): Promise; /** * Delete waybills */ delete(request: DeleteWaybillRequest): Promise; /** * Calculate delivery date */ getDeliveryDate(request: DeliveryDateRequest): Promise; /** * Calculate delivery price */ getPrice(request: PriceCalculationRequest): Promise; /** * Batch create multiple waybills */ createBatch(requests: CreateWaybillRequest[]): Promise; /** * Batch delete multiple waybills */ deleteBatch(documentRefs: string[]): Promise; /** * Get estimated delivery cost and date in one request */ getEstimate(request: PriceCalculationRequest): Promise<{ price: PriceCalculationResponse; deliveryDate: DeliveryDateResponse; }>; /** * Validate waybill data without creating */ validateWaybill(request: CreateWaybillRequest): Promise; /** * Check if postomat delivery is available for the request */ canDeliverToPostomat(request: Partial): boolean; /** * Create express waybill (legacy method for compatibility) * @deprecated Use create() method instead */ createExpressWaybill(request: CreateWaybillRequest): Promise; /** * Create waybill with options (legacy method for compatibility) * @deprecated Use createWithOptions() method instead */ createWaybillWithOptions(request: CreateWaybillWithOptionsRequest): Promise; /** * Create postomat express waybill (legacy method for compatibility) * @deprecated Use createForPostomat() method instead */ createPoshtomatExpressWaybill(request: CreatePoshtomatWaybillRequest): Promise; /** * Update express waybill (legacy method for compatibility) * @deprecated Use update() method instead */ updateExpressWaybill(request: UpdateWaybillRequest): Promise; /** * Delete waybill (legacy method for compatibility) * @deprecated Use delete() method instead */ deleteWaybill(request: DeleteWaybillRequest): Promise; /** * Get delivery date (legacy method for compatibility) * @deprecated Use getDeliveryDate() method instead */ getDocumentDeliveryDate(request: DeliveryDateRequest): Promise; /** * Get delivery price (legacy method for compatibility) * @deprecated Use getPrice() method instead */ getDeliveryPrice(request: PriceCalculationRequest): Promise; /** * Get document price (legacy method for compatibility) * @deprecated Use getPrice() method instead */ getDocumentPrice(request: PriceCalculationRequest): Promise; } //# sourceMappingURL=waybillService.d.ts.map