UNPKG

hbotutil

Version:

Delivery/pickup date helpers for Germany (weekends + union of major state holidays)

28 lines (22 loc) 910 B
export interface ShipmentDates { pickupDate: string; deliveryDate: string; } export interface ParsedHumanName { salutation: string; firstName: string; middleName: string; lastName: string; suffix: string; } export declare function addDays(date: string | Date, days: number): string; export declare function pickupAnchoredShipmentDates(requestedPickupDate: string | Date): ShipmentDates; export declare function deliveryAnchoredShipmentDates(requestedDeliveryDate: string | Date): ShipmentDates; export declare function splitHumanName(input: string | null | undefined): ParsedHumanName; export interface FormatDateForCustomerIoOptions { timeZone?: string; prefix?: string; } export declare function formatDateForCustomerIo(input: string | Date, options?: FormatDateForCustomerIoOptions): string; // UMD: expose as global for script-tag usage export as namespace NRShip;