UNPKG

@ledgerhq/live-common

Version:
14 lines 2.74 kB
import { Feature, FeatureParam } from "@ledgerhq/types-live"; /** * Hook that returns the value of a feature flag based on its `featureId`. * * @dev do not modify this function to make it return a default arbitrary value * instead of null, this should not be handled at this level. * * @param featureId * @returns a feature flag value or null if the feature flag is not found * (neither in the remote configuration, in the cache or in the local defaults). */ declare const useFeature: <T extends "discover" | keyof import("@ledgerhq/types-live").CurrencyFeatures | "welcomeScreenVideoCarousel" | "brazePushNotifications" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "mockFeature" | "buySellUi" | "buySellLoader" | "buySellShortcut" | "referralProgramDesktopSidebar" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "receiveStakingFlowConfigDesktop" | "ethStakingModalWithFilters" | "ethStakingProviders" | "storyly" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "editEvmTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "transactionsAlerts" | "fetchAdditionalCoins" | "ptxCard" | "ptxSwapLiveAppMobile" | "ptxSwapLiveAppKycWarning" | "ptxSwapLiveApp" | "ptxSwapDetailedView" | "ptxEarnLiveApp" | "ptxEarnDrawerApy" | "ptxSwapReceiveTRC20WithoutTrx" | "flexibleContentCards" | "llmAnalyticsOptInPrompt" | "ptxSwapMoonpayProvider" | "ptxSwapExodusProvider" | "lldAnalyticsOptInPrompt" | "lldChatbotSupport" | "llmChatbotSupport" | "myLedgerDisplayAppDeveloperName" | "lldActionCarousel" | "marketperformanceWidgetDesktop" | "lldRefreshMarketData" | "llmRefreshMarketData" | "lldWalletSync" | "llmWalletSync" | "enableAppsBackup" | "web3hub" | "llmMarketQuickActions" | "llmMemoTag" | "lldMemoTag" | "ldmkTransport" | "llMevProtection" | "llCounterValueGranularitiesRates" | "llmRebornLP" | "llmRebornFlex" | "llmAccountListUI" | "llmLedgerSyncEntryPoints" | "lldLedgerSyncEntryPoints" | "lldNanoSUpsellBanners" | "llmNanoSUpsellBanners" | "llmThai" | "lldThai" | "largemoverLandingpage" | "llmMmkvMigration" | "lldModularDrawer" | "llmModularDrawer" | "llNftEntryPoint" | "ldmkConnectApp" | "lldNetworkBasedAddAccount" | "llmOfacGeoBlocking" | "lldOfacGeoBlocking" | "llmDatadog" | "llmSentry" | "onboardingIgnoredOsUpdates" | "llmHomescreen" | "supportDeviceApex" | "llmSyncOnboardingIncr1" | "noah">(featureId: T) => Feature<FeatureParam<T>> | null; export default useFeature; //# sourceMappingURL=useFeature.d.ts.map