@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
16 lines (15 loc) • 729 B
TypeScript
import type { MaskToken, PossibleShift } from './maskTypes';
import type { MatchedToken } from './matchAgainstMask';
export declare const shiftRight: (possibleShifts: PossibleShift[], matchedTokens: MatchedToken[], remainingTokens: MaskToken[]) => {
matchedTokens: MatchedToken[];
remainingTokens: MaskToken[];
};
/**
* Returns all possible shifts of optional inputs, sorted by best to worst
* @param mask
*/
export declare const findPossibleShifts: (mask: MaskToken[]) => PossibleShift[];
export declare const tryShift: (matchedTokens: MatchedToken[], remainingTokens: MaskToken[], fromIndex: number, shiftDistance: number) => {
matchedTokens: MatchedToken[];
remainingTokens: MaskToken[];
} | "notPossible";