/** * renderTaskTreeText / renderTaskTreeMermaid — pure-functional tree renderers. * * Convert a scoped dependency graph into a human-readable ASCII tree or a * Mermaid graph TD block. Both renderers are stateless and produce a string. * * @arch SDK Tool (Category B) — pure, no side effects, contracts-typed * @task T10068 * @epic T9835 */ import type { RenderTaskTreeInput } from '@cleocode/contracts'; /** * Render a simple ASCII dependency tree. * * Root tasks (no dependencies within the scoped set) are listed first. * Tasks on the critical path are marked with `**`. * * @param input - Nodes, edges, and critical path * @returns ASCII text block * * @example * ```typescript * const text = renderTaskTreeText({ nodes, edges, criticalPath: ['T1', 'T2'] }); * // "Dep tree:\n [ ] T1: Setup **\n [ ] T2: Build **\n ..." * ``` */ export declare function renderTaskTreeText(input: RenderTaskTreeInput): string; /** * Render a Mermaid `graph TD` block. * * Escapes double-quotes and brackets in task titles to prevent parse errors. * Tasks on the critical path are styled with an orange-red highlight. * * @param input - Nodes, edges, and critical path * @returns Mermaid graph TD string * * @example * ```typescript * const mermaid = renderTaskTreeMermaid({ nodes, edges, criticalPath: ['T1'] }); * // "graph TD\n T1[\"T1: Setup (pending)\"]\n ..." * ``` */ export declare function renderTaskTreeMermaid(input: RenderTaskTreeInput): string; //# sourceMappingURL=render-task-tree.d.ts.map