@shipengine/elements 0.33.0 → 0.35.0

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 (105) hide show
  1. package/index.cjs +1975 -493
  2. package/index.js +1970 -496
  3. package/package.json +1 -1
  4. package/src/components/add-funds-form/add-funds-form.d.ts +22 -2
  5. package/src/components/add-funds-form/add-funds-schema.d.ts +26 -0
  6. package/src/components/address-preference-context/address-preference-context.d.ts +8 -0
  7. package/src/components/auto-funding-form/auto-funding-form.d.ts +22 -0
  8. package/src/components/auto-funding-form/auto-funding-schema.d.ts +17 -0
  9. package/src/components/button-group/button-group.d.ts +29 -0
  10. package/src/components/carrier-balance/carrier-balance.d.ts +23 -0
  11. package/src/components/collapsible-panel/collapsible-panel.d.ts +32 -0
  12. package/src/components/copy/copy-button.d.ts +4 -0
  13. package/src/components/cube/cube.d.ts +16 -0
  14. package/src/components/date-range-combo/date-range-combo.d.ts +14 -0
  15. package/src/components/date-range-select/date-range-select.d.ts +6 -0
  16. package/src/components/error-fallback/error-fallback.d.ts +12 -1
  17. package/src/components/field-label/field-label.d.ts +10 -0
  18. package/src/components/form-portal/form-portal.d.ts +9 -0
  19. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +13 -0
  20. package/src/components/inline-label/inline-label.d.ts +10 -0
  21. package/src/components/items-breakdown/items-breakdown.d.ts +15 -0
  22. package/src/components/label-layout/label-layout.d.ts +5 -0
  23. package/src/components/link-action/link-action.d.ts +10 -0
  24. package/src/components/loader/loader.d.ts +5 -0
  25. package/src/components/manage-funding/manage-funding.d.ts +26 -0
  26. package/src/components/payment-method-settings/payment-method-settings.d.ts +19 -0
  27. package/src/components/portal/portal.d.ts +10 -1
  28. package/src/components/powered-by-shipengine/powered-by-shipengine.d.ts +8 -0
  29. package/src/components/section/section.d.ts +10 -0
  30. package/src/components/spacer/spacer.d.ts +30 -0
  31. package/src/components/spread/spread.d.ts +10 -0
  32. package/src/components/story-notes/story-notes.d.ts +10 -1
  33. package/src/components/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +1 -0
  34. package/src/components/templates/landing-page/landing-page.d.ts +2 -1
  35. package/src/components/templates/onboarding/onboarding.d.ts +3 -1
  36. package/src/components/templates/onboarding/onboarding.styles.d.ts +10 -0
  37. package/src/components/templates/rate-form/rate-form.d.ts +2 -2
  38. package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
  39. package/src/components/templates/shipment-form/shipment-schema.d.ts +179 -17
  40. package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
  41. package/src/components/unit-settings/unit-settings.d.ts +5 -0
  42. package/src/constants/shipengine/address.d.ts +75 -0
  43. package/src/elements/account-settings/account-settings.d.ts +139 -3
  44. package/src/elements/configure-shipment/configure-shipment.d.ts +1 -0
  45. package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +2 -2
  46. package/src/elements/configure-shipment/hooks/use-rates-with-cache.d.ts +1 -1
  47. package/src/elements/configure-shipment/hooks/use-request-rates.d.ts +1 -1
  48. package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
  49. package/src/elements/list-carriers/list-carriers.d.ts +31 -0
  50. package/src/elements/manage-warehouses/manage-warehouses.d.ts +34 -0
  51. package/src/elements/onboarding/onboarding.d.ts +99 -5
  52. package/src/elements/purchase-label/purchase-label.d.ts +194 -9
  53. package/src/elements/shipengine-workflow/label-workflow.d.ts +138 -2
  54. package/src/elements/view-shipment/view-shipment.d.ts +131 -4
  55. package/src/elements/void-label/void-label.d.ts +137 -5
  56. package/src/extensions/zod.d.ts +5 -0
  57. package/src/factories/shipengine/package.d.ts +11 -0
  58. package/src/features/wallet-history/wallet-history.d.ts +5 -0
  59. package/src/hooks/index.d.ts +1 -0
  60. package/src/hooks/options/use-confirmation-options.d.ts +7 -0
  61. package/src/hooks/options/use-country-code-options.d.ts +16 -3
  62. package/src/hooks/options/use-customs-contents-options.d.ts +7 -0
  63. package/src/hooks/options/use-customs-non-delivery-options.d.ts +7 -0
  64. package/src/hooks/options/use-date-range-options.d.ts +22 -1
  65. package/src/hooks/options/use-expiration-month-options.d.ts +7 -0
  66. package/src/hooks/options/use-insurance-provider-options.d.ts +7 -0
  67. package/src/hooks/options/use-package-options.d.ts +7 -0
  68. package/src/hooks/options/use-rate-options.d.ts +11 -1
  69. package/src/hooks/options/use-service-code-options.d.ts +7 -0
  70. package/src/hooks/options/use-shipment-metadata.d.ts +8 -0
  71. package/src/hooks/options/use-shipping-presets-options.d.ts +10 -0
  72. package/src/hooks/options/use-state-code-options.d.ts +7 -0
  73. package/src/hooks/options/use-warehouse-options.d.ts +7 -0
  74. package/src/hooks/use-address-validation.d.ts +7 -0
  75. package/src/hooks/use-black-box-detection.d.ts +17 -1
  76. package/src/hooks/use-carrier-metadata.d.ts +7 -0
  77. package/src/hooks/use-nested-form.d.ts +9 -0
  78. package/src/hooks/use-page-layout.d.ts +25 -1
  79. package/src/hooks/use-root-portal.d.ts +15 -2
  80. package/src/hooks/use-run-once-on-true.d.ts +5 -1
  81. package/src/hooks/use-scrub-errors.d.ts +6 -3
  82. package/src/hooks/use-toggle.d.ts +5 -1
  83. package/src/locales/en/index.d.ts +11 -3
  84. package/src/schemas/shipengine/money.d.ts +4 -0
  85. package/src/schemas/shipengine/phone.d.ts +8 -0
  86. package/src/types/carrier-metadata.d.ts +20 -0
  87. package/src/utilities/create-dictionary.d.ts +4 -0
  88. package/src/utilities/date.d.ts +51 -2
  89. package/src/utilities/error.d.ts +16 -2
  90. package/src/utilities/feature-flags.d.ts +181 -0
  91. package/src/utilities/form-logger.d.ts +4 -0
  92. package/src/utilities/index.d.ts +1 -1
  93. package/src/utilities/money.d.ts +25 -0
  94. package/src/utilities/predicates/isString.d.ts +7 -0
  95. package/src/utilities/rates.d.ts +22 -1
  96. package/src/utilities/shipengine/address.d.ts +31 -0
  97. package/src/utilities/shipengine/carrier.d.ts +21 -0
  98. package/src/utilities/shipengine/dimensions.d.ts +27 -4
  99. package/src/utilities/shipengine/package.d.ts +4 -0
  100. package/src/utilities/shipengine/sales-order.d.ts +26 -0
  101. package/src/utilities/shipengine/shipment.d.ts +12 -0
  102. package/src/utilities/shipengine/weight.d.ts +92 -2
  103. package/src/utilities/string.d.ts +7 -0
  104. package/src/utilities/styles.d.ts +4 -0
  105. package/src/utilities/validation.d.ts +8 -0
