/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type LinkVocabulary } from "../link/grammar.js"; import { type LinkHalves } from "../link/sides.js"; import type { LinkFlags } from "../link/checks.js"; import type { SheetLinkValue, SheetMemberValue } from "../values.js"; import { type SheetWords } from "../words.js"; type Styles = Record>; export interface LinkChipProps { styles: Styles; member: SheetMemberValue; /** The register's line, shown when the half holds a single chip. */ meta: string; /** A proposal or a prediction — dashed. */ ghost: boolean; /** The checks' messages on this member. */ flags: readonly string[]; /** A counted member's count, worded (`4 machines`) — drawn as the chip's meta in place of the register's line. */ count?: string | undefined; } /** * A counted member's count in the words of the kind it resolves to — the * host's kind names (`4 machines`); the bare number when the vocabulary says * nothing about it. In the sheet's words (#861). * * @param member - The member * @param vocab - The column's vocabulary * @param w - The sheet's words * @returns The count's text, or `undefined` for a member that is not counted */ export declare function countText(member: SheetMemberValue, vocab: LinkVocabulary | undefined, w: SheetWords): string | undefined; /** One chip. */ export declare const LinkChip: import("react").MemoExoticComponent<({ styles, member, meta, ghost, flags, count }: LinkChipProps) => import("react/jsx-runtime").JSX.Element>; export interface LinkHalfProps { styles: Styles; half: "from" | "to"; members: readonly SheetMemberValue[]; state: LinkHalves["from"]; vocab: LinkVocabulary | undefined; flags: readonly (readonly string[])[]; ghost: boolean; /** The driver's name for the lock tag's title — `undefined` when the row names none. */ driverName: string | undefined; } /** One half: the lock tag or the hint, then the chips. */ export declare const LinkHalfView: import("react").MemoExoticComponent<({ styles, half, members, state, vocab, flags, ghost, driverName }: LinkHalfProps) => import("react/jsx-runtime").JSX.Element>; export interface LinkCellProps { styles: Styles; link: SheetLinkValue; halves: LinkHalves; vocab: LinkVocabulary | undefined; flags: LinkFlags; /** A proposal — every chip dashed. */ ghost: boolean; /** The row's driver member's name — `undefined` when it names none. */ driverName: string | undefined; } /** Renders the split cell. */ export declare const LinkCell: import("react").MemoExoticComponent<({ styles, link, halves, vocab, flags, ghost, driverName }: LinkCellProps) => import("react/jsx-runtime").JSX.Element>; export {}; //# sourceMappingURL=LinkCell.d.ts.map