@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) • 688 B
TypeScript
import type { ComponentChildren } from 'preact';
import type { EventEmitter } from '../../core/EventEmitter';
export interface ExpiryProviderProps {
expiry?: number;
eventEmitter?: EventEmitter;
refreshExpiry?: () => Promise<number>;
children?: ComponentChildren;
}
/**
* Handles an expiry modal triggered when the user is afk
* Does NOT work in Onboarding Components, since it refreshes on handler use
* TODO: improve implementation and docs
*/
export declare const ExpiryProvider: ({ expiry: initialExpiry, eventEmitter, refreshExpiry, children, }: ExpiryProviderProps) => import("preact/jsx-runtime").JSX.Element;
export declare const useHasExpired: () => boolean;