UNPKG

mp-lens

Version:

微信小程序分析工具 (Unused Code, Dependencies, Visualization)

12 lines (11 loc) 503 B
import type { ProjectStructure } from '../../analyzer/project-structure'; import type { TreeNodeData } from '../types'; /** * Helper function to format bytes into human-readable form. */ export declare function formatBytes(bytes: number, decimals?: number): string; /** * Converts flat graph data (nodes and links) into a hierarchical tree structure * with calculated statistics for each node. */ export declare function buildTreeWithStats(projectStructure: ProjectStructure): TreeNodeData | null;