import type { WithRev } from '@/api/type'; export type WithToInventoryLocation = { toInventoryLocation: FdoInventoryLocation; }; export declare const usePurchaseOrderApi: () => { readRequests(dbName?: string, start?: string, end?: string): Promise[]>; readRequestById(_id: string, dbName?: string): Promise; readRequestByIds(requestIds: string[], dbName?: string): Promise<(FdoPurchaseOrderRequest & WithToInventoryLocation)[]>; getPurchaseOrders({ start, end }: { start: string; end: string; }): Promise[]>; getLatestPurchaseOrderRequest(purchaseOrderId: FdoPurchaseOrder['_id']): Promise; getPurchaseOrderById(id: FdoPurchaseOrder['_id']): Promise>; /** * @deprecated Use `processPurchaseOrderV2` instead. */ processPurchaseOrder(dto: FdtoPurchaseOrderOperation, db?: string): Promise>; createPurchaseOrder(purchase: FdtoCreatePurchaseOrder): Promise>; updatePurchaseOrder(purchase: FdtoUpdatePurchaseOrder): Promise>; importFromXilnex(payload: FdtoXilnexTransferNote): Promise; processPurchaseOrderV2(dto: FdtoPurchaseOrderOperateV2Request, db?: string): Promise>; getWorkflowConfig(): Promise; updateDeliveryOrder(payload: FdtoDeliveryOrderUpdateRequest): Promise; createDeliveryOrder(payload: FdtoDeliveryOrderCreateRequest): Promise; getDeliveryOrderTrails(purchaseOrderId: string, deliveryOrderId: string): Promise; }; export declare const purchaseOrderApi: {};