@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
10 lines • 544 B
TypeScript
import type { AppOp, InstalledItem } from "./types";
/**
* Formats a byte value into its correct size in kb or mb unit taking into
* the device block size. It accepts a formatting function to be able to
* customize the rounding if needed.
**/
export declare const formatSize: (value: number | undefined, blockSize: number, floor?: boolean) => [string, string];
export declare const prettyActionPlan: (ops: AppOp[]) => string;
export declare const prettyInstalled: (items: InstalledItem[]) => string;
//# sourceMappingURL=formatting.d.ts.map