UNPKG

@ledgerhq/live-common

Version:
19 lines 1.43 kB
import { Currency } from "@ledgerhq/types-cryptoassets"; import type { WalletAPICurrency, WalletAPISupportedCurrency, WalletAPIERC20TokenCurrency, WalletAPICryptoCurrency, AppManifest } from "./types"; export declare function isWalletAPISupportedCurrency(currency: Currency): currency is WalletAPISupportedCurrency; export declare function isWalletAPICryptoCurrency(currency: WalletAPICurrency): currency is WalletAPICryptoCurrency; export declare function isWalletAPITokenCurrency(currency: WalletAPICurrency): currency is WalletAPIERC20TokenCurrency; export declare function isWalletAPIERC20TokenCurrency(currency: WalletAPICurrency): currency is WalletAPIERC20TokenCurrency; export declare function addParamsToURL(url: URL, inputs?: Record<string, string | boolean | undefined>): void; type getHostHeadersParams = { client: string; theme: "light" | "dark"; }; export declare function getClientHeaders(params: getHostHeadersParams): Record<string, string>; export declare const getInitialURL: (inputs: Record<string, string | boolean | undefined> | undefined, manifest: AppManifest) => string; export declare const safeUrl: (url: string) => URL | null; export declare const isHexPrefixed: (str: string) => boolean; export declare const stripHexPrefix: (str: string) => string; export declare function objectToURLSearchParams(obj: Record<string, unknown>): URLSearchParams; export {}; //# sourceMappingURL=helpers.d.ts.map