@incodetech/core 0.0.0-dev-20260930-90072124 → 0.0.0-dev-20260930-d4ff5ab8

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 (62) hide show
  1. package/dist/{FaceDetectionProvider-D7EgGetD.esm.js → FaceDetectionProvider-Cvj1_Ymy.esm.js} +4 -4
  2. package/dist/{PhoneValidationProvider-Dok_Det7.esm.js → PhoneValidationProvider-CG6ZVdz1.esm.js} +71 -22
  3. package/dist/ae-signature.esm.js +1 -1
  4. package/dist/{apiError-ruTAo5oZ.esm.js → apiError-D9tifEpC.esm.js} +1 -1
  5. package/dist/authentication.esm.js +2 -2
  6. package/dist/{authenticationManager--SnXz-Qz.esm.js → authenticationManager-DlfCCFD9.esm.js} +3 -3
  7. package/dist/{authenticationStateMachine-DYTXxUeE.esm.js → authenticationStateMachine-DoHDzFwH.esm.js} +2 -2
  8. package/dist/{deepsightLoader-DxRjy2gm.esm.js → deepsightLoader-CcCEf7oe.esm.js} +3 -3
  9. package/dist/dynamic-forms.esm.js +2 -2
  10. package/dist/{dynamicFormsManager-BMVl_P07.esm.js → dynamicFormsManager-B35E9gH9.esm.js} +1 -1
  11. package/dist/{dynamicFormsStateMachine-BeUeM9aA.esm.js → dynamicFormsStateMachine-P-JjrehB.esm.js} +1 -1
  12. package/dist/ekyb.esm.js +3 -3
  13. package/dist/{ekybManager-DZcR8AX4.esm.js → ekybManager-oF_sPUOw.esm.js} +1 -1
  14. package/dist/{ekybStateMachine-BN1PQlBt.esm.js → ekybStateMachine-CIApHD7u.esm.js} +1 -1
  15. package/dist/ekyc.esm.js +2 -2
  16. package/dist/{ekycManager-pYMEF56-.esm.js → ekycManager-AHzro9W9.esm.js} +1 -1
  17. package/dist/{ekycStateMachine-DtTIJSz_.esm.js → ekycStateMachine-CySBCorS.esm.js} +1 -1
  18. package/dist/electronic-signature.esm.js +1 -1
  19. package/dist/{electronicSignatureManager-DUOTGmlj.esm.js → electronicSignatureManager-Dk7Q3E3i.esm.js} +1 -1
  20. package/dist/extensibility.d.ts +2 -2
  21. package/dist/extensibility.esm.js +12 -12
  22. package/dist/{faceCaptureManagerFactory-Q4xJZa5O.esm.js → faceCaptureManagerFactory-DANyCvgN.esm.js} +1 -1
  23. package/dist/{faceCaptureSetup-CezT30XZ.esm.js → faceCaptureSetup-BCRAojxy.esm.js} +3 -3
  24. package/dist/{feature-management-DfMz4_nA.esm.js → feature-management-Ccg5zlkB.esm.js} +1 -1
  25. package/dist/feature-management.esm.js +1 -1
  26. package/dist/flow.esm.js +3 -3
  27. package/dist/{flowCompletionService-NlcdEZS9.esm.js → flowCompletionService-Cs4AgJhJ.esm.js} +1 -1
  28. package/dist/{flowServices-B3m-Sh8x.esm.js → flowServices-pvloXH7G.esm.js} +4 -4
  29. package/dist/geolocation.esm.js +2 -2
  30. package/dist/{geolocationManager-CEZumJZc.esm.js → geolocationManager-BTi46_n3.esm.js} +1 -1
  31. package/dist/{geolocationStateMachine-bQIEHJTm.esm.js → geolocationStateMachine-CbH5L_lc.esm.js} +1 -1
  32. package/dist/id-selfie-flow.esm.js +7 -7
  33. package/dist/id.esm.js +3 -3
  34. package/dist/{idCaptureDefaults-DJXGqhdJ.esm.js → idCaptureDefaults-BLsrCpnc.esm.js} +1 -1
  35. package/dist/{idCaptureManager-C8eI691-.esm.js → idCaptureManager-BvqvirzG.esm.js} +3 -3
  36. package/dist/{idCaptureServices-CYLDzPYX.esm.js → idCaptureServices-QkxG2qev.esm.js} +3 -3
  37. package/dist/{idCaptureStateMachine-B3SU9TvX.esm.js → idCaptureStateMachine-BeMf0ogh.esm.js} +9 -9
  38. package/dist/identity-reuse.d.ts +1 -1
  39. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
  40. package/dist/index.esm.js +1 -1
  41. package/dist/mandatory-consent.d.ts +1 -1
  42. package/dist/{mandatoryConsentManager-B6glP66e.d.ts → mandatoryConsentManager-CdBVHXGB.d.ts} +4 -4
  43. package/dist/phone-number.d.ts +24 -0
  44. package/dist/phone-number.esm.js +1922 -0
  45. package/dist/phone.esm.js +1 -1
  46. package/dist/{phoneManager-D46pkVfg.esm.js → phoneManager-DA8hsPmm.esm.js} +1 -1
  47. package/dist/qe-signature.esm.js +1 -1
  48. package/dist/{runChildModule-D3Dlqhco.esm.js → runChildModule-DpDd5hXI.esm.js} +1 -1
  49. package/dist/{sdkVersion-DMdEDBaH.esm.js → sdkVersion-BPfZ8U6L.esm.js} +1 -1
  50. package/dist/selfie.esm.js +5 -5
  51. package/dist/{selfieManager-BtragiV_.esm.js → selfieManager-DE8P16_w.esm.js} +3 -3
  52. package/dist/{selfieStateMachine-x6yG4UH-.esm.js → selfieStateMachine-BjZQm9q9.esm.js} +2 -2
  53. package/dist/{session-Dbl188i2.esm.js → session-Csgo_71V.esm.js} +3 -3
  54. package/dist/session.esm.js +4 -4
  55. package/dist/{sessionInitializer-CXqqCeR3.esm.js → sessionInitializer-DlH51ecl.esm.js} +3 -3
  56. package/dist/{setup-CwKoox5p.esm.js → setup-C9O-XOmZ.esm.js} +4 -4
  57. package/dist/{trueSightService-tAGH_jvD.esm.js → trueSightService-CiueMAv8.esm.js} +1 -1
  58. package/dist/video-selfie.esm.js +3 -3
  59. package/dist/{videoSelfieCameraWarmer-CuTleylk.esm.js → videoSelfieCameraWarmer-q2scCxub.esm.js} +3 -3
  60. package/dist/wasm.esm.js +2 -2
  61. package/dist/workflow.esm.js +15 -15
  62. package/package.json +6 -1
@@ -1,5 +1,5 @@
1
1
  import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-DPPQlS-U.esm.js";
2
- import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-tAGH_jvD.esm.js";
2
+ import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-CiueMAv8.esm.js";
3
3
  import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-DLq_t-Zu.esm.js";
4
4
  import { i as BaseWasmProvider } from "./safeStorage-Q_iUpxa8.esm.js";
5
5
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
@@ -1,4 +1,4 @@
1
- import { l as BrowserStorageProvider } from "./setup-CwKoox5p.esm.js";
1
+ import { l as BrowserStorageProvider } from "./setup-C9O-XOmZ.esm.js";
2
2
  import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
@@ -6,8 +6,8 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.esm.js";
6
6
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
7
7
  import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B9IqVf3c.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
9
- import { l as createIdProtectedCaptureController, m as mapDeviceWalletScreenName, n as provideIdProtectedCaptureController, p as BrowserDigitalCredentialsProvider, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-B3SU9TvX.esm.js";
10
- import { b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-CYLDzPYX.esm.js";
9
+ import { l as createIdProtectedCaptureController, m as mapDeviceWalletScreenName, n as provideIdProtectedCaptureController, p as BrowserDigitalCredentialsProvider, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-BeMf0ogh.esm.js";
10
+ import { b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-QkxG2qev.esm.js";
11
11
  //#region src/modules/id/digitalUpload/instrumentation.ts
12
12
  const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
13
13
  function isHoldingState(value) {
@@ -1,5 +1,5 @@
1
- import { t as ensureWasmPipelines } from "./setup-CwKoox5p.esm.js";
2
- import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-DfMz4_nA.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-C9O-XOmZ.esm.js";
2
+ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-Ccg5zlkB.esm.js";
3
3
  import { t as api } from "./api-Bx3gKW_y.esm.js";
4
4
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
5
5
  import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
@@ -9,7 +9,7 @@ import { l as queryCameraPermission } from "./permissionServices-B9IqVf3c.esm.js
9
9
  import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-CMjkhS2x.esm.js";
10
10
  import { n as getBackCameraStream, o as isBackFacingTrack } from "./backCameraStream-CMvXj4X4.esm.js";
11
11
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DJXGqhdJ.esm.js";
12
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BLsrCpnc.esm.js";
13
13
  //#region src/internal/camera/cameraServices.ts
14
14
  function createCameraServices(camera) {
15
15
  return {
@@ -1,16 +1,16 @@
1
- import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-tAGH_jvD.esm.js";
1
+ import { c as trueSightHintTransition, l as trueSightLog, m as isTrueSightTesting, r as noteTrueSightCaptureActivity } from "./trueSightService-CiueMAv8.esm.js";
2
2
  import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
3
- import { l as BrowserStorageProvider } from "./setup-CwKoox5p.esm.js";
3
+ import { l as BrowserStorageProvider } from "./setup-C9O-XOmZ.esm.js";
4
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
5
- import { s as exposeExperimentOnce } from "./feature-management-DfMz4_nA.esm.js";
5
+ import { s as exposeExperimentOnce } from "./feature-management-Ccg5zlkB.esm.js";
6
6
  import { n as revokeObjectURL, t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
7
7
  import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
8
8
  import { n as eventModuleNames, o as createManagerInstrumentation, s as recordExperimentAssignmentOnce, v as addEvent } from "./events-ijlbX_Wx.esm.js";
9
- import { t as getDisableIpify } from "./sessionInitializer-CXqqCeR3.esm.js";
9
+ import { t as getDisableIpify } from "./sessionInitializer-DlH51ecl.esm.js";
10
10
  import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
11
11
  import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
12
12
  import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
13
- import "./session-Dbl188i2.esm.js";
13
+ import "./session-Csgo_71V.esm.js";
14
14
  import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
15
15
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
16
16
  import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
@@ -26,8 +26,8 @@ import { a as isBackCameraLabel } from "./backCameraStream-CMvXj4X4.esm.js";
26
26
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
27
27
  import { n as runVirtualCameraCheck, t as frameSources } from "./virtualCameraCheck-CW8mFdt9.esm.js";
28
28
  import { t as getDeviceClass } from "./getDeviceClass-5NYZg9s6.esm.js";
29
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-DJXGqhdJ.esm.js";
30
- import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-CYLDzPYX.esm.js";
29
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-BLsrCpnc.esm.js";
30
+ import { C as getIdCameraStream, S as OPTIMIZING_WATCHDOG_MARGIN_MS, _ as ID_ERROR_CODES, a as getRealQualityValue, b as resolveIdCaptureThresholds, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId, x as CAPTURE_OPTIMIZING, y as resolveCountdownStepMs } from "./idCaptureServices-QkxG2qev.esm.js";
31
31
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
32
32
  //#region src/modules/id/digitalUpload/digitalUploadErrors.ts
33
33
  const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
@@ -1398,7 +1398,7 @@ fromPromise(async ({ input }) => {
1398
1398
  });
1399
1399
  fromPromise(async ({ input }) => {
1400
1400
  if (!input.dependencies) return;
1401
- const { loadDeepsightSession } = await import("./deepsightLoader-DxRjy2gm.esm.js");
1401
+ const { loadDeepsightSession } = await import("./deepsightLoader-CcCEf7oe.esm.js");
1402
1402
  return loadDeepsightSession({
1403
1403
  ds: input.ds,
1404
1404
  storage: input.dependencies.storage,
@@ -1841,7 +1841,7 @@ function cleanup(service) {
1841
1841
  service.cleanup();
1842
1842
  } catch {}
1843
1843
  }
1844
- function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-DxRjy2gm.esm.js")).loadDeepsightSession(input)) {
1844
+ function createIdMetadataPreparationCoordinator(load = async (input) => (await import("./deepsightLoader-CcCEf7oe.esm.js")).loadDeepsightSession(input)) {
1845
1845
  let disposed = false;
1846
1846
  let preparation;
1847
1847
  let service;
@@ -1,2 +1,2 @@
1
- import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-ooAbp6Kc.js";
1
+ import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-B1birg5X.js";
2
2
  export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
@@ -120,10 +120,6 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
120
120
  type: "setError";
121
121
  params: NonReducibleUnknown;
122
122
  };
123
- clearError: {
124
- type: "clearError";
125
- params: NonReducibleUnknown;
126
- };
127
123
  setSelectedDocument: {
128
124
  type: "setSelectedDocument";
129
125
  params: NonReducibleUnknown;
@@ -132,6 +128,10 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
132
128
  type: "setCompanyName";
133
129
  params: NonReducibleUnknown;
134
130
  };
131
+ clearError: {
132
+ type: "clearError";
133
+ params: NonReducibleUnknown;
134
+ };
135
135
  }>, Values<{
136
136
  hasDocuments: {
137
137
  type: "hasDocuments";
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as reset, r as isConfigured, s as setup } from "./setup-CwKoox5p.esm.js";
1
+ import { i as reset, r as isConfigured, s as setup } from "./setup-C9O-XOmZ.esm.js";
2
2
  export { isConfigured, reset, setup };
@@ -1,3 +1,3 @@
1
1
  import { r as MandatoryConsentConfig } from "./types-DovOQmax.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-B6glP66e.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CdBVHXGB.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -56,14 +56,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
56
56
  type: "setError";
57
57
  params: NonReducibleUnknown;
58
58
  };
59
- toggleSigned: {
60
- type: "toggleSigned";
61
- params: NonReducibleUnknown;
62
- };
63
59
  clearError: {
64
60
  type: "clearError";
65
61
  params: NonReducibleUnknown;
66
62
  };
63
+ toggleSigned: {
64
+ type: "toggleSigned";
65
+ params: NonReducibleUnknown;
66
+ };
67
67
  resetContext: {
68
68
  type: "resetContext";
69
69
  params: NonReducibleUnknown;
@@ -0,0 +1,24 @@
1
+ //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/types.d.ts
2
+ // The rationale for having a separate `CountryCode` type instead of just a `string`:
3
+ // https://github.com/catamphetamine/libphonenumber-js/issues/170#issuecomment-363156068
4
+ type CountryCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
5
+ //#endregion
6
+ //#region src/modules/phone-number/phoneNumber.d.ts
7
+ /** Returns `+52` for `MX`, or an empty string for a country with no phone metadata. */
8
+ declare function getCallingCode(country: CountryCode): string;
9
+ /** Formats national digits while the user types them, without the calling code. */
10
+ declare function formatPhoneAsYouType(nationalDigits: string, country: CountryCode): string;
11
+ /** Returns an example mobile number in national format, without a trunk prefix. */
12
+ declare function formatExamplePhoneNumber(country: CountryCode): string;
13
+ /**
14
+ * Finds the country of a valid international number (`+12025550123`) and
15
+ * formats its national part. Returns `null` when the number is not valid.
16
+ */
17
+ declare function parsePhoneNumber(phone: string): {
18
+ country: CountryCode;
19
+ national: string;
20
+ } | null;
21
+ /** Checks a full international number against the rules of `country`. */
22
+ declare function isValidPhoneNumber(phone: string, country: CountryCode): boolean;
23
+ //#endregion
24
+ export { type CountryCode, formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, isValidPhoneNumber, parsePhoneNumber };