@burdenoff/microfe-movethewheels 2026.525.2 → 2026.525.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/dist/dev/main.d.ts +0 -1
  3. package/dist/generated/global-operations.d.ts +0 -1
  4. package/dist/generated/global-types.d.ts +0 -23526
  5. package/dist/generated/wspace-operations.d.ts +0 -3704
  6. package/dist/generated/wspace-types.d.ts +0 -57850
  7. package/dist/index.d.ts +0 -4
  8. package/dist/movethewheels/MoveTheWheelsRoot.d.ts +0 -25
  9. package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +0 -7
  10. package/dist/movethewheels/components/DataTable.d.ts +0 -32
  11. package/dist/movethewheels/components/MetricCard.d.ts +0 -43
  12. package/dist/movethewheels/components/PageLayout.d.ts +0 -68
  13. package/dist/movethewheels/components/StatusBadge.d.ts +0 -49
  14. package/dist/movethewheels/components/index.d.ts +0 -10
  15. package/dist/movethewheels/components/ui.d.ts +0 -22
  16. package/dist/movethewheels/constants/index.d.ts +0 -24
  17. package/dist/movethewheels/constants/mockData.d.ts +0 -33
  18. package/dist/movethewheels/hooks/index.d.ts +0 -12
  19. package/dist/movethewheels/hooks/useAnalytics.d.ts +0 -118
  20. package/dist/movethewheels/hooks/useCustomers.d.ts +0 -37
  21. package/dist/movethewheels/hooks/useFleet.d.ts +0 -71
  22. package/dist/movethewheels/hooks/useInventory.d.ts +0 -60
  23. package/dist/movethewheels/hooks/useOrders.d.ts +0 -47
  24. package/dist/movethewheels/hooks/useRoutes.d.ts +0 -41
  25. package/dist/movethewheels/hooks/useTracking.d.ts +0 -69
  26. package/dist/movethewheels/index.d.ts +0 -30
  27. package/dist/movethewheels/pages/AIAssistantPage.d.ts +0 -4
  28. package/dist/movethewheels/pages/AnalyticsPage.d.ts +0 -4
  29. package/dist/movethewheels/pages/CreateOrderPage.d.ts +0 -6
  30. package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +0 -4
  31. package/dist/movethewheels/pages/CustomersPage.d.ts +0 -4
  32. package/dist/movethewheels/pages/DashboardPage.d.ts +0 -6
  33. package/dist/movethewheels/pages/DriverDetailsPage.d.ts +0 -4
  34. package/dist/movethewheels/pages/DriversPage.d.ts +0 -4
  35. package/dist/movethewheels/pages/FinancePage.d.ts +0 -4
  36. package/dist/movethewheels/pages/FleetPage.d.ts +0 -6
  37. package/dist/movethewheels/pages/ImportExportPage.d.ts +0 -4
  38. package/dist/movethewheels/pages/InventoryPage.d.ts +0 -4
  39. package/dist/movethewheels/pages/LiveTrackingPage.d.ts +0 -6
  40. package/dist/movethewheels/pages/MarketplacePage.d.ts +0 -4
  41. package/dist/movethewheels/pages/OrderDetailsPage.d.ts +0 -6
  42. package/dist/movethewheels/pages/OrdersListPage.d.ts +0 -6
  43. package/dist/movethewheels/pages/ProductDetailsPage.d.ts +0 -4
  44. package/dist/movethewheels/pages/ProductsPage.d.ts +0 -4
  45. package/dist/movethewheels/pages/ReportsPage.d.ts +0 -4
  46. package/dist/movethewheels/pages/RouteDetailsPage.d.ts +0 -4
  47. package/dist/movethewheels/pages/RoutesPage.d.ts +0 -4
  48. package/dist/movethewheels/pages/SettingsPage.d.ts +0 -4
  49. package/dist/movethewheels/pages/TrackingPage.d.ts +0 -6
  50. package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +0 -4
  51. package/dist/movethewheels/pages/VehiclesPage.d.ts +0 -4
  52. package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +0 -4
  53. package/dist/movethewheels/pages/WarehousesPage.d.ts +0 -4
  54. package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +0 -16
  55. package/dist/movethewheels/store/movethewheelsStore.d.ts +0 -73
  56. package/dist/movethewheels/types/index.d.ts +0 -655
  57. package/dist/movethewheels/utils/cn.d.ts +0 -6
  58. package/dist/movethewheels/utils/formatters.d.ts +0 -60
  59. package/dist/movethewheels/utils/graphqlClient.d.ts +0 -11
  60. package/dist/movethewheels/utils/index.d.ts +0 -7
  61. package/dist/movethewheels/utils/navigation.d.ts +0 -23
