UNPKG

@ledgerhq/live-common

Version:
14 lines 962 B
import { AccountLike } from "@ledgerhq/types-live"; import { ListPlatformAccount, ListPlatformCurrency, LiveAppManifest, PlatformAccount } from "./types"; import { WalletState } from "@ledgerhq/live-wallet/store"; /** * TODO: we might want to use "searchParams.append" instead of "searchParams.set" * to handle duplicated query params (example: "?foo=bar&foo=baz") * * We can also use the stringify method of qs (https://github.com/ljharb/qs#stringifying) */ export declare function usePlatformUrl(manifest: LiveAppManifest, inputs?: Record<string, string | undefined>): URL; export declare function usePlatformAccounts(walletState: WalletState, accounts: AccountLike[]): PlatformAccount[]; export declare function useListPlatformAccounts(walletState: WalletState, accounts: AccountLike[]): ListPlatformAccount; export declare function useListPlatformCurrencies(deactivatedCurrencyIds: Set<string>): ListPlatformCurrency; //# sourceMappingURL=react.d.ts.map