UNPKG

@ledgerhq/live-common

Version:
15 lines 1.01 kB
import { AccountLike } from "@ledgerhq/types-live"; import { ListPlatformAccount, ListPlatformCurrency, PlatformCurrency, 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 usePlatformCurrencies(): PlatformCurrency[]; export declare function useListPlatformCurrencies(): ListPlatformCurrency; //# sourceMappingURL=react.d.ts.map