/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type ValueTypeOf } from "@elaraai/east"; import { Plan } from "@elaraai/e3-ui/internal"; import { type PlanRowDiagnostic, type PlanRowValue } from "../model.js"; import type { PlanGridRow } from "../root/grid.js"; type HeatCellsValue = ValueTypeOf; type Styles = Record>; type GroupKindValue = Extract["kind"], { type: "group"; }>["value"]; /** * The strip a group band draws collapsed (#824) — its derived strip (the * declared aggregate over its members' drawn heat cells, on the scale they * share, or its declared cells folded to the period), else its declared cells * as they are. `undefined` for a plain band, and for an aggregate with no * member cells to show. Shared with the narrow layout's group cards, so both * strips read the same way. * * @param kind - The group's kind * @param derived - Its derived strip (`PlanDerived.groupStrips`), if any * @returns The heat arm to draw, if any */ export declare function groupStrip(kind: GroupKindValue, derived: HeatCellsValue | undefined): HeatCellsValue | undefined; export interface GroupRowProps { row: PlanRowValue; kind: GroupKindValue; styles: Styles; gridTemplate: string; height: number; depth: number; collapsed: boolean; /** The renderer-derived strip (`PlanDerived.groupStrips`) — see {@link groupStrip}. */ strip?: HeatCellsValue | undefined; /** Renderer-derived direct-member count — printed as the `"8 rows"` meta * (the `groupMeta` message, #820) when the IR declares none (#568: the * count is an aggregate like any other, so it is derived here rather than * baked into the row). */ memberCount?: number | undefined; /** Whether the derived numbers cover only the windows that have landed — * a top-level section band on a paged canvas still loading, the one * parent whose members span windows (`spansWindows`, #822). The count is * a short bar until its members land (#1398, CL13) and the band carries * `data-plan-partial` (#567 D9). The author's own `meta` is never * rewritten: it is their text, not a derivation. */ partial?: boolean | undefined; /** Set when the band's own declared strip rides another arm than the axis * (#811): the band keeps its toggle and its members, and its plot says * why it shows no strip. */ diagnostic?: PlanRowDiagnostic | undefined; /** The band's grid plumbing (#819) — `usePlanGridRow`. */ grid: PlanGridRow; /** The band is the last visible member of the open group around it — it * carries that group's closing rule (#949). */ groupEnd?: boolean | undefined; } /** One group band — full-width strip on the shared template. */ export declare function GroupRow({ row, kind, styles, gridTemplate, height, depth, collapsed, strip, memberCount, partial, diagnostic, grid, groupEnd }: GroupRowProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=GroupRow.d.ts.map