/** * Dep-tree text and Mermaid rendering helpers. * @task T10064 * @epic T9834 */ /** Node shape used by rendering helpers. */ export interface TreeNode { id: string; title: string; status: string; depends: string[]; } /** Edge shape. */ export interface TreeEdge { from: string; to: string; } /** * Compute the critical (longest) path through a dep DAG using topological DP. * Returns task IDs from the path start to end. * * @param nodes - DAG nodes. * @param edges - DAG edges (from dep to dependent). * @param epicId - Root epic ID to exclude from end-node selection. */ export declare function computeCriticalPath(nodes: TreeNode[], edges: TreeEdge[], epicId: string): string[]; /** * Render a simple ASCII dep tree. * Groups tasks by their immediate deps (roots first, then dependents). * * @param nodes - DAG nodes. * @param _edges - DAG edges (unused in text rendering). * @param criticalPath - IDs on the critical path (marked with **). */ export declare function renderTextTree(nodes: TreeNode[], _edges: TreeEdge[], criticalPath: string[]): string; /** * Render a Mermaid graph TD block. * Escapes double-quotes in task titles to prevent parse errors. * * @param nodes - DAG nodes. * @param edges - DAG edges. * @param criticalPath - IDs on the critical path (styled with critical class). */ export declare function renderMermaidTree(nodes: TreeNode[], edges: TreeEdge[], criticalPath: string[]): string; //# sourceMappingURL=tree-render.d.ts.map