/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type SheetColumnMeta } from "../model.js"; import { type WhenLevel } from "../parse/date.js"; import type { LinkVocabulary } from "../link/grammar.js"; import type { LinkHalves } from "../link/sides.js"; import { type LinkFlags } from "../link/checks.js"; import type { SheetCellValue, SheetRegisterMemberValue } from "../values.js"; type Styles = Record>; /** What a link cell needs beyond its value. */ export interface LinkCellContext { halves: LinkHalves; vocab: LinkVocabulary | undefined; flags: LinkFlags; /** The row's driver member's name — `undefined` when it names none. */ driverName: string | undefined; } export interface SheetCellContentProps { styles: Styles; meta: SheetColumnMeta; cell: SheetCellValue | undefined; /** Whether the row is blank — a stamped / enum column prints `—` only on a non-blank row. */ rowBlank: boolean; /** The unit for a quantity cell (from the driver). */ unit: string | undefined; /** The register member the cell names (an enum's, a reference's, a lookup's): its label is what the cell shows, an enum's tone its dot. */ member: SheetRegisterMemberValue | undefined; /** A pending fill — drawn as a ghost when the cell is blank (P4). */ ghost: SheetCellValue | undefined; /** The link cell's halves, vocabulary and flags. */ link: LinkCellContext | undefined; /** A date cell's level for its row, and the actual instant once the work has happened (#844). */ when?: { level: WhenLevel; actual?: Date | undefined; } | undefined; /** A run of the optimiser changed the cell (#1409, R25): its value carries `data-op-value`, and fades in as the cell lands. */ marked?: boolean | undefined; } /** Renders a cell's content. */ export declare const SheetCellContent: import("react").MemoExoticComponent<({ styles, meta, cell, rowBlank, unit, member, ghost, link, when, marked }: SheetCellContentProps) => import("react/jsx-runtime").JSX.Element | null>; export {}; //# sourceMappingURL=Cell.d.ts.map