UNPKG

@ledgerhq/live-common

Version:
39 lines 1.45 kB
import { AppType, ApplicationV2 } from "@ledgerhq/types-live"; export declare const whitelistDependencies: string[]; export declare const getDependencies: (appName: string, appVersion?: string) => string[]; export declare const getDependents: (appName: string) => string[]; /** * Due to the schema returned by the Manager API we need this key remapping and * slight polyfill because we are not the only consumers of the API and they * can't give us exactly what we need. It's a pity but it's our pity. * @param param ApplicationV2 * @returns App */ export declare const mapApplicationV2ToApp: ({ versionId: id, versionName: name, versionDisplayName: displayName, firmwareKey: firmware_key, deleteKey: delete_key, applicationType: type, parentName, currencyId, ...rest }: ApplicationV2) => { currencyId: string | undefined; version: string; description: string; dateModified: string; icon: string; authorName: string; supportURL: string; contactURL: string; sourceURL: string; hash: string; perso: string; firmware: string; delete: string; bytes: number; warning: string | null; isDevTools: boolean; id: number; name: string; displayName: string; firmware_key: string; delete_key: string; dependencies: string[]; indexOfMarketCap: number; type: AppType; }; export declare const calculateDependencies: () => void; //# sourceMappingURL=polyfill.d.ts.map