/** * UI 节点接口 */ export interface UINode { id: string; type: string; name?: string; pid?: number; frameNodeId?: string; frameNodeTag?: string; parentId?: string; children: UINode[]; properties: Record; } /** * 解析 RenderService client 输出 */ export declare class RenderServiceParser { /** * 解析 UI 组件树输出 * @param output hidumper RenderService client 输出 * @returns UI 节点数组(按 pid 分组) */ static parse(output: string): Map; /** * 计算行深度(通过 | 符号数量) */ private static countDepth; /** * 解析节点行 * 示例: | CanvasNode[8319351652356], parent[8319351652355], frameNodeId[1] */ private static parseNodeLine; /** * 解析 modifiers 字符串 */ private static parseModifiers; /** * 获取指定 pid 的 UI 树 */ static getTreeByPid(output: string, pid: number): UINode | null; /** * 转换为 JSON 树结构 */ static toJSON(output: string): Record; /** * 节点转普通对象(移除循环引用) */ private static nodeToObject; } //# sourceMappingURL=renderService.d.ts.map