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

25 lines (24 loc) 1.89 kB
import type { AccountIdentification } from '../core/models/api/accountIdentification'; import type { CountryCode } from '../core/models/country-code'; import type { CountryFormatRules } from './validation/types'; export declare const getMaxLengthByFieldAndCountry: <FormSchema extends object>(formattingRules: CountryFormatRules<FormSchema>, field: keyof FormSchema, country: CountryCode | undefined, ignoreIfFormatterExists: boolean) => number; export declare const isUndefinedOrNull: (input: unknown) => input is undefined | null; export declare const isEmpty: (input: unknown) => input is null | undefined; export declare const hasEmptyFields: (input: object | undefined) => boolean; export declare const isAccountIdentifierObscured: (payload: AccountIdentification) => boolean; export declare const findEmptyKeys: (obj: object) => string[]; export declare const extractFieldName: (inputString: string) => string; export declare const concatenateFieldNames: (fieldNames: string[]) => string; export declare const isString: (input: unknown) => input is string; export declare const hasText: (input: unknown) => boolean; export declare const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\"; export declare const getFormattingRegEx: (specChars: string, flags?: string) => RegExp; export declare const trimValWithOneSpace: (val: string) => string; export declare const EMOJI_REGEX: RegExp; export declare const NO_ALPHABET_REGEX: RegExp; export declare const INDIVIDUAL_VALID_CHAR_REGEX: RegExp; export declare const OTHER_ENTITIES_VALID_CHAR_REGEX: RegExp; export declare const matchesRegex: (regex: RegExp, input: unknown) => boolean; export declare const hasRepeatedCharacters: (input?: string | null) => boolean; export declare const isValidMinLength: (input?: string | null, minLength?: number) => boolean; export declare const isInvalidName: (input?: string | null) => boolean;