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.

11 lines (10 loc) 574 B
import type { ExperimentName } from '../../context/ToggleContext/types'; import type { QueryOptions } from '../types'; import type { components } from './toggles.contract'; type ToggleApiResponse = components['schemas']['FlagsDto']; export type TogglesResponse = Omit<ToggleApiResponse, 'experiments'> & { experiments?: Partial<Record<ExperimentName, boolean>>; }; export type QueryKeyToggles = ['toggles']; export declare const useToggles: (options?: QueryOptions<TogglesResponse>) => import("@tanstack/preact-query").UseQueryResult<TogglesResponse, Error>; export {};