@@ -1,6 +1,36 @@
1
1
  import { Theme } from "@packlink/giger-theme";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Spacer Component Props
6
+ *
7
+ * - These are the base props that will be passed into the `<Spacer />` component, and you can
8
+ * specify the breakpoint you would like the spacer to be visible on, as well as the multiplier
9
+ * you would like to use for the spacing.
10
+ *
11
+ * @see {@link Spacer | The `<Spacer />` component that uses these props}
12
+ *
13
+ */
2
14
  export type SpacerProps = {
15
+ /**
16
+ * `displayOn` is the breakpoint you would like the spacer to be visible on.
17
+ */
3
18
  displayOn?: keyof Theme["breakPoints"];
19
+ /**
20
+ * `multiplier` is the number you would like to multiply the base theme spacing by.
21
+ */
4
22
  multiplier?: number;
5
23
  };
24
+ /**
25
+ * @internal
26
+ *
27
+ * # Spacer Composition Component
28
+ *
29
+ * - The `Spacer` is a composition component used to create a space between elements
30
+ * in the UI.
31
+ *
32
+ * @see {@link Spacer.SpacerProps | The props necessary to render the `<Spacer />` component}
33
+ * @see {@link Spacer.getSpacerStyles | The util function that generates the styles for the `<Spacer />` component}
34
+ *
35
+ */
6
36
  export declare const Spacer: (props: SpacerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,15 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Spread Props
6
+ */
2
7
  export type SpreadProps = {
3
8
  children: [React.ReactNode, React.ReactNode];
4
9
  };
10
+ /**
11
+ * @internal
12
+ *
13
+ * # Spread Component
14
+ */
5
15
  export declare const Spread: ({ children }: SpreadProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,10 +1,19 @@
1
1
  /// <reference types="react" />
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Story Notes Props
6
+ */
2
7
  export type StoryNotesProps = {
3
8
  children: React.ReactNode;
4
9
  notes: string[];
5
10
  };
6
11
  /**
7
- * For relevant notes about Storybook stories
12
+ * @internal
13
+ *
14
+ * # Story Notes Component
15
+ *
16
+ * - For relevant notes about Storybook stories
8
17
  *
9
18
  * Stopgap until we setup https://storybook.js.org/addons/@storybook/addon-docs
10
19
  */
@@ -47,6 +47,7 @@ export declare const styles: {
47
47
  flexDirection: "column";
48
48
  paddingBottom: number;
49
49
  paddingTop: number;
50
+ textAlign: "center";
50
51
  };
51
52
  termsLink: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
52
53
  alignItems: "center";
@@ -1,4 +1,5 @@
1
1
  export type LandingPageProps = {
2
2
  onSubmit: (payload: string) => void;
3
+ partnerName?: string;
3
4
  };
4
- export declare const LandingPage: ({ onSubmit }: LandingPageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export declare const LandingPage: ({ onSubmit, partnerName }: LandingPageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -30,12 +30,14 @@ export type OnboardingProps = {
30
30
  features?: OnboardingFeatures;
31
31
  fundingSources?: SE.FundingSource[];
32
32
  isRegisteringCarriers?: boolean;
33
+ onboardingAddress?: Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
33
34
  onCarrierCreated: () => Promise<void>;
34
35
  onCompleteOnboarding: () => void;
35
36
  onFundingSourceCreated: () => Promise<void>;
36
37
  onWarehouseCreated: () => Promise<void>;
38
+ partnerName?: string;
37
39
  registerCarrier: (payload: SE.CarrierRegistration) => Promise<SE.CarrierRegistrationResponse>;
38
40
  registerCarrierErrors: SE.CodedError[] | null;
39
41
  warehouses: SE.Warehouse[];
40
42
  };
41
- export declare const Onboarding: ({ connectedCarriers, createWarehouse, features, fundingSources, isRegisteringCarriers, onCarrierCreated, onCompleteOnboarding, onFundingSourceCreated, onWarehouseCreated, registerCarrier, registerCarrierErrors, createFundingSource, createFundingSourceErrors, warehouses, }: OnboardingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
43
+ export declare const Onboarding: ({ connectedCarriers, createFundingSource, createFundingSourceErrors, createWarehouse, features, fundingSources, isRegisteringCarriers, onboardingAddress, onCarrierCreated, onCompleteOnboarding, onFundingSourceCreated, onWarehouseCreated, partnerName, registerCarrier, registerCarrierErrors, warehouses, }: OnboardingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -2,11 +2,21 @@ export declare const styles: {
2
2
  container: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
3
3
  padding: number;
4
4
  };
5
+ iconTooltip: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
6
+ color: string;
7
+ display: "inline-block";
8
+ marginLeft: number;
9
+ verticalAlign: string;
10
+ };
5
11
  step: {
6
12
  "& > span:last-child": {
7
13
  position: "static";
8
14
  };
9
15
  };
16
+ tooltipContainer: () => {
17
+ maxWidth: string;
18
+ textAlign: "left";
19
+ };
10
20
  walletFormHeader: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
11
21
  margin: number;
12
22
  };
@@ -3,8 +3,8 @@ import { ConfigureShipmentFeatures } from "../../../elements/configure-shipment"
3
3
  export type RateFormProps = {
4
4
  carriers?: SE.Carrier[];
5
5
  disabled?: boolean;
6
- displayableErrors?: string[];
7
6
  displayableLabelErrors?: string[];
7
+ displayableRateErrors?: string[];
8
8
  errors?: SE.CodedError[];
9
9
  features?: ConfigureShipmentFeatures;
10
10
  isLoading?: boolean;
@@ -18,4 +18,4 @@ export type RateFormProps = {
18
18
  rates?: SE.Rate[];
19
19
  shipment?: SE.SalesOrderShipment;
20
20
  };
21
- export declare const RateForm: ({ carriers, disabled, errors, displayableErrors, displayableLabelErrors, features, labelErrors, labels, labelsLoading, isLoading, onSave, onSelectRate, onSubmit, rates, shipment, outOfBandDisplayableErrors, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
21
+ export declare const RateForm: ({ carriers, disabled, errors, displayableRateErrors, displayableLabelErrors, features, labelErrors, labels, labelsLoading, isLoading, onSave, onSelectRate, onSubmit, rates, shipment, outOfBandDisplayableErrors, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -9,6 +9,7 @@ export type OnChangeAddressOptions = {
9
9
  };
10
10
  export type ShipmentFormMode = "browse_rates" | "select_service";
11
11
  export type ShipmentFormProps = {
12
+ accountSettings?: SE.AccountSettings;
12
13
  addressLoading: boolean;
13
14
  addressPreference?: AddressPreference;
14
15
  carriers?: SE.Carrier[];
@@ -51,4 +52,4 @@ export type ShipmentFormFeatures = {
51
52
  selectService?: boolean;
52
53
  shippingPresets?: boolean;
53
54
  };
54
- export declare const ShipmentForm: ({ addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, errors, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
55
+ export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, errors, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -2,12 +2,14 @@ import { z } from "zod";
2
2
  import { SE } from "@shipengine/alchemy";
3
3
  type GetShipmentSchemaOptions = {
4
4
  allowInternationalShipFrom?: boolean;
5
+ dimensionsUnit?: SE.DimensionUnit;
5
6
  isContentDescriptionRequired?: boolean;
6
7
  isCustomsRequired?: boolean;
7
8
  requireMeasurements?: boolean;
8
9
  warehouses?: SE.Warehouse[];
10
+ weightUnit?: SE.WeightUnit;
9
11
  };
10
- export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouses, requireMeasurements, isContentDescriptionRequired, isCustomsRequired, }?: GetShipmentSchemaOptions) => z.ZodEffects<z.ZodDiscriminatedUnion<"__mode", z.Primitive, z.ZodObject<z.extendShape<{
12
+ export declare const getShipmentSchema: ({ allowInternationalShipFrom, dimensionsUnit, isContentDescriptionRequired, isCustomsRequired, requireMeasurements, warehouses, weightUnit, }?: GetShipmentSchemaOptions) => z.ZodEffects<z.ZodDiscriminatedUnion<"__mode", z.Primitive, z.ZodObject<z.extendShape<{
11
13
  advancedOptions: z.ZodOptional<z.ZodObject<{
12
14
  additionalHandling: z.ZodOptional<z.ZodBoolean>;
13
15
  }, "strip", z.ZodTypeAny, {
@@ -80,7 +82,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
80
82
  length?: number | null | undefined;
81
83
  height?: number | null | undefined;
82
84
  width?: number | null | undefined;
83
- }>>>, SE.DimensionsWithUnit | undefined, {
85
+ }>>>, {
86
+ unit: SE.DimensionUnit;
87
+ girth?: number | undefined;
88
+ height: number;
89
+ length: number;
90
+ lengthPlusGirth?: number | undefined;
91
+ noThreeSidesExceed?: number | undefined;
92
+ noTwoSidesExceed?: number | undefined;
93
+ volume?: number | undefined;
94
+ width: number;
95
+ } | undefined, {
84
96
  length?: number | null | undefined;
85
97
  height?: number | null | undefined;
86
98
  width?: number | null | undefined;
@@ -96,7 +108,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
96
108
  length: number;
97
109
  height: number;
98
110
  width: number;
99
- }>, SE.DimensionsWithUnit | undefined, {
111
+ }>, {
112
+ unit: SE.DimensionUnit;
113
+ girth?: number | undefined;
114
+ height: number;
115
+ length: number;
116
+ lengthPlusGirth?: number | undefined;
117
+ noThreeSidesExceed?: number | undefined;
118
+ noTwoSidesExceed?: number | undefined;
119
+ volume?: number | undefined;
120
+ width: number;
121
+ } | undefined, {
100
122
  length: number;
101
123
  height: number;
102
124
  width: number;
@@ -156,7 +178,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
156
178
  }>;
157
179
  }, "strip", z.ZodTypeAny, {
158
180
  contentDescription?: string | null | undefined;
159
- dimensions?: SE.DimensionsWithUnit | undefined;
181
+ dimensions?: {
182
+ unit: SE.DimensionUnit;
183
+ girth?: number | undefined;
184
+ height: number;
185
+ length: number;
186
+ lengthPlusGirth?: number | undefined;
187
+ noThreeSidesExceed?: number | undefined;
188
+ noTwoSidesExceed?: number | undefined;
189
+ volume?: number | undefined;
190
+ width: number;
191
+ } | undefined;
160
192
  insuredValue?: {
161
193
  amount: number;
162
194
  currency: SE.Currency;
@@ -235,7 +267,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
235
267
  insuranceProvider: SE.InsuranceProviderType;
236
268
  packages: {
237
269
  contentDescription?: string | null | undefined;
238
- dimensions?: SE.DimensionsWithUnit | undefined;
270
+ dimensions?: {
271
+ unit: SE.DimensionUnit;
272
+ girth?: number | undefined;
273
+ height: number;
274
+ length: number;
275
+ lengthPlusGirth?: number | undefined;
276
+ noThreeSidesExceed?: number | undefined;
277
+ noTwoSidesExceed?: number | undefined;
278
+ volume?: number | undefined;
279
+ width: number;
280
+ } | undefined;
239
281
  insuredValue?: {
240
282
  amount: number;
241
283
  currency: SE.Currency;
@@ -375,7 +417,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
375
417
  length?: number | null | undefined;
376
418
  height?: number | null | undefined;
377
419
  width?: number | null | undefined;
378
- }>>>, SE.DimensionsWithUnit | undefined, {
420
+ }>>>, {
421
+ unit: SE.DimensionUnit;
422
+ girth?: number | undefined;
423
+ height: number;
424
+ length: number;
425
+ lengthPlusGirth?: number | undefined;
426
+ noThreeSidesExceed?: number | undefined;
427
+ noTwoSidesExceed?: number | undefined;
428
+ volume?: number | undefined;
429
+ width: number;
430
+ } | undefined, {
379
431
  length?: number | null | undefined;
380
432
  height?: number | null | undefined;
381
433
  width?: number | null | undefined;
@@ -391,7 +443,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
391
443
  length: number;
392
444
  height: number;
393
445
  width: number;
394
- }>, SE.DimensionsWithUnit | undefined, {
446
+ }>, {
447
+ unit: SE.DimensionUnit;
448
+ girth?: number | undefined;
449
+ height: number;
450
+ length: number;
451
+ lengthPlusGirth?: number | undefined;
452
+ noThreeSidesExceed?: number | undefined;
453
+ noTwoSidesExceed?: number | undefined;
454
+ volume?: number | undefined;
455
+ width: number;
456
+ } | undefined, {
395
457
  length: number;
396
458
  height: number;
397
459
  width: number;
@@ -451,7 +513,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
451
513
  }>;
452
514
  }, "strip", z.ZodTypeAny, {
453
515
  contentDescription?: string | null | undefined;
454
- dimensions?: SE.DimensionsWithUnit | undefined;
516
+ dimensions?: {
517
+ unit: SE.DimensionUnit;
518
+ girth?: number | undefined;
519
+ height: number;
520
+ length: number;
521
+ lengthPlusGirth?: number | undefined;
522
+ noThreeSidesExceed?: number | undefined;
523
+ noTwoSidesExceed?: number | undefined;
524
+ volume?: number | undefined;
525
+ width: number;
526
+ } | undefined;
455
527
  insuredValue?: {
456
528
  amount: number;
457
529
  currency: SE.Currency;
@@ -517,7 +589,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
517
589
  length?: number | null | undefined;
518
590
  height?: number | null | undefined;
519
591
  width?: number | null | undefined;
520
- }>>>, SE.DimensionsWithUnit | undefined, {
592
+ }>>>, {
593
+ unit: SE.DimensionUnit;
594
+ girth?: number | undefined;
595
+ height: number;
596
+ length: number;
597
+ lengthPlusGirth?: number | undefined;
598
+ noThreeSidesExceed?: number | undefined;
599
+ noTwoSidesExceed?: number | undefined;
600
+ volume?: number | undefined;
601
+ width: number;
602
+ } | undefined, {
521
603
  length?: number | null | undefined;
522
604
  height?: number | null | undefined;
523
605
  width?: number | null | undefined;
@@ -533,7 +615,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
533
615
  length: number;
534
616
  height: number;
535
617
  width: number;
536
- }>, SE.DimensionsWithUnit | undefined, {
618
+ }>, {
619
+ unit: SE.DimensionUnit;
620
+ girth?: number | undefined;
621
+ height: number;
622
+ length: number;
623
+ lengthPlusGirth?: number | undefined;
624
+ noThreeSidesExceed?: number | undefined;
625
+ noTwoSidesExceed?: number | undefined;
626
+ volume?: number | undefined;
627
+ width: number;
628
+ } | undefined, {
537
629
  length: number;
538
630
  height: number;
539
631
  width: number;
@@ -612,14 +704,34 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
612
704
  length?: number | null | undefined;
613
705
  height?: number | null | undefined;
614
706
  width?: number | null | undefined;
615
- }>>>, SE.DimensionsWithUnit | undefined, {
707
+ }>>>, {
708
+ unit: SE.DimensionUnit;
709
+ girth?: number | undefined;
710
+ height: number;
711
+ length: number;
712
+ lengthPlusGirth?: number | undefined;
713
+ noThreeSidesExceed?: number | undefined;
714
+ noTwoSidesExceed?: number | undefined;
715
+ volume?: number | undefined;
716
+ width: number;
717
+ } | undefined, {
616
718
  length?: number | null | undefined;
617
719
  height?: number | null | undefined;
618
720
  width?: number | null | undefined;
619
721
  } | null | undefined>;
620
722
  }>, "strip", z.ZodTypeAny, {
621
723
  contentDescription?: string | null | undefined;
622
- dimensions?: SE.DimensionsWithUnit | undefined;
724
+ dimensions?: {
725
+ unit: SE.DimensionUnit;
726
+ girth?: number | undefined;
727
+ height: number;
728
+ length: number;
729
+ lengthPlusGirth?: number | undefined;
730
+ noThreeSidesExceed?: number | undefined;
731
+ noTwoSidesExceed?: number | undefined;
732
+ volume?: number | undefined;
733
+ width: number;
734
+ } | undefined;
623
735
  insuredValue?: {
624
736
  amount: number;
625
737
  currency: SE.Currency;
@@ -685,7 +797,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
685
797
  insuranceProvider: SE.InsuranceProviderType;
686
798
  packages: {
687
799
  contentDescription?: string | null | undefined;
688
- dimensions?: SE.DimensionsWithUnit | undefined;
800
+ dimensions?: {
801
+ unit: SE.DimensionUnit;
802
+ girth?: number | undefined;
803
+ height: number;
804
+ length: number;
805
+ lengthPlusGirth?: number | undefined;
806
+ noThreeSidesExceed?: number | undefined;
807
+ noTwoSidesExceed?: number | undefined;
808
+ volume?: number | undefined;
809
+ width: number;
810
+ } | undefined;
689
811
  insuredValue?: {
690
812
  amount: number;
691
813
  currency: SE.Currency;
@@ -767,7 +889,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
767
889
  nonDelivery: SE.CustomsNonDeliveryType;
768
890
  } | null | undefined;
769
891
  packages: ({
770
- dimensions: SE.DimensionsWithUnit | undefined;
892
+ dimensions: {
893
+ unit: SE.DimensionUnit;
894
+ girth?: number | undefined;
895
+ height: number;
896
+ length: number;
897
+ lengthPlusGirth?: number | undefined;
898
+ noThreeSidesExceed?: number | undefined;
899
+ noTwoSidesExceed?: number | undefined;
900
+ volume?: number | undefined;
901
+ width: number;
902
+ } | undefined;
771
903
  packageCode: string | null | undefined;
772
904
  weight?: {
773
905
  unit: string;
@@ -790,7 +922,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
790
922
  currency: SE.Currency;
791
923
  } | undefined;
792
924
  } | {
793
- dimensions: SE.DimensionsWithUnit | undefined;
925
+ dimensions: {
926
+ unit: SE.DimensionUnit;
927
+ girth?: number | undefined;
928
+ height: number;
929
+ length: number;
930
+ lengthPlusGirth?: number | undefined;
931
+ noThreeSidesExceed?: number | undefined;
932
+ noTwoSidesExceed?: number | undefined;
933
+ volume?: number | undefined;
934
+ width: number;
935
+ } | undefined;
794
936
  packageCode: string | null | undefined;
795
937
  weight?: {
796
938
  unit: string;
@@ -838,7 +980,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
838
980
  nonDelivery: SE.CustomsNonDeliveryType;
839
981
  } | null | undefined;
840
982
  packages: ({
841
- dimensions: SE.DimensionsWithUnit | undefined;
983
+ dimensions: {
984
+ unit: SE.DimensionUnit;
985
+ girth?: number | undefined;
986
+ height: number;
987
+ length: number;
988
+ lengthPlusGirth?: number | undefined;
989
+ noThreeSidesExceed?: number | undefined;
990
+ noTwoSidesExceed?: number | undefined;
991
+ volume?: number | undefined;
992
+ width: number;
993
+ } | undefined;
842
994
  packageCode: string | null | undefined;
843
995
  weight?: {
844
996
  unit: string;
@@ -861,7 +1013,17 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
861
1013
  currency: SE.Currency;
862
1014
  } | undefined;
863
1015
  } | {
864
- dimensions: SE.DimensionsWithUnit | undefined;
1016
+ dimensions: {
1017
+ unit: SE.DimensionUnit;
1018
+ girth?: number | undefined;
1019
+ height: number;
1020
+ length: number;
1021
+ lengthPlusGirth?: number | undefined;
1022
+ noThreeSidesExceed?: number | undefined;
1023
+ noTwoSidesExceed?: number | undefined;
1024
+ volume?: number | undefined;
1025
+ width: number;
1026
+ } | undefined;
865
1027
  packageCode: string | null | undefined;
866
1028
  weight?: {
867
1029
  unit: string;
@@ -6,6 +6,6 @@ export type WarehouseFormProps = {
6
6
  onDelete?: () => void;
7
7
  onSubmit: (payload: WarehousePayload) => void;
8
8
  submitButtonTitle: string;
9
- warehouse?: SE.Warehouse;
9
+ warehouse?: SE.Warehouse | Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
10
10
  };
11
11
  export declare const WarehouseForm: ({ isOnboarding, onCancel, onDelete, onSubmit, submitButtonTitle, warehouse, }: WarehouseFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1,6 @@
1
+ /**
2
+ * @namespace UnitSettings
3
+ *
4
+ * # Unit Settings Component
5
+ */
1
6
  export declare const UnitSettings: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Address Utils - CountryRules Utility Type
5
+ */
1
6
  export type CountryRules = {
2
7
  hasEuCustomsRules?: boolean;
3
8
  hasProvinces?: boolean;
@@ -5,6 +10,11 @@ export type CountryRules = {
5
10
  isUnsupportedByUps?: boolean;
6
11
  supportsByoa?: boolean;
7
12
  };
13
+ /**
14
+ * @internal
15
+ *
16
+ * # Address Utils - Country Type
17
+ */
8
18
  export declare class Country<T extends string, U extends string> {
9
19
  name: T;
10
20
  code: U;
@@ -15,15 +25,50 @@ export declare class Country<T extends string, U extends string> {
15
25
  isUnsupportedByUps: boolean;
16
26
  constructor(name: T, code: U, rules?: CountryRules);
17
27
  }
28
+ /**
29
+ * @internal
30
+ *
31
+ * # Address Utils - Array of Countries and their codes
32
+ */
18
33
  export declare const countries: readonly [Country<"Afghanistan", "AF">, Country<"Aland Islands", "AX">, Country<"Albania", "AL">, Country<"Algeria", "DZ">, Country<"American Samoa", "AS">, Country<"Andorra", "AD">, Country<"Angola", "AO">, Country<"Anguilla", "AI">, Country<"Antarctica", "AQ">, Country<"Antigua Barbuda", "AG">, Country<"Argentina", "AR">, Country<"Armenia", "AM">, Country<"Aruba", "AW">, Country<"Australia", "AU">, Country<"Austria", "AT">, Country<"Azerbaijan", "AZ">, Country<"Bahamas", "BS">, Country<"Bahrain", "BH">, Country<"Bangladesh", "BD">, Country<"Barbados", "BB">, Country<"Belarus", "BY">, Country<"Belgium", "BE">, Country<"Belize", "BZ">, Country<"Benin", "BJ">, Country<"Bermuda", "BM">, Country<"Bhutan", "BT">, Country<"Bolivia", "BO">, Country<"Bonaire, Sint Eustatius And Saba", "BQ">, Country<"Bosnia and Herzegovina", "BA">, Country<"Botswana", "BW">, Country<"Brazil", "BR">, Country<"British Indian Ocean Territory", "IO">, Country<"British Virgin Islands", "VG">, Country<"Brunei Darussalam", "BN">, Country<"Bulgaria", "BG">, Country<"Burkina Faso", "BF">, Country<"Burundi", "BI">, Country<"Canada", "CA">, Country<"Cambodia", "KH">, Country<"Cameroon", "CM">, Country<"Cape Verde Islands", "CV">, Country<"Cayman Islands", "KY">, Country<"Central African Republic", "CF">, Country<"Chad", "TD">, Country<"Chile", "CL">, Country<"China", "CN">, Country<"Christmas Island", "CX">, Country<"Cocos(Keeling) Islands", "CC">, Country<"Colombia", "CO">, Country<"Comoros", "KM">, Country<"Congo", "CG">, Country<"Congo, The Democratic Republic of", "CD">, Country<"Cook Islands", "CK">, Country<"Costa Rica", "CR">, Country<"Croatia", "HR">, Country<"Cuba", "CU">, Country<"Curacao", "CW">, Country<"Cyprus", "CY">, Country<"Czech Republic", "CZ">, Country<"Denmark", "DK">, Country<"Djibouti", "DJ">, Country<"Dominica", "DM">, Country<"Dominican Republic", "DO">, Country<"Ecuador", "EC">, Country<"Egypt", "EG">, Country<"El Salvador", "SV">, Country<"Equatorial Guinea", "GQ">, Country<"Eritrea", "ER">, Country<"Estonia", "EE">, Country<"Ethiopia", "ET">, Country<"Falkland Islands", "FK">, Country<"Faroe Islands", "FO">, Country<"Federated States of Micronesia", "FM">, Country<"Fiji", "FJ">, Country<"Finland", "FI">, Country<"France", "FR">, Country<"French Guiana", "GF">, Country<"French Polynesia", "PF">, Country<"French Southern Territories", "TF">, Country<"Gabon", "GA">, Country<"Gambia", "GM">, Country<"Georgia", "GE">, Country<"Germany", "DE">, Country<"Ghana", "GH">, Country<"Gibraltar", "GI">, Country<"Greece", "GR">, Country<"Greenland", "GL">, Country<"Grenada", "GD">, Country<"Guadeloupe", "GP">, Country<"Guam", "GU">, Country<"Guatemala", "GT">, Country<"Guernsey", "GG">, Country<"Guinea", "GN">, Country<"Guinea - Bissau", "GW">, Country<"Guyana", "GY">, Country<"Haiti", "HT">, Country<"Holy See", "VA">, Country<"Honduras", "HN">, Country<"Hong Kong", "HK">, Country<"Hungary", "HU">, Country<"Iceland", "IS">, Country<"India", "IN">, Country<"Indonesia", "ID">, Country<"Iran", "IR">, Country<"Iraq", "IQ">, Country<"Ireland", "IE">, Country<"Isle of Man", "IM">, Country<"Israel", "IL">, Country<"Italy", "IT">, Country<"Ivory Coast", "CI">, Country<"Jamaica", "JM">, Country<"Japan", "JP">, Country<"Jersey", "JE">, Country<"Jordan", "JO">, Country<"Kazakhstan", "KZ">, Country<"Kenya", "KE">, Country<"Kiribati", "KI">, Country<"Korea, Republic of", "KR">, Country<"Kuwait", "KW">, Country<"Kyrgyzstan", "KG">, Country<"Laos", "LA">, Country<"Latvia", "LV">, Country<"Lebanon", "LB">, Country<"Lesotho", "LS">, Country<"Liberia", "LR">, Country<"Libya", "LY">, Country<"Liechtenstein", "LI">, Country<"Lithuania", "LT">, Country<"Luxembourg", "LU">, Country<"Macao", "MO">, Country<"Macedonia", "MK">, Country<"Madagascar", "MG">, Country<"Malawi", "MW">, Country<"Malaysia", "MY">, Country<"Maldives", "MV">, Country<"Mali", "ML">, Country<"Malta", "MT">, Country<"Marshall Islands", "MH">, Country<"Martinique", "MQ">, Country<"Mauritania", "MR">, Country<"Mauritius0", "MU">, Country<"Mayotte", "YT">, Country<"Mexico", "MX">, Country<"Moldova", "MD">, Country<"Monaco", "MC">, Country<"Mongolia", "MN">, Country<"Montenegro", "ME">, Country<"Montserrat", "MS">, Country<"Morocco", "MA">, Country<"Mozambique", "MZ">, Country<"Myanmar", "MM">, Country<"Namibia", "NA">, Country<"Nauru", "NR">, Country<"Nepal", "NP">, Country<"Netherlands", "NL">, Country<"Netherlands Antilles", "AN">, Country<"New Caledonia", "NC">, Country<"New Zealand", "NZ">, Country<"Nicaragua", "NI">, Country<"Niger", "NE">, Country<"Nigeria", "NG">, Country<"Niue", "NU">, Country<"Norfolk Island", "NF">, Country<"North Korea", "KP">, Country<"Northern Mariana Islands", "MP">, Country<"Norway", "NO">, Country<"Oman", "OM">, Country<"Pakistan", "PK">, Country<"Palau", "PW">, Country<"Palestinian Territory", "PS">, Country<"Panama", "PA">, Country<"Papua New Guinea", "PG">, Country<"Paraguay", "PY">, Country<"Peru", "PE">, Country<"Philippines", "PH">, Country<"Pitcairn Island", "PN">, Country<"Poland", "PL">, Country<"Portugal", "PT">, Country<"Puerto Rico", "PR">, Country<"Qatar", "QA">, Country<"Reunion", "RE">, Country<"Romania", "RO">, Country<"Russia", "RU">, Country<"Rwanda", "RW">, Country<"Saint Barthelemy", "BL">, Country<"Saint Helena", "SH">, Country<"Saint Kitts and Nevis", "KN">, Country<"Saint Lucia", "LC">, Country<"Saint Martin", "MF">, Country<"Saint Pierre and Miquelon", "PM">, Country<"Saint Vincent & the Grenadines", "VC">, Country<"Samoa", "WS">, Country<"San Marino", "SM">, Country<"Sao Tome and Principe", "ST">, Country<"Saudi Arabia", "SA">, Country<"Senegal", "SN">, Country<"Serbia", "RS">, Country<"Seychelles", "SC">, Country<"Sierra Leone", "SL">, Country<"Singapore", "SG">, Country<"Sint Maarten(Dutch)", "SX">, Country<"Slovakia", "SK">, Country<"Slovenia", "SI">, Country<"Solomon Islands", "SB">, Country<"Somalia", "SO">, Country<"South Africa", "ZA">, Country<"South Georgia & the South Sandwich Islands", "GS">, Country<"South Sudan", "SS">, Country<"Spain", "ES">, Country<"Sri Lanka", "LK">, Country<"Sudan", "SD">, Country<"Suriname", "SR">, Country<"Svalbard & Jan Mayen Islands", "SJ">, Country<"Swaziland", "SZ">, Country<"Sweden", "SE">, Country<"Switzerland", "CH">, Country<"Syria", "SY">, Country<"Taiwan", "TW">, Country<"Tajikistan", "TJ">, Country<"Tanzania", "TZ">, Country<"Thailand", "TH">, Country<"Timor - Leste(formerly East Timor)", "TL">, Country<"Togo", "TG">, Country<"Tokelau", "TK">, Country<"Tonga", "TO">, Country<"Trinidad and Tobago", "TT">, Country<"Tunisia", "TN">, Country<"Turkey", "TR">, Country<"Turkmenistan", "TM">, Country<"Turks and Caicos Islands", "TC">, Country<"Tuvalu", "TV">, Country<"Uganda", "UG">, Country<"Ukraine", "UA">, Country<"United Arab Emirates", "AE">, Country<"United Kingdom", "GB">, Country<"United States Virgin Islands", "VI">, Country<"U.S. Minor Outlying Islands", "UM">, Country<"United States of America", "US">, Country<"Uruguay", "UY">, Country<"Uzbekistan", "UZ">, Country<"Vanuatu", "VU">, Country<"Venezuela", "VE">, Country<"Vietnam", "VN">, Country<"Wallis and Futuna Islands", "WF">, Country<"Western Sahara", "EH">, Country<"Yemen", "YE">, Country<"Zambia", "ZM">, Country<"Zimbabwe", "ZW">];
34
+ /**
35
+ * @internal
36
+ *
37
+ * # Address Utils - Map of Country Codes
38
+ */
19
39
  export declare const countryCodes: ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "CA", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FM", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "KP", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "VI", "UM", "US", "UY", "UZ", "VU", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW"];
40
+ /**
41
+ * @internal
42
+ *
43
+ * # Address Utils - Country Code Type
44
+ */
20
45
  export type CountryCode = typeof countryCodes[number];
46
+ /**
47
+ * @internal
48
+ *
49
+ * # Address Utils - EU Country Codes
50
+ */
21
51
  export declare const euCountryCodes: ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
52
+ /**
53
+ * @internal
54
+ *
55
+ * # Address Utils - Postal Code Regex
56
+ */
22
57
  export declare const postalCodeRegex: RegExp;
58
+ /**
59
+ * @internal
60
+ *
61
+ * # Address Utils US State Rules Utility Type
62
+ */
23
63
  export type UsStateRules = {
24
64
  isMilitary?: boolean;
25
65
  isUnitedStatesTerritory?: boolean;
26
66
  };
67
+ /**
68
+ * @internal
69
+ *
70
+ * # Address Utils - US State Type
71
+ */
27
72
  export declare class UsState<T extends string, U extends string> {
28
73
  name: T;
29
74
  code: U;
@@ -31,16 +76,46 @@ export declare class UsState<T extends string, U extends string> {
31
76
  isUnitedStatesTerritory: boolean;
32
77
  constructor(name: T, code: U, rules?: UsStateRules);
33
78
  }
79
+ /**
80
+ * @internal
81
+ *
82
+ * # Address Utils - Array US States and their codes
83
+ */
34
84
  export declare const usStates: readonly [UsState<"Alabama", "AL">, UsState<"Alaska", "AK">, UsState<"American Samoa", "AS">, UsState<"Arizona", "AZ">, UsState<"Arkansas", "AR">, UsState<"Armed Forces Americas", "AA">, UsState<"Armed Forces Europe", "AE">, UsState<"Armed Forces Pacific", "AP">, UsState<"California", "CA">, UsState<"Colorado", "CO">, UsState<"Connecticut", "CT">, UsState<"Delaware", "DE">, UsState<"District of Columbia", "DC">, UsState<"Florida", "FL">, UsState<"Georgia", "GA">, UsState<"Guam", "GU">, UsState<"Hawaii", "HI">, UsState<"Idaho", "ID">, UsState<"Illinois", "IL">, UsState<"Indiana", "IN">, UsState<"Iowa", "IA">, UsState<"Kansas", "KS">, UsState<"Kentucky", "KY">, UsState<"Louisiana", "LA">, UsState<"Maine", "ME">, UsState<"Maryland", "MD">, UsState<"Massachusetts", "MA">, UsState<"Michigan", "MI">, UsState<"Minnesota", "MN">, UsState<"Mississippi", "MS">, UsState<"Missouri", "MO">, UsState<"Montana", "MT">, UsState<"Nebraska", "NE">, UsState<"Nevada", "NV">, UsState<"New Hampshire", "NH">, UsState<"New Jersey", "NJ">, UsState<"New Mexico", "NM">, UsState<"New York", "NY">, UsState<"North Carolina", "NC">, UsState<"North Dakota", "ND">, UsState<"Ohio", "OH">, UsState<"Oklahoma", "OK">, UsState<"Oregon", "OR">, UsState<"Pennsylvania", "PA">, UsState<"Puerto Rico", "PR">, UsState<"Rhode Island", "RI">, UsState<"South Carolina", "SC">, UsState<"South Dakota", "SD">, UsState<"Tennessee", "TN">, UsState<"Texas", "TX">, UsState<"Utah", "UT">, UsState<"Vermont", "VT">, UsState<"Virgin Islands", "VI">, UsState<"Virginia", "VA">, UsState<"Washington", "WA">, UsState<"West Virginia", "WV">, UsState<"Wisconsin", "WI">, UsState<"Wyoming", "WY">, UsState<"Northern Mariana Islands", "MP">, UsState<"U.S. Minor Outlying Islands", "UM">];
85
+ /**
86
+ * @internal
87
+ *
88
+ * # Address Utils - Map of US State Codes
89
+ */
35
90
  export declare const usStateCodes: ["AL", "AK", "AS", "AZ", "AR", "AA", "AE", "AP", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY", "MP", "UM"];
91
+ /**
92
+ * @internal
93
+ *
94
+ * # Address Utils - US State Codes
95
+ */
36
96
  export type UsStateCode = typeof usStateCodes[number];
97
+ /**
98
+ * @internal
99
+ *
100
+ * # Address Utils - USA City Rules Utility Type
101
+ */
37
102
  export type UsaCityRules = {
38
103
  isMilitary?: boolean;
39
104
  };
105
+ /**
106
+ * @internal
107
+ *
108
+ * # Address Utils - USA City Type
109
+ */
40
110
  export declare class UsaCity<T extends string, U extends string> {
41
111
  name: T;
42
112
  code: U;
43
113
  isMilitary: boolean;
44
114
  constructor(name: T, code: U, rules?: UsaCityRules);
45
115
  }
116
+ /**
117
+ * @internal
118
+ *
119
+ * # Address Utils - US Cities
120
+ */
46
121
  export declare const usCities: readonly [UsaCity<"Army Post Office", "APO">, UsaCity<"Diplomatic Post Office", "DPO">, UsaCity<"Fleet Post Office", "FPO">];