import { ApplicantFormField, CompanyApplicantFormField } from '../client/config'; export declare const CountriesType: { readonly Nationality: 10; readonly Address: 20; readonly CountryOfBirth: 30; readonly PhoneNumber: 40; readonly UboAddress: 50; }; export type CountriesTypeValue = typeof CountriesType[keyof typeof CountriesType]; export interface FieldMeta { label: string; /** i18n key under the 'fields' domain, e.g. 'firstName' → t('fields.firstName') */ translationKey?: string; type: 'text' | 'email' | 'tel' | 'date' | 'select' | 'multiselect' | 'checkbox' | 'number'; /** For select/multiselect country fields: the default CountriesType passed to the API */ countriesType?: CountriesTypeValue; /** When true, digit keys and pasted digits are not accepted (e.g. city names). */ disallowDigits?: boolean; } /** A single field entry for the identity review page */ export interface ReviewFieldEntry { /** Built-in field name from FIELD_METADATA (e.g. 'firstName', 'country') */ name: string; /** true = rendered as an editable input; false / absent = read-only display */ editable?: boolean; /** Optional label override */ displayText?: string; /** Column span in the 4-column grid (1=quarter, 2=half, 3=three-quarter, 4=full) */ colSpan?: 1 | 2 | 3 | 4; } export declare const FIELD_METADATA: Record; export declare const COMPANY_FIELD_METADATA: Record; /** * Metadata for the KYB person fields used inside the Representative and * UBOs/Directors single-page forms. Mirrors COMPANY_FIELD_METADATA in shape so * the same FormPage / FormFieldEntry pipeline can render them. */ export declare const PERSON_FIELD_METADATA: Record; /** Country fields within the person catalogue — rendered as searchable selects. */ export declare const PERSON_COUNTRY_FIELD_NAMES: Set; export declare const DEFAULT_COMPANY_VISIBLE_FIELDS: CompanyApplicantFormField[]; export declare const DEFAULT_VISIBLE_FIELDS: ApplicantFormField[]; export declare const ALLOWED_LANGUAGES: Array<{ value: string; label: string; }>; /** * A single field entry inside a form page. * Either refers to a built-in applicant field (name) or a custom field. */ export interface FormFieldEntry { /** Built-in field identifier: 'firstName', 'lastName', 'email', etc. Omit for custom fields. */ name?: string; /** Column span in the 4-column grid. 1 = quarter, 2 = half, 3 = three-quarter, 4 = full. */ colSpan: 1 | 2 | 3 | 4; /** Whether this is a custom out-of-scope field */ isCustom?: boolean; /** Type of custom field */ customType?: 'text' | 'checkbox' | 'link_checkbox' | 'link' | 'group_checkbox' | 'radio_group' | 'paragraph' | 'html' | 'br'; /** Override the label shown to the user. If empty, falls back to the default field name/label. */ displayText?: string; /** Display label for the custom field */ label?: string; /** Key under which the value is stored in applicantAdditionalData.paramName */ paramName?: string; /** Whether the field is mandatory */ required?: boolean; /** For link_checkbox: URL the hyperlink points to */ linkUrl?: string; /** For link_checkbox: text of the hyperlink (e.g. "Terms & Conditions") */ linkText?: string; /** For group_checkbox / radio_group: the selectable options */ options?: Array<{ value: string; label: string; }>; /** * For group_checkbox / radio_group: option values that block the user from proceeding. * If any selected value appears in this array, the "Next"/"Submit" button is disabled. */ blockingValues?: string[]; /** * For group_checkbox: when true only one option can be checked at a time * (mutually exclusive checkboxes, distinct from radio_group in appearance). */ singleSelect?: boolean; /** * For country-type built-in fields: overrides the default CountriesType used when fetching * the country list from the API (e.g. Nationality=10, Address=20, CountryOfBirth=30, PhoneNumber=40). * If omitted, the SDK uses the default from FIELD_METADATA for that field. */ countriesType?: number; /** * Optional help/tooltip text shown next to the field as a clickable ? button. * Applies to both built-in and custom fields. */ helpText?: string; /** * Review-page mode only. * true = field is rendered as an editable input; false / absent = rendered as read-only text. */ editable?: boolean; /** * Per-field label display mode. * 'label' (default) — a label element is shown above the input. * 'placeholder' — no label element; the label text is used as the input placeholder instead. * When absent, falls back to the global fieldLabelMode from theme/config. */ labelMode?: 'label' | 'placeholder'; /** * Optional mutual-exclusion group key for boolean fields. * When multiple checkbox fields share the same non-empty key, selecting one of them * will automatically unselect the others (radio-like behavior with checkbox visuals). */ exclusiveGroup?: string; /** * How a mutual-exclusion group renders its options. * 'checkbox' (default) — checkbox visuals; a selected option can be clicked again to clear it. * 'radio' — radio-button visuals with radio semantics: exactly one option stays selected. * The group takes its style from the first field in page order that sets one, so admins * only need to set it once per group. */ exclusiveGroupStyle?: 'checkbox' | 'radio'; } /** * A single page of the applicant form with optional header text and an ordered list of fields. */ export interface FormPage { title?: string; subtitle?: string; description?: string; fields: FormFieldEntry[]; /** * If set, this page is only shown when the custom field with this paramName has value 'true' * (or any non-empty value for radio/text). Typically tied to a checkbox on a previous page. */ conditionalOn?: string; /** * Optional help/tooltip text shown as a ? button next to the conditional gate checkbox. */ conditionalHelpText?: string; /** * How the conditional page behaves when the condition is NOT met. * 'skip' (default) — user can skip this page and continue. * 'block' — user cannot continue at all; the process is blocked. */ conditionalMode?: 'skip' | 'block'; /** * Optional display label for the conditional gate checkbox. * If omitted, falls back to the conditionalOn param name. */ conditionalLabel?: string; } //# sourceMappingURL=form-config.d.ts.map