UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

6 lines (5 loc) 328 B
import type { SCAction, StateModel, TopLevelDataSchema } from './types'; export declare function StateReducer<TLDS extends TopLevelDataSchema>(): { reducer: ({ currentState: currState, prevState }: StateModel<TLDS>["state"], action: SCAction) => StateModel<TLDS>["state"]; setCurrentForms: (forms: string[]) => void; };