/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. * * The canvas's sticky chrome — horizon brush, ruler, pinned rows and the * focus bar — pinned inside the scroll viewport above the body. The toolbar * is the frame's (#1193): the canvas draws no row of controls of its own. * * @packageDocumentation */ import type { ReactNode, Ref, RefObject } from "react"; import type { PlanInstantValue } from "../instant.js"; import type { PlanUiView } from "./view.js"; import type { PlanWindowPart } from "./window.js"; import type { PlanNestedSpanRead, SPAN_READING } from "./nested.js"; type Styles = Record>; export interface PlanHeaderProps { styles: Styles; gridTemplate: string; /** The header element — its live height feeds the expand clamp. */ headerRef: Ref; /** The sources of the Plan's slice holding the window (#1344): the brush spans their domains. */ windowParts: readonly PlanWindowPart[]; /** The axis's stated window, `[from, to)` on its domain: with no source holding the window, the brush spans it and the window shown, as long again either side. */ stated: readonly [number, number] | undefined; /** The span of the collections the series shown read through the rows' nested series index (#1438), or its read in flight: with no * source holding the window, the brush spans it and the window shown. */ span: PlanNestedSpanRead | typeof SPAN_READING | undefined; affordances: ReadonlyArray; now: PlanInstantValue | undefined; /** The ruler's gutter caption — the active grain's name. */ rulerCaption: string; cursorChipRef: RefObject; /** The pinned rows, already rendered. */ pinned: ReactNode; /** The id of the pinned rows' group — the treegrid owns it (`aria-owns`, * #819), so the pinned rows are its first rows though they render here. * Absent when there are none. */ pinnedId: string | undefined; /** The active row focus. */ focus: PlanUiView["focus"]; /** The focused row's name, while a focus is active. */ focusLabel: string | undefined; /** The rows each role band gathers under a links focus (#1680's review). */ linkCounts: { upstream: number; linked: number; downstream: number; } | undefined; } /** The sticky header band. */ export declare function PlanHeader({ styles, gridTemplate, headerRef, windowParts, stated, span, affordances, now, rulerCaption, cursorChipRef, pinned, pinnedId, focus, focusLabel, linkCounts, }: PlanHeaderProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Header.d.ts.map