@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
19 lines • 699 B
TypeScript
import { AppPlatform, PlatformAccount, PlatformCurrency } from "./types";
export type FilterParams = {
branches?: string[];
platform?: AppPlatform;
private?: boolean;
apiVersion?: string[] | string;
llVersion?: string;
lang?: string;
};
export type AccountFilters = {
currencies?: string[];
};
export declare function filterPlatformAccounts(accounts: PlatformAccount[], filters: AccountFilters): PlatformAccount[];
export type CurrencyFilters = {
includeTokens?: boolean;
currencies?: string[];
};
export declare function filterPlatformCurrencies(currencies: PlatformCurrency[], filters: CurrencyFilters): PlatformCurrency[];
//# sourceMappingURL=filters.d.ts.map