import { type DeliveryConfiguration, type DeliveryLocation } from '@unchainedshop/core-delivery'; import { type DeliveryContext } from '../core-index.ts'; import type { Work } from '@unchainedshop/core-worker'; export default function registerPickUpDelivery({ adapterId, locations, active, autoReleaseAllowed, estimatedDeliveryThroughput, send, }: { adapterId: string; active?: boolean; autoReleaseAllowed?: boolean; estimatedDeliveryThroughput?: (warehousingThroughputTime: number, context: DeliveryContext) => Promise; send: boolean | ((configuration: DeliveryConfiguration, context: DeliveryContext) => Promise); locations: DeliveryLocation[] | ((context: DeliveryContext) => Promise); }): void;