import type { DbAdminColumn } from "../../db-admin/types.js"; import { type EditorKind } from "./cell-format.js"; export interface EditableCellProps { column: DbAdminColumn; kind: EditorKind; value: unknown; /** Whether this cell holds a staged (uncommitted) edit. */ dirty?: boolean; /** Whether editing is allowed (false when the table has no PK). */ editable?: boolean; /** Whether this cell is the keyboard-focused/active cell in the grid. */ active?: boolean; /** True if the editor should open immediately (e.g. typing began). */ editing?: boolean; /** Commit a new value into the changeset. */ onCommit: (value: unknown) => void; /** Request entering edit mode. */ onStartEdit?: () => void; /** Request leaving edit mode without committing. */ onCancelEdit?: () => void; /** Move focus after Enter ("down") or Tab ("right"). */ onNavigate?: (dir: "up" | "down" | "left" | "right") => void; className?: string; } export declare function EditableCell({ column, kind, value, dirty, editable, active, editing, onCommit, onStartEdit, onCancelEdit, onNavigate, className, }: EditableCellProps): import("react").JSX.Element; //# sourceMappingURL=EditableCell.d.ts.map