/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { ITask, TaskGraph } from "@workglow/task-graph"; import type { CensusList, RunTaskCounts } from "./model/runCensus"; /** The list key holding a Map/Reduce task's in-flight iterations. */ export declare function iterationGroupKey(nodeKey: string): string; /** The list key holding the tasks of one in-flight iteration. */ export declare function iterationListKey(nodeKey: string, index: number): string; /** Walks a graph's whole tree the way the rows draw it. */ export declare function censusOfGraph(graph: TaskGraph): CensusList; /** * Walks a single task and everything it owns, for the single-task view, where * the task itself is a row rather than a member of a root list. */ export declare function censusOfTask(task: ITask): CensusList; export interface RunCensusState { /** The tree as it stands, for pricing the viewport. */ readonly tree: CensusList; /** Everything the run has ever contained, for the footer. */ readonly counts: RunTaskCounts; } /** Tracks what a whole run contains — see {@link useCensus}. */ export declare function useGraphRunCensus(graph: TaskGraph): RunCensusState; /** The single-task view's census: the task itself plus everything it owns. */ export declare function useTaskRunCensus(task: ITask): RunCensusState;