/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type SystemStyleObject } from "@chakra-ui/react"; import { type DrawnItem } from "./drawn"; import type { SchematicNarrowedLook } from "../narrowing.js"; /** Props of {@link SchematicCard}: its item, and how it stands — each a value, so a card whose standing holds renders not. */ export interface SchematicCardProps { /** The item, as the canvas draws it: the same object while its rows read as they were. */ readonly item: DrawnItem; /** The recipe's styles, resolved once a recipe. */ readonly styles: Readonly>; /** What hears the card's size as the page lays it out (#1403): a ref callback, the same one for every card. */ readonly observe: (el: HTMLElement | null) => (() => void) | undefined; /** Whether it is selected, or a marquee in flight would select it. */ readonly selected: boolean; /** Whether it holds a conflict not yet chosen: it wears the conflicts' warn ring. */ readonly conflict: boolean; /** Whether its row breaks its fields' bounds (#1585), stored or changed: it wears the same warn ring. */ readonly bounds: boolean; /** Whether its layer is locked: it takes no pointer, and selects by no path (SC27). */ readonly locked: boolean; /** Its layer's opacity, where its layer dims it. */ readonly layerOpacity: number | undefined; /** Its opacity while it draws as the narrowing's context (#1392); `undefined` while it draws as itself. */ readonly contextOpacity: number | undefined; /** Whether, drawn as context, it is greyed. */ readonly desaturate: boolean; /** A match's emphasis, while it is a match the look rings. */ readonly emphasis: SchematicNarrowedLook["emphasis"]; /** Whether a Connect's draft would end on it, refused (SC9). */ readonly forbidden: boolean; /** Whether a library card's drop lands on it (#1390). */ readonly dropTarget: boolean; } /** * An item's card (see the module docs): no `onClick` and no `stopPropagation`, as a drag-pan can start on a card, and * the canvas resolves a tap on it as it lets go. */ export declare const SchematicCard: import("react").MemoExoticComponent<({ item, styles, observe, selected, conflict, bounds, locked, layerOpacity, contextOpacity, desaturate, emphasis, forbidden, dropTarget, }: SchematicCardProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=card.d.ts.map