/** * Tree-rendering invocation context. * * Singleton that carries per-invocation flags for `cleo tree` and any command * that delegates to the tree/orchestration renderers. Set by the CLI command * handler before dispatching; read by the orchestration tree renderer when * deciding whether to inline dependency or blocker chains. * * The pattern mirrors `format-context.ts` and `field-context.ts`: a * module-level store set once at command entry and read by the renderer so * that the renderer signature (`data`, `quiet`) stays stable. * * Originally lived under `packages/cleo/src/cli/tree-context.ts`. Migrated to * `@cleocode/core/render` (T10131 — B6) so the orchestration renderers can * be hosted in core without inverting the package dependency. * * @task T1205 * @task T1206 * @task T10131 * @epic T1187 */ /** * Per-invocation options for tree rendering. */ export interface TreeContext { /** * When `true`, each task in the tree output has its direct dependency chain * inlined below it. Corresponds to the `--with-deps` CLI flag. * * @defaultValue `false` */ withDeps: boolean; /** * When `true`, each blocked task in the tree output has its transitive * blocker chain rendered below it. Corresponds to the `--blockers` CLI flag. * * The data layer must have been called with `withBlockers: true` so that * `blockerChain` and `leafBlockers` fields are present on the nodes. * * @defaultValue `false` */ withBlockers: boolean; } /** * Set the tree rendering context for this CLI invocation. * * Called by the `treeCommand` handler after parsing `--with-deps` and * `--blockers`. * * @param ctx - Partial context; missing keys keep their defaults. */ export declare function setTreeContext(ctx: Partial): void; /** * Get the current tree rendering context. * * @returns The active {@link TreeContext} for this invocation. */ export declare function getTreeContext(): TreeContext; //# sourceMappingURL=tree-context.d.ts.map