@@ -1,655 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export interface NavItem {
4
- id: string;
5
- label: string;
6
- icon?: ReactNode;
7
- path: string;
8
- badge?: number;
9
- order?: number;
10
- group?: string;
11
- visible?: boolean;
12
- children?: NavItem[];
13
- }
14
- export interface FooterItem {
15
- id: string;
16
- label: string;
17
- icon?: string;
18
- onClick?: () => void;
19
- type?: 'status' | 'action' | 'info';
20
- order?: number;
21
- badge?: string;
22
- section?: 'left' | 'center' | 'right';
23
- visible?: boolean;
24
- }
25
- export interface User {
26
- id: string;
27
- email: string;
28
- firstName?: string;
29
- lastName?: string;
30
- avatar?: string;
31
- username?: string;
32
- name?: string;
33
- role?: string;
34
- }
35
- export interface MicrofrontendRootProps {
36
- basePath: string;
37
- navigate: (path: string) => void;
38
- currentUser?: User | null;
39
- tenantId?: string;
40
- workspaceId?: string;
41
- apiGatewayUrl?: string;
42
- authToken?: string;
43
- /**
44
- * Workspace-scoped JWT token. The gateway requires both authToken (Authorization)
45
- * and workspaceToken (X-Workspace-Authorization) for workspace-scoped operations.
46
- */
47
- workspaceToken?: string;
48
- onAuthError?: () => void;
49
- registerNavItems?: (items: NavItem | NavItem[]) => () => void;
50
- registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
51
- }
52
- export interface MoveTheWheelsRootProps extends MicrofrontendRootProps {
53
- defaultView?: 'dashboard' | 'orders' | 'fleet';
54
- onOrderSelect?: (order: Order) => void;
55
- }
56
- export type UserRole = 'business_owner' | 'logistics_manager' | 'operations_coordinator' | 'warehouse_supervisor' | 'warehouse_worker' | 'driver' | 'fleet_operator' | 'dispatcher' | 'customer_b2b' | 'customer_b2c' | 'service_provider' | 'marketplace_vendor';
57
- export interface Address {
58
- street: string;
59
- city: string;
60
- state: string;
61
- postalCode: string;
62
- country: string;
63
- latitude?: number;
64
- longitude?: number;
65
- }
66
- export interface Location {
67
- latitude: number;
68
- longitude: number;
69
- address?: string;
70
- timestamp?: Date;
71
- accuracy?: number;
72
- }
73
- export interface Dimensions {
74
- length: number;
75
- width: number;
76
- height: number;
77
- unit: 'cm' | 'in' | 'm';
78
- }
79
- export interface Company {
80
- id: string;
81
- name: string;
82
- type: string;
83
- address: Address;
84
- contactInfo: {
85
- primaryEmail: string;
86
- primaryPhone: string;
87
- website?: string;
88
- };
89
- settings: {
90
- timezone: string;
91
- currency: string;
92
- language: string;
93
- notifications: {
94
- email: boolean;
95
- sms: boolean;
96
- push: boolean;
97
- orderUpdates: boolean;
98
- deliveryAlerts: boolean;
99
- systemNotifications: boolean;
100
- };
101
- integration: Record<string, unknown>;
102
- };
103
- subscription: {
104
- id: string;
105
- name: string;
106
- type: string;
107
- features: string[];
108
- limits: {
109
- orders: number;
110
- users: number;
111
- warehouses: number;
112
- vehicles: number;
113
- storage: number;
114
- apiCalls: number;
115
- };
116
- pricing: {
117
- monthly: number;
118
- annual: number;
119
- currency: string;
120
- billingCycle: string;
121
- };
122
- status: string;
123
- startDate: Date;
124
- };
125
- isActive: boolean;
126
- createdAt: Date;
127
- }
128
- export interface Customer {
129
- id: string;
130
- name: string;
131
- email: string;
132
- phone: string;
133
- type: 'b2b' | 'b2c';
134
- company?: string;
135
- address: Address;
136
- businessLicense?: string;
137
- taxId?: string;
138
- website?: string;
139
- preferredContactMethod: 'email' | 'phone' | 'both';
140
- marketingOptIn: boolean;
141
- notes?: string;
142
- isActive: boolean;
143
- rating: number;
144
- createdAt: Date;
145
- updatedAt: Date;
146
- }
147
- export interface Product {
148
- id: string;
149
- sku: string;
150
- name: string;
151
- description: string;
152
- category: string;
153
- brand?: string;
154
- dimensions: Dimensions;
155
- weight: number;
156
- value: number;
157
- barcode?: string;
158
- images: string[];
159
- attributes: Array<{
160
- name: string;
161
- value: string;
162
- type: string;
163
- }>;
164
- hazardous: boolean;
165
- temperatureControlled: boolean;
166
- fragile: boolean;
167
- createdAt: Date;
168
- updatedAt: Date;
169
- }
170
- export interface OrderItem {
171
- id: string;
172
- productId: string;
173
- name: string;
174
- description?: string;
175
- quantity: number;
176
- weight: number;
177
- dimensions: Dimensions;
178
- value: number;
179
- sku: string;
180
- barcode?: string;
181
- }
182
- export interface OrderTimelineEvent {
183
- timestamp: Date;
184
- status: string;
185
- location?: Address;
186
- notes?: string;
187
- performedBy: string;
188
- }
189
- export interface OrderPricing {
190
- subtotal: number;
191
- taxes: number;
192
- fees: {
193
- delivery: number;
194
- handling: number;
195
- insurance?: number;
196
- };
197
- total: number;
198
- currency: string;
199
- paymentMethod: string;
200
- paymentStatus: 'pending' | 'paid' | 'failed' | 'refunded';
201
- }
202
- export type OrderStatus = 'pending' | 'confirmed' | 'assigned' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'cancelled' | 'failed';
203
- export interface Order {
204
- id: string;
205
- orderNumber: string;
206
- customerId: string;
207
- customerInfo: {
208
- name: string;
209
- email: string;
210
- phone: string;
211
- company?: string;
212
- preferredDeliveryTime?: string;
213
- deliveryInstructions?: string;
214
- };
215
- items: OrderItem[];
216
- status: OrderStatus;
217
- orderType: 'b2b' | 'b2c';
218
- priority: 'low' | 'normal' | 'high' | 'urgent';
219
- pickupAddress: Address;
220
- deliveryAddress: Address;
221
- scheduledPickup?: Date;
222
- scheduledDelivery?: Date;
223
- actualPickup?: Date;
224
- actualDelivery?: Date;
225
- driverId?: string;
226
- vehicleId?: string;
227
- trackingNumber: string;
228
- specialInstructions?: string;
229
- pricing: OrderPricing;
230
- timeline: OrderTimelineEvent[];
231
- createdAt: Date;
232
- updatedAt: Date;
233
- }
234
- export type VehicleType = 'van' | 'truck' | 'motorcycle' | 'bicycle' | 'car';
235
- export type VehicleStatus = 'available' | 'assigned' | 'maintenance' | 'out_of_service';
236
- export interface VehicleDocument {
237
- id: string;
238
- type: 'registration' | 'insurance' | 'inspection' | 'permit';
239
- documentUrl: string;
240
- expiryDate: Date;
241
- verified: boolean;
242
- }
243
- export interface Vehicle {
244
- id: string;
245
- vehicleNumber: string;
246
- type: VehicleType;
247
- make: string;
248
- model: string;
249
- year: number;
250
- capacity: {
251
- weight: number;
252
- volume: number;
253
- pallets?: number;
254
- };
255
- status: VehicleStatus;
256
- driverId?: string;
257
- currentLocation?: Location;
258
- lastMaintenance?: Date;
259
- nextMaintenance?: Date;
260
- fuelLevel?: number;
261
- mileage?: number;
262
- documents: VehicleDocument[];
263
- createdAt: Date;
264
- }
265
- export type DriverStatus = 'available' | 'busy' | 'offline' | 'on_break';
266
- export interface DriverDocument {
267
- id: string;
268
- type: 'license' | 'insurance' | 'certification' | 'background_check';
269
- documentUrl: string;
270
- expiryDate: Date;
271
- verified: boolean;
272
- }
273
- export interface Driver {
274
- id: string;
275
- userId: string;
276
- fullName: string;
277
- employeeId: string;
278
- licenseNumber: string;
279
- licenseType: string;
280
- licenseExpiry: Date;
281
- vehicleIds: string[];
282
- assignedVehicle?: string;
283
- status: DriverStatus;
284
- currentLocation?: Location;
285
- joinDate: Date;
286
- baseSalary: number;
287
- completedOrders: number;
288
- todayOrders: number;
289
- specializations: string[];
290
- workingHours: {
291
- startTime: string;
292
- endTime: string;
293
- workingDays: string[];
294
- maxHoursPerDay: number;
295
- maxHoursPerWeek: number;
296
- currentHoursToday: number;
297
- currentHoursThisWeek: number;
298
- };
299
- ratings: {
300
- overall: number;
301
- punctuality: number;
302
- communication: number;
303
- carefulHandling: number;
304
- professionalism: number;
305
- onTimeDelivery: number;
306
- totalRatings: number;
307
- };
308
- documents: DriverDocument[];
309
- earnings: {
310
- totalEarnings: number;
311
- weeklyEarnings: number;
312
- monthlyEarnings: number;
313
- pendingPayments: number;
314
- completedDeliveries: number;
315
- bonuses: number;
316
- };
317
- compliance: {
318
- hoursOfService: boolean;
319
- documentation: boolean;
320
- vehicleInspection: boolean;
321
- lastUpdate: Date;
322
- };
323
- createdAt: Date;
324
- }
325
- export interface WarehouseZone {
326
- id: string;
327
- name: string;
328
- type: 'receiving' | 'storage' | 'picking' | 'packing' | 'shipping';
329
- location: string;
330
- capacity: number;
331
- currentOccupancy: number;
332
- }
333
- export interface WarehouseEquipment {
334
- id: string;
335
- type: string;
336
- model: string;
337
- status: 'operational' | 'maintenance' | 'out_of_service';
338
- lastMaintenance: Date;
339
- nextMaintenance: Date;
340
- }
341
- export interface Warehouse {
342
- id: string;
343
- name: string;
344
- code: string;
345
- address: Address;
346
- type: 'distribution' | 'fulfillment' | 'cold_storage' | 'cross_dock';
347
- capacity: {
348
- totalSpace: number;
349
- usedSpace: number;
350
- totalPallets: number;
351
- usedPallets: number;
352
- specialAreas: Array<{
353
- type: string;
354
- capacity: number;
355
- currentUsage: number;
356
- temperature?: {
357
- min: number;
358
- max: number;
359
- unit: string;
360
- };
361
- }>;
362
- };
363
- operatingHours: Record<string, {
364
- open: string;
365
- close: string;
366
- } | null>;
367
- contacts: Array<{
368
- primaryEmail: string;
369
- primaryPhone: string;
370
- }>;
371
- zones: WarehouseZone[];
372
- equipment: WarehouseEquipment[];
373
- staff: Array<{
374
- userId: string;
375
- role: string;
376
- shift: string;
377
- permissions: string[];
378
- }>;
379
- metrics: {
380
- throughput: number;
381
- accuracy: number;
382
- productivity: number;
383
- utilization: number;
384
- ordersFulfilled: number;
385
- averageProcessingTime: number;
386
- lastUpdated: Date;
387
- };
388
- isActive: boolean;
389
- createdAt: Date;
390
- }
391
- export interface InventoryMovement {
392
- id: string;
393
- type: 'inbound' | 'outbound' | 'transfer' | 'adjustment';
394
- quantity: number;
395
- reason: string;
396
- reference?: string;
397
- performedBy: string;
398
- timestamp: Date;
399
- cost?: number;
400
- }
401
- export interface Inventory {
402
- id: string;
403
- productId: string;
404
- warehouseId: string;
405
- zoneId: string;
406
- quantity: number;
407
- reservedQuantity: number;
408
- availableQuantity: number;
409
- reorderLevel: number;
410
- maxLevel: number;
411
- lastRestocked: Date;
412
- location: {
413
- aisle: string;
414
- shelf: string;
415
- position: string;
416
- level: number;
417
- };
418
- movements: InventoryMovement[];
419
- createdAt: Date;
420
- updatedAt: Date;
421
- }
422
- export interface RouteStop {
423
- id: string;
424
- orderId: string;
425
- sequence: number;
426
- address: Address;
427
- type: 'pickup' | 'delivery';
428
- scheduledTime: Date;
429
- actualTime?: Date;
430
- duration: number;
431
- status: 'pending' | 'completed' | 'skipped' | 'failed';
432
- notes?: string;
433
- }
434
- export interface TrafficCondition {
435
- timestamp: Date;
436
- condition: 'light' | 'moderate' | 'heavy' | 'severe';
437
- delay: number;
438
- location: string;
439
- }
440
- export interface Route {
441
- id: string;
442
- name: string;
443
- driverId: string;
444
- vehicleId: string;
445
- status: 'planned' | 'in_progress' | 'completed' | 'cancelled';
446
- stops: RouteStop[];
447
- distance: number;
448
- estimatedDuration: number;
449
- actualDuration?: number;
450
- startTime?: Date;
451
- endTime?: Date;
452
- optimized: boolean;
453
- trafficConditions: TrafficCondition[];
454
- createdAt: Date;
455
- }
456
- export interface TrackingAlert {
457
- id: string;
458
- type: 'delay' | 'deviation' | 'temperature' | 'damage' | 'security';
459
- severity: 'low' | 'medium' | 'high' | 'critical';
460
- message: string;
461
- timestamp: Date;
462
- acknowledged: boolean;
463
- resolvedAt?: Date;
464
- }
465
- export interface Tracking {
466
- id: string;
467
- entityId: string;
468
- entityType: 'order' | 'vehicle' | 'driver';
469
- currentLocation: Location;
470
- locationHistory: Location[];
471
- status: string;
472
- estimatedArrival?: Date;
473
- nextCheckpoint?: string;
474
- alerts: TrackingAlert[];
475
- lastUpdated: Date;
476
- }
477
- export interface Notification {
478
- id: string;
479
- type: 'success' | 'warning' | 'error' | 'info';
480
- title: string;
481
- message: string;
482
- read: boolean;
483
- actionUrl?: string;
484
- createdAt: Date;
485
- }
486
- export interface DashboardWidget {
487
- id: string;
488
- type: 'metric' | 'chart' | 'table' | 'map' | 'list';
489
- title: string;
490
- size: 'small' | 'medium' | 'large';
491
- position: {
492
- x: number;
493
- y: number;
494
- };
495
- config: {
496
- dataSource: string;
497
- chartType?: string;
498
- refreshInterval?: number;
499
- metrics?: string[];
500
- filters?: Record<string, unknown>;
501
- };
502
- }
503
- export interface ServiceProvider {
504
- id: string;
505
- userId: string;
506
- companyName: string;
507
- businessType: string;
508
- description: string;
509
- services: string[];
510
- coverage: {
511
- countries: string[];
512
- states: string[];
513
- cities: string[];
514
- zipCodes: string[];
515
- serviceRadius: number;
516
- domesticService: boolean;
517
- internationalService: boolean;
518
- };
519
- certifications: Array<{
520
- id: string;
521
- name: string;
522
- issuingBody: string;
523
- certificateNumber: string;
524
- issueDate: Date;
525
- expiryDate: Date;
526
- documentUrl: string;
527
- verified: boolean;
528
- }>;
529
- pricing: {
530
- model: string;
531
- basePrice: number;
532
- currency: string;
533
- minimumCharge: number;
534
- additionalFees: unknown[];
535
- discounts: unknown[];
536
- negotiable: boolean;
537
- };
538
- availability: {
539
- operatingHours: Record<string, {
540
- open: string;
541
- close: string;
542
- } | null>;
543
- responseTime: number;
544
- leadTime: number;
545
- capacity: number;
546
- blackoutDates: string[];
547
- emergencyService: boolean;
548
- };
549
- rating: number;
550
- totalReviews: number;
551
- verificationStatus: string;
552
- documents: unknown[];
553
- contactInfo: {
554
- primaryEmail: string;
555
- primaryPhone: string;
556
- website?: string;
557
- };
558
- isActive: boolean;
559
- featured: boolean;
560
- createdAt: Date;
561
- updatedAt: Date;
562
- }
563
- export interface ServiceOffering {
564
- id: string;
565
- serviceProviderId: string;
566
- title: string;
567
- description: string;
568
- category: string;
569
- subCategory: string;
570
- features: string[];
571
- pricing: {
572
- basePrice: number;
573
- currency: string;
574
- pricePerUnit: number;
575
- unit: string;
576
- minimumCharge: number;
577
- };
578
- duration: {
579
- estimated: number;
580
- minimum: number;
581
- maximum: number;
582
- unit: string;
583
- };
584
- requirements: string[];
585
- capacity: {
586
- maxWeight: number;
587
- maxVolume: number;
588
- maxDistance: number;
589
- simultaneousOrders: number;
590
- };
591
- images: string[];
592
- tags: string[];
593
- isActive: boolean;
594
- createdAt: Date;
595
- }
596
- export interface Analytics {
597
- overview: {
598
- totalOrders: number;
599
- totalRevenue: number;
600
- activeVehicles: number;
601
- onTimeDeliveryRate: number;
602
- customerSatisfaction: number;
603
- };
604
- trends: {
605
- dailyOrders: Array<{
606
- date: string;
607
- orders: number;
608
- }>;
609
- revenue: Array<{
610
- month: string;
611
- revenue: number;
612
- }>;
613
- };
614
- fleet: {
615
- utilization: number;
616
- totalVehicles: number;
617
- activeVehicles: number;
618
- maintenanceVehicles: number;
619
- outOfServiceVehicles: number;
620
- fuelEfficiency: number;
621
- };
622
- performance: {
623
- onTimePickup: number;
624
- onTimeDelivery: number;
625
- damagedItems: number;
626
- customerComplaints: number;
627
- driverRatings: number;
628
- };
629
- }
630
- export interface OrderFilter {
631
- status?: OrderStatus;
632
- customerId?: string;
633
- driverId?: string;
634
- dateFrom?: Date;
635
- dateTo?: Date;
636
- priority?: string;
637
- orderType?: 'b2b' | 'b2c';
638
- }
639
- export interface FleetFilter {
640
- vehicleType?: VehicleType;
641
- status?: VehicleStatus;
642
- driverId?: string;
643
- }
644
- export interface InventoryFilter {
645
- warehouseId?: string;
646
- productId?: string;
647
- lowStock?: boolean;
648
- }
649
- export interface CustomerFilter {
650
- type?: 'b2b' | 'b2c';
651
- isActive?: boolean;
652
- search?: string;
653
- }
654
- export interface MoveTheWheelsContextValue extends MoveTheWheelsRootProps {
655
- }
@@ -1,6 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- /**
4
- * Utility for merging Tailwind CSS classes with proper conflict resolution.
5
- */
6
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,60 +0,0 @@
1
- import { Address } from '../types';
2
-
3
- /**
4
- * Format an address object into a readable string.
5
- */
6
- export declare function formatAddress(address: Address): string;
7
- /**
8
- * Format a number as currency.
9
- */
10
- export declare function formatCurrency(amount: number, currency?: string): string;
11
- /**
12
- * Format a date for display.
13
- * @param date - Date to format
14
- * @param format - Format type: 'short' (default), 'full', 'relative', or 'time'
15
- */
16
- export declare function formatDate(date: Date | string, format?: 'short' | 'full' | 'relative' | 'time'): string;
17
- /**
18
- * Format a date and time for display.
19
- */
20
- export declare function formatDateTime(date: Date | string): string;
21
- /**
22
- * Format a time for display.
23
- */
24
- export declare function formatTime(date: Date | string): string;
25
- /**
26
- * Format a relative time (e.g., "2 hours ago").
27
- */
28
- export declare function formatRelativeTime(date: Date | string): string;
29
- /**
30
- * Format a number with thousand separators.
31
- */
32
- export declare function formatNumber(num: number): string;
33
- /**
34
- * Format a percentage.
35
- */
36
- export declare function formatPercentage(value: number, decimals?: number): string;
37
- /**
38
- * Format weight with appropriate units.
39
- */
40
- export declare function formatWeight(kg: number): string;
41
- /**
42
- * Format distance with appropriate units.
43
- */
44
- export declare function formatDistance(km: number): string;
45
- /**
46
- * Format duration in minutes to human readable.
47
- */
48
- export declare function formatDuration(minutes: number): string;
49
- /**
50
- * Truncate text with ellipsis.
51
- */
52
- export declare function truncateText(text: string, maxLength: number): string;
53
- /**
54
- * Format a phone number.
55
- */
56
- export declare function formatPhoneNumber(phone: string): string;
57
- /**
58
- * Get initials from a name.
59
- */
60
- export declare function getInitials(name: string): string;