UNPKG

@adyen/kyc-components

Version:

`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar

13 lines (12 loc) 934 B
import type { CountryCode } from '../../core/models/country-code'; import type { Language } from '../../language/Language'; import type { ValidatorRules } from '../../utils/validation/types'; import type { AddressSchema, AddressType } from './types'; import type { ExperimentName } from '../../core/context/ExperimentContext/types'; export declare const addressValidationRules: (country: CountryCode | undefined, addressType?: AddressType, isPreventPoBoxEnabled?: boolean) => ValidatorRules<AddressSchema>; export declare const addressValidationRulesV4: (country: CountryCode | undefined, i18n: Language, addressType?: AddressType, isPreventPoBoxEnabled?: boolean) => ValidatorRules<AddressSchema>; export declare const addressValidators: ({ isExperimentEnabled, country, i18n, }: { isExperimentEnabled?: (experiment: ExperimentName) => boolean; country?: CountryCode; i18n: Language; }) => ValidatorRules<AddressSchema>;