import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js"; import { t as Manager } from "./Manager-CQQ99QOI.js"; import "./Actor-iTq7YY48.js"; import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-Bk_6dmDa.js"; //#region src/modules/ekyc/ekycStateMachine.d.ts declare const ekycMachine: any; type EkycMachine = typeof ekycMachine; //#endregion //#region src/modules/ekyc/ekycActor.d.ts type EkycActor = ActorRefFrom; type CreateEkycActorOptions = { config: EkycConfig; }; //#endregion //#region src/modules/ekyc/ekycManager.d.ts type EkycLoadingState = { status: 'loading'; }; type EkycFormState = { status: 'form'; fields: EkycFieldDef[]; values: EkycFormValues; validationErrors?: EkycValidationErrors; /** True iff `validationErrors` is empty. Optimistic semantic: starts true on initial render. */ isValid: boolean; addressSuggestions: AddressSuggestion[]; prefilled: Record; hideEmail: boolean; fieldsCountry: string; submitError: string; }; type EkycSubmittingState = { status: 'submitting'; }; type EkycSuccessState = { status: 'success'; }; type EkycErrorState = { status: 'error'; errorMessage: string; }; type EkycMisconfiguredState = { status: 'misconfigured'; }; type EkycFinishedState = { status: 'finished'; }; type EkycClosedState = { status: 'closed'; }; /** * Discriminated union of all possible eKYC manager states. */ type EkycState = EkycLoadingState | EkycFormState | EkycSubmittingState | EkycSuccessState | EkycErrorState | EkycMisconfiguredState | EkycFinishedState | EkycClosedState; declare function createEkycManagerFromActor(actor: EkycActor): Manager & { /** Initializes the eKYC flow — fetches config and pre-fill data */ load(): void; /** Sets a form field value. Clears any existing validation error for this field. */ setField(name: string, value: string): void; /** Validates a single field (e.g., on blur). Populates or clears `validationErrors[name]`. */ validateField(name: string): void; /** Initiates a debounced address autocomplete search */ searchAddress(query: string): void; /** Selects an address suggestion and populates address fields */ selectAddress(suggestion: AddressSuggestion): void; /** Submits the form. Runs full-form validation; advances only when no errors. */ submit(): void; /** Retries from failure state, returning to the form */ retry(): void; /** Skips verification from failure state */ skip(): void; /** Closes/dismisses the module */ close(): void; }; declare function createEkycManager(options: CreateEkycActorOptions): Manager & { /** Initializes the eKYC flow — fetches config and pre-fill data */ load(): void; /** Sets a form field value. Clears any existing validation error for this field. */ setField(name: string, value: string): void; /** Validates a single field (e.g., on blur). Populates or clears `validationErrors[name]`. */ validateField(name: string): void; /** Initiates a debounced address autocomplete search */ searchAddress(query: string): void; /** Selects an address suggestion and populates address fields */ selectAddress(suggestion: AddressSuggestion): void; /** Submits the form. Runs full-form validation; advances only when no errors. */ submit(): void; /** Retries from failure state, returning to the form */ retry(): void; /** Skips verification from failure state */ skip(): void; /** Closes/dismisses the module */ close(): void; }; type EkycManager = ReturnType; //#endregion export { EkycActor as a, createEkycManagerFromActor as i, EkycState as n, ekycMachine as o, createEkycManager as r, EkycManager as t };