import { T as Shipment, d as Address, n as FulfillmentSchema, p as CarrierTrackResult, y as Label } from "./schema-CIDxLCgB.js";
import { i as FulfillmentPorts, n as CarrierAdapter } from "./seams-CsBH_YwI.js";
import { Transaction, TransactionalDatabase } from "@platform-modules/db";
//#region src/physical/shipment.d.ts
declare function createShipment(tx: Transaction<FulfillmentSchema>, input: {
  orderId: string;
  lineIds: string[];
  address: Address;
}): Promise<Shipment>;
//#endregion
//#region src/physical/label.d.ts
declare function buyShippingLabel(db: TransactionalDatabase<FulfillmentSchema>, shipmentId: string, carrier: CarrierAdapter, idempotencyKey?: string): Promise<Label>;
//#endregion
//#region src/physical/webhook.d.ts
declare function handleCarrierWebhook(ports: FulfillmentPorts, carrier: CarrierAdapter, req: Request): Promise<void>;
//#endregion
//#region src/physical/track.d.ts
declare function trackShipment(db: TransactionalDatabase<FulfillmentSchema>, shipmentId: string, carrier: CarrierAdapter): Promise<CarrierTrackResult>;
//#endregion
export { createShipment as i, handleCarrierWebhook as n, buyShippingLabel as r, trackShipment as t };