@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
25 lines • 1.08 kB
TypeScript
import { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
import { Account, AccountLike, TokenAccount } from "@ledgerhq/types-live";
export declare const FILTER: {
readonly centralised: "centralised";
readonly decentralised: "decentralised";
readonly float: "float";
readonly fixed: "fixed";
};
export type AccountTuple = {
account: Account | null | undefined;
subAccount: TokenAccount | null | undefined;
};
export declare function getAccountTuplesForCurrency(currency: CryptoCurrency | TokenCurrency, allAccounts: Account[], hideEmpty?: boolean): AccountTuple[];
export declare const getAvailableAccountsById: (id: string, accounts: (AccountLike & {
disabled?: boolean;
})[]) => (AccountLike & {
disabled?: boolean | undefined;
})[];
export declare const isRegistrationRequired: (provider: string) => Promise<boolean>;
export declare const getProviderName: (provider: string) => string;
export declare const getNoticeType: (provider: string) => {
message: string;
learnMore: boolean;
};
//# sourceMappingURL=index.d.ts.map