@budiauktioner/buildi-primitives 0.1.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 (107) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/LICENSE +21 -0
  3. package/README.md +253 -0
  4. package/THIRD_PARTY_NOTICES.md +52 -0
  5. package/dist/banking/index.cjs +6491 -0
  6. package/dist/banking/index.cjs.map +1 -0
  7. package/dist/banking/index.d.cts +58 -0
  8. package/dist/banking/index.d.ts +58 -0
  9. package/dist/banking/index.js +6464 -0
  10. package/dist/banking/index.js.map +1 -0
  11. package/dist/contact/index.cjs +6678 -0
  12. package/dist/contact/index.cjs.map +1 -0
  13. package/dist/contact/index.d.cts +709 -0
  14. package/dist/contact/index.d.ts +709 -0
  15. package/dist/contact/index.js +6586 -0
  16. package/dist/contact/index.js.map +1 -0
  17. package/dist/country-BhD51LDL.d.cts +433 -0
  18. package/dist/country-p0n0EVQ9.d.ts +433 -0
  19. package/dist/finance/index.cjs +3592 -0
  20. package/dist/finance/index.cjs.map +1 -0
  21. package/dist/finance/index.d.cts +83 -0
  22. package/dist/finance/index.d.ts +83 -0
  23. package/dist/finance/index.js +3584 -0
  24. package/dist/finance/index.js.map +1 -0
  25. package/dist/geography/index.cjs +4227 -0
  26. package/dist/geography/index.cjs.map +1 -0
  27. package/dist/geography/index.d.cts +34 -0
  28. package/dist/geography/index.d.ts +34 -0
  29. package/dist/geography/index.js +4202 -0
  30. package/dist/geography/index.js.map +1 -0
  31. package/dist/index.cjs +14087 -0
  32. package/dist/index.cjs.map +1 -0
  33. package/dist/index.d.cts +75 -0
  34. package/dist/index.d.ts +75 -0
  35. package/dist/index.js +13868 -0
  36. package/dist/index.js.map +1 -0
  37. package/dist/isin-EeVPpNWu.d.ts +39 -0
  38. package/dist/isin-ZlQLBVm8.d.cts +39 -0
  39. package/dist/organization/index.cjs +2376 -0
  40. package/dist/organization/index.cjs.map +1 -0
  41. package/dist/organization/index.d.cts +117 -0
  42. package/dist/organization/index.d.ts +117 -0
  43. package/dist/organization/index.js +2346 -0
  44. package/dist/organization/index.js.map +1 -0
  45. package/dist/person/index.cjs +1144 -0
  46. package/dist/person/index.cjs.map +1 -0
  47. package/dist/person/index.d.cts +60 -0
  48. package/dist/person/index.d.ts +60 -0
  49. package/dist/person/index.js +1125 -0
  50. package/dist/person/index.js.map +1 -0
  51. package/dist/person-full-name-Cmc9Ynuc.d.cts +82 -0
  52. package/dist/person-full-name-D6Hbsab6.d.ts +82 -0
  53. package/dist/phone-number-C24--ggy.d.ts +139 -0
  54. package/dist/phone-number-DZ-YxCQQ.d.cts +139 -0
  55. package/dist/property/index.cjs +487 -0
  56. package/dist/property/index.cjs.map +1 -0
  57. package/dist/property/index.d.cts +56 -0
  58. package/dist/property/index.d.ts +56 -0
  59. package/dist/property/index.js +480 -0
  60. package/dist/property/index.js.map +1 -0
  61. package/dist/sample-data/index.cjs +12310 -0
  62. package/dist/sample-data/index.cjs.map +1 -0
  63. package/dist/sample-data/index.d.cts +260 -0
  64. package/dist/sample-data/index.d.ts +260 -0
  65. package/dist/sample-data/index.js +12302 -0
  66. package/dist/sample-data/index.js.map +1 -0
  67. package/dist/swedish-address-DNC3ftRF.d.cts +297 -0
  68. package/dist/swedish-address-GMzjqgxb.d.ts +297 -0
  69. package/dist/swedish-bank-account-holder-name-BFJ8h1aO.d.cts +45 -0
  70. package/dist/swedish-bank-account-holder-name-CAAru07F.d.ts +45 -0
  71. package/dist/swedish-municipality-DlUS7g7h.d.cts +87 -0
  72. package/dist/swedish-municipality-nDRHYRAd.d.ts +87 -0
  73. package/dist/swedish-organization-name-D7NvERxA.d.cts +33 -0
  74. package/dist/swedish-organization-name-rR0Q836C.d.ts +33 -0
  75. package/dist/swedish-organization-number-Bcj7V_lh.d.cts +130 -0
  76. package/dist/swedish-organization-number-DM8dpXwR.d.ts +130 -0
  77. package/dist/swedish-organization-type-CZOdETwG.d.cts +29 -0
  78. package/dist/swedish-organization-type-CZOdETwG.d.ts +29 -0
  79. package/dist/swedish-personal-identity-number-BiIg4io3.d.ts +149 -0
  80. package/dist/swedish-personal-identity-number-Cp9Coz55.d.cts +149 -0
  81. package/dist/swedish-property-designation-BM-gdd9x.d.ts +46 -0
  82. package/dist/swedish-property-designation-BaHXufqV.d.cts +46 -0
  83. package/dist/swedish-sni-code-Ccsswpni.d.ts +53 -0
  84. package/dist/swedish-sni-code-CuJFyM6l.d.cts +53 -0
  85. package/dist/swedish-swish-number-CL6Gx_h3.d.cts +397 -0
  86. package/dist/swedish-swish-number-DDG3mNDg.d.ts +397 -0
  87. package/dist/text-candidate-qg2bD9PY.d.cts +110 -0
  88. package/dist/text-candidate-qg2bD9PY.d.ts +110 -0
  89. package/dist/text-scanning/index.cjs +10414 -0
  90. package/dist/text-scanning/index.cjs.map +1 -0
  91. package/dist/text-scanning/index.d.cts +153 -0
  92. package/dist/text-scanning/index.d.ts +153 -0
  93. package/dist/text-scanning/index.js +10406 -0
  94. package/dist/text-scanning/index.js.map +1 -0
  95. package/dist/validation/index.cjs +83 -0
  96. package/dist/validation/index.cjs.map +1 -0
  97. package/dist/validation/index.d.cts +63 -0
  98. package/dist/validation/index.d.ts +63 -0
  99. package/dist/validation/index.js +79 -0
  100. package/dist/validation/index.js.map +1 -0
  101. package/dist/web/index.cjs +3994 -0
  102. package/dist/web/index.cjs.map +1 -0
  103. package/dist/web/index.d.cts +203 -0
  104. package/dist/web/index.d.ts +203 -0
  105. package/dist/web/index.js +3987 -0
  106. package/dist/web/index.js.map +1 -0
  107. package/package.json +211 -0
@@ -0,0 +1,709 @@
1
+ import { A as Address, a as AddressCity, b as AddressStreet, c as AddressZipCode, S as SwedishAddress, f as SwedishAddressZipCode, e as ICountryAddressZipCode, I as ICountryAddress } from '../swedish-address-GMzjqgxb.js';
2
+ export { C as CountryAddressBase, d as CountryAddressZipCodeBase, m as maskZip, t as tryWrapCountryAddress } from '../swedish-address-GMzjqgxb.js';
3
+ import { P as PrimitiveTypeInfo } from '../text-candidate-qg2bD9PY.js';
4
+ import { S as SwedishOrganizationName } from '../swedish-organization-name-rR0Q836C.js';
5
+ import { a as PersonFullName } from '../person-full-name-D6Hbsab6.js';
6
+ import { a as PhoneNumber } from '../phone-number-C24--ggy.js';
7
+ export { P as PhoneCallingCode, m as maskPhoneNumber } from '../phone-number-C24--ggy.js';
8
+ import { a as Country } from '../country-p0n0EVQ9.js';
9
+ import '../swedish-organization-type-CZOdETwG.js';
10
+
11
+ /**
12
+ * Registers every built-in country-specific address type so that
13
+ * `Address.asCountryAddress()` and `Address.supportedCountryAddressTypes`
14
+ * resolve them.
15
+ *
16
+ * This is an explicit call rather than module-load side effects because the
17
+ * package declares `sideEffects: false`; a bundler is free to drop a module
18
+ * that is only imported for its side effects.
19
+ */
20
+ declare function registerDefaultCountryAddresses(): void;
21
+
22
+ /** A contact address combining optional person name, organization name, and postal address. */
23
+ declare class ContactAddress {
24
+ static readonly typeInfo: PrimitiveTypeInfo;
25
+ readonly personName: PersonFullName | null;
26
+ readonly organizationName: SwedishOrganizationName | null;
27
+ readonly address: Address | null;
28
+ get hasPersonName(): boolean;
29
+ get hasOrganizationName(): boolean;
30
+ get hasAddress(): boolean;
31
+ private constructor();
32
+ static create(personName?: PersonFullName | null, organizationName?: SwedishOrganizationName | null, address?: Address | null): ContactAddress;
33
+ static builder(): ContactAddressBuilder;
34
+ toMultilineString(): string;
35
+ toDisplayString(): string;
36
+ toEnglishString(): string;
37
+ toNativeString(): string;
38
+ toString(): string;
39
+ private buildSingleLine;
40
+ private buildNameParts;
41
+ }
42
+ /** Fluent builder for creating a ContactAddress from parsed instances or raw strings. */
43
+ declare class ContactAddressBuilder {
44
+ private personName;
45
+ private organizationName;
46
+ private address;
47
+ withPersonName(value: string | PersonFullName | null | undefined): ContactAddressBuilder;
48
+ withOrganizationName(value: string | SwedishOrganizationName | null | undefined): ContactAddressBuilder;
49
+ withAddress(value: string | Address | null | undefined): ContactAddressBuilder;
50
+ withAddress(street: string | null | undefined, zipCode: string | null | undefined, city: string | null | undefined, country?: string | null): ContactAddressBuilder;
51
+ tryBuild(): ContactAddress | null;
52
+ build(): ContactAddress;
53
+ }
54
+
55
+ declare const PhoneNumberTestData: {
56
+ /** Mobile: 070-174 06 05 through 070-174 06 99 (95 numbers). */
57
+ readonly mobile: readonly string[];
58
+ /** Landline Gothenburg: 031-390 06 00 through 031-390 06 99 (100 numbers). */
59
+ readonly landlineGothenburg: readonly string[];
60
+ /** Landline Malmö: 040-628 04 00 through 040-628 04 99 (100 numbers). */
61
+ readonly landlineMalmo: readonly string[];
62
+ /** Landline Stockholm: 08-4650 04 00 through 08-4650 04 99 (100 numbers). */
63
+ readonly landlineStockholm: readonly string[];
64
+ /** Landline Kiruna: 0980-31 92 00 through 0980-31 92 99 (100 numbers). */
65
+ readonly landlineKiruna: readonly string[];
66
+ /** All reserved test phone numbers across all ranges (495 numbers). */
67
+ readonly all: readonly string[];
68
+ };
69
+
70
+ /** Mask each digit in a zip code while preserving spaces, e.g. `114 53` → `*** **`. */
71
+ declare function maskAddressZipCode(zip: AddressZipCode): string;
72
+ /** Mask Swedish zip code (delegates to the wrapped `AddressZipCode`). */
73
+ declare function maskSwedishAddressZipCode(zip: SwedishAddressZipCode): string;
74
+ /** Mask city name showing only the first character, e.g. `Stockholm` → `S********`. */
75
+ declare function maskAddressCity(city: AddressCity): string;
76
+ /** Mask street keeping street name but masking the house number, e.g. `Storgatan 12` → `Storgatan **`. */
77
+ declare function maskAddressStreet(street: AddressStreet): string;
78
+ /**
79
+ * Mask a complete address, preserving street name, city, and country while masking
80
+ * house number, apartment number, and zip code.
81
+ */
82
+ declare function maskAddress(address: Address): string;
83
+ /** Mask a Swedish address (delegates to the wrapped generic `Address`). */
84
+ declare function maskSwedishAddress(address: SwedishAddress): string;
85
+ /**
86
+ * Mask a phone number, keeping country/area code prefix and the last
87
+ * `visibleDigitsAtEnd` digits visible.
88
+ */
89
+ declare function maskPhoneNumberDetailed(phone: PhoneNumber, visibleDigitsAtEnd?: number): string;
90
+
91
+ /** Google Maps search URL for an address. */
92
+ declare function getGoogleMapsUrl(address: Address | SwedishAddress): URL;
93
+ /** Bing Maps search URL for an address. */
94
+ declare function getBingMapsUrl(address: Address | SwedishAddress): URL;
95
+ /** Hitta.se search URL for a phone number. */
96
+ declare function getHittaUrl(phone: PhoneNumber): URL;
97
+
98
+ /** Returns a `tel:` URI, e.g. `tel:0046701740633`. */
99
+ declare function getTelUri(phone: PhoneNumber): string;
100
+ /** Google Maps search URL for an address. */
101
+ declare function getGoogleMapsUrlForAddress(address: Address | SwedishAddress): string;
102
+
103
+ interface CountryZipCodeStatic<T extends ICountryAddressZipCode> {
104
+ readonly typeInfo: PrimitiveTypeInfo;
105
+ readonly country: Country;
106
+ tryParse(input: string | null | undefined): T | null;
107
+ parse(input: string): T;
108
+ isValid(input: string | null | undefined): boolean;
109
+ format(input: string | null | undefined, options?: {
110
+ fallbackToTrimmedInputWhenInvalid?: boolean;
111
+ }): string | null;
112
+ normalize(input: string | null | undefined, options?: {
113
+ fallbackToTrimmedInputWhenInvalid?: boolean;
114
+ }): string | null;
115
+ isNormalized(input: string | null | undefined): boolean;
116
+ }
117
+
118
+ declare const NorwegianAddressZipCode: CountryZipCodeStatic<{
119
+ readonly _country: Country;
120
+ get country(): Country;
121
+ readonly value: string;
122
+ readonly formatted: string;
123
+ readonly zipCode: AddressZipCode;
124
+ toNormalizedString(): string;
125
+ toString(): string;
126
+ }>;
127
+ declare const FinnishAddressZipCode: CountryZipCodeStatic<{
128
+ readonly _country: Country;
129
+ get country(): Country;
130
+ readonly value: string;
131
+ readonly formatted: string;
132
+ readonly zipCode: AddressZipCode;
133
+ toNormalizedString(): string;
134
+ toString(): string;
135
+ }>;
136
+ declare const DanishAddressZipCode: CountryZipCodeStatic<{
137
+ readonly _country: Country;
138
+ get country(): Country;
139
+ readonly value: string;
140
+ readonly formatted: string;
141
+ readonly zipCode: AddressZipCode;
142
+ toNormalizedString(): string;
143
+ toString(): string;
144
+ }>;
145
+ declare const GermanAddressZipCode: CountryZipCodeStatic<{
146
+ readonly _country: Country;
147
+ get country(): Country;
148
+ readonly value: string;
149
+ readonly formatted: string;
150
+ readonly zipCode: AddressZipCode;
151
+ toNormalizedString(): string;
152
+ toString(): string;
153
+ }>;
154
+ declare const PolishAddressZipCode: CountryZipCodeStatic<{
155
+ readonly _country: Country;
156
+ get country(): Country;
157
+ readonly value: string;
158
+ readonly formatted: string;
159
+ readonly zipCode: AddressZipCode;
160
+ toNormalizedString(): string;
161
+ toString(): string;
162
+ }>;
163
+ declare const EstonianAddressZipCode: CountryZipCodeStatic<{
164
+ readonly _country: Country;
165
+ get country(): Country;
166
+ readonly value: string;
167
+ readonly formatted: string;
168
+ readonly zipCode: AddressZipCode;
169
+ toNormalizedString(): string;
170
+ toString(): string;
171
+ }>;
172
+ declare const LithuanianAddressZipCode: CountryZipCodeStatic<{
173
+ readonly _country: Country;
174
+ get country(): Country;
175
+ readonly value: string;
176
+ readonly formatted: string;
177
+ readonly zipCode: AddressZipCode;
178
+ toNormalizedString(): string;
179
+ toString(): string;
180
+ }>;
181
+ declare const RomanianAddressZipCode: CountryZipCodeStatic<{
182
+ readonly _country: Country;
183
+ get country(): Country;
184
+ readonly value: string;
185
+ readonly formatted: string;
186
+ readonly zipCode: AddressZipCode;
187
+ toNormalizedString(): string;
188
+ toString(): string;
189
+ }>;
190
+ declare const BulgarianAddressZipCode: CountryZipCodeStatic<{
191
+ readonly _country: Country;
192
+ get country(): Country;
193
+ readonly value: string;
194
+ readonly formatted: string;
195
+ readonly zipCode: AddressZipCode;
196
+ toNormalizedString(): string;
197
+ toString(): string;
198
+ }>;
199
+ declare const LatvianAddressZipCode: CountryZipCodeStatic<{
200
+ readonly _country: Country;
201
+ get country(): Country;
202
+ readonly value: string;
203
+ readonly formatted: string;
204
+ readonly zipCode: AddressZipCode;
205
+ toNormalizedString(): string;
206
+ toString(): string;
207
+ }>;
208
+ declare const CzechAddressZipCode: CountryZipCodeStatic<{
209
+ readonly _country: Country;
210
+ get country(): Country;
211
+ readonly value: string;
212
+ readonly formatted: string;
213
+ readonly zipCode: AddressZipCode;
214
+ toNormalizedString(): string;
215
+ toString(): string;
216
+ }>;
217
+ declare const SpanishAddressZipCode: CountryZipCodeStatic<{
218
+ readonly _country: Country;
219
+ get country(): Country;
220
+ readonly value: string;
221
+ readonly formatted: string;
222
+ readonly zipCode: AddressZipCode;
223
+ toNormalizedString(): string;
224
+ toString(): string;
225
+ }>;
226
+ declare const DutchAddressZipCode: CountryZipCodeStatic<{
227
+ readonly _country: Country;
228
+ get country(): Country;
229
+ readonly value: string;
230
+ readonly formatted: string;
231
+ readonly zipCode: AddressZipCode;
232
+ toNormalizedString(): string;
233
+ toString(): string;
234
+ }>;
235
+ declare const GreekAddressZipCode: CountryZipCodeStatic<{
236
+ readonly _country: Country;
237
+ get country(): Country;
238
+ readonly value: string;
239
+ readonly formatted: string;
240
+ readonly zipCode: AddressZipCode;
241
+ toNormalizedString(): string;
242
+ toString(): string;
243
+ }>;
244
+ declare const ItalianAddressZipCode: CountryZipCodeStatic<{
245
+ readonly _country: Country;
246
+ get country(): Country;
247
+ readonly value: string;
248
+ readonly formatted: string;
249
+ readonly zipCode: AddressZipCode;
250
+ toNormalizedString(): string;
251
+ toString(): string;
252
+ }>;
253
+ declare const SlovenianAddressZipCode: CountryZipCodeStatic<{
254
+ readonly _country: Country;
255
+ get country(): Country;
256
+ readonly value: string;
257
+ readonly formatted: string;
258
+ readonly zipCode: AddressZipCode;
259
+ toNormalizedString(): string;
260
+ toString(): string;
261
+ }>;
262
+ declare const CroatianAddressZipCode: CountryZipCodeStatic<{
263
+ readonly _country: Country;
264
+ get country(): Country;
265
+ readonly value: string;
266
+ readonly formatted: string;
267
+ readonly zipCode: AddressZipCode;
268
+ toNormalizedString(): string;
269
+ toString(): string;
270
+ }>;
271
+ declare const PortugueseAddressZipCode: CountryZipCodeStatic<{
272
+ readonly _country: Country;
273
+ get country(): Country;
274
+ readonly value: string;
275
+ readonly formatted: string;
276
+ readonly zipCode: AddressZipCode;
277
+ toNormalizedString(): string;
278
+ toString(): string;
279
+ }>;
280
+ declare const HungarianAddressZipCode: CountryZipCodeStatic<{
281
+ readonly _country: Country;
282
+ get country(): Country;
283
+ readonly value: string;
284
+ readonly formatted: string;
285
+ readonly zipCode: AddressZipCode;
286
+ toNormalizedString(): string;
287
+ toString(): string;
288
+ }>;
289
+ declare const FrenchAddressZipCode: CountryZipCodeStatic<{
290
+ readonly _country: Country;
291
+ get country(): Country;
292
+ readonly value: string;
293
+ readonly formatted: string;
294
+ readonly zipCode: AddressZipCode;
295
+ toNormalizedString(): string;
296
+ toString(): string;
297
+ }>;
298
+ declare const SlovakAddressZipCode: CountryZipCodeStatic<{
299
+ readonly _country: Country;
300
+ get country(): Country;
301
+ readonly value: string;
302
+ readonly formatted: string;
303
+ readonly zipCode: AddressZipCode;
304
+ toNormalizedString(): string;
305
+ toString(): string;
306
+ }>;
307
+ declare const BelgianAddressZipCode: CountryZipCodeStatic<{
308
+ readonly _country: Country;
309
+ get country(): Country;
310
+ readonly value: string;
311
+ readonly formatted: string;
312
+ readonly zipCode: AddressZipCode;
313
+ toNormalizedString(): string;
314
+ toString(): string;
315
+ }>;
316
+ declare const BritishAddressZipCode: CountryZipCodeStatic<{
317
+ readonly _country: Country;
318
+ get country(): Country;
319
+ readonly value: string;
320
+ readonly formatted: string;
321
+ readonly zipCode: AddressZipCode;
322
+ toNormalizedString(): string;
323
+ toString(): string;
324
+ }>;
325
+ declare const AustrianAddressZipCode: CountryZipCodeStatic<{
326
+ readonly _country: Country;
327
+ get country(): Country;
328
+ readonly value: string;
329
+ readonly formatted: string;
330
+ readonly zipCode: AddressZipCode;
331
+ toNormalizedString(): string;
332
+ toString(): string;
333
+ }>;
334
+ declare const CypriotAddressZipCode: CountryZipCodeStatic<{
335
+ readonly _country: Country;
336
+ get country(): Country;
337
+ readonly value: string;
338
+ readonly formatted: string;
339
+ readonly zipCode: AddressZipCode;
340
+ toNormalizedString(): string;
341
+ toString(): string;
342
+ }>;
343
+ declare const IcelandicAddressZipCode: CountryZipCodeStatic<{
344
+ readonly _country: Country;
345
+ get country(): Country;
346
+ readonly value: string;
347
+ readonly formatted: string;
348
+ readonly zipCode: AddressZipCode;
349
+ toNormalizedString(): string;
350
+ toString(): string;
351
+ }>;
352
+ declare const SwissAddressZipCode: CountryZipCodeStatic<{
353
+ readonly _country: Country;
354
+ get country(): Country;
355
+ readonly value: string;
356
+ readonly formatted: string;
357
+ readonly zipCode: AddressZipCode;
358
+ toNormalizedString(): string;
359
+ toString(): string;
360
+ }>;
361
+ declare const IrishAddressZipCode: CountryZipCodeStatic<{
362
+ readonly _country: Country;
363
+ get country(): Country;
364
+ readonly value: string;
365
+ readonly formatted: string;
366
+ readonly zipCode: AddressZipCode;
367
+ toNormalizedString(): string;
368
+ toString(): string;
369
+ }>;
370
+ declare const LuxembourgishAddressZipCode: CountryZipCodeStatic<{
371
+ readonly _country: Country;
372
+ get country(): Country;
373
+ readonly value: string;
374
+ readonly formatted: string;
375
+ readonly zipCode: AddressZipCode;
376
+ toNormalizedString(): string;
377
+ toString(): string;
378
+ }>;
379
+ declare const MalteseAddressZipCode: CountryZipCodeStatic<{
380
+ readonly _country: Country;
381
+ get country(): Country;
382
+ readonly value: string;
383
+ readonly formatted: string;
384
+ readonly zipCode: AddressZipCode;
385
+ toNormalizedString(): string;
386
+ toString(): string;
387
+ }>;
388
+ declare const LiechtensteinAddressZipCode: CountryZipCodeStatic<{
389
+ readonly _country: Country;
390
+ get country(): Country;
391
+ readonly value: string;
392
+ readonly formatted: string;
393
+ readonly zipCode: AddressZipCode;
394
+ toNormalizedString(): string;
395
+ toString(): string;
396
+ }>;
397
+
398
+ interface CountryAddressStatic<TZip extends ICountryAddressZipCode> {
399
+ readonly typeInfo: PrimitiveTypeInfo;
400
+ readonly country: Country;
401
+ /** The country's zip-code type. Used by the country-address registry. */
402
+ readonly zipCodeType: CountryZipCodeStatic<TZip>;
403
+ /** Wraps an already-parsed {@link Address}. Used by the country-address registry. */
404
+ tryWrap(address: Address): (ICountryAddress & {
405
+ readonly zipCode: TZip;
406
+ }) | null;
407
+ tryParse(input: string | null | undefined): (ICountryAddress & {
408
+ readonly zipCode: TZip;
409
+ }) | null;
410
+ tryParseStructured(parts: {
411
+ street: string | null | undefined;
412
+ zipCode?: string | null;
413
+ city?: string | null;
414
+ country?: string | null;
415
+ }): (ICountryAddress & {
416
+ readonly zipCode: TZip;
417
+ }) | null;
418
+ parse(input: string): ICountryAddress;
419
+ isValid(input: string | null | undefined): boolean;
420
+ format(input: string | null | undefined, options?: {
421
+ fallbackToTrimmedInputWhenInvalid?: boolean;
422
+ }): string | null;
423
+ normalize(input: string | null | undefined, options?: {
424
+ fallbackToTrimmedInputWhenInvalid?: boolean;
425
+ }): string | null;
426
+ isNormalized(input: string | null | undefined): boolean;
427
+ }
428
+
429
+ declare const NorwegianAddress: CountryAddressStatic<{
430
+ readonly _country: Country;
431
+ get country(): Country;
432
+ readonly value: string;
433
+ readonly formatted: string;
434
+ readonly zipCode: AddressZipCode;
435
+ toNormalizedString(): string;
436
+ toString(): string;
437
+ }>;
438
+ declare const FinnishAddress: CountryAddressStatic<{
439
+ readonly _country: Country;
440
+ get country(): Country;
441
+ readonly value: string;
442
+ readonly formatted: string;
443
+ readonly zipCode: AddressZipCode;
444
+ toNormalizedString(): string;
445
+ toString(): string;
446
+ }>;
447
+ declare const DanishAddress: CountryAddressStatic<{
448
+ readonly _country: Country;
449
+ get country(): Country;
450
+ readonly value: string;
451
+ readonly formatted: string;
452
+ readonly zipCode: AddressZipCode;
453
+ toNormalizedString(): string;
454
+ toString(): string;
455
+ }>;
456
+ declare const GermanAddress: CountryAddressStatic<{
457
+ readonly _country: Country;
458
+ get country(): Country;
459
+ readonly value: string;
460
+ readonly formatted: string;
461
+ readonly zipCode: AddressZipCode;
462
+ toNormalizedString(): string;
463
+ toString(): string;
464
+ }>;
465
+ declare const PolishAddress: CountryAddressStatic<{
466
+ readonly _country: Country;
467
+ get country(): Country;
468
+ readonly value: string;
469
+ readonly formatted: string;
470
+ readonly zipCode: AddressZipCode;
471
+ toNormalizedString(): string;
472
+ toString(): string;
473
+ }>;
474
+ declare const EstonianAddress: CountryAddressStatic<{
475
+ readonly _country: Country;
476
+ get country(): Country;
477
+ readonly value: string;
478
+ readonly formatted: string;
479
+ readonly zipCode: AddressZipCode;
480
+ toNormalizedString(): string;
481
+ toString(): string;
482
+ }>;
483
+ declare const LithuanianAddress: CountryAddressStatic<{
484
+ readonly _country: Country;
485
+ get country(): Country;
486
+ readonly value: string;
487
+ readonly formatted: string;
488
+ readonly zipCode: AddressZipCode;
489
+ toNormalizedString(): string;
490
+ toString(): string;
491
+ }>;
492
+ declare const RomanianAddress: CountryAddressStatic<{
493
+ readonly _country: Country;
494
+ get country(): Country;
495
+ readonly value: string;
496
+ readonly formatted: string;
497
+ readonly zipCode: AddressZipCode;
498
+ toNormalizedString(): string;
499
+ toString(): string;
500
+ }>;
501
+ declare const BulgarianAddress: CountryAddressStatic<{
502
+ readonly _country: Country;
503
+ get country(): Country;
504
+ readonly value: string;
505
+ readonly formatted: string;
506
+ readonly zipCode: AddressZipCode;
507
+ toNormalizedString(): string;
508
+ toString(): string;
509
+ }>;
510
+ declare const LatvianAddress: CountryAddressStatic<{
511
+ readonly _country: Country;
512
+ get country(): Country;
513
+ readonly value: string;
514
+ readonly formatted: string;
515
+ readonly zipCode: AddressZipCode;
516
+ toNormalizedString(): string;
517
+ toString(): string;
518
+ }>;
519
+ declare const CzechAddress: CountryAddressStatic<{
520
+ readonly _country: Country;
521
+ get country(): Country;
522
+ readonly value: string;
523
+ readonly formatted: string;
524
+ readonly zipCode: AddressZipCode;
525
+ toNormalizedString(): string;
526
+ toString(): string;
527
+ }>;
528
+ declare const SpanishAddress: CountryAddressStatic<{
529
+ readonly _country: Country;
530
+ get country(): Country;
531
+ readonly value: string;
532
+ readonly formatted: string;
533
+ readonly zipCode: AddressZipCode;
534
+ toNormalizedString(): string;
535
+ toString(): string;
536
+ }>;
537
+ declare const DutchAddress: CountryAddressStatic<{
538
+ readonly _country: Country;
539
+ get country(): Country;
540
+ readonly value: string;
541
+ readonly formatted: string;
542
+ readonly zipCode: AddressZipCode;
543
+ toNormalizedString(): string;
544
+ toString(): string;
545
+ }>;
546
+ declare const GreekAddress: CountryAddressStatic<{
547
+ readonly _country: Country;
548
+ get country(): Country;
549
+ readonly value: string;
550
+ readonly formatted: string;
551
+ readonly zipCode: AddressZipCode;
552
+ toNormalizedString(): string;
553
+ toString(): string;
554
+ }>;
555
+ declare const ItalianAddress: CountryAddressStatic<{
556
+ readonly _country: Country;
557
+ get country(): Country;
558
+ readonly value: string;
559
+ readonly formatted: string;
560
+ readonly zipCode: AddressZipCode;
561
+ toNormalizedString(): string;
562
+ toString(): string;
563
+ }>;
564
+ declare const SlovenianAddress: CountryAddressStatic<{
565
+ readonly _country: Country;
566
+ get country(): Country;
567
+ readonly value: string;
568
+ readonly formatted: string;
569
+ readonly zipCode: AddressZipCode;
570
+ toNormalizedString(): string;
571
+ toString(): string;
572
+ }>;
573
+ declare const CroatianAddress: CountryAddressStatic<{
574
+ readonly _country: Country;
575
+ get country(): Country;
576
+ readonly value: string;
577
+ readonly formatted: string;
578
+ readonly zipCode: AddressZipCode;
579
+ toNormalizedString(): string;
580
+ toString(): string;
581
+ }>;
582
+ declare const PortugueseAddress: CountryAddressStatic<{
583
+ readonly _country: Country;
584
+ get country(): Country;
585
+ readonly value: string;
586
+ readonly formatted: string;
587
+ readonly zipCode: AddressZipCode;
588
+ toNormalizedString(): string;
589
+ toString(): string;
590
+ }>;
591
+ declare const HungarianAddress: CountryAddressStatic<{
592
+ readonly _country: Country;
593
+ get country(): Country;
594
+ readonly value: string;
595
+ readonly formatted: string;
596
+ readonly zipCode: AddressZipCode;
597
+ toNormalizedString(): string;
598
+ toString(): string;
599
+ }>;
600
+ declare const FrenchAddress: CountryAddressStatic<{
601
+ readonly _country: Country;
602
+ get country(): Country;
603
+ readonly value: string;
604
+ readonly formatted: string;
605
+ readonly zipCode: AddressZipCode;
606
+ toNormalizedString(): string;
607
+ toString(): string;
608
+ }>;
609
+ declare const SlovakAddress: CountryAddressStatic<{
610
+ readonly _country: Country;
611
+ get country(): Country;
612
+ readonly value: string;
613
+ readonly formatted: string;
614
+ readonly zipCode: AddressZipCode;
615
+ toNormalizedString(): string;
616
+ toString(): string;
617
+ }>;
618
+ declare const BelgianAddress: CountryAddressStatic<{
619
+ readonly _country: Country;
620
+ get country(): Country;
621
+ readonly value: string;
622
+ readonly formatted: string;
623
+ readonly zipCode: AddressZipCode;
624
+ toNormalizedString(): string;
625
+ toString(): string;
626
+ }>;
627
+ declare const BritishAddress: CountryAddressStatic<{
628
+ readonly _country: Country;
629
+ get country(): Country;
630
+ readonly value: string;
631
+ readonly formatted: string;
632
+ readonly zipCode: AddressZipCode;
633
+ toNormalizedString(): string;
634
+ toString(): string;
635
+ }>;
636
+ declare const AustrianAddress: CountryAddressStatic<{
637
+ readonly _country: Country;
638
+ get country(): Country;
639
+ readonly value: string;
640
+ readonly formatted: string;
641
+ readonly zipCode: AddressZipCode;
642
+ toNormalizedString(): string;
643
+ toString(): string;
644
+ }>;
645
+ declare const CypriotAddress: CountryAddressStatic<{
646
+ readonly _country: Country;
647
+ get country(): Country;
648
+ readonly value: string;
649
+ readonly formatted: string;
650
+ readonly zipCode: AddressZipCode;
651
+ toNormalizedString(): string;
652
+ toString(): string;
653
+ }>;
654
+ declare const IcelandicAddress: CountryAddressStatic<{
655
+ readonly _country: Country;
656
+ get country(): Country;
657
+ readonly value: string;
658
+ readonly formatted: string;
659
+ readonly zipCode: AddressZipCode;
660
+ toNormalizedString(): string;
661
+ toString(): string;
662
+ }>;
663
+ declare const SwissAddress: CountryAddressStatic<{
664
+ readonly _country: Country;
665
+ get country(): Country;
666
+ readonly value: string;
667
+ readonly formatted: string;
668
+ readonly zipCode: AddressZipCode;
669
+ toNormalizedString(): string;
670
+ toString(): string;
671
+ }>;
672
+ declare const IrishAddress: CountryAddressStatic<{
673
+ readonly _country: Country;
674
+ get country(): Country;
675
+ readonly value: string;
676
+ readonly formatted: string;
677
+ readonly zipCode: AddressZipCode;
678
+ toNormalizedString(): string;
679
+ toString(): string;
680
+ }>;
681
+ declare const LuxembourgishAddress: CountryAddressStatic<{
682
+ readonly _country: Country;
683
+ get country(): Country;
684
+ readonly value: string;
685
+ readonly formatted: string;
686
+ readonly zipCode: AddressZipCode;
687
+ toNormalizedString(): string;
688
+ toString(): string;
689
+ }>;
690
+ declare const MalteseAddress: CountryAddressStatic<{
691
+ readonly _country: Country;
692
+ get country(): Country;
693
+ readonly value: string;
694
+ readonly formatted: string;
695
+ readonly zipCode: AddressZipCode;
696
+ toNormalizedString(): string;
697
+ toString(): string;
698
+ }>;
699
+ declare const LiechtensteinAddress: CountryAddressStatic<{
700
+ readonly _country: Country;
701
+ get country(): Country;
702
+ readonly value: string;
703
+ readonly formatted: string;
704
+ readonly zipCode: AddressZipCode;
705
+ toNormalizedString(): string;
706
+ toString(): string;
707
+ }>;
708
+
709
+ export { Address, AddressCity, AddressStreet, AddressZipCode, AustrianAddress, AustrianAddressZipCode, BelgianAddress, BelgianAddressZipCode, BritishAddress, BritishAddressZipCode, BulgarianAddress, BulgarianAddressZipCode, ContactAddress, ContactAddressBuilder, CroatianAddress, CroatianAddressZipCode, CypriotAddress, CypriotAddressZipCode, CzechAddress, CzechAddressZipCode, DanishAddress, DanishAddressZipCode, DutchAddress, DutchAddressZipCode, EstonianAddress, EstonianAddressZipCode, FinnishAddress, FinnishAddressZipCode, FrenchAddress, FrenchAddressZipCode, GermanAddress, GermanAddressZipCode, GreekAddress, GreekAddressZipCode, HungarianAddress, HungarianAddressZipCode, ICountryAddress, ICountryAddressZipCode, IcelandicAddress, IcelandicAddressZipCode, IrishAddress, IrishAddressZipCode, ItalianAddress, ItalianAddressZipCode, LatvianAddress, LatvianAddressZipCode, LiechtensteinAddress, LiechtensteinAddressZipCode, LithuanianAddress, LithuanianAddressZipCode, LuxembourgishAddress, LuxembourgishAddressZipCode, MalteseAddress, MalteseAddressZipCode, NorwegianAddress, NorwegianAddressZipCode, PhoneNumber, PhoneNumberTestData, PolishAddress, PolishAddressZipCode, PortugueseAddress, PortugueseAddressZipCode, RomanianAddress, RomanianAddressZipCode, SlovakAddress, SlovakAddressZipCode, SlovenianAddress, SlovenianAddressZipCode, SpanishAddress, SpanishAddressZipCode, SwedishAddress, SwedishAddressZipCode, SwissAddress, SwissAddressZipCode, getBingMapsUrl, getGoogleMapsUrl, getGoogleMapsUrlForAddress, getHittaUrl, getTelUri, maskAddress, maskAddressCity, maskAddressStreet, maskAddressZipCode, maskPhoneNumberDetailed, maskSwedishAddress, maskSwedishAddressZipCode, registerDefaultCountryAddresses };