@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
11 lines (10 loc) • 636 B
TypeScript
import type { DropinAPIHandlers } from '../components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
export type ComponentApi = {
updateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
};
export declare const makeComponentApi: (rootLegalEntityId: string, base: string) => ComponentApi;
/**
* @description Hook that allows use of current componentApi requests without needing to pass in context.
* @deprecated If you only need to support v3+, consider using the api call wrapped in tanstack-query directly
*/
export declare const useComponentApi: (rootLegalEntityId: string) => ComponentApi;