@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
7 lines (6 loc) • 755 B
TypeScript
import type { FormType } from '../stores/form/types.js';
import type { AllowDeny, AllowDenyItems, AllowDenySet, AllowDenySetItem, AllowDenySets } from '../types/widget.js';
export declare const isItemAllowed: <T>(item: T, items: AllowDeny<T> | undefined) => boolean;
export declare const isItemAllowedForSets: <T>(item: T, items: AllowDenySet | undefined, getKey?: (item: T) => AllowDenySetItem) => boolean;
export declare const getConfigItemSets: <T>(items: AllowDenyItems<T> | undefined, getSet: (items: T[]) => Set<AllowDenySetItem>, formType?: FormType) => AllowDenySets | undefined;
export declare const isFormItemAllowed: <T>(item: T, configTokens: AllowDenySets | undefined, formType?: FormType, getKey?: (item: T) => AllowDenySetItem) => boolean;