UNPKG

@ledgerhq/live-common

Version:
19 lines 1.34 kB
import { Currency } from "@ledgerhq/types-cryptoassets"; import { WalletAPICurrency, WalletAPISupportedCurrency, WalletAPIERC20TokenCurrency, WalletAPICryptoCurrency } 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 | undefined>): void; type getHostHeadersParams = { client: string; theme: "light" | "dark"; }; export declare function getClientHeaders(params: getHostHeadersParams): Record<string, string>; export declare const getInitialURL: (inputs: any, manifest: any) => any; 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