/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { SheetRegisterIndex } from "../model.js"; import type { SheetCellValue } from "../values.js"; import { type ActionCase, type ActionColumn } from "./model.js"; import type { SheetActionHost } from "./host.js"; /** What the inspector's action field takes beyond the cell's host. */ export interface ActionPanelApi { /** Take a case with its value, one transaction. */ take: (r: number, key: string, c: ActionCase, value: unknown) => boolean; /** What taking it would write, worded (F8). */ consequence: (r: number, key: string, c: ActionCase, value: unknown) => string; /** What a form opens with (F10), decoded. */ initial: (r: number, key: string, c: ActionCase) => unknown; } /** Props of {@link ActionPanel}. */ export interface ActionPanelProps { host: SheetActionHost; api: ActionPanelApi; r: number; columnKey: string; column: ActionColumn; cell: SheetCellValue | undefined; summary: string; registers: SheetRegisterIndex; /** Whether the action cell takes an edit: its column writes, and no mark locks it (#1560). */ writable: boolean; } /** Renders an action field in the inspector. */ export declare const ActionPanel: import("react").MemoExoticComponent<({ host, api, r, columnKey, column, cell, summary, registers, writable }: ActionPanelProps) => import("react/jsx-runtime").JSX.Element | null>; //# sourceMappingURL=ActionPanel.d.ts.map