UNPKG

opticks

Version:

FindHotel Toggle Flag JavaScript SDK

16 lines (13 loc) 570 B
import { T as ToggleIdType, V as VariantType, a as ToggleFuncReturnType } from './types-800f549e.js'; type toggleListType = { [key in ToggleIdType]?: { variant: VariantType; }; }; declare const setToggles: (toggles: any) => void; declare const getToggle: (toggleId: ToggleIdType) => VariantType; declare const toggle: <T extends any[]>(toggleId: string, ...variants: T) => ToggleFuncReturnType<T>; declare const initialize: ({ toggles }: { toggles?: toggleListType; }) => void; export { getToggle, initialize, setToggles, toggle, toggleListType };