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

11 lines (10 loc) 414 B
import type { Dispatch, StateUpdater } from 'preact/hooks'; type Serializer<T> = (object: T | undefined) => string; type Parser<T> = (val: string) => T | undefined; type Options<T> = Partial<{ serializer: Serializer<T>; parser: Parser<T>; syncData: boolean; }>; export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?: Options<T>) => [T, Dispatch<StateUpdater<T>>]; export